SDK3 Build error


#1

Hi

I tried to build ARSDKBuildUtils for Unix. But ARstream2 fails to pass.
The log is record as below .
Does anyone tell me how to pass ARstream2?
Thanks.

Building libARStream2 (dependancy of libARController)
Start running Unix_BuildLibrary with args:
– nodeps -> False
– target -> Unix
– lib -> ARStream2
– isMp -> False
– requestedArchs -> None
– inhouse -> False
– clean -> False
– debug -> False
Building libARSAL (dependancy of libARStream2)
Dependancy libARSAL already built for Unix
Start running Common_BuildConfigureLibrary with args:
– confdirSuffix ->
– clean -> False
– lib -> ARStream2
– noSharedObjects -> False
– isMp -> False
– extraArgs -> [‘CFLAGS="-fPIC"’]
– installSubDir ->
– debug -> False
– configureLock -> None
– bootstrapLock -> None
– target -> Unix
– isLib -> True
– inhouse -> False
– makeLock -> None
– stripVersionNumber -> False
Start running Common_CheckBootstrap with args:
– path -> /mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils/…/libARStream2/Build
Finished running Common_CheckBootstrap with args:
– path -> /mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils/…/libARStream2/Build
Start running Common_CheckConfigure with args:
– extraConfigureFiles -> []
– confdir -> /mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils/…/libARStream2/Build
– makedir -> /mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils/Targets/Unix/Build/libARStream2
– lib -> ARStream2
– ConfigureArgs -> [u’–prefix=/mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils/Targets/Unix/Install’, ‘CFLAGS="-fPIC -g"’, ‘INSTALL="/usr/bin/install -C"’]
Finished running Common_CheckConfigure with args:
– extraConfigureFiles -> [u’/mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils/…/libARStream2/Includes/libARStream2/*.h’]
– confdir -> /mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils/…/libARStream2/Build
– makedir -> /mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils/Targets/Unix/Build/libARStream2
– lib -> ARStream2
– ConfigureArgs -> [u’–prefix=/mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils/Targets/Unix/Install’, ‘CFLAGS="-fPIC -g"’, ‘INSTALL="/usr/bin/install -C"’]
Entering /mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils/Targets/Unix/Build/libARStream2
Running make -j 4 install
Failed to build libARStream2
Returning to /mnt/c/Users/myname/Documents/parrot/ARSDKBuildUtils
Error while running Common_BuildConfigureLibrary with args:
– confdirSuffix ->
– bootstrapLock -> None
– lib -> ARStream2
– stripVersionNumber -> False
– noSharedObjects -> False
– isMp -> False
– extraArgs -> [‘CFLAGS="-fPIC"’]
– installSubDir ->
– isLib -> True
– configureLock -> None
– clean -> False
– debug -> False
– inhouse -> False
– makeLock -> None
– target -> Unix
Error while running Unix_BuildLibrary with args:
– nodeps -> False
– target -> Unix
– lib -> ARStream2
– isMp -> False
– requestedArchs -> None
– inhouse -> False
– clean -> False
– debug -> False
Error while building dependancy libARStream2
Error while running Unix_BuildLibrary with args:
– nodeps -> False
– target -> Unix
– lib -> ARController
– isMp -> False
– requestedArchs -> []
– inhouse -> False
– clean -> False
– debug -> False
End of build


Can the SDK work on Windows 10
#2

Hi,

You seem to be using the old build script. Since the 3.8 SDK, the build is no longer done with the ARSDKBuildUtils repo (more infos on this blog post or in the documentation).

The old build system is no longer maintained and is expected to fail.

Regards,
Nicolas.


#3

Thanks.
I already tried to build with repo. But error related to makefile occurs;
I use Linux subsystem for Windows10.

Regards

  • ALCHEMY_WORKSPACE_DIR = /mnt/c/Users/myname/Documents/ARdroneSDK3_home/ARdroneSDK3
  • TARGET_PRODUCT = arsdk
  • TARGET_PRODUCT_VARIANT = native
  • TARGET_OS = linux
  • TARGET_OS_FLAVOUR = native
  • TARGET_LIBC = native
  • TARGET_ARCH = x64
  • TARGET_CPU =
  • TARGET_OUT = /mnt/c/Users/myname/Documents/ARdroneSDK3_home/ARdroneSDK3/out/arsdk-native
  • TARGET_CONFIG_DIR = /mnt/c/Users/myname/Documents/ARdroneSDK3_home/ARdroneSDK3/products/arsdk/native/config
  • TARGET_CC_PATH = /usr/bin/gcc
  • TARGET_CC_VERSION = 4.8

Scanning /mnt/c/Users/myname/Documents/ARdroneSDK3_home/ARdroneSDK3/packages for makefiles…
Prebuilt module ncurses marked as overriden
Found 30 makefiles
Found 48 modules
/mnt/c/Users/myname/Documents/ARdroneSDK3_home/ARdroneSDK3/build/alchemy/main.mk:464: *** /mnt/c/Users/myname/Documents/ARdroneSDK3_home/ARdroneSDK3/packages/libARDiscovery: module ‘libARDiscovery’ depends on unknown module ‘avahi’. Stop.
[E] Task ‘build-sdk’ failed (Command failed (returncode=2))


#4

Hi,

The error says that we were not able to find the avahi package installed. If the Linux subsystem for Windows10 works as well as advertised, a simple ‘apt-get install libavahi-client-dev’ should be enough to install the required library.

Let me know if it works :wink:

Regards,
Nicolas.


#5

Following your advice, I was able to finish task ‘build-sdk’.
But, if I try to run Sample, there is no Makefile in the sample folder.
there is atom.mk, instead.

Regards


#6

Hi,

The samples are also built from the build.sh script, as described in the documentation. After building, you can use the native-wrapper.sh script to run them (also explained in the documentation).

Regards,
Nicolas.


#7

I had missed reading that part.
After running build-sample and native-wrapper, now I can run JumpingSumoPiloting.

Thanks so much!


#8

I’m going to have to look into this. I’m assuming m$ is going to give us a compatibility library of some kind which would allow execution outside of a full USS install.