Parrot-Developers/olympe

build problem

Closed this issue · 3 comments

Hi, I can not complete the installation. During dependencies installation I have got the following error:

ERROR: sphinx-substitution-extensions 2018.11.12.3 has requirement sphinx==1.8.2, but you'll have sphinx 1.8.5 which is incompatible.

and once I try tu build the app:


jakub@jakub-ubuntu:~/code/parrot-groundsdk$ ./build.sh -p olympe-linux -A all final -j
[I] Starting task 'alchemy' with args: all final
[I] In '/home/jakub/code/parrot-groundsdk': ALCHEMY_TARGET_CONFIG_DIR="/home/jakub/code/parrot-groundsdk/products/olympe/linux/config" ALCHEMY_TARGET_OUT="/home/jakub/code/parrot-groundsdk/out/olympe-linux" ALCHEMY_TARGET_PRODUCT="olympe" ALCHEMY_TARGET_PRODUCT_VARIANT="linux" ALCHEMY_TARGET_SCAN_ADD_DIRS=" /home/jakub/code/parrot-groundsdk/packages" ALCHEMY_TARGET_SCAN_PRUNE_DIRS=" /home/jakub/code/parrot-groundsdk" ALCHEMY_USE_COLORS="1" ALCHEMY_WORKSPACE_DIR="/home/jakub/code/parrot-groundsdk" PARROT_BUILD_PROP_GROUP="drones" PARROT_BUILD_PROP_PRODUCT="olympe" PARROT_BUILD_PROP_PROJECT="olympe" PARROT_BUILD_PROP_UID="olympe-linux-20200423-1616-0.0.0" PARROT_BUILD_PROP_VARIANT="linux" PARROT_BUILD_PROP_VERSION="0.0.0" /home/jakub/code/parrot-groundsdk/build/alchemy/scripts/alchemake -j 4 all final         
----------------------------------------------------------------------
+ ALCHEMY_WORKSPACE_DIR = /home/jakub/code/parrot-groundsdk
+ TARGET_PRODUCT = olympe
+ TARGET_PRODUCT_VARIANT = linux
+ TARGET_OS = linux
+ TARGET_OS_FLAVOUR = native
+ TARGET_LIBC = native
+ TARGET_ARCH = x64
+ TARGET_CPU = 
+ TARGET_OUT = /home/jakub/code/parrot-groundsdk/out/olympe-linux
+ TARGET_CONFIG_DIR = /home/jakub/code/parrot-groundsdk/products/olympe/linux/config
+ TARGET_CC_PATH = /usr/bin/cc
+ TARGET_CC_VERSION = 9
----------------------------------------------------------------------
Scanning /home/jakub/code/parrot-groundsdk/packages for makefiles...
Found 52 makefiles
Prebuilt module json marked as overriden
Found 138 modules
Computing modules dependencies...
Checking modules dependencies...
Generating rules...
Processing rules...
Link: out/olympe-linux/staging/usr/include/json => json-c
Link: out/olympe-linux/staging/usr/lib/libjson.a => libjson-c.a
Link: out/olympe-linux/staging/usr/lib/libjson.so => libjson-c.so
Autotools: ffmpeg-libav => Building
Autotools: json => Building
SharedLib: libpomp => out/olympe-linux/build/libpomp/libpomp.so
StaticLib: libpomp => out/olympe-linux/build/libpomp/libpomp.a
SharedLib: libfutils => out/olympe-linux/build/libfutils/libfutils.so
Making all in .
  CC       json_tokener.lo
StaticLib: libfutils => out/olympe-linux/build/libfutils/libfutils.a
Autotools: libtar => Configuring
json_tokener.c: In function 'json_tokener_parse_ex':
json_tokener.c:303:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
  303 |         if (tok->flags & JSON_TOKENER_STRICT) {
      |            ^
json_tokener.c:308:7: note: here
  308 |       case '"':
      |       ^~~~
LD      libavcodec/libavcodec.so.57
/usr/bin/ld: libavcodec/h264qpel.o: file not recognized: file truncated
collect2: error: ld returned 1 exit status
make[1]: *** [/home/jakub/code/parrot-groundsdk/packages/common/ffmpeg/library.mak:94: libavcodec/libavcodec.so.57] Error 1
make: *** [/home/jakub/code/parrot-groundsdk/build/alchemy/classes/GENERIC/rules.mk:120: /home/jakub/code/parrot-groundsdk/out/olympe-linux/build/ffmpeg-libav/ffmpeg-libav.built.stamp] Error 2

MAKE ERROR DETECTED
[E] Command failed (returncode=254)    

Thank you for sugestions!

What is your linux version? I have Ubuntu 18.04 and I have not problems with installation.

Do you have repo installed from here?
Problem can be due repo sync

I also get ERROR: sphinx-substitution-extensions 2018.11.12.3 has requirement sphinx==1.8.2, but you'll have sphinx 1.8.5 which is incompatible. but its allow do make build.

I make this video one week ago of full installation from zero:
https://www.youtube.com/watch?v=l7vHeDZtxTQ&t=627s

You can check all installation process.

Yes, I just checked it on fresh ubuntu 18 on VM and there is no such problem and everything works perfect. The problem occurred only on fresh Ubuntu 19.

Thank you!

The current build procedure is only meant for Ubuntu 18.04. To resolve the build dependencies on other Linux distributions, you are basically on your own sorry.

We will try to support more distribution in the future. In the meantime I am closing this issue.