Errors on build processing for voxl-vision-px4
-
Hi,
I got clone voxl-vision-px4 form git repository and switch to 0.6.8 commit version.
swift@swift-HP-Pavilion-dv6-Notebook-PC:~/git$ git clone https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-vision-px4.git swift@swift-HP-Pavilion-dv6-Notebook-PC:~/git$ cd voxl-vision-px4/ swift@swift-HP-Pavilion-dv6-Notebook-PC:~/git/voxl-vision-px4$ git submodule update --init --recursive swift@swift-HP-Pavilion-dv6-Notebook-PC:~/git/voxl-vision-px4$ git log commit eb4f400227a0c1b23e604cf76f4e22714f43f87f (HEAD -> master, origin/master, origin/HEAD) Author: Cliff Wong <cliff.wong@modalai.com> Date: Wed May 12 23:53:18 2021 +0000 Update README.md --ipk command name change commit 95234d71677faee8c95242921e285cfe93d9ce7f (tag: v0.8.1) Merge: b485c79 216badd Author: james <james@modalai.com> Date: Tue Mar 2 13:53:35 2021 -0800 Merge branch 'dev' ... commit 7b9f76c468045a023b35747deeef52e4f524b7de (tag: v0.6.8) Author: james <james@modalai.com> Date: Wed Oct 7 13:00:34 2020 -0700 detect and warn when PX4 disconnects from uart swift@swift-HP-Pavilion-dv6-Notebook-PC:~/git/voxl-vision-px4$ git reset --hard 7b9f76c468045a023b35747deeef52e4f524b7de HEAD is now at 7b9f76c detect and warn when PX4 disconnects from uart
I tried to build source code but, there's some errors without any modification.
Q1) I gave a command with 'stable' but, installer refered to 'dev'. is this correct?
Q2) In the process, installation was don even though there're some errors. is it ok?swift@swift-HP-Pavilion-dv6-Notebook-PC:~/git/voxl-vision-px4$ voxl-docker -i voxl-emulator bash-4.3# ./install_build_deps.sh stable using development repository Downloading http://voxl-packages.modalai.com/dev/Packages.gz. **Updated source 'dev'**. No packages removed. qemu: Unsupported syscall: 219 Installing libvoxl_io (0.5.4) on root. Downloading http://voxl-packages.modalai.com/dev/libvoxl_io_0.5.4_202105201932.ipk. Configuring libvoxl_io. Done installing libvoxl_io qemu: Unsupported syscall: 219 Installing modalai-vl (0.1.4) on root. Downloading http://voxl-packages.modalai.com/dev/modalai-vl_0.1.4_8x96.ipk. Configuring modalai-vl. /usr/lib/rfsa/adsp/port_mapping.xml does not exist, creating symlink /usr/lib/rfsa/adsp/eagle.xml does not exist, creating symlink /usr/lib/rfsa/adsp/imu_offset.xml does not exist, creating symlink /usr/lib/rfsa/adsp/fiducial_markers.xml does not exist, creating symlink /bin/chmod: cannot access '/dev/adsprpc-smd': No such file or directory Collected errors: * pkg_run_script: package "modalai-vl" postinst script returned status 1. * opkg_configure: modalai-vl.postinst returned 1. qemu: Unsupported syscall: 219 Installing imu_app (0.0.6) on root. Downloading http://voxl-packages.modalai.com/dev/imu_app_0.0.6.ipk. Configuring modalai-vl. /usr/lib/rfsa/adsp/port_mapping.xml exists but is not a valid symlink, overwriting /usr/lib/rfsa/adsp/eagle.xml exists but is not a valid symlink, overwriting /usr/lib/rfsa/adsp/imu_offset.xml exists but is not a valid symlink, overwriting /usr/lib/rfsa/adsp/fiducial_markers.xml exists and is a valid symlink /bin/chmod: cannot access '/dev/adsprpc-smd': No such file or directory Configuring imu_app. Done installing imu_app Collected errors: * pkg_run_script: package "modalai-vl" postinst script returned status 1. * opkg_configure: modalai-vl.postinst returned 1. the following packages were installed libvoxl_io - 0.5.4 - ModalAI library allowing apps processor access to accessory serial ports librc_math - 1.1.5 - Math and Linear Algebra Routines for Robotics libmodal_pipe - 2.0.6 - Interface for services to communicate over posix named pipes modalai-vl - 0.1.4 - ModalAI Vision Library imu_app - 0.0.6 - imu server Done installing dependencies
Q3) threre're some errors on build without any modification. Could you please check it?
bash-4.3# ./build.sh -- Configuring done -- Generating done -- Build files have been written to: /home/root/build [ 9%] Built target voxl-px4-shell [ 14%] Building C object src/CMakeFiles/voxl-vision-px4.dir/px4_monitor.c.o [ 19%] Building C object src/CMakeFiles/voxl-vision-px4.dir/px4_shell.c.o [ 23%] Building C object src/CMakeFiles/voxl-vision-px4.dir/fixed_frame_pipe.c.o [ 28%] Building C object src/CMakeFiles/voxl-vision-px4.dir/offboard_follow_tag.c.o In file included from /home/root/src/fixed_frame_pipe.c:35:0: /home/root/src/../include/voxl_vision_px4.h:62:16: error: redefinition of 'struct pose_4dof_t' typedef struct pose_4dof_t{ ^ In file included from /usr/include/modal_pipe_deprecated.h:42:0, from /usr/include/modal_pipe_sink.h:42, from /home/root/src/fixed_frame_pipe.c:34: /usr/include/modal_pipe_interfaces.h:523:16: note: originally defined here typedef struct pose_4dof_t{ ^ In file included from /home/root/src/fixed_frame_pipe.c:35:0: /home/root/src/../include/voxl_vision_px4.h:66:3: error: conflicting types for 'pose_4dof_t' } pose_4dof_t; ^ In file included from /usr/include/modal_pipe_deprecated.h:42:0, from /usr/include/modal_pipe_sink.h:42, from /home/root/src/fixed_frame_pipe.c:34: /usr/include/modal_pipe_interfaces.h:528:27: note: previous declaration of 'pose_4dof_t' was here } __attribute__((packed)) pose_4dof_t; ^ In file included from /home/root/src/px4_shell.c:36:0: /home/root/src/../include/voxl_vision_px4.h:62:16: error: redefinition of 'struct pose_4dof_t' typedef struct pose_4dof_t{ ^ In file included from /usr/include/modal_pipe_deprecated.h:42:0, from /usr/include/modal_pipe_sink.h:42, from /home/root/src/px4_shell.c:35: /usr/include/modal_pipe_interfaces.h:523:16: note: originally defined here typedef struct pose_4dof_t{ ^ In file included from /home/root/src/px4_shell.c:36:0: /home/root/src/../include/voxl_vision_px4.h:66:3: error: conflicting types for 'pose_4dof_t' } pose_4dof_t; ^ In file included from /usr/include/modal_pipe_deprecated.h:42:0, from /usr/include/modal_pipe_sink.h:42, from /home/root/src/px4_shell.c:35: /usr/include/modal_pipe_interfaces.h:528:27: note: previous declaration of 'pose_4dof_t' was here } __attribute__((packed)) pose_4dof_t; ^ /home/root/src/fixed_frame_pipe.c: In function 'fixed_frame_pipe_init': /home/root/src/fixed_frame_pipe.c:63:2: warning: 'pipe_sink_init_channel' is deprecated (declared at /usr/include /modal_pipe_deprecated.h:735): Please use pipe_sink_create() instead [-Wdeprecated-declarations] if(pipe_sink_init_channel(FIXED_FRAME_SINK_CH, FIXED_FRAME_PIPE_PATH, 1, READ_BUF_SIZE)){ ^ /home/root/src/fixed_frame_pipe.c:66:2: warning: implicit declaration of function 'pipe_sink_set_data_cb' [-Wimplicit-function-declaration] pipe_sink_set_data_cb(FIXED_FRAME_SINK_CH, data_cb); ^ /home/root/src/fixed_frame_pipe.c: In function 'fixed_frame_pipe_stop': /home/root/src/fixed_frame_pipe.c:72:2: warning: 'pipe_sink_close_channel' is deprecated (declared at /usr/include /modal_pipe_deprecated.h:749): Please use pipe_sink_close() instead [-Wdeprecated-declarations] pipe_sink_close_channel(FIXED_FRAME_SINK_CH); ^ src/CMakeFiles/voxl-vision-px4.dir/build.make:182: recipe for target 'src/CMakeFiles/voxl-vision-px4.dir/fixed_frame_pipe.c.o' failed make[2]: *** [src/CMakeFiles/voxl-vision-px4.dir/fixed_frame_pipe.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /home/root/src/px4_shell.c: In function 'px4_shell_init': /home/root/src/px4_shell.c:89:2: warning: 'pipe_sink_init_channel' is deprecated (declared at /usr/include /modal_pipe_deprecated.h:735): Please use pipe_sink_create() instead [-Wdeprecated-declarations] if(pipe_sink_init_channel(TO_PX4_SHELL_CH, TO_PX4_SHELL_PATH, 1, READ_BUF_SIZE)){ ^ /home/root/src/px4_shell.c:92:2: warning: implicit declaration of function 'pipe_sink_set_data_cb' [-Wimplicit-function-declaration] pipe_sink_set_data_cb(TO_PX4_SHELL_CH, data_cb); ^ /home/root/src/px4_shell.c:94:2: warning: 'pipe_sink_init_channel' is deprecated (declared at /usr/include /modal_pipe_deprecated.h:735): Please use pipe_sink_create() instead [-Wdeprecated-declarations] if(pipe_sink_init_channel(FROM_PX4_SHELL_CH, FROM_PX4_SHELL_PATH, 0, 0)){ ^ /home/root/src/px4_shell.c: In function 'px4_shell_stop': /home/root/src/px4_shell.c:106:2: warning: 'pipe_sink_close_channel' is deprecated (declared at /usr/include /modal_pipe_deprecated.h:749): Please use pipe_sink_close() instead [-Wdeprecated-declarations] pipe_sink_close_channel(TO_PX4_SHELL_CH); ^ /home/root/src/px4_shell.c:107:2: warning: 'pipe_sink_close_channel' is deprecated (declared at /usr/include /modal_pipe_deprecated.h:749): Please use pipe_sink_close() instead [-Wdeprecated-declarations] pipe_sink_close_channel(FROM_PX4_SHELL_CH); ^ src/CMakeFiles/voxl-vision-px4.dir/build.make:326: recipe for target 'src/CMakeFiles/voxl-vision-px4.dir/px4_shell.c.o' failed make[2]: *** [src/CMakeFiles/voxl-vision-px4.dir/px4_shell.c.o] Error 1 CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/voxl-vision-px4.dir/all' failed make[1]: *** [src/CMakeFiles/voxl-vision-px4.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
-
The dependencies will likely need to line up with that version of voxl-vision-px4. voxl-suite contains all of the different packages. So installing a specific version of voxl-suite that matches voxl-vision-px4 should help.
To switch to stable channel:
yocto:/# vi /etc/opkg/opkg.confuncomment the stable branch, and comment out the dev branch at the bottom of this file.
yocto:/# opkg update
-
Hi chad,
opkg.conf is already uncommented with stable option.
I think there's no stable option on version 06.8.
But, I copied latest install_build_deps.sh and excuted with stable option. I compiled all correctly with errors.
but, there're still errors on build process.
bash-4.3# ./build.sh -- Configuring done -- Generating done -- Build files have been written to: /home/root/build [ 9%] Built target voxl-px4-shell [ 14%] Building C object src/CMakeFiles/voxl-vision-px4.dir/transform_ringbuf.c.o [ 19%] Building C object src/CMakeFiles/voxl-vision-px4.dir/adsb_uart.c.o [ 23%] Building C object src/CMakeFiles/voxl-vision-px4.dir/main.c.o [ 28%] Building C object src/CMakeFiles/voxl-vision-px4.dir/fixed_frame_pipe.c.o /home/root/src/main.c:44:24: fatal error: modalai_vl.h: No such file or directory #include <modalai_vl.h> ^ compilation terminated. src/CMakeFiles/voxl-vision-px4.dir/build.make:86: recipe for target 'src/CMakeFiles/voxl-vision-px4.dir/main.c.o' failed make[2]: *** [src/CMakeFiles/voxl-vision-px4.dir/main.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /home/root/src/fixed_frame_pipe.c: In function 'fixed_frame_pipe_init': /home/root/src/fixed_frame_pipe.c:66:2: warning: implicit declaration of function 'pipe_sink_set_data_cb' [-Wimplicit-function-declaration] pipe_sink_set_data_cb(FIXED_FRAME_SINK_CH, data_cb); ^ CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/voxl-vision-px4.dir/all' failed make[1]: *** [src/CMakeFiles/voxl-vision-px4.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 bash-4.3#
There's no file 'modalai_vl.h.' what is this for? I cannot find this file.
Could you please check it?
Thanks,
-
Looks like you are missing this package
http://voxl-packages.modalai.com/stable/modalai-vl_0.1.3.ipk -
@Chad-Sweet I installed this package manually
opkg install moal...ipkBut, still has error on installing
Can you provide version 0.6.8 that can build completely?
Or please try to compile and verify it?
Thanks,
-
Do you need to build it, or can you just install voxl-suite 0.2.0 to get the features you are looking for?
-
This script should show you how to install a specific version of voxl-suite https://gitlab.com/voxl-public/utilities/voxl-suite/-/blob/master/tools/online-install.sh
-
@Chad-Sweet I wanna chage voxl-vision-px4 source code in 0.6.8 and build by myself.
Thanks,
-
The I would install voxl-suite 0.2.0 and then build against that. All of the proper dependencies should be there
-
@Chad-Sweet said in Errors on build processing for voxl-vision-px4:
against
OK I'll check it
Thanks for your fast reply.