failed to compile voxl-dfs-server ver 0.2.0
-
I downloaded latest sw in gitlab. as I know, ver.0.2.0 is latest one.
-
voxl-emulator
andvoxl-cross
are docker images that contain the voxl system headers and libraries for cross-compilation (voxl-cross
is used in this example).voxl-docker
is a script which launchesvoxl-cross
docker image. The docker image has been updated to include opencl stuff. Make sure you download the latestvoxl-emulator
andvoxl-cross
docker images from https://developer.modalai.com/asset. -
@Alex-Kushleyev okay Thanks buddy
-
@Alex-Kushleyev Can I ask something?
Can I get disparity image in real-time using stereo camera?
obstable distance is not reliable on 0 degree for my voxl flight.
Thanks,
-
If the data is not very accurate, it is likely you need to recalibrate the stereo sensors. Instructions are here
Otherwise, the data is published here disparity and point cloud. We provide the code so you can change how you see fit for your application
-
This post is deleted! -
@Chad-Sweet could you please try compile voxl-dfs-server 0.2.0 and client?
I need to modify application but it failed even the voxl-cross version is newest.
Thanks,
-
Hi shlee,
Here is a copy of my device cloning a fresh copy of dfs-server and building it successfully in voxl-cross, if you could let us know exactly what errors you're encountering when trying to build that'd be helpful.
Alex:~/tmp$ git clone git@gitlab.com:voxl-public/modal-pipe-architecture/voxl-dfs-server.git Cloning into 'voxl-dfs-server'... remote: Enumerating objects: 525, done. remote: Counting objects: 100% (266/266), done. remote: Compressing objects: 100% (139/139), done. remote: Total 525 (delta 173), reused 197 (delta 121), pack-reused 259 Receiving objects: 100% (525/525), 200.24 KiB | 1.16 MiB/s, done. Resolving deltas: 100% (297/297), done. Alex:~/tmp$ cd voxl-dfs-server/ Alex:~/tmp/voxl-dfs-server(master)$ voxl-docker -i voxl-cross launching image: voxl-cross with the following command: docker run --rm -it --net=host --privileged -w /home/alex --volume=/dev/bus/usb:/dev/bus/usb -e LOCAL_USER_ID=0 -e LOCAL_USER_NAME=root -e LOCAL_GID=0 -v /home/alex/tmp/voxl-dfs-server:/home/root:rw -w /home/root voxl-cross /bin/bash -l voxl-cross:~$ ./install_build_deps.sh stable using stable repository Downloading http://voxl-packages.modalai.com/stable/Packages.gz. Updated source 'stable'. Installing libmodal_pipe (2.0.7) on root. Downloading http://voxl-packages.modalai.com/stable/libmodal_pipe_2.0.7.ipk. Configuring libmodal_pipe. Done installing libmodal_pipe Installing libmodal_json (0.3.5) on root. Downloading http://voxl-packages.modalai.com/stable/libmodal_json_0.3.5.ipk. Configuring libmodal_json. Done installing libmodal_json Installing opencv (4.5.2) on root. Downloading http://voxl-packages.modalai.com/stable/opencv_4.5.2-1.ipk. Configuring opencv. done installing opencv voxl-cross:~$ ./build.sh -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/root/build_utils/build Scanning dependencies of target embedfile [ 50%] Building C object CMakeFiles/embedfile.dir/src/embedfile.c.o [100%] Linking C executable embedfile [100%] Built target embedfile -- The C compiler identification is GNU 4.9.3 -- The CXX compiler identification is GNU 4.9.3 -- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc-4.9 -- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc-4.9 -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/aarch64-linux-gnu-g++-4.9 -- Check for working CXX compiler: /usr/bin/aarch64-linux-gnu-g++-4.9 -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/root/build64 [ 10%] Generating blur_kernel_code.c [ 10%] Generating sobel_filter_kernel_code.c [ 21%] Generating disparity_kernel_code.c [ 21%] Generating compute_dsi_kernel_code.c [ 26%] Generating sparse_census_transform_kernel_code.c Scanning dependencies of target voxl-dfs-server [ 31%] Building C object server/CMakeFiles/voxl-dfs-server.dir/undistort.c.o [ 36%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/dfs_processing_engine.cpp.o [ 42%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/sad_disparity_estimation.cpp.o [ 47%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/box_filter_blur.cpp.o [ 52%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/opencl_kernel.cpp.o [ 57%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/main.cpp.o [ 63%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/opencl_manager.cpp.o [ 68%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/sobel_filter.cpp.o [ 73%] Building C object server/CMakeFiles/voxl-dfs-server.dir/blur_kernel_code.c.o [ 78%] Building C object server/CMakeFiles/voxl-dfs-server.dir/disparity_kernel_code.c.o [ 84%] Building C object server/CMakeFiles/voxl-dfs-server.dir/compute_dsi_kernel_code.c.o [ 89%] Building C object server/CMakeFiles/voxl-dfs-server.dir/sparse_census_transform_kernel_code.c.o [ 94%] Building C object server/CMakeFiles/voxl-dfs-server.dir/sobel_filter_kernel_code.c.o [100%] Linking CXX executable voxl-dfs-server [100%] Built target voxl-dfs-server voxl-cross:~$ ./make_package.sh Package Name: voxl-dfs-server version Number: 0.2.0 [100%] Built target voxl-dfs-server Install the project... -- Install configuration: "Release" -- Installing: ../ipk/data/etc/systemd/system/voxl-dfs-server.service -- Installing: ../ipk/data/usr/bin/voxl-dfs-server /home/root ar: creating voxl-dfs-server_0.2.0.ipk DONE voxl-cross:~$
-
@Alex-Gardner are you using a version 1.1 for voxl-cross?
You can find my compilation result at the first comment in this thread.
The errors are related with obsolete opencl lib.
Thanks
-
@Alex-Gardner Thanks for your supports.
I realized voxl-docker s/w was updated 1 month ago.
I resolved this problem using newest voxl-docker.
swift@swift-HP-Pavilion-dv6-Notebook-PC:~/git$ cd voxl-dfs-server swift@swift-HP-Pavilion-dv6-Notebook-PC:~/git/voxl-dfs-server$ ls bash_completions clean.sh install_build_deps.sh make_package.sh build.sh clients install_on_voxl.sh README.md build_utils CMakeLists.txt ipk server CHANGELOG config LICENSE service swift@swift-HP-Pavilion-dv6-Notebook-PC:~/git/voxl-dfs-server$ voxl-docker -i voxl-cross launching image: voxl-cross with the following command: docker run --rm -it --net=host --privileged -w /home/swift --volume=/dev/bus/usb:/dev/bus/usb -e LOCAL_USER_ID=0 -e LOCAL_USER_NAME=root -e LOCAL_GID=0 -v /home/swift/git/voxl-dfs-server:/home/root:rw -w /home/root voxl-cross /bin/bash -l voxl-cross:~$ voxl-cross:~$ voxl-cross:~$ ./install_build_deps.sh stable using stable repository Downloading http://voxl-packages.modalai.com/stable/Packages.gz. Updated source 'stable'. Installing libmodal_pipe (2.0.7) on root. Downloading http://voxl-packages.modalai.com/stable/libmodal_pipe_2.0.7.ipk. Configuring libmodal_pipe. Done installing libmodal_pipe Installing libmodal_json (0.3.5) on root. Downloading http://voxl-packages.modalai.com/stable/libmodal_json_0.3.5.ipk. Configuring libmodal_json. Done installing libmodal_json Installing opencv (4.5.2) on root. Downloading http://voxl-packages.modalai.com/stable/opencv_4.5.2-1.ipk. Configuring opencv. done installing opencv voxl-cross:~$ ./build.sh -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/root/build_utils/build Scanning dependencies of target embedfile [ 50%] Building C object CMakeFiles/embedfile.dir/src/embedfile.c.o [100%] Linking C executable embedfile [100%] Built target embedfile -- The C compiler identification is GNU 4.9.3 -- The CXX compiler identification is GNU 4.9.3 -- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc-4.9 -- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc-4.9 -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/aarch64-linux-gnu-g++-4.9 -- Check for working CXX compiler: /usr/bin/aarch64-linux-gnu-g++-4.9 -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/root/build64 [ 15%] Generating sobel_filter_kernel_code.c [ 15%] Generating disparity_kernel_code.c [ 15%] Generating compute_dsi_kernel_code.c [ 21%] Generating blur_kernel_code.c [ 26%] Generating sparse_census_transform_kernel_code.c Scanning dependencies of target voxl-dfs-server [ 31%] Building C object server/CMakeFiles/voxl-dfs-server.dir/undistort.c.o [ 36%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/opencl_manager.cpp.o [ 42%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/sad_disparity_estimation.cpp.o [ 47%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/box_filter_blur.cpp.o [ 52%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/dfs_processing_engine.cpp.o [ 57%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/main.cpp.o [ 63%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/opencl_kernel.cpp.o [ 68%] Building CXX object server/CMakeFiles/voxl-dfs-server.dir/sobel_filter.cpp.o [ 73%] Building C object server/CMakeFiles/voxl-dfs-server.dir/blur_kernel_code.c.o [ 78%] Building C object server/CMakeFiles/voxl-dfs-server.dir/disparity_kernel_code.c.o [ 84%] Building C object server/CMakeFiles/voxl-dfs-server.dir/compute_dsi_kernel_code.c.o [ 89%] Building C object server/CMakeFiles/voxl-dfs-server.dir/sparse_census_transform_kernel_code.c.o [ 94%] Building C object server/CMakeFiles/voxl-dfs-server.dir/sobel_filter_kernel_code.c.o [100%] Linking CXX executable voxl-dfs-server [100%] Built target voxl-dfs-server voxl-cross:~$ voxl-cross:~$ voxl-cross:~$ voxl-cross:~$ ./make_package.sh Package Name: voxl-dfs-server version Number: 0.2.0 [100%] Built target voxl-dfs-server Install the project... -- Install configuration: "Release" -- Installing: ../ipk/data/etc/systemd/system/voxl-dfs-server.service -- Installing: ../ipk/data/usr/bin/voxl-dfs-server /home/root ar: creating voxl-dfs-server_0.2.0.ipk DONE voxl-cross:~$
Here is myvoxl-docker images
swift@swift-HP-Pavilion-dv6-Notebook-PC:~$ voxl-docker -l | grep "voxl" voxl-cross V1.1 77af6063e492 14 minutes ago 999MB voxl-cross latest 77af6063e492 14 minutes ago 999MB voxl-emulator V1.7 55d4f01b7bcd 7 weeks ago 3.33GB voxl-emulator latest 55d4f01b7bcd 7 weeks ago 3.33GB voxl-hexagon latest 8509f4e31f56 2 months ago 5.24GB voxl-emulator V1.5 323601eb49d7 4 months ago 3.2GB swift@swift-HP-Pavilion-dv6-Notebook-PC:~$
Thanks,