luxonis / depthai-core Goto Github PK
View Code? Open in Web Editor NEWDepthAI C++ Library
License: MIT License
DepthAI C++ Library
License: MIT License
Hi. While working on issue #71, I found errant code in Device.cpp
depthai-core/src/device/Device.cpp
Line 401 in 9f5d086
Notice there is no variable name for the lock. Therefore the lock is created and instantly destroyed. It does not protect the scope.
I have the fix (easy...just give the var a name) in my PR for issue #71. However, this fix then exposes failures elsewhere.
Do code review. See the variable has no name.
Then correct the code like...
std::unique_lock<std::mutex> lock(this->rpcMutex);
and then run all the unit tests
[proc] Executing command: ctest -j1 -C Debug -T test --output-on-failure
[ctest] Site: DALE-XMG
[ctest] Build name: Win32-ninja
[ctest] Test project C:/njs/depthai-core/build
[ctest] Start 1: color_camera_node_test
[kit] OK running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat amd64 10.0.19041.0, env vars: [["CL",""],["_CL_",""],["INCLUDE","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\ATLMFC\\include;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\um;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\cppwinrt"],["LIBPATH","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\ATLMFC\\lib\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\lib\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\lib\\x86\\store\\references;C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319"],["LINK",""],["_LINK_",""],["LIB","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\ATLMFC\\lib\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\um\\x64"],["PATH","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\\\Extensions\\Microsoft\\IntelliCode\\CLI;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX64\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Team Tools\\Performance Tools\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Team Tools\\Performance Tools;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Common\\VSPerfCollectionTools\\vs2019\\\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Common\\VSPerfCollectionTools\\vs2019\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\devinit;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.19041.0\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\\\MSBuild\\Current\\Bin;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\libnvvp;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2019.4.0\\;;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Users\\dale\\AppData\\Local\\Microsoft\\WindowsApps;C:\\njs\\wslgit;;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\Llvm\\x64\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe"],["TMP","C:\\Users\\dale\\AppData\\Local\\Temp"],["FRAMEWORKDIR","C:\\Windows\\Microsoft.NET\\Framework64\\"],["FRAMEWORKDIR64","C:\\Windows\\Microsoft.NET\\Framework64\\"],["FRAMEWORKVERSION","v4.0.30319"],["FRAMEWORKVERSION64","v4.0.30319"],["UCRTCONTEXTROOT",""],["UCRTVERSION","10.0.19041.0"],["UNIVERSALCRTSDKDIR","C:\\Program Files (x86)\\Windows Kits\\10\\"],["VCINSTALLDIR","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\"],["VCTARGETSPATH",""],["WINDOWSLIBPATH","C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0"],["WINDOWSSDKDIR","C:\\Program Files (x86)\\Windows Kits\\10\\"],["WINDOWSSDKLIBVERSION","10.0.19041.0\\"],["WINDOWSSDKVERSION","10.0.19041.0\\"],["VISUALSTUDIOVERSION","16.0"]]
[ctest] 1/22 Test #1: color_camera_node_test .............. Passed 3.38 sec
[ctest] Start 2: image_manip_node_test
[ctest] 2/22 Test #2: image_manip_node_test ............... Passed 3.29 sec
[ctest] Start 3: pipeline_test
[ctest] 3/22 Test #3: pipeline_test ....................... Passed 0.46 sec
[ctest] Start 4: neural_network_test
[ctest] 4/22 Test #4: neural_network_test ................. Passed 6.93 sec
[ctest] Start 5: camera_preview
[ctest] 5/22 Test #5: camera_preview ......................***Failed 2.94 sec
[ctest] statusfound -P
[ctest] -- arguments: C:/njs/depthai-core/build/examples/camera_preview.exe;
[ctest] -- After process executed, produced the following exit code: 1
[ctest] CMake Error at C:/njs/depthai-core/examples/cmake/ExecuteTestTimeout.cmake:42 (message):
[ctest] produced an error (1) while running
[ctest]
[ctest]
[ctest]
[ctest] Start 6: camera_video
[ctest] 6/22 Test #6: camera_video ........................ Passed 5.05 sec
[ctest] Start 7: mono_camera
[ctest] 7/22 Test #7: mono_camera ......................... Passed 5.07 sec
[ctest] Start 8: camera_mobilenet
[ctest] 8/22 Test #8: camera_mobilenet .................... Passed 5.06 sec
[ctest] Start 9: webcam_mobilenet
[ctest] 9/22 Test #9: webcam_mobilenet .................... Passed 5.05 sec
[ctest] Start 10: mjpeg_encoding
[ctest] 10/22 Test #10: mjpeg_encoding ......................***Failed 4.60 sec
[ctest] statusfound -P
[ctest] -- arguments: C:/njs/depthai-core/build/examples/mjpeg_encoding.exe;
[ctest] -- After process executed, produced the following exit code: 3
[ctest] CMake Error at C:/njs/depthai-core/examples/cmake/ExecuteTestTimeout.cmake:42 (message):
[ctest] produced an error (3) while running
[ctest]
[ctest]
[ctest]
[ctest] Start 11: h264_encoding
[ctest] 11/22 Test #11: h264_encoding ....................... Passed 5.05 sec
[ctest] Start 12: stereo
[ctest] 12/22 Test #12: stereo .............................. Passed 5.06 sec
[ctest] Start 13: image_manip
[ctest] 13/22 Test #13: image_manip ......................... Passed 5.04 sec
[ctest] Start 14: image_manip_warp
[ctest] 14/22 Test #14: image_manip_warp .................... Passed 5.05 sec
[ctest] Start 15: color_camera_control
[ctest] 15/22 Test #15: color_camera_control ................ Passed 5.05 sec
[ctest] Start 16: system_information
[ctest] 16/22 Test #16: system_information .................. Passed 5.04 sec
[ctest] Start 17: device_queue_event
[ctest] 17/22 Test #17: device_queue_event .................. Passed 5.06 sec
[ctest] Start 18: opencv_support
[ctest] 18/22 Test #18: opencv_support ...................... Passed 5.06 sec
[ctest] Start 19: mobilenet_device_side_decoding
[ctest] 19/22 Test #19: mobilenet_device_side_decoding ...... Passed 5.05 sec
[ctest] Start 20: tiny_yolo_v3_device_side_decoding
[ctest] 20/22 Test #20: tiny_yolo_v3_device_side_decoding ... Passed 5.05 sec
[ctest] Start 21: tiny_yolo_v4_device_side_decoding
[ctest] 21/22 Test #21: tiny_yolo_v4_device_side_decoding ... Passed 5.05 sec
[ctest] Start 22: camera_mobilenet_sync
[ctest] 22/22 Test #22: camera_mobilenet_sync ............... Passed 5.05 sec
[ctest]
[ctest] 91% tests passed, 2 tests failed out of 22
[ctest]
[ctest] Total Test time (real) = 102.53 sec
[ctest]
[ctest] The following tests FAILED:
[ctest] 5 - camera_preview (Failed)
[ctest] 10 - mjpeg_encoding (Failed)
[ctest] Errors while running CTest
[ctest] CTest finished with return code 8
[extension] [3989] cmake.ctest finished (returned 8)
No failures.
With multiple test runs, I can get a more specific error. Naturally, since we are discussing mutex, this is a timing/race condition and the errors will likely vary. This one is very specific...
[ctest] 10/22 Test #10: mjpeg_encoding ......................***Failed 4.22 sec
[ctest] statusfound -P
[ctest] -- arguments: C:/njs/depthai-core/build/examples/mjpeg_encoding.exe;
[ctest] D:\a01\_work\9\s\src\vctools\crt\github\stl\src\mutex.cpp(64): mutex destroyed while busy
[ctest] -- After process executed, produced the following exit code: Access violation
[ctest] CMake Error at C:/njs/depthai-core/examples/cmake/ExecuteTestTimeout.cmake:42 (message):
[ctest] produced an error (Access violation) while running
[ctest]
Please consider adding the source dependencies as submodules (i.e. libarchive, XLink). You should be able to use your current hunter_config macros with the GIT_SUBMODULE argument. I've had to disable the hunter build system, as it sets a bunch of cmake variables which interferes with the parent build process, and having the dependencies as submodules makes tracking down the dependencies manually a bit easier.
Also note that I tried to install the library in a separate build process, thus enabling me to let hunter retrieve the dependencies. This didn't work as the install process installs the static libraries (libdepthai-core.a, libdepthai-resources.a), but not the static libraries of the source dependencies mentioned above.
If you have another way of isolating the build process, please let me know. I'm not that familiar with the hunter build system.
Initial run of cmake configure fails with error Cannot find source file: C:/njs/depthai-core/shared/depthai-shared/src/datatype/DatatypeEnum.cpp
C:\Program Files\CMake\bin\cmake.exe" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -Hc:/njs/depthai-core -Bc:/njs/depthai-core/build -G Ninja
...
[cmake] -- LIST OF RESOURCE COMPILED FILES: C:/njs/depthai-core/build/resources/depthai-device-fwp-5e4974e930f4ecbe1bf718463f6a5da664e68788.tar.xz;C:/njs/depthai-core/build/resources/depthai-bootloader-0.0.11.cmd
[cmake] -- Check for working incbin assembly directive
[cmake] -- Check for working incbin assembly directive - does not work
[cmake] -- CMRC - Compatibility mode, creating intermediate character array files
[cmake] -- OpenCV or required libraries (opencv_core;opencv_imgproc) not found. OpenCV Support disabled
[cmake] -- Configuring done
[cmake] CMake Error at CMakeLists.txt:102 (add_library):
[cmake] Cannot find source file:
[cmake]
[cmake] C:/njs/depthai-core/shared/depthai-shared/src/datatype/DatatypeEnum.cpp
[cmake]
[cmake] Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
[cmake] .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc
[cmake]
[cmake]
[cmake] -- Generating done
[cmake] CMake Generate step failed. Build files cannot be regenerated correctly.
The directory /njs/depthai-core/shared/depthai-shared
is empty. No files or directories within.
cmake configure to complete with no errors. I first need a clean config and generate before I can build.
None known. Running configure a second time results in same error.
Setting the target fps for the mono cameras on the Oak-D to 70 or above causes the output queues to not generate any data without any errors reported. The issue persists even if no encoder is used for the mono-stream, if a color stream is used or not, and if blocking/non-blocking output queues are used. Tested on the current main branch (and gen2_develop).
Let me know if I can provide any additional details.
EDIT: The reported CPU usage for LeonOS/LeonRT is lower when the issue occurs (55%/4% at 69fps vs 83%/19% at 70fps respectively)
Hello.
I get the following when installing on OSX (11.6):
...
-- Build files have been written to: /Users/robindarby/.hunter/_Base/062a19a/12ab797/05fa1a3/Build/XLink/Build/XLink-Release-prefix/src/XLink-Release-build
[ 75%] Performing build step for 'XLink-Release'
Scanning dependencies of target XLink
[ 25%] Building C object CMakeFiles/XLink.dir/src/pc/PlatformData.c.o
[ 25%] Building C object CMakeFiles/XLink.dir/src/pc/PlatformDeviceSearch.c.o
[ 30%] Building C object CMakeFiles/XLink.dir/src/pc/PlatformDeviceControl.c.o
[ 30%] Building C object CMakeFiles/XLink.dir/src/pc/protocols/pcie_host.c.o
[ 30%] Building C object CMakeFiles/XLink.dir/src/pc/protocols/usb_boot.c.o
[ 30%] Building C object CMakeFiles/XLink.dir/src/pc/protocols/tcpip_host.c.o
[ 35%] Building C object CMakeFiles/XLink.dir/src/pc/protocols/usb_mx_id.c.o
[ 40%] Building C object CMakeFiles/XLink.dir/src/shared/XLinkData.c.o
/Users/robindarby/.hunter/_Base/062a19a/12ab797/05fa1a3/Build/XLink/Source/src/pc/PlatformData.c:406:21: error: use of undeclared identifier 'MSG_NOSIGNAL'
int flags = MSG_NOSIGNAL;
^
1 error generated.
Looks like it's a fairly well know issue (OSX doesn't have MSG_NOSIGNAL, but uses SO_NOSIGPIPE).
Before I hack something, is there a known fix?
c_streams_myriad_to_pc is modified as part of create_pipeline.
Line 931 in 52695a8
Initializing a second camera with different parameters for most streams causes the second cameras parameters to be ignored.
I'm not sure what would happen for disparity_color, but I assume it's unintended behavior.
The current wipe of CMAKE_TOOLCHAIN_FILE
in the project's CMakeLists.txt is unexpected. As coded today, its only action is to set(CMAKE_POSITION_INDEPENDENT_CODE ON)
when BUILD_SHARED_LIBS=ON
.
It is my understanding that CMAKE_TOOLCHAIN_FILE is for other uses. As per cmake docs
path to a file which is read early in the CMake run and which specifies locations for compilers and toolchain utilities, and other target platform and compiler related information
For example, I need to set CMAKE_TOOLCHAIN_FILE to my vcpkg installation so that this project can find that managed installation of OpenCV which is compiled for specific variant, flags, etc. This is done by specifying CMAKE_TOOLCHAIN_FILE on the command line as a flag to cmake (or in settings of an IDE that are passed to cmake).
Move set(CMAKE_POSITION_INDEPENDENT_CODE ON)
to a place unrelated to CMAKE_TOOLCHAIN_FILE. In my view, it is unrelated to the cmake toolchain feature and instead a specific compiler/linker need of the depthai-core project like specifying the c++11 standards with no extensions, or pthread preference.
Always edit this project's CMakeLists.txt
to remove this wipe of CMAKE_TOOLCHAIN_FILE and replicate the set(CMAKE_POSITION_INDEPENDENT_CODE ON)
elsewhere if shared libraries are built.
Hi.
I have the following error:
error: ‘using element_type = class dai :: ImgFrame’ {aka ‘class dai :: ImgFrame’} has no member named ‘getFrame’; did you mean ‘ImgFrame’?
Searching the documentation, I found that the “getFrame” and “getCVFrame” methods are part of opencv support. Apparently my build did not incorporate this support.
The “libdepthai-opencv.so” was generated.
I keep investigating the problem in search of a solution.
But if anyone has any suggestions I will be very grateful.
Hi all,
I followed the RGB alignment example and when I wanted to stream "depth" stream (instead "disparity") I got problem:
terminate called after throwing an instance of 'std::runtime_error'
what(): Couldn't read data from stream: '__rpc_main' (X_LINK_ERROR)
I wonder if we have solution for this because I want to collect depth map beside disparity map. Hope receive the respond soon.
Thank you so much!
Machine: Ubuntu 20.04 / ROS Noetic
Following the build instructions, if you do cmake -H. -Bbuild
first, then change idea later to use shared library with cmake -H. -Bbuild -D BUILD_SHARED_LIBS=ON
, you may get this error:
$ git submodule update --init --recursive
# Hunter's deps built static
$ cmake -H. -Bbuild
$ cmake --build build
# Hunter's deps not rebuilt for shared library
$ cmake -H. -Bbuild -D BUILD_SHARED_LIBS=ON
$ cmake --build build
[ 96%] Linking CXX shared library libdepthai-core.so
/usr/bin/ld: /home/mathieu/.hunter/_Base/062a19a/64dcd41/5051a8e/Install/lib/libspdlog.a(spdlog.cpp.o): relocation R_X86_64_TPOFF32 against `_ZGVZN6spdlog7details2os9thread_idEvE3tid' can not be used when making a shared object; recompile with -fPIC
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/depthai-core.dir/build.make:796: libdepthai-core.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:513: CMakeFiles/depthai-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Solution: delete hunter directory then redo cmake with BUILD_SHARED_LIBS=ON
:
# cleanup dependencies, to force rebuild them
$ rm -rf ~/.hunter
# Hunter's deps are now built for shared library
$ cmake -H. -Bbuild -D BUILD_SHARED_LIBS=ON
$ cmake --build build
[ 96%] Linking CXX shared library libdepthai-core.so
[ 96%] Built target depthai-core
# should be ok now!
Just wanted to make an issue even if already solved in case someone else has the same problem.
Method AssetManager::get
could rather return a nullptr
compared to throwing
disparity
stream is collapsed if depth
is streamed. on gen2
.
This can be reproduced by setting outputDepth
flag of the stereo example.
https://github.com/luxonis/depthai-core/blob/gen2_develop/examples/src/stereo_example.cpp
This is so regardless of lrcheck
, extended
, and, subpixel
flags.
Hi! I am facing an issue while building depthai-core. This is what I'm getting:
root@NanoPi-NEO-Plus2:~/depthai-core# cmake -H. -Bbuild -D BUILD_SHARED_LIBS=ON
-- [hunter] Initializing Hunter workspace (062a19ab13ce8dffa9a882b6ce3e43bdabdf75d3)
-- [hunter] https://github.com/cpp-pm/hunter/archive/v0.23.258.tar.gz
-- [hunter] -> /root/.hunter/_Base/Download/Hunter/0.23.258/062a19a
CMake Error at Build/Hunter-prefix/src/Hunter-stamp/download-Hunter.cmake:159 (message):
Each download failed!
error: downloading 'https://github.com/cpp-pm/hunter/archive/v0.23.258.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
error: downloading 'https://github.com/cpp-pm/hunter/archive/v0.23.258.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
error: downloading 'https://github.com/cpp-pm/hunter/archive/v0.23.258.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
error: downloading 'https://github.com/cpp-pm/hunter/archive/v0.23.258.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
error: downloading 'https://github.com/cpp-pm/hunter/archive/v0.23.258.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
error: downloading 'https://github.com/cpp-pm/hunter/archive/v0.23.258.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
make[2]: *** [Hunter-prefix/src/Hunter-stamp/Hunter-download] Error 1
make[1]: *** [CMakeFiles/Hunter.dir/all] Error 2
make: *** [all] Error 2
[hunter ** INTERNAL **] Build project failed
[hunter ** INTERNAL **] [Directory:/root/depthai-core]
------------------------------ ERROR ------------------------------
https://docs.hunter.sh/en/latest/reference/errors/error.internal.html
-------------------------------------------------------------------
CMake Error at cmake/HunterGate.cmake:87 (message):
Call Stack (most recent call first):
cmake/HunterGate.cmake:97 (hunter_gate_error_page)
cmake/HunterGate.cmake:345 (hunter_gate_internal_error)
cmake/HunterGate.cmake:509 (hunter_gate_download)
CMakeLists.txt:17 (HunterGate)
-- Configuring incomplete, errors occurred!
Build results in 10+ warnings of code style, deprecation, truncation, etc. These can likely be resolved easily by minor code changes, or hiding the warnings with pragmas.
develop
branch 126f5fc[proc] Executing command: "C:\Program Files\CMake\bin\cmake.exe" --build c:/njs/lux/depthai-core/build --config Debug --target all -- -j 15
[build] [3/43 2% :: 0.027] Generating depthai-resources resource loader
[build] [3/43 4% :: 0.846] Generating intermediate file for C:/njs/lux/depthai-core/build/resources/depthai-bootloader-0.0.11.cmd
[build] [3/43 6% :: 4.622] Generating intermediate file for C:/njs/lux/depthai-core/build/resources/depthai-device-fwp-5e4974e930f4ecbe1bf718463f6a5da664e68788.tar.xz
[build] [18/43 9% :: 7.446] Building CXX object CMakeFiles\depthai-core.dir\src\device\CallbackHandler.cpp.obj
[build] ..\src\device\CallbackHandler.cpp(40): warning C4101: 'ex': unreferenced local variable
[build] [19/43 11% :: 7.574] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\AssetManager.cpp.obj
[build] ..\src\pipeline\AssetManager.cpp(84): warning C4267: 'initializing': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\pipeline\AssetManager.cpp(93): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] [20/43 13% :: 7.579] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\XLinkIn.cpp.obj
[build] [21/43 16% :: 7.631] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\MyProducer.cpp.obj
[build] [22/43 18% :: 7.642] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\XLinkOut.cpp.obj
[build] [23/43 20% :: 7.646] Building C object CMakeFiles\depthai-core.dir\shared\depthai-bootloader-shared\src\SBR.c.obj
[build] ..\shared\depthai-bootloader-shared\src\SBR.c(169): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[build] [24/43 23% :: 7.655] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\StereoDepth.cpp.obj
[build] [25/43 25% :: 8.391] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\ImageManip.cpp.obj
[build] [26/43 27% :: 8.439] Building CXX object CMakeFiles\depthai-core.dir\src\device\DataQueue.cpp.obj
[build] [27/43 30% :: 8.472] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\ColorCamera.cpp.obj
[build] ..\src\pipeline\node\ColorCamera.cpp(273): warning C4244: 'initializing': conversion from 'int' to 'float', possible loss of data
[build] ..\src\pipeline\node\ColorCamera.cpp(274): warning C4244: 'initializing': conversion from 'int' to 'float', possible loss of data
[build] [28/43 32% :: 8.491] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\MonoCamera.cpp.obj
[build] [29/43 34% :: 8.496] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\Node.cpp.obj
[build] [30/43 37% :: 8.517] Building CXX object CMakeFiles\depthai-core.dir\shared\depthai-shared\src\datatype\DatatypeEnum.cpp.obj
[build] [31/43 39% :: 8.639] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\NeuralNetwork.cpp.obj
[build] ..\src\pipeline\node\NeuralNetwork.cpp(69): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] [32/43 41% :: 9.182] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\Pipeline.cpp.obj
[build] [33/43 44% :: 9.934] Building CXX object CMakeFiles\depthai-core.dir\src\utility\Initialization.cpp.obj
[build] [34/43 46% :: 9.995] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\datatype\Buffer.cpp.obj
[build] [35/43 48% :: 10.502] Building CXX object CMakeFiles\depthai-core.dir\src\device\DeviceBootloader.cpp.obj
[build] ..\src\device\DeviceBootloader.cpp(101): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(102): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(107): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(108): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(113): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(114): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(119): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(120): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(130): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(190): warning C4101: 'ex': unreferenced local variable
[build] ..\src\device\DeviceBootloader.cpp(202): warning C4101: 'error': unreferenced local variable
[build] ..\src\device\DeviceBootloader.cpp(287): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(288): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(336): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(337): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] ..\src\device\DeviceBootloader.cpp(380): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[build] [36/43 51% :: 10.574] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\SystemLogger.cpp.obj
[build] [37/43 53% :: 10.633] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\VideoEncoder.cpp.obj
[build] ..\src\pipeline\node\VideoEncoder.cpp(93): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
[build] ..\src\pipeline\node\VideoEncoder.cpp(137): warning C4244: 'return': conversion from 'const float' to 'int', possible loss of data
[build] ..\src\pipeline\node\VideoEncoder.cpp(145): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
[build] ..\src\pipeline\node\VideoEncoder.cpp(157): warning C4244: '=': conversion from 'float' to 'int32_t', possible loss of data
[build] ..\src\pipeline\node\VideoEncoder.cpp(167): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
[build] ..\src\pipeline\node\VideoEncoder.cpp(170): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
[build] ..\src\pipeline\node\VideoEncoder.cpp(173): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
[build] ..\src\pipeline\node\VideoEncoder.cpp(176): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
[build] [38/43 55% :: 10.748] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\datatype\ImgFrame.cpp.obj
[build] [39/43 58% :: 10.826] Building CXX object CMakeFiles\depthai-core.dir\src\xlink\XLinkStream.cpp.obj
[build] ..\src\xlink\XLinkStream.cpp(25): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
[build] ..\src\xlink\XLinkStream.cpp(62): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
[build] ..\src\xlink\XLinkStream.cpp(115): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
[build] ..\src\xlink\XLinkStream.cpp(133): warning C4244: 'argument': conversion from '_Rep' to 'unsigned int', possible loss of data
[build] with
[build] [
[build] _Rep=__int64
[build] ]
[build] ..\src\xlink\XLinkStream.cpp(133): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
[build] ..\src\xlink\XLinkStream.cpp(153): warning C4244: 'argument': conversion from '_Rep' to 'unsigned int', possible loss of data
[build] with
[build] [
[build] _Rep=__int64
[build] ]
[build] ..\src\xlink\XLinkStream.cpp(167): warning C4244: 'argument': conversion from '_Rep' to 'unsigned int', possible loss of data
[build] with
[build] [
[build] _Rep=__int64
[build] ]
[build] [40/43 60% :: 11.212] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\node\DetectionNetwork.cpp.obj
[build] [41/43 62% :: 11.257] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\datatype\CameraControl.cpp.obj
[build] [41/43 65% :: 11.306] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\datatype\SystemInformation.cpp.obj
[build] [41/43 67% :: 11.591] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\datatype\ImgDetections.cpp.obj
[build] [41/43 69% :: 11.645] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\datatype\ImageManipConfig.cpp.obj
[build] ..\src\pipeline\datatype\ImageManipConfig.cpp(90): warning C4305: 'initializing': truncation from 'double' to 'const float'
[build] [41/43 72% :: 11.729] Building C object CMakeFiles\depthai-core.dir\src\bspatch\bspatch.c.obj
[build] ..\src\bspatch\bspatch.c(134): warning C4244: 'function': conversion from 'int64_t' to 'unsigned int', possible loss of data
[build] ..\src\bspatch\bspatch.c(129): warning C4244: 'initializing': conversion from 'int64_t' to 'unsigned int', possible loss of data
[build] [41/43 74% :: 11.978] Building CXX object CMakeFiles\depthai-core.dir\src\openvino\BlobReader.cpp.obj
[build] [41/43 76% :: 12.049] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\datatype\NNData.cpp.obj
[build] C:\.hunter\_Base\062a19a\8d58f30\2ddc225\Install\include\fp16/fp16.h(377): warning C4244: 'argument': conversion from 'float' to 'uint32_t', possible loss of data
[build] ..\src\pipeline\datatype\NNData.cpp(64): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data
[build] ..\src\pipeline\datatype\NNData.cpp(91): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data
[build] ..\src\pipeline\datatype\NNData.cpp(120): warning C4244: 'argument': conversion from '_Ty' to 'float', possible loss of data
[build] with
[build] [
[build] _Ty=double
[build] ]
[build] [41/43 79% :: 12.064] Building CXX object CMakeFiles\depthai-resources.dir\__cmrc_depthai-resources\lib.cpp.obj
[build] [41/43 81% :: 12.120] Building CXX object CMakeFiles\depthai-core.dir\src\xlink\XLinkConnection.cpp.obj
[build] ..\src\xlink\XLinkConnection.cpp(27): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[build] ..\src\xlink\XLinkConnection.cpp(42): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
[build] ..\src\xlink\XLinkConnection.cpp(92): warning C4267: 'argument': conversion from 'size_t' to 'const unsigned int', possible loss of data
[build] ..\src\xlink\XLinkConnection.cpp(205): warning C4267: 'argument': conversion from 'size_t' to 'unsigned long', possible loss of data
[build] ..\src\xlink\XLinkConnection.cpp(330): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[build] ..\src\xlink\XLinkConnection.cpp(336): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[build] ..\src\xlink\XLinkConnection.cpp(338): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[build] [41/43 83% :: 12.147] Building CXX object CMakeFiles\depthai-core.dir\src\openvino\OpenVINO.cpp.obj
[build] [41/43 86% :: 12.281] Building CXX object CMakeFiles\depthai-resources.dir\__cmrc_depthai-resources\intermediate\depthai-bootloader-0.0.11.cmd.cpp.obj
[build] [41/43 88% :: 12.738] Building CXX object CMakeFiles\depthai-core.dir\src\device\Device.cpp.obj
[build] ..\src\device\Device.cpp(422): warning C4101: 'ex': unreferenced local variable
[build] ..\src\device\Device.cpp(567): warning C4101: 'ex': unreferenced local variable
[build] [41/43 90% :: 13.352] Building CXX object CMakeFiles\depthai-core.dir\src\utility\Resources.cpp.obj
[build] [41/43 93% :: 13.360] Building CXX object CMakeFiles\depthai-core.dir\src\pipeline\datatype\StreamPacketParser.cpp.obj
[build] ..\src\pipeline\datatype\StreamPacketParser.cpp(168): warning C4267: 'initializing': conversion from 'size_t' to 'uint32_t', possible loss of data
[build] [41/43 95% :: 15.210] Building CXX object CMakeFiles\depthai-resources.dir\__cmrc_depthai-resources\intermediate\depthai-device-fwp-5e4974e930f4ecbe1bf718463f6a5da664e68788.tar.xz.cpp.obj
[build] [42/43 97% :: 15.248] Linking CXX static library depthai-resourcesd.lib
[build] [43/43 100% :: 15.514] Linking CXX static library depthai-cored.lib
[build] Build finished with exit code 0
No warnings of unused vars, deprecated functions, potentially unsafe truncation, etc.
At least the getter functions for packets and meta-data are not marked as const
We are adding generic camera node to the DepthAI library. This will allow users greater flexibility in terms of which cameras (sensors) can be connected to our devices. You will be able to have eg. 3 color cameras connected at the same time and have different sensors (that are supported).
I'm running into a intermittent issue that asan found. I'm pretty sure I'm not at fault here, asan doesn't complain about anything else. And this issue seems to only happen with the RGB camera, not mono cameras.
This is with 2.10.0 compiled by myself.
=================================================================
==48930==ERROR: AddressSanitizer: heap-use-after-free on address 0x7fbb8369d800 at pc 0x000000466ded bp 0x7fbb86ad7a90 sp 0x7fbb86ad7250
READ of size 6220800 at 0x7fbb8369d800 thread T54
#0 0x466dec in memmove (/home/jakob/XR/build-Monado-CMake/src/xrt/targets/gui/monado-gui+0x466dec)
#1 0x76bd10 in unsigned char* std::__copy_move<false, true, std::random_access_iterator_tag>::__copy_m<unsigned char>(unsigned char const*, unsigned char const*, unsigned char*) (/home/jakob/XR/build-Monado-CMake/src/xrt/targets/gui/monado-gui+0x76bd10)
#2 0x7fbc565e6c9b in unsigned char* std::__copy_move_a2<false, unsigned char*, unsigned char*>(unsigned char*, unsigned char*, unsigned char*) /usr/include/c++/10/bits/stl_algobase.h:472:30
#3 0x7fbc565e4107 in unsigned char* std::__copy_move_a1<false, unsigned char*, unsigned char*>(unsigned char*, unsigned char*, unsigned char*) /usr/include/c++/10/bits/stl_algobase.h:506:42
#4 0x7fbc5661b044 in unsigned char* std::__copy_move_a<false, unsigned char*, unsigned char*>(unsigned char*, unsigned char*, unsigned char*) /usr/include/c++/10/bits/stl_algobase.h:513:31
#5 0x7fbc56616557 in unsigned char* std::copy<unsigned char*, unsigned char*>(unsigned char*, unsigned char*, unsigned char*) /usr/include/c++/10/bits/stl_algobase.h:569:7
#6 0x7fbc5661d94c in unsigned char* std::__uninitialized_copy<true>::__uninit_copy<unsigned char*, unsigned char*>(unsigned char*, unsigned char*, unsigned char*) /usr/include/c++/10/bits/stl_uninitialized.h:109:27
#7 0x7fbc5661b092 in unsigned char* std::uninitialized_copy<unsigned char*, unsigned char*>(unsigned char*, unsigned char*, unsigned char*) /usr/include/c++/10/bits/stl_uninitialized.h:150:15
#8 0x7fbc56616590 in unsigned char* std::__uninitialized_copy_a<unsigned char*, unsigned char*, unsigned char>(unsigned char*, unsigned char*, unsigned char*, std::allocator<unsigned char>&) /usr/include/c++/10/bits/stl_uninitialized.h:325:37
#9 0x7fbc566c3b15 in void std::vector<unsigned char, std::allocator<unsigned char> >::_M_range_initialize<unsigned char*>(unsigned char*, unsigned char*, std::forward_iterator_tag) /usr/include/c++/10/bits/stl_vector.h:1585:33
#10 0x7fbc566c04db in std::vector<unsigned char, std::allocator<unsigned char> >::vector<unsigned char*, void>(unsigned char*, unsigned char*, std::allocator<unsigned char> const&) /usr/include/c++/10/bits/stl_vector.h:657:23
#11 0x7fbc566b3f5f in dai::StreamMessageParser::parseMessageToADatatype(streamPacketDesc_t*) /home/jakob/XR/Depth/depthai-core/build/../src/pipeline/datatype/StreamMessageParser.cpp:176:72
#12 0x7fbc565fd5b3 in dai::DataOutputQueue::DataOutputQueue(std::shared_ptr<dai::XLinkConnection> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)::'lambda'()::operator()() /home/jakob/XR/Depth/depthai-core/build/../src/device/DataQueue.cpp:38:80
#13 0x7fbc56601011 in void std::__invoke_impl<void, dai::DataOutputQueue::DataOutputQueue(std::shared_ptr<dai::XLinkConnection> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)::'lambda'()>(std::__invoke_other, dai::DataOutputQueue::DataOutputQueue(std::shared_ptr<dai::XLinkConnection> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)::'lambda'()&&) /usr/include/c++/10/bits/invoke.h:60:36
#14 0x7fbc56600f7b in std::__invoke_result<dai::DataOutputQueue::DataOutputQueue(std::shared_ptr<dai::XLinkConnection> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)::'lambda'()>::type std::__invoke<dai::DataOutputQueue::DataOutputQueue(std::shared_ptr<dai::XLinkConnection> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)::'lambda'()>(dai::DataOutputQueue::DataOutputQueue(std::shared_ptr<dai::XLinkConnection> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)::'lambda'()&&) /usr/include/c++/10/bits/invoke.h:95:40
#15 0x7fbc56600ed5 in void std::thread::_Invoker<std::tuple<dai::DataOutputQueue::DataOutputQueue(std::shared_ptr<dai::XLinkConnection> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)::'lambda'()> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/include/c++/10/thread:264:26
#16 0x7fbc56600e7d in std::thread::_Invoker<std::tuple<dai::DataOutputQueue::DataOutputQueue(std::shared_ptr<dai::XLinkConnection> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)::'lambda'()> >::operator()() /usr/include/c++/10/thread:271:20
#17 0x7fbc56600e45 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<dai::DataOutputQueue::DataOutputQueue(std::shared_ptr<dai::XLinkConnection> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)::'lambda'()> > >::_M_run() /usr/include/c++/10/thread:215:20
#18 0x7fbc5178dde3 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xd6de3)
#19 0x7fbc537e258f in start_thread nptl/pthread_create.c:463:8
#20 0x7fbc51469222 in clone misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
0x7fbb8369d800 is located 0 bytes inside of 6220992-byte region [0x7fbb8369d800,0x7fbb83c8c4c0)
freed by thread T49 here:
#0 0x4c896d in free (/home/jakob/XR/build-Monado-CMake/src/xrt/targets/gui/monado-gui+0x4c896d)
#1 0x7fbc56713f0f in dispatcherCloseLink (/home/jakob/XR/install/lib/libdepthai-core.so+0x65af0f)
previously allocated by thread T50 here:
#0 0x4c9687 in posix_memalign (/home/jakob/XR/build-Monado-CMake/src/xrt/targets/gui/monado-gui+0x4c9687)
#1 0x7fbc567159c3 in XLinkPlatformAllocateData (/home/jakob/XR/install/lib/libdepthai-core.so+0x65c9c3)
Thread T54 created by T0 here:
#0 0x4b399a in pthread_create (/home/jakob/XR/build-Monado-CMake/src/xrt/targets/gui/monado-gui+0x4b399a)
#1 0x7fbc5178e0a8 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xd70a8)
#2 0x7fbc565fde12 in dai::DataOutputQueue::DataOutputQueue(std::shared_ptr<dai::XLinkConnection> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool) /home/jakob/XR/Depth/depthai-core/build/../src/device/DataQueue.cpp:27:26
#3 0x7fbc565787fd in void __gnu_cxx::new_allocator<dai::DataOutputQueue>::construct<dai::DataOutputQueue, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(dai::DataOutputQueue*, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/ext/new_allocator.h:150:4
#4 0x7fbc565780f1 in void std::allocator_traits<std::allocator<dai::DataOutputQueue> >::construct<dai::DataOutputQueue, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::allocator<dai::DataOutputQueue>&, dai::DataOutputQueue*, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/alloc_traits.h:512:17
#5 0x7fbc56577358 in std::_Sp_counted_ptr_inplace<dai::DataOutputQueue, std::allocator<dai::DataOutputQueue>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::allocator<dai::DataOutputQueue>, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr_base.h:551:39
#6 0x7fbc56575d48 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<dai::DataOutputQueue, std::allocator<dai::DataOutputQueue>, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(dai::DataOutputQueue*&, std::_Sp_alloc_shared_tag<std::allocator<dai::DataOutputQueue> >, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr_base.h:682:16
#7 0x7fbc5657401f in std::__shared_ptr<dai::DataOutputQueue, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<dai::DataOutputQueue>, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::_Sp_alloc_shared_tag<std::allocator<dai::DataOutputQueue> >, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr_base.h:1371:71
#8 0x7fbc56571738 in std::shared_ptr<dai::DataOutputQueue>::shared_ptr<std::allocator<dai::DataOutputQueue>, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::_Sp_alloc_shared_tag<std::allocator<dai::DataOutputQueue> >, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr.h:408:59
#9 0x7fbc5656eea8 in std::shared_ptr<dai::DataOutputQueue> std::allocate_shared<dai::DataOutputQueue, std::allocator<dai::DataOutputQueue>, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::allocator<dai::DataOutputQueue> const&, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr.h:860:39
#10 0x7fbc5656c485 in std::shared_ptr<dai::DataOutputQueue> std::make_shared<dai::DataOutputQueue, std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::shared_ptr<dai::XLinkConnection>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr.h:876:42
#11 0x7fbc565691ff in dai::Device::startPipelineImpl(dai::Pipeline const&) /home/jakob/XR/Depth/depthai-core/build/../src/device/Device.cpp:292:71
#12 0x7fbc5657f278 in dai::DeviceBase::startPipeline(dai::Pipeline const&) /home/jakob/XR/Depth/depthai-core/build/../src/device/DeviceBase.cpp:818:29
#13 0x6a0bca in depthai_setup_single_pipeline(depthai_fs*, depthai_camera_type) /home/jakob/XR/Monado/src/xrt/drivers/depthai/depthai_driver.cpp:396:19
#14 0x6a0bca in depthai_fs_single_rgb /home/jakob/XR/Monado/src/xrt/drivers/depthai/depthai_driver.cpp:621:2
#15 0x50ec49 in create_depthai /home/jakob/XR/Monado/src/xrt/state_trackers/gui/gui_scene_record.c:175:19
#16 0x50ec49 in gui_scene_record /home/jakob/XR/Monado/src/xrt/state_trackers/gui/gui_scene_record.c:400:3
#17 0x4fbe20 in main /home/jakob/XR/Monado/src/xrt/targets/gui/gui_sdl2_main.c:49:3
#18 0x7fbc51378cb1 in __libc_start_main csu/../csu/libc-start.c:314:16
Thread T49 created by T0 here:
#0 0x4b399a in pthread_create (/home/jakob/XR/build-Monado-CMake/src/xrt/targets/gui/monado-gui+0x4b399a)
#1 0x7fbc56710797 in DispatcherStart (/home/jakob/XR/install/lib/libdepthai-core.so+0x657797)
Thread T50 created by T49 here:
#0 0x4b399a in pthread_create (/home/jakob/XR/build-Monado-CMake/src/xrt/targets/gui/monado-gui+0x4b399a)
#1 0x7fbc56712583 in eventSchedulerRun (/home/jakob/XR/install/lib/libdepthai-core.so+0x659583)
#2 0x7fbc537e258f in start_thread nptl/pthread_create.c:463:8
SUMMARY: AddressSanitizer: heap-use-after-free (/home/jakob/XR/build-Monado-CMake/src/xrt/targets/gui/monado-gui+0x466dec) in memmove
Shadow bytes around the buggy address:
0x0ff7f06cbab0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0ff7f06cbac0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0ff7f06cbad0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0ff7f06cbae0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0ff7f06cbaf0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0ff7f06cbb00:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0ff7f06cbb10: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0ff7f06cbb20: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0ff7f06cbb30: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0ff7f06cbb40: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0ff7f06cbb50: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==48930==ABORTING
Environmant: Windows 10 Pro
Cmake version: 3.19.2
cd e:/cxx-projects/
git clone https://github.com/luxonis/depthai-core.git
cd depthai-core
git submodule update --init --recursive
In cmake ui:
Where is the source code: e:/cxx-projects/depthai-core
Where to build the libraries: e:/cxx-projects/depthai-core/build
When I clicked "Configure" on cmake ui, the below errors appeared:
Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
[hunter] Calculating Toolchain-SHA1
[hunter] Calculating Config-SHA1
[hunter] HUNTER_ROOT: C:/.hunter
[hunter] [ Hunter-ID: 062a19a | Toolchain-ID: 09f7782 | Config-ID: 2a6efb3 ]
[hunter] NLOHMANN_JSON_ROOT: C:/.hunter/_Base/062a19a/09f7782/2a6efb3/Install (ver.: 3.8.0)
CMake Warning (dev) at CMakeLists.txt:29 (find_package):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Environment variable nlohmann_json_ROOT is set to:
C:/.hunter/_Base/062a19a/09f7782/2a6efb3/Install
For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
[hunter] NLOHMANN_JSON_SCHEMA_VALIDATOR_ROOT: C:/.hunter/_Base/062a19a/09f7782/2a6efb3/Install (ver.: 2.1.1)
CMake Warning (dev) at CMakeLists.txt:33 (find_package):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Environment variable nlohmann_json_schema_validator_ROOT is set to:
C:/.hunter/_Base/062a19a/09f7782/2a6efb3/Install
For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
[hunter] XLINK_ROOT: C:/.hunter/_Base/062a19a/09f7782/2a6efb3/Install (ver.: luxonis-2020.2)
[hunter] Building XLink
loading initial cache file C:/.hunter/_Base/062a19a/09f7782/2a6efb3/cache.cmake
loading initial cache file C:/.hunter/_Base/062a19a/09f7782/2a6efb3/Build/XLink/args.cmake
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.28.29335.0
-- The CXX compiler identification is MSVC 19.28.29335.0
-- Check for working C compiler: D:/App (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: D:/App (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/.hunter/_bin/PAv0D/XLink
Microsoft (R) Build Engine version 16.8.2+25e4d540b for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System
Creating directories for 'XLink-Release'
Performing download step (download, verify and extract) for 'XLink-Release'
-- verifying file...
file='C:/.hunter/_Base/Download/XLink/luxonis-2020.2/479414f/c944814af18f567d2d0ee54cb2e1a1dc6ee90d76.zip'
-- File already exists and hash match (skip download):
file='C:/.hunter/_Base/Download/XLink/luxonis-2020.2/479414f/c944814af18f567d2d0ee54cb2e1a1dc6ee90d76.zip'
SHA1='479414f7b9cfa55080c12d9ec1782bc9820d9521'
-- extracting...
src='C:/.hunter/_Base/Download/XLink/luxonis-2020.2/479414f/c944814af18f567d2d0ee54cb2e1a1dc6ee90d76.zip'
dst='C:/.hunter/_Base/062a19a/09f7782/2a6efb3/Build/XLink/Source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
No update step for 'XLink-Release'
No patch step for 'XLink-Release'
Performing configure step for 'XLink-Release'
loading initial cache file C:/.hunter/_Base/062a19a/09f7782/2a6efb3/cache.cmake
loading initial cache file C:/.hunter/_Base/062a19a/09f7782/2a6efb3/Build/XLink/args.cmake
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.28.29335.0
-- The CXX compiler identification is MSVC 19.28.29335.0
-- Check for working C compiler: D:/App (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: D:/App (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/.hunter/_bin/PAv0D/XLink/XLink-Release-prefix/src/XLink-Release-build
Performing build step for 'XLink-Release'
Microsoft (R) Build Engine version 16.8.2+25e4d540b for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System
Building Custom Rule C:/.hunter/_Base/062a19a/09f7782/2a6efb3/Build/XLink/Source/CMakeLists.txt
PlatformData.c
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\pc\PlatformData.c(350,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\.hunter\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XLink.vc
xproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\pc\PlatformData.c(371,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\.hunter\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XLink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
PlatformDeviceControl.c
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\pc\PlatformDeviceControl.c(245,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\.hunter\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build
\XLink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
PlatformDeviceSearch.c
pcie_host.c
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\pc\protocols\pcie_host.c(161,45): warning C4267: 'function': conversion from 'size_t' to 'DWORD', possible loss of data [C:\.hunter\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XL
ink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\pc\protocols\pcie_host.c(238,44): warning C4267: 'function': conversion from 'size_t' to 'DWORD', possible loss of data [C:\.hunter\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XLink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\pc\protocols\pcie_host.c(586,45): warning C4267: 'function': conversion from 'size_t' to 'DWORD', possible loss of data [C:\.hunter\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XL
ink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
usb_boot.c
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\pc\protocols\usb_boot.c(556,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\.hunter\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XL
ink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
XLinkData.c
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\shared\include\XLink.h(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss [C:\.hunte
r\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XLink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
XLinkDeprecated.c
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\shared\include\XLink.h(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss [C:\.hunte
r\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XLink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
XLinkDevice.c
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\shared\include\XLink.h(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss [C:\.hunte
r\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XLink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
XLinkDispatcher.c
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\shared\src\XLinkDispatcher.c(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss [C:\
.hunter\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XLink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\shared\include\XLink.h(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss [C:\.hunte
r\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XLink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\shared\src\XLinkDispatcher.c(1060,1): fatal error C1070: mismatched #if/#endif pair in file 'C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\shared\src\XLinkDispatcher.c' [C:\.hunter\_
bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XLink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
XLinkDispatcherImpl.c
XLinkPrivateDefines.c
XLinkPrivateFields.c
XLinkStream.c
XLinkStringUtils.c
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\shared\src\XLinkStringUtils.c(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss [C:
\.hunter\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XLink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
win_pthread.c
C:\.hunter\_Base\062a19a\09f7782\2a6efb3\Build\XLink\Source\pc\Win\src\win_pthread.c(113,38): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\.hunter\_bin\PAv0D\XLink\XLink-Release-prefix\src\XLink-Release-build\XL
ink.vcxproj] [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
win_semaphore.c
win_time.c
win_usb.c
Generating Code...
D:\App (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB8066: Custom build for 'C:\.hunter\_bin\PAv0D\XLink\CMakeFiles\674e014399a6cc3b8bb3836966cc2576\XLink-Release-mkdir.rule;C:\.hunter\_
bin\PAv0D\XLink\CMakeFiles\674e014399a6cc3b8bb3836966cc2576\XLink-Release-download.rule;C:\.hunter\_bin\PAv0D\XLink\CMakeFiles\674e014399a6cc3b8bb3836966cc2576\XLink-Release-update.rule;C:\.hunter\_bin\PAv0D\XLink\CMakeFiles\674e014399a6cc3b8bb3836966cc2576\XLink-Release-patch.rule;C:\.hunter\_bin\PAv0D\XLink\CMakeFiles\674e014399a6cc3b8bb3836966cc2576\XLink-Release-configure.rule;C:\.hunter\_bin\PAv0D\XLink\CMakeFiles\674e014399a6cc3b8bb3836966cc2576\XLink-Release-build.rule;C:\.hunter\_bin\PAv0D\XLink\CMakeFiles\674e014399a6cc3b8bb3836966cc2576\XLink-Release-install.rule;C:\.hunter\_bin\PAv0D\XLink\CMakeFiles\6989c3dfb82dc761e2c32e1a99255a8d\XLink-Release-complete.rule;C:\.hunter\_bin\PAv0D\XLink\CMakeFiles\29f7b9d7f3a016b8049b3af0c5fa48e8\XLink-Release.rule' exited with code 1. [C:\.hunter\_bin\PAv0D\XLink\XLink-Release.vcxproj]
[hunter ** FATAL ERROR **] Build step failed (dir: C:/.hunter/_Base/062a19a/09f7782/2a6efb3/Build/XLink
[hunter ** FATAL ERROR **] [Directory:E:/cxx-projects/depthai-core]
------------------------------ ERROR -----------------------------
https://hunter.readthedocs.io/en/latest/reference/errors/error.external.build.failed.html
------------------------------------------------------------------
CMake Error at C:/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
C:/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page)
C:/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_download.cmake:623 (hunter_fatal_error)
C:/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_add_package.cmake:53 (hunter_download)
CMakeLists.txt:36 (hunter_add_package)
Configuring incomplete, errors occurred!
See also "E:/cxx-projects/depthai-core/build/CMakeFiles/CMakeOutput.log".
The content of CMakeOutput:
The system is: Windows - 10.0.19042 - AMD64
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine version 16.8.2+25e4d540b for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2021-01-19 20:07:17.
Project "E:\cxx-projects\depthai-core\build\CMakeFiles\3.19.2\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
D:\App (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
Link:
D:\App (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
CompilerIdCXX.vcxproj -> E:\cxx-projects\depthai-core\build\CMakeFiles\3.19.2\CompilerIdCXX\CompilerIdCXX.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_CXX_COMPILER=D:\App (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Done Building Project "E:\cxx-projects\depthai-core\build\CMakeFiles\3.19.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.76
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"
The CXX compiler identification is MSVC, found in "E:/cxx-projects/depthai-core/build/CMakeFiles/3.19.2/CompilerIdCXX/CompilerIdCXX.exe"
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine version 16.8.2+25e4d540b for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2021-01-19 20:07:19.
Project "E:\cxx-projects\depthai-core\build\CMakeFiles\3.19.2\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
D:\App (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
D:\App (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
CompilerIdC.vcxproj -> E:\cxx-projects\depthai-core\build\CMakeFiles\3.19.2\CompilerIdC\CompilerIdC.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_C_COMPILER=D:\App (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "E:\cxx-projects\depthai-core\build\CMakeFiles\3.19.2\CompilerIdC\CompilerIdC.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.96
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"
The C compiler identification is MSVC, found in "E:/cxx-projects/depthai-core/build/CMakeFiles/3.19.2/CompilerIdC/CompilerIdC.exe"
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: E:/cxx-projects/depthai-core/build/CMakeFiles/CMakeTmp
Run Build Command(s):D:/App (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_07f98.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.8.2+25e4d540b for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29335 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CMakeCXXCompilerABI.cpp
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_07f98.dir\Debug\\" /Fd"cmTC_07f98.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue "D:\App\CMake\share\cmake-3.19\Modules\CMakeCXXCompilerABI.cpp"
cmTC_07f98.vcxproj -> E:\cxx-projects\depthai-core\build\CMakeFiles\CMakeTmp\Debug\cmTC_07f98.exe
Detecting C compiler ABI info compiled with the following output:
Change Dir: E:/cxx-projects/depthai-core/build/CMakeFiles/CMakeTmp
Run Build Command(s):D:/App (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_9e977.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.8.2+25e4d540b for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29335 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CMakeCCompilerABI.c
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_9e977.dir\Debug\\" /Fd"cmTC_9e977.dir\Debug\vc142.pdb" /Gd /TC /errorReport:queue "D:\App\CMake\share\cmake-3.19\Modules\CMakeCCompilerABI.c"
cmTC_9e977.vcxproj -> E:\cxx-projects\depthai-core\build\CMakeFiles\CMakeTmp\Debug\cmTC_9e977.exe
So, any suggestion?
Many thanks.
When compiling under debian buster, I got stuck into
CMake Error at XLink.cmake:27 (message):
libusb is required
Call Stack (most recent call first):
CMakeLists.txt:8 (include)
after running
sudo apt-get -y install cmake libusb-1.0-0-dev build-essential
the compile process went almost through.
When using the image manipulation node to process an image from the video output of a ColorCamera node the image color planes are all set to the same value creating a gray image.
H/W OAK-1
S/W:
depthai version = 2.10.0.0
opencv-python version = 4.5.2.54
python version = 3.9.6
import cv2
import depthai as dai
from depthai import *
pipeline = dai.Pipeline()
cam_rgb_node = pipeline.createColorCamera()
cam_rgb_node.setBoardSocket(dai.CameraBoardSocket.RGB)
cam_rgb_node.setResolution(dai.ColorCameraProperties.SensorResolution.THE_1080_P)
manip_node = pipeline.create(dai.node.ImageManip)
manip_node.initialConfig.setFrameType(dai.ImgFrame.Type.RGB888p)
manip_node.setMaxOutputFrameSize(1920*1080*3)
xout_rgb = pipeline.createXLinkOut()
xout_rgb.setStreamName("rgb")
cam_rgb_node.video.link(manip_node.inputImage)
manip_node.out.link(xout_rgb.input)
with dai.Device(pipeline) as device:
q_rgb = device.getOutputQueue(name="rgb",maxSize = 1, blocking = False)
while True:
image = q_rgb.get()
if image is not None:
cv2.imshow("rgb",image.getCvFrame())
if cv2.waitKey(1) == ord('q'):
break
please how to connect to multiple DepthAI per Host for c++ code?
TWIMC,
I have tried countless ways now to get this working (again). I deleted the compiled library by accident, don't ask...
Source code is at ~/Desktop/depthai-core
git cloned from THIS repo 20min ago with --init and --recursive as flags
I have tried cleaning dirs to see if there was some old random toolchain-related code anywhere.
I'm using GitBashPortable on Windows so I have cleaned all the following directories:
/c/.hunter
~/.hunter
%temp%
prefetch
I even for once tried to follow the given comp. instructions in the README.txt
Nothing.
I am stuck.
It won't even give the make error. mingw32-make just crashes with Error: 1 when hunter is compiling XLink-Release.
Here is the terminal log:
LocalAdmin@COMPUTER MINGW64 ~/Desktop/depthai-core (main)
$ mkdir win64-build
LocalAdmin@COMPUTER MINGW64 ~/Desktop/depthai-core (main)
$ cd win64-build/
LocalAdmin@COMPUTER MINGW64 ~/Desktop/depthai-core/win64-build (main)
$ cmake .. -G "MinGW Makefiles"
-- [hunter] Initializing Hunter workspace (062a19ab13ce8dffa9a882b6ce3e43bdabdf75d3)
-- [hunter] https://github.com/cpp-pm/hunter/archive/v0.23.258.tar.gz
-- [hunter] -> C:/Users/LocalAdmin/.hunter/_Base/Download/Hunter/0.23.258/062a19a
-- The CXX compiler identification is GNU 8.1.0
-- The C compiler identification is GNU 8.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-sjlj-rt_v6-rev0/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-sjlj-rt_v6-rev0/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Setting build type to 'Debug' as none was specified.
-- Found Git: C:/Program Files/Git/mingw64/bin/git.exe (found version "2.32.0.windows.1")
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: C:/Users/LocalAdmin/.hunter
-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: cbb7500 | Config-ID: b63ed45 ]
-- [hunter] NLOHMANN_JSON_ROOT: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Install (ver.: 3.9.1)
-- [hunter] Building nlohmann_json
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/cache.cmake
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/args.cmake
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-sjlj-rt_v6-rev0/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-sjlj-rt_v6-rev0/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/LocalAdmin/.hunter/_bin/vnkJA/nlohmann_json
[ 6%] ←[34m←[1mCreating directories for 'nlohmann_json-Release'←[0m
[ 12%] ←[34m←[1mPerforming download step (download, verify and extract) for 'nlohmann_json-Release'←[0m
-- Downloading...
dst='C:/Users/LocalAdmin/.hunter/_Base/Download/nlohmann_json/3.9.1/f8a20a7/v3.9.1.tar.gz'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/nlohmann/json/archive/v3.9.1.tar.gz'
-- [download 100% complete]
-- verifying file...
file='C:/Users/LocalAdmin/.hunter/_Base/Download/nlohmann_json/3.9.1/f8a20a7/v3.9.1.tar.gz'
-- Downloading... done
-- extracting...
src='C:/Users/LocalAdmin/.hunter/_Base/Download/nlohmann_json/3.9.1/f8a20a7/v3.9.1.tar.gz'
dst='C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 18%] ←[34m←[1mNo update step for 'nlohmann_json-Release'←[0m
[ 25%] ←[34m←[1mNo patch step for 'nlohmann_json-Release'←[0m
[ 31%] ←[34m←[1mPerforming configure step for 'nlohmann_json-Release'←[0m
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/cache.cmake
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/args.cmake
-- The CXX compiler identification is GNU 8.1.0
-- Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-sjlj-rt_v6-rev0/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using the single-header code from C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Source/single_include/
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/LocalAdmin/.hunter/_bin/vnkJA/nlohmann_json/nlohmann_json-Release-prefix/src/nlohmann_json-Release-build
[ 37%] ←[34m←[1mPerforming build step for 'nlohmann_json-Release'←[0m
[ 43%] ←[34m←[1mPerforming install step for 'nlohmann_json-Release'←[0m
←[36mInstall the project...←[0m
-- Install configuration: "Release"
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/include
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/include/nlohmann
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/include/nlohmann/json.hpp
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/lib/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/lib/cmake/nlohmann_json/nlohmann_jsonTargets.cmake
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/lib/pkgconfig/nlohmann_json.pc
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/args.cmake
[ 50%] ←[34m←[1mCompleted 'nlohmann_json-Release'←[0m
[ 50%] Built target nlohmann_json-Release
[ 56%] ←[34m←[1mCreating directories for 'nlohmann_json-Debug'←[0m
[ 62%] ←[34m←[1mPerforming download step (download, verify and extract) for 'nlohmann_json-Debug'←[0m
-- verifying file...
file='C:/Users/LocalAdmin/.hunter/_Base/Download/nlohmann_json/3.9.1/f8a20a7/v3.9.1.tar.gz'
-- File already exists and hash match (skip download):
file='C:/Users/LocalAdmin/.hunter/_Base/Download/nlohmann_json/3.9.1/f8a20a7/v3.9.1.tar.gz'
SHA1='f8a20a7e19227906d77de0ede97468fbcfea03e7'
-- extracting...
src='C:/Users/LocalAdmin/.hunter/_Base/Download/nlohmann_json/3.9.1/f8a20a7/v3.9.1.tar.gz'
dst='C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 68%] ←[34m←[1mNo update step for 'nlohmann_json-Debug'←[0m
[ 75%] ←[34m←[1mNo patch step for 'nlohmann_json-Debug'←[0m
[ 81%] ←[34m←[1mPerforming configure step for 'nlohmann_json-Debug'←[0m
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/cache.cmake
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/args.cmake
-- The CXX compiler identification is GNU 8.1.0
-- Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-sjlj-rt_v6-rev0/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using the single-header code from C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Source/single_include/
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/LocalAdmin/.hunter/_bin/vnkJA/nlohmann_json/nlohmann_json-Debug-prefix/src/nlohmann_json-Debug-build
[ 87%] ←[34m←[1mPerforming build step for 'nlohmann_json-Debug'←[0m
[ 93%] ←[34m←[1mPerforming install step for 'nlohmann_json-Debug'←[0m
←[36mInstall the project...←[0m
-- Install configuration: "Debug"
-- Up-to-date: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/include
-- Up-to-date: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/include/nlohmann
-- Up-to-date: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/include/nlohmann/json.hpp
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/lib/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/lib/cmake/nlohmann_json/nlohmann_jsonTargets.cmake
-- Installing: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/Install/lib/pkgconfig/nlohmann_json.pc
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json/args.cmake
[100%] ←[34m←[1mCompleted 'nlohmann_json-Debug'←[0m
[100%] Built target nlohmann_json-Debug
-- [hunter] Build step successful (dir: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/nlohmann_json)
-- [hunter] Cache saved: C:/Users/LocalAdmin/.hunter/_Base/Cache/raw/08773606b7e6f49d69889de00372e8d45f8095cd.tar.bz2
-- [hunter] XLINK_ROOT: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Install (ver.: luxonis-2021.3-develop)
-- [hunter] Building XLink
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/cache.cmake
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/args.cmake
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-sjlj-rt_v6-rev0/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-sjlj-rt_v6-rev0/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/LocalAdmin/.hunter/_bin/hO6qz/XLink
[ 6%] ←[34m←[1mCreating directories for 'XLink-Release'←[0m
[ 12%] ←[34m←[1mPerforming download step (download, verify and extract) for 'XLink-Release'←[0m
-- Downloading...
dst='C:/Users/LocalAdmin/.hunter/_Base/Download/XLink/luxonis-2021.3-develop/5a0ce80/1a89b3003529ccbed90a32cf7c13438be1901744.tar.gz'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/luxonis/XLink/archive/1a89b3003529ccbed90a32cf7c13438be1901744.tar.gz'
-- [download 100% complete]
-- verifying file...
file='C:/Users/LocalAdmin/.hunter/_Base/Download/XLink/luxonis-2021.3-develop/5a0ce80/1a89b3003529ccbed90a32cf7c13438be1901744.tar.gz'
-- Downloading... done
-- extracting...
src='C:/Users/LocalAdmin/.hunter/_Base/Download/XLink/luxonis-2021.3-develop/5a0ce80/1a89b3003529ccbed90a32cf7c13438be1901744.tar.gz'
dst='C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 18%] ←[34m←[1mNo update step for 'XLink-Release'←[0m
[ 25%] ←[34m←[1mNo patch step for 'XLink-Release'←[0m
[ 31%] ←[34m←[1mPerforming configure step for 'XLink-Release'←[0m
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/cache.cmake
loading initial cache file C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/args.cmake
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-sjlj-rt_v6-rev0/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-sjlj-rt_v6-rev0/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/LocalAdmin/.hunter/_bin/hO6qz/XLink/XLink-Release-prefix/src/XLink-Release-build
[ 37%] ←[34m←[1mPerforming build step for 'XLink-Release'←[0m
[ 4%] ←[32mBuilding C object CMakeFiles/XLink.dir/pc/PlatformDeviceControl.c.obj←[0m
[ 16%] ←[32mBuilding C object CMakeFiles/XLink.dir/pc/PlatformDeviceSearch.c.obj←[0m
[ 16%] ←[32mBuilding C object CMakeFiles/XLink.dir/pc/protocols/pcie_host.c.obj←[0m
[ 16%] ←[32mBuilding C object CMakeFiles/XLink.dir/pc/PlatformData.c.obj←[0m
In file included from C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\PlatformDeviceSearch.c:15:
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:55:33: warning: 'mvLogLevel_PlatformDeviceSearch' is static but used in inline function 'mvLogLevelSet' which is not static
#define _MVLOGLEVEL(UNIT_NAME) mvLogLevel_ ## UNIT_NAME
^~~~~~~~~~~
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:56:32: note: in expansion of macro '_MVLOGLEVEL'
#define MVLOGLEVEL(UNIT_NAME) _MVLOGLEVEL(UNIT_NAME)
^~~~~~~~~~~
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:86:9: note: in expansion of macro 'MVLOGLEVEL'
MVLOGLEVEL(MVLOG_UNIT_NAME) = lvl;
^~~~~~~~~~
In file included from C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\PlatformData.c:18:
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:55:33: warning: 'mvLogLevel_PlatformData' is static but used in inline function 'mvLogLevelSet' which is not static
#define _MVLOGLEVEL(UNIT_NAME) mvLogLevel_ ## UNIT_NAME
^~~~~~~~~~~
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:56:32: note: in expansion of macro '_MVLOGLEVEL'
#define MVLOGLEVEL(UNIT_NAME) _MVLOGLEVEL(UNIT_NAME)
^~~~~~~~~~~
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:86:9: note: in expansion of macro 'MVLOGLEVEL'
MVLOGLEVEL(MVLOG_UNIT_NAME) = lvl;
^~~~~~~~~~
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\PlatformDeviceControl.c: In function 'tcpipPlatformConnect':
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\PlatformDeviceControl.c:534:15: warning: implicit declaration of function 'inet_pton'; did you mean 'inet_ntoa'? [-Wimplicit-function-declaration]
int ret = inet_pton(AF_INET, devPathWrite, &serv_addr.sin_addr);
^~~~~~~~~
inet_ntoa
In file included from C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\PlatformDeviceControl.c:15:
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\PlatformDeviceControl.c: At top level:
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:55:33: warning: 'mvLogLevel_PlatformDeviceControl' is static but used in inline function 'mvLogLevelSet' which is not static
#define _MVLOGLEVEL(UNIT_NAME) mvLogLevel_ ## UNIT_NAME
^~~~~~~~~~~
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:56:32: note: in expansion of macro '_MVLOGLEVEL'
#define MVLOGLEVEL(UNIT_NAME) _MVLOGLEVEL(UNIT_NAME)
^~~~~~~~~~~
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:86:9: note: in expansion of macro 'MVLOGLEVEL'
MVLOGLEVEL(MVLOG_UNIT_NAME) = lvl;
^~~~~~~~~~
In function 'tcpipPlatformConnect.isra.2',
inlined from 'XLinkPlatformConnect' at C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\PlatformDeviceControl.c:217:20:
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\PlatformDeviceControl.c:520:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(devPathWriteBuff, devPathWrite, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~[ 20%] ←[32mBuilding C object CMakeFiles/XLink.dir/pc/protocols/usb_boot.c.obj←[0m
~~~~~~~~~~~~~~~
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\PlatformDeviceControl.c: In function 'XLinkPlatformConnect':
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\PlatformDeviceControl.c:518:18: note: length computed here
size_t len = strlen(devPathWrite);
^~~~~~~~~~~~~~~~~~~~
[ 25%] ←[32mBuilding C object CMakeFiles/XLink.dir/pc/protocols/tcpip_host.c.obj←[0m
[ 29%] ←[32mBuilding C object CMakeFiles/XLink.dir/pc/protocols/usb_mx_id.c.obj←[0m
In file included from C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\pcie_host.c:37:
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:55:33: warning: 'mvLogLevel_PCIe' is static but used in inline function 'mvLogLevelSet' which is not static
#define _MVLOGLEVEL(UNIT_NAME) mvLogLevel_ ## UNIT_NAME
^~~~~~~~~~~
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:55:33: note: in definition of macro '_MVLOGLEVEL'
#define _MVLOGLEVEL(UNIT_NAME) mvLogLevel_ ## UNIT_NAME
^~~~~~~~~~~
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:86:9: note: in expansion of macro 'MVLOGLEVEL'
MVLOGLEVEL(MVLOG_UNIT_NAME) = lvl;
^~~~~~~~~~
[ 33%] ←[32mBuilding C object CMakeFiles/XLink.dir/shared/src/XLinkData.c.obj←[0m
In file included from C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\usb_boot.c:37:
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:55:33: warning: 'mvLogLevel_xLinkUsb' is static but used in inline function 'mvLogLevelSet' which is not static
#define _MVLOGLEVEL(UNIT_NAME) mvLogLevel_ ## UNIT_NAME
^~~~~~~~~~~
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:56:32: note: in expansion of macro '_MVLOGLEVEL'
#define MVLOGLEVEL(UNIT_NAME) _MVLOGLEVEL(UNIT_NAME)
^~~~~~~~~~~
C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink/Source/shared/include/XLink/XLinkLog.h:86:9: note: in expansion of macro 'MVLOGLEVEL'
MVLOGLEVEL(MVLOG_UNIT_NAME) = lvl;
^~~~~~~~~~
[ 37%] ←[32mBuilding C object CMakeFiles/XLink.dir/shared/src/XLinkDeprecated.c.obj←[0m
[ 41%] ←[32mBuilding C object CMakeFiles/XLink.dir/shared/src/XLinkDevice.c.obj←[0m
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c: In function 'tcpip_create_socket_broadcast':
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:124:51: warning: passing argument 4 of 'setsockopt' from incompatible pointer type [-Wincompatible-pointer-types]
if(setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &rc, sizeof(rc)) < 0)
^~~
In file included from C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:21:
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/x86_64-w64-mingw32/include/winsock2.h:999:88: note: expected 'const char *' but argument is of type 'int *'
WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optval,int optlen);
~~~~~~~~~~~~^~~~~~
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:146:50: warning: passing argument 4 of 'setsockopt' from incompatible pointer type [-Wincompatible-pointer-types]
if(setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &read_timeout, sizeof(read_timeout)) < 0)
^~~~~~~~~~~~~
In file included from C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:21:
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/x86_64-w64-mingw32/include/winsock2.h:999:88: note: expected 'const char *' but argument is of type 'int *'
WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optval,int optlen);
~~~~~~~~~~~~^~~~~~
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c: In function 'tcpip_send_broadcast':
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:187:22: warning: passing argument 2 of 'sendto' from incompatible pointer type [-Wincompatible-pointer-types]
sendto(sock, &send_buffer, sizeof(send_buffer), 0, (struct sockaddr*) & broadcast, sizeof(broadcast));
^~~~~~~~~~~~
In file included from C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:21:
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/x86_64-w64-mingw32/include/winsock2.h:998:62: note: expected 'const char *' but argument is of type 'tcpipHostCommand_t *' {aka 'enum <anonymous> *'}
WINSOCK_API_LINKAGE int WSAAPI sendto(SOCKET s,const char *buf,int len,int flags,const struct sockaddr *to,int tolen);
~~~~~~~~~~~~^~~
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c: At top level:
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:268:18: error: conflicting types for 'tcpip_close_socket'
tcpipHostError_t tcpip_close_socket(SOCKET sock)
^~~~~~~~~~~~~~~~~~
In file included from C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:14:
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.h:73:18: note: previous declaration of 'tcpip_close_socket' was here
tcpipHostError_t tcpip_close_socket(int sockfd);
^~~~~~~~~~~~~~~~~~
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c: In function 'tcpip_get_devices':
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:320:34: warning: passing argument 2 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types]
int ret = recvfrom(sock, &recv_buffer, sizeof(recv_buffer), 0, (struct sockaddr*) & dev_addr, &len);
^~~~~~~~~~~~
In file included from C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:21:
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/x86_64-w64-mingw32/include/winsock2.h:993:58: note: expected 'char *' but argument is of type 'tcpipHostDeviceDiscoveryResp_t *' {aka 'struct <anonymous> *'}
WINSOCK_API_LINKAGE int WSAAPI recvfrom(SOCKET s,char *buf,int len,int flags,struct sockaddr *from,int *fromlen);
~~~~~~^~~
C:\Users\LocalAdmin\.hunter\_Base\062a19a\cbb7500\b63ed45\Build\XLink\Source\pc\protocols\tcpip_host.c:329:17: warning: implicit declaration of function 'inet_ntop'; did you mean 'inet_ntoa'? [-Wimplicit-function-declaration]
inet_ntop(AF_INET, &dev_addr.sin_addr, ip_addr, sizeof(ip_addr));
^~~~~~~~~
inet_ntoa
mingw32-make.exe[5]: *** [CMakeFiles\XLink.dir\build.make:136: CMakeFiles/XLink.dir/pc/protocols/tcpip_host.c.obj] Error 1
mingw32-make.exe[5]: *** Waiting for unfinished jobs....
mingw32-make.exe[4]: *** [CMakeFiles\Makefile2:82: CMakeFiles/XLink.dir/all] Error 2
mingw32-make.exe[3]: *** [Makefile:135: all] Error 2
mingw32-make.exe[2]: *** [CMakeFiles\XLink-Release.dir\build.make:85: XLink-Release-prefix/src/XLink-Release-stamp/XLink-Release-build] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:84: CMakeFiles/XLink-Release.dir/all] Error 2
mingw32-make.exe: *** [Makefile:90: all] Error 2
[hunter ** FATAL ERROR **] Build step failed (dir: C:/Users/LocalAdmin/.hunter/_Base/062a19a/cbb7500/b63ed45/Build/XLink
[hunter ** FATAL ERROR **] [Directory:C:/Users/LocalAdmin/Desktop/depthai-core/cmake]
------------------------------ ERROR -----------------------------
https://hunter.readthedocs.io/en/latest/reference/errors/error.external.build.failed.html
------------------------------------------------------------------
CMake Error at C:/Users/LocalAdmin/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
C:/Users/LocalAdmin/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page)
C:/Users/LocalAdmin/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_download.cmake:623 (hunter_fatal_error)
C:/Users/LocalAdmin/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_add_package.cmake:53 (hunter_download)
cmake/depthaiDependencies.cmake:9 (hunter_add_package)
CMakeLists.txt:111 (include)
-- Configuring incomplete, errors occurred!
See also "C:/Users/LocalAdmin/Desktop/depthai-core/win64-build/CMakeFiles/CMakeOutput.log".
Am I just losing my mind right now or is there actually something broken...
Help is greatly appreciated.
System: Ubuntu 18.04 LTS
I am trying to build depthai-core on my system and upon running CMake --build build
, I am getting the following message:
make: *** No targets specified and no makefile found. Stop.
My output of the cmake -H. -Bbuild
is attached below
-- The CXX compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0
-- 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
-- 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
-- Setting build type to 'Debug' as none was specified.
-- Found Git: /usr/bin/git (found version "2.17.1")
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/sandip/.hunter
-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: 8671a89 | Config-ID: 2127330 ]
-- [hunter] NLOHMANN_JSON_ROOT: /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install (ver.: 3.9.1)
-- [hunter] XLINK_ROOT: /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install (ver.: luxonis-2021.3-develop)
-- [hunter] BZIP2_ROOT: /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install (ver.: 1.0.8-p0)
-- [hunter] FP16_ROOT: /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install (ver.: luxonis-0.0.0)
-- [hunter] LIBARCHIVE-LUXONIS_ROOT: /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install (ver.: 3.4.2-p2)
-- [hunter] SPDLOG_ROOT: /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install (ver.: 1.8.2)
-- [hunter] ZLIB_ROOT: /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install (ver.: 1.2.11-p1)
-- [hunter] BACKWARD_ROOT: /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install (ver.: 1.6)
CMake Error at /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install/lib/cmake/ZLIB/ZLIBConfig.cmake:36 (add_library):
add_library cannot create ALIAS target "ZLIB::ZLIB" because target
"ZLIB::zlib" is IMPORTED.
Call Stack (most recent call first):
cmake/depthaiDependencies.cmake:34 (find_package)
CMakeLists.txt:118 (include)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find libdw (missing: LIBDW_LIBRARY LIBDW_INCLUDE_DIR)
-- Could NOT find libbfd (missing: LIBBFD_LIBRARY LIBBFD_INCLUDE_DIR)
-- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR LIBELF_LIBRARY LIBELF_INCLUDE_DIR)
-- Found Backward: /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install/lib/backward
-- Found nlohmann_json: /home/sandip/.hunter/_Base/062a19a/8671a89/2127330/Install/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.9.1")
-- Performing Test FLAG_-Wall
-- Performing Test FLAG_-Wall - Success
-- Performing Test FLAG_-Wextra
-- Performing Test FLAG_-Wextra - Success
-- Performing Test FLAG_-Woverloaded-virtual
-- Performing Test FLAG_-Woverloaded-virtual - Success
-- Performing Test FLAG_-Wformat=2
-- Performing Test FLAG_-Wformat=2 - Success
-- Performing Test FLAG_-Wmisleading-indentation
-- Performing Test FLAG_-Wmisleading-indentation - Success
-- Performing Test FLAG_-Wduplicated-cond
-- Performing Test FLAG_-Wduplicated-cond - Success
-- Performing Test FLAG_-Wduplicated-branches
-- Performing Test FLAG_-Wduplicated-branches - Success
-- Performing Test FLAG_-Wnull-dereference
-- Performing Test FLAG_-Wnull-dereference - Success
-- Performing Test FLAG_-Wdouble-promotion
-- Performing Test FLAG_-Wdouble-promotion - Success
-- Performing Test FLAG_-Wsign-compare
-- Performing Test FLAG_-Wsign-compare - Success
-- Performing Test FLAG_-Wtype-limits
-- Performing Test FLAG_-Wtype-limits - Success
-- Performing Test FLAG_-Werror=self-assign-field
-- Performing Test FLAG_-Werror=self-assign-field - Failed
-- Performing Test FLAG_-Werror=unused-lambda-capture
-- Performing Test FLAG_-Werror=unused-lambda-capture - Failed
-- Performing Test FLAG_-Werror=return-type
-- Performing Test FLAG_-Werror=return-type - Success
-- Performing Test FLAG_-Werror=non-virtual-dtor
-- Performing Test FLAG_-Werror=non-virtual-dtor - Success
-- Performing Test FLAG_-Werror=sign-compare
-- Performing Test FLAG_-Werror=sign-compare - Success
-- Performing Test FLAG_-Werror=reorder
-- Performing Test FLAG_-Werror=reorder - Success
-- Performing Test FLAG_-Werror=switch-enum
-- Performing Test FLAG_-Werror=switch-enum - Success
-- Compiling depthai-core resources in PATCH_ONLY mode
-- Downloading Depthai device side binaries from server...
-- Downloading depthai and patch
-- commit: 99f9c588547e828663bb42e89f816d184d8dcff5
-- depthai-shared between device and host MATCH!. (device: 99f9c588547e828663bb42e89f816d184d8dcff5, host: 99f9c588547e828663bb42e89f816d184d8dcff5
-- Downloading and checking depthai-device-fwp.tar.xz
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- Downloading depthai bootloader
-- folder: /home/sandip/depthai-core/build/resources
-- maturity: release
-- commit_version_arg: 0.0.15
-- bootloader shared commit: 126f344155346836a6a2d67b0993c161b6b48729
-- depthai-bootloader-shared between device and host MATCH!. (device: 126f344155346836a6a2d67b0993c161b6b48729, host: 126f344155346836a6a2d67b0993c161b6b48729
-- Downloading and checking depthai-bootloader-fwp.tar.xz
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 53% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 73% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 93% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- LIST OF RESOURCE COMPILED FILES: /home/sandip/depthai-core/build/resources/depthai-device-fwp-2021725697c9b570383b0597951a9d7b162e6182.tar.xz;/home/sandip/depthai-core/build/resources/depthai-bootloader-fwp-0.0.15.tar.xz
-- Check for working incbin assembly directive
-- Check for working incbin assembly directive - works
-- ClangFormat: clang-format not found! Target 'clangformat' not available...
-- OpenCV or required libraries (opencv_core;opencv_imgproc) not found. OpenCV Support disabled
-- BUILD_DATETIME: 2021-10-23 03:19:31 +0000, BUILD_COMMIT: d520c26b9f631c5476f12259c5f7a3f0f25dd0b0, BUILD_COMMIT_DATETIME: 2021-10-21 12:54:34 +0200
-- Configuring incomplete, errors occurred!
See also "/home/sandip/depthai-core/build/CMakeFiles/CMakeOutput.log".
See also "/home/sandip/depthai-core/build/CMakeFiles/CMakeError.log".
Hi.
I'm having severe problems running this lib on a CodeBlocks project.
I'm trying to use it as a static library in a C ++ project with CodeBlocks.
However, in the compilation / linking project, the following error occurs:
/ usr / bin / ld: undefined reference to symbol 'pthread_create @@ GLIBC_
I edited the included CmakeLists.txt ...
IF (NOT APPLE AND NOT MSVC)
SET (PLATFORM_SPECIFIC_LIBS "-lpthread")
set (CMAKE_THREAD_LIBS_INIT "-lpthread")
SET (CMAKE_C_FLAGS_RELEASE "$ {CMAKE_C_FLAGS_RELEASE} -pthread")
SET (CMAKE_CXX_FLAGS "$ {CMAKE_CXX_FLAGS} -pthread")
set (CMAKE_HAVE_THREADS_LIBRARY 1)
set (CMAKE_USE_PTHREADS_INIT 1)
set (THREADS_PREFER_PTHREAD_FLAG ON)
ENDIF ()
Distributes “#include <pthread.h>” to all source files that included thread or memory include…
It also includes "-pthread" and "lpthread" and #include <pthread.h> "in my project files that consume the library.
My environment is CodeBlocks running on Raspibian.
I don't know what else to try.
Any tips?
Thanks.
I'm trying to get the project running in Visual Studio 2019 on Windows 10.
I've followed the readme closely, albeit, I had to make certain adjustments.
Under the Context heading below, I've detailed the steps I took relative to the instructions in the readme.
The following errors are produced when I try to build the solution in VS:
In Visual Studio Error List
4 MSB8066 errors related to CMake.
In Visual Studio Output
You can see the 4 CMake errors in more detail. It specifies that the problem is in examples/CMakeLists.txt:5
, but I cannot find a CMakeLists.txt in that folder. There's only a examples/CMakeFiles/
folder and it's empty.
In CMakeError.log
A C1083 error: C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\CMakeTmp\cmTC_3f38e.vcxproj]
The last error is possibly related to the note in the readme: Threading library might need to be linked to explicitly.
I wasn't sure what that entails.
I've included the full outputs below in their respective headings, as well as the actual files.
I'm following the Non-CMake integration (Visual Studio, Xcode, CodeBlocks, ...) enumerated instructions in the readme.
( 0 ) I updated the submodule first:
git submodule update --init --recursive
( 1 ) Note, I had to change -H.
to -S.
for it to work on Windows. Also, I couldn't get cmake --build build -- /MP6
to work to speed up the build time, so I omitted the multiple processes portion:
cmake -S. -Bbuild -D BUILD_SHARED_LIBS=ON
cmake --build build
( 2 ) Note, for the first command, I opted to not specify CMAKE_INSTALL_PREFIX
so that it defaults to build/install
as mentioned in the notes in the readme:
cmake -H. -Bbuild
cmake --build build
cmake --build build --target install
( 3 ) and ( 4 )
I opened depthai-core/build/depthai.sln
, I selected all the projects, right-click, Properties, and added the library and include directories.
( 5 )
For the depthai-core
project, I checked the defines. The only thing I noticed is the difference of __PC__
vs __PC__=ON
in the readme. I've tried both, and it results in the same errors, so I kept it to the original __PC__
.
There's also the depthai-resources
project which I can add preprocessor definitions to, but opted not to, since the readme didn't explicitly state to do so for that particular project.
The rest of the projects don't have any CPP source files, so I don't get the option to set their preprocessor definitions.
I'm not sure what the first note entails.
The second one, my depthai-core-integration.txt
looks like this:
-D'DEPTHAI_TARGET_CORE'
-D'JSON_USE_IMPLICIT_CONVERSIONS=1'
-D'__PC__'
-D'XLINK_USE_MX_ID_NAME=ON'
-I'C:/Users/XXX/Documents/depthai-core/include'
-I'C:/Users/XXX/Documents/depthai-core/shared/depthai-shared/include'
-I'C:/Users/XXX/Documents/depthai-core/shared/depthai-bootloader-shared/include'
-I'C:/Users/XXX/Documents/depthai-core/shared/depthai-shared/3rdparty'
-I'C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install/include'
-I'C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install/include'
-I'C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install/include'
The 4 defines at the top were already in the defines for the depthai-core
project. The 7 includes weren't. I tried with and without, and it didn't seem to fix the problem.
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Checking Build System
1>CMake is re-running because C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/generate.stamp is out-of-date.
1> the file 'C:/Users/XXX/Documents/depthai-core/build/_3rdParty/Hunter/config-id/config.cmake.NOLF'
1> is newer than 'C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/generate.stamp.depend'
1> result='-1'
1>-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19043.
1>-- [hunter] Calculating Toolchain-SHA1
1>-- [hunter] Calculating Config-SHA1
1>-- [hunter] HUNTER_ROOT: C:/.hunter
1>-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: afec2cd | Config-ID: 05fa1a3 ]
1>-- [hunter] NLOHMANN_JSON_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 3.9.1)
1>-- [hunter] XLINK_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: luxonis-2021.3-develop)
1>-- [hunter] BZIP2_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.0.8-p0)
1>-- [hunter] FP16_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: luxonis-0.0.0)
1>-- [hunter] LIBARCHIVE-LUXONIS_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 3.4.2-p2)
1>-- [hunter] SPDLOG_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.8.2)
1>-- [hunter] ZLIB_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.2.11-p1)
1>-- [hunter] BACKWARD_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.6)
1>-- Compiling depthai-core resources in PATCH_ONLY mode
1>-- Downloading Depthai device side binaries from server...
1>-- Downloading depthai and patch
1>-- commit: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039
1>-- File already downloaded (resources): depthai-shared-commit-hash-48cf187bb144bd5867c78bf17178e9e050b7167c.txt
1>-- depthai-shared between device and host MATCH!. (device: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039, host: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039
1>-- Downloading and checking depthai-device-fwp.tar.xz
1>-- File already downloaded (resources): depthai-device-fwp-48cf187bb144bd5867c78bf17178e9e050b7167c.tar.xz
1>-- Downloading depthai bootloader
1>-- folder: C:/Users/XXX/Documents/depthai-core/build/resources
1>-- maturity: release
1>-- commit_version_arg: 0.0.15
1>-- bootloader shared commit: 126f344155346836a6a2d67b0993c161b6b48729
1>-- File already downloaded (resources): depthai-bootloader-shared-commit-hash-0.0.15.txt
1>-- depthai-bootloader-shared between device and host MATCH!. (device: 126f344155346836a6a2d67b0993c161b6b48729, host: 126f344155346836a6a2d67b0993c161b6b48729
1>-- Downloading and checking depthai-bootloader-fwp.tar.xz
1>-- File already downloaded (resources): depthai-bootloader-fwp-0.0.15.tar.xz
1>-- LIST OF RESOURCE COMPILED FILES: C:/Users/XXX/Documents/depthai-core/build/resources/depthai-device-fwp-48cf187bb144bd5867c78bf17178e9e050b7167c.tar.xz;C:/Users/XXX/Documents/depthai-core/build/resources/depthai-bootloader-fwp-0.0.15.tar.xz
1>-- ClangFormat: clang-format not found! Target 'clangformat' not available...
1>-- OpenCV or required libraries (opencv_core;opencv_imgproc) not found. OpenCV Support disabled
1>CMake Error at examples/CMakeLists.txt:5 (find_package):
1> By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
1> asked CMake to find a package configuration file provided by "OpenCV", but
1> CMake did not find one.
1>
1> Could not find a package configuration file provided by "OpenCV" with any
1> of the following names:
1>
1> OpenCVConfig.cmake
1> opencv-config.cmake
1>
1> Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
1> "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
1> provides a separate development package or SDK, be sure it has been
1> installed.
1>
1>
1>-- Configuring incomplete, errors occurred!
1>See also "C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeOutput.log".
1>See also "C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeError.log".
1>CMake Configure step failed. Build files cannot be regenerated correctly. Attempting to stop IDE build.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\2da0e89d59393a90c866ed9971755bfb\generate.stamp.rule' exited with code 1.
1>Done building project "ZERO_CHECK.vcxproj" -- FAILED.
2>------ Build started: Project: depthai-resources, Configuration: Debug x64 ------
3>------ Skipped Build: Project: Continuous, Configuration: Debug x64 ------
3>Project not selected to build for this solution configuration
4>------ Skipped Build: Project: Experimental, Configuration: Debug x64 ------
4>Project not selected to build for this solution configuration
5>------ Skipped Build: Project: Nightly, Configuration: Debug x64 ------
5>Project not selected to build for this solution configuration
6>------ Skipped Build: Project: NightlyMemoryCheck, Configuration: Debug x64 ------
6>Project not selected to build for this solution configuration
7>------ Skipped Build: Project: RUN_TESTS, Configuration: Debug x64 ------
7>Project not selected to build for this solution configuration
2>Generating depthai-resources resource loader
2>Generating intermediate file for C:/Users/XXX/Documents/depthai-core/build/resources/depthai-device-fwp-48cf187bb144bd5867c78bf17178e9e050b7167c.tar.xz
2>Generating intermediate file for C:/Users/XXX/Documents/depthai-core/build/resources/depthai-bootloader-fwp-0.0.15.tar.xz
2>Building Custom Rule C:/Users/XXX/Documents/depthai-core/CMakeLists.txt
2>CMake is re-running because C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/generate.stamp is out-of-date.
2> the file 'C:/Users/XXX/Documents/depthai-core/build/_3rdParty/Hunter/config-id/config.cmake.NOLF'
2> is newer than 'C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/generate.stamp.depend'
2> result='-1'
2>-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19043.
2>-- [hunter] Calculating Toolchain-SHA1
2>-- [hunter] Calculating Config-SHA1
2>-- [hunter] HUNTER_ROOT: C:/.hunter
2>-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: afec2cd | Config-ID: 05fa1a3 ]
2>-- [hunter] NLOHMANN_JSON_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 3.9.1)
2>-- [hunter] XLINK_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: luxonis-2021.3-develop)
2>-- [hunter] BZIP2_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.0.8-p0)
2>-- [hunter] FP16_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: luxonis-0.0.0)
2>-- [hunter] LIBARCHIVE-LUXONIS_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 3.4.2-p2)
2>-- [hunter] SPDLOG_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.8.2)
2>-- [hunter] ZLIB_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.2.11-p1)
2>-- [hunter] BACKWARD_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.6)
2>-- Compiling depthai-core resources in PATCH_ONLY mode
2>-- Downloading Depthai device side binaries from server...
2>-- Downloading depthai and patch
2>-- commit: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039
2>-- File already downloaded (resources): depthai-shared-commit-hash-48cf187bb144bd5867c78bf17178e9e050b7167c.txt
2>-- depthai-shared between device and host MATCH!. (device: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039, host: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039
2>-- Downloading and checking depthai-device-fwp.tar.xz
2>-- File already downloaded (resources): depthai-device-fwp-48cf187bb144bd5867c78bf17178e9e050b7167c.tar.xz
2>-- Downloading depthai bootloader
2>-- folder: C:/Users/XXX/Documents/depthai-core/build/resources
2>-- maturity: release
2>-- commit_version_arg: 0.0.15
2>-- bootloader shared commit: 126f344155346836a6a2d67b0993c161b6b48729
2>-- File already downloaded (resources): depthai-bootloader-shared-commit-hash-0.0.15.txt
2>-- depthai-bootloader-shared between device and host MATCH!. (device: 126f344155346836a6a2d67b0993c161b6b48729, host: 126f344155346836a6a2d67b0993c161b6b48729
2>-- Downloading and checking depthai-bootloader-fwp.tar.xz
2>-- File already downloaded (resources): depthai-bootloader-fwp-0.0.15.tar.xz
2>-- LIST OF RESOURCE COMPILED FILES: C:/Users/XXX/Documents/depthai-core/build/resources/depthai-device-fwp-48cf187bb144bd5867c78bf17178e9e050b7167c.tar.xz;C:/Users/XXX/Documents/depthai-core/build/resources/depthai-bootloader-fwp-0.0.15.tar.xz
2>-- ClangFormat: clang-format not found! Target 'clangformat' not available...
2>-- OpenCV or required libraries (opencv_core;opencv_imgproc) not found. OpenCV Support disabled
2>CMake Error at examples/CMakeLists.txt:5 (find_package):
2> By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
2> asked CMake to find a package configuration file provided by "OpenCV", but
2> CMake did not find one.
2>
2> Could not find a package configuration file provided by "OpenCV" with any
2> of the following names:
2>
2> OpenCVConfig.cmake
2> opencv-config.cmake
2>
2> Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
2> "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
2> provides a separate development package or SDK, be sure it has been
2> installed.
2>
2>
2>-- Configuring incomplete, errors occurred!
2>See also "C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeOutput.log".
2>See also "C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeError.log".
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\bbb0e7b079a188406e9f0e15f384f6e4\lib.cpp.rule;C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\bcbad196364c77f210df925881d40af4\depthai-device-fwp-48cf187bb144bd5867c78bf17178e9e050b7167c.tar.xz.cpp.rule;C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\bcbad196364c77f210df925881d40af4\depthai-bootloader-fwp-0.0.15.tar.xz.cpp.rule;C:\Users\XXX\Documents\depthai-core\CMakeLists.txt' exited with code 1.
2>Done building project "depthai-resources.vcxproj" -- FAILED.
8>------ Build started: Project: depthai-core, Configuration: Debug x64 ------
8>Building Custom Rule C:/Users/XXX/Documents/depthai-core/CMakeLists.txt
8>CMake is re-running because C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/generate.stamp is out-of-date.
8> the file 'C:/Users/XXX/Documents/depthai-core/build/_3rdParty/Hunter/config-id/config.cmake.NOLF'
8> is newer than 'C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/generate.stamp.depend'
8> result='-1'
8>-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19043.
8>-- [hunter] Calculating Toolchain-SHA1
8>-- [hunter] Calculating Config-SHA1
8>-- [hunter] HUNTER_ROOT: C:/.hunter
8>-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: afec2cd | Config-ID: 05fa1a3 ]
8>-- [hunter] NLOHMANN_JSON_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 3.9.1)
8>-- [hunter] XLINK_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: luxonis-2021.3-develop)
8>-- [hunter] BZIP2_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.0.8-p0)
8>-- [hunter] FP16_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: luxonis-0.0.0)
8>-- [hunter] LIBARCHIVE-LUXONIS_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 3.4.2-p2)
8>-- [hunter] SPDLOG_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.8.2)
8>-- [hunter] ZLIB_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.2.11-p1)
8>-- [hunter] BACKWARD_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.6)
8>-- Compiling depthai-core resources in PATCH_ONLY mode
8>-- Downloading Depthai device side binaries from server...
8>-- Downloading depthai and patch
8>-- commit: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039
8>-- File already downloaded (resources): depthai-shared-commit-hash-48cf187bb144bd5867c78bf17178e9e050b7167c.txt
8>-- depthai-shared between device and host MATCH!. (device: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039, host: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039
8>-- Downloading and checking depthai-device-fwp.tar.xz
8>-- File already downloaded (resources): depthai-device-fwp-48cf187bb144bd5867c78bf17178e9e050b7167c.tar.xz
8>-- Downloading depthai bootloader
8>-- folder: C:/Users/XXX/Documents/depthai-core/build/resources
8>-- maturity: release
8>-- commit_version_arg: 0.0.15
8>-- bootloader shared commit: 126f344155346836a6a2d67b0993c161b6b48729
8>-- File already downloaded (resources): depthai-bootloader-shared-commit-hash-0.0.15.txt
8>-- depthai-bootloader-shared between device and host MATCH!. (device: 126f344155346836a6a2d67b0993c161b6b48729, host: 126f344155346836a6a2d67b0993c161b6b48729
8>-- Downloading and checking depthai-bootloader-fwp.tar.xz
8>-- File already downloaded (resources): depthai-bootloader-fwp-0.0.15.tar.xz
8>-- LIST OF RESOURCE COMPILED FILES: C:/Users/XXX/Documents/depthai-core/build/resources/depthai-device-fwp-48cf187bb144bd5867c78bf17178e9e050b7167c.tar.xz;C:/Users/XXX/Documents/depthai-core/build/resources/depthai-bootloader-fwp-0.0.15.tar.xz
8>-- ClangFormat: clang-format not found! Target 'clangformat' not available...
8>-- OpenCV or required libraries (opencv_core;opencv_imgproc) not found. OpenCV Support disabled
8>CMake Error at examples/CMakeLists.txt:5 (find_package):
8> By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
8> asked CMake to find a package configuration file provided by "OpenCV", but
8> CMake did not find one.
8>
8> Could not find a package configuration file provided by "OpenCV" with any
8> of the following names:
8>
8> OpenCVConfig.cmake
8> opencv-config.cmake
8>
8> Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
8> "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
8> provides a separate development package or SDK, be sure it has been
8> installed.
8>
8>
8>-- Configuring incomplete, errors occurred!
8>See also "C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeOutput.log".
8>See also "C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeError.log".
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'C:\Users\XXX\Documents\depthai-core\CMakeLists.txt' exited with code 1.
8>Done building project "depthai-core.vcxproj" -- FAILED.
9>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
9>Building Custom Rule C:/Users/XXX/Documents/depthai-core/CMakeLists.txt
9>CMake is re-running because C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/generate.stamp is out-of-date.
9> the file 'C:/Users/XXX/Documents/depthai-core/build/_3rdParty/Hunter/config-id/config.cmake.NOLF'
9> is newer than 'C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/generate.stamp.depend'
9> result='-1'
9>-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19043.
9>-- [hunter] Calculating Toolchain-SHA1
9>-- [hunter] Calculating Config-SHA1
9>-- [hunter] HUNTER_ROOT: C:/.hunter
9>-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: afec2cd | Config-ID: 05fa1a3 ]
9>-- [hunter] NLOHMANN_JSON_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 3.9.1)
9>-- [hunter] XLINK_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: luxonis-2021.3-develop)
9>-- [hunter] BZIP2_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.0.8-p0)
9>-- [hunter] FP16_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: luxonis-0.0.0)
9>-- [hunter] LIBARCHIVE-LUXONIS_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 3.4.2-p2)
9>-- [hunter] SPDLOG_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.8.2)
9>-- [hunter] ZLIB_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.2.11-p1)
9>-- [hunter] BACKWARD_ROOT: C:/.hunter/_Base/062a19a/afec2cd/05fa1a3/Install (ver.: 1.6)
9>-- Compiling depthai-core resources in PATCH_ONLY mode
9>-- Downloading Depthai device side binaries from server...
9>-- Downloading depthai and patch
9>-- commit: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039
9>-- File already downloaded (resources): depthai-shared-commit-hash-48cf187bb144bd5867c78bf17178e9e050b7167c.txt
9>-- depthai-shared between device and host MATCH!. (device: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039, host: c2a6034578d1dbf1cde70ad7e8f0f01ae75cc039
9>-- Downloading and checking depthai-device-fwp.tar.xz
9>-- File already downloaded (resources): depthai-device-fwp-48cf187bb144bd5867c78bf17178e9e050b7167c.tar.xz
9>-- Downloading depthai bootloader
9>-- folder: C:/Users/XXX/Documents/depthai-core/build/resources
9>-- maturity: release
9>-- commit_version_arg: 0.0.15
9>-- bootloader shared commit: 126f344155346836a6a2d67b0993c161b6b48729
9>-- File already downloaded (resources): depthai-bootloader-shared-commit-hash-0.0.15.txt
9>-- depthai-bootloader-shared between device and host MATCH!. (device: 126f344155346836a6a2d67b0993c161b6b48729, host: 126f344155346836a6a2d67b0993c161b6b48729
9>-- Downloading and checking depthai-bootloader-fwp.tar.xz
9>-- File already downloaded (resources): depthai-bootloader-fwp-0.0.15.tar.xz
9>-- LIST OF RESOURCE COMPILED FILES: C:/Users/XXX/Documents/depthai-core/build/resources/depthai-device-fwp-48cf187bb144bd5867c78bf17178e9e050b7167c.tar.xz;C:/Users/XXX/Documents/depthai-core/build/resources/depthai-bootloader-fwp-0.0.15.tar.xz
9>-- ClangFormat: clang-format not found! Target 'clangformat' not available...
9>-- OpenCV or required libraries (opencv_core;opencv_imgproc) not found. OpenCV Support disabled
9>CMake Error at examples/CMakeLists.txt:5 (find_package):
9> By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
9> asked CMake to find a package configuration file provided by "OpenCV", but
9> CMake did not find one.
9>
9> Could not find a package configuration file provided by "OpenCV" with any
9> of the following names:
9>
9> OpenCVConfig.cmake
9> opencv-config.cmake
9>
9> Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
9> "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
9> provides a separate development package or SDK, be sure it has been
9> installed.
9>
9>
9>-- Configuring incomplete, errors occurred!
9>See also "C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeOutput.log".
9>See also "C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeError.log".
9>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'C:\Users\XXX\Documents\depthai-core\CMakeLists.txt' exited with code 1.
9>Done building project "ALL_BUILD.vcxproj" -- FAILED.
10>------ Skipped Build: Project: INSTALL, Configuration: Debug x64 ------
10>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 4 failed, 0 up-to-date, 6 skipped ==========
The system is: Windows - 10.0.19043 - AMD64
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2021-10-15 3:24:27 PM.
Project "C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\3.21.3\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /external:W0 /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
CompilerIdCXX.vcxproj -> C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\3.21.3\CompilerIdCXX\CompilerIdCXX.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Done Building Project "C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\3.21.3\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.01
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"
The CXX compiler identification is MSVC, found in "C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/3.21.3/CompilerIdCXX/CompilerIdCXX.exe"
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2021-10-15 3:24:29 PM.
Project "C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\3.21.3\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /external:W0 /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
CompilerIdC.vcxproj -> C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\3.21.3\CompilerIdC\CompilerIdC.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\3.21.3\CompilerIdC\CompilerIdC.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.49
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"
The C compiler identification is MSVC, found in "C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/3.21.3/CompilerIdC/CompilerIdC.exe"
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_6eacb.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CMakeCXXCompilerABI.cpp
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_6eacb.dir\Debug\\" /Fd"cmTC_6eacb.dir\Debug\vc142.pdb" /external:W3 /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.21\Modules\CMakeCXXCompilerABI.cpp"
cmTC_6eacb.vcxproj -> C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\CMakeTmp\Debug\cmTC_6eacb.exe
Detecting C compiler ABI info compiled with the following output:
Change Dir: C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_2ce60.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CMakeCCompilerABI.c
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_2ce60.dir\Debug\\" /Fd"cmTC_2ce60.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.21\Modules\CMakeCCompilerABI.c"
cmTC_2ce60.vcxproj -> C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\CMakeTmp\Debug\cmTC_2ce60.exe
Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/Users/XXX/Documents/depthai-core/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_3f38e.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CheckIncludeFile.c
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D cmTC_3f38e_EXPORTS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_3f38e.dir\Debug\\" /Fd"cmTC_3f38e.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c"
C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Users\XXX\Documents\depthai-core\build\CMakeFiles\CMakeTmp\cmTC_3f38e.vcxproj]
cmake --build . --parallel
...
Scanning dependencies of target depthai
[ 82%] Building CXX object CMakeFiles/depthai.dir/src/DataQueueBindings.cpp.o
[ 82%] Building CXX object CMakeFiles/depthai.dir/src/DeviceBootloaderBindings.cpp.o
[ 84%] Building CXX object CMakeFiles/depthai.dir/src/pipeline/PipelineBindings.cpp.o
[ 85%] Building CXX object CMakeFiles/depthai.dir/src/pipeline/NodeBindings.cpp.o
[ 87%] Building CXX object CMakeFiles/depthai.dir/src/py_bindings.cpp.o
[ 88%] Building CXX object CMakeFiles/depthai.dir/src/XLinkConnectionBindings.cpp.o
[ 90%] Building CXX object CMakeFiles/depthai.dir/src/DatatypeBindings.cpp.o
[ 92%] Building CXX object CMakeFiles/depthai.dir/src/DeviceBindings.cpp.o
[ 93%] Building CXX object CMakeFiles/depthai.dir/src/pipeline/CommonBindings.cpp.o
[ 95%] Building CXX object CMakeFiles/depthai.dir/src/openvino/OpenVINOBindings.cpp.o
[ 96%] Building CXX object CMakeFiles/depthai.dir/src/log/LogBindings.cpp.o
[ 98%] Building CXX object CMakeFiles/depthai.dir/src/pipeline/AssetManagerBindings.cpp.o
[100%] Linking CXX shared module depthai.cpython-38-x86_64-linux-gnu.so
lto1: internal compiler error: in add_symbol_to_partition_1, at lto/lto-partition.c:155
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/depthai.dir/build.make:257: depthai.cpython-38-x86_64-linux-gnu.so] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:74: CMakeFiles/depthai.dir/all] Fehler 2
make: *** [Makefile:130: all] Fehler 2
cmake --version
cmake version 3.13.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).
gcc --version
gcc (Debian 8.3.0-6) 8.3.0
On RPi, after running sudo apt upgrade
, you might get the error realloc(): invalid pointer\n Aborted
when importing cv2 after depthai library. We have observed the same, and are just creating this issue for google-bility.
Downgrade libc6, running sudo apt install libc6=2.28-10+rpi1
or re-installing dependencies sudo curl -fL http://docs.luxonis.com/_static/install_dependencies.sh | bash
As far as I can tell, the library does not use any namespaces for its classes. Since some of the classes have very generic names (e.g. "Device"), this can easily lead to collisions when included in other projects. I've seen the "dai" namespace being used in some places, but please consider using this everywhere.
Hi. ctest is failing on the unchanged develop branch 9719f55 😬
I don't see instructions in this repo on how to run the unit tests.
I set DEPTHAI_BUILD_TESTS=ON
, config, debug build, and then ctest -j15 -C Debug -T test --output-on-failure
Is this project's ctest working? if so, what part of above setup needs to be changed?
Or should I ignore ctest and just submit PRs? I sure would like to have unit tests before I submit😉
[ctest] Site: DALE-XMG
[ctest] Build name: Win32-ninja
[ctest] Test project C:/njs/depthai-core/build
[ctest] Start 1: color_camera_node_test
[ctest] Start 4: neural_network_test
[ctest] Start 2: image_manip_node_test
[ctest] Start 3: pipeline_test
[ctest] 1/4 Test #3: pipeline_test .................... Passed 0.76 sec
[kit] OK running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat amd64 10.0.19041.0, env vars: [["CL",""],["_CL_",""],["INCLUDE","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\ATLMFC\\include;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\um;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\cppwinrt"],["LIBPATH","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\ATLMFC\\lib\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\lib\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\lib\\x86\\store\\references;C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319"],["LINK",""],["_LINK_",""],["LIB","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\ATLMFC\\lib\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\um\\x64"],["PATH","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\\\Extensions\\Microsoft\\IntelliCode\\CLI;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX64\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Team Tools\\Performance Tools\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Team Tools\\Performance Tools;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Common\\VSPerfCollectionTools\\vs2019\\\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Common\\VSPerfCollectionTools\\vs2019\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\devinit;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.19041.0\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\\\MSBuild\\Current\\Bin;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\libnvvp;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2019.4.0\\;;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Users\\dale\\AppData\\Local\\Microsoft\\WindowsApps;C:\\njs\\wslgit;;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\Llvm\\x64\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe"],["TMP","C:\\Users\\dale\\AppData\\Local\\Temp"],["FRAMEWORKDIR","C:\\Windows\\Microsoft.NET\\Framework64\\"],["FRAMEWORKDIR64","C:\\Windows\\Microsoft.NET\\Framework64\\"],["FRAMEWORKVERSION","v4.0.30319"],["FRAMEWORKVERSION64","v4.0.30319"],["UCRTCONTEXTROOT",""],["UCRTVERSION","10.0.19041.0"],["UNIVERSALCRTSDKDIR","C:\\Program Files (x86)\\Windows Kits\\10\\"],["VCINSTALLDIR","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\"],["VCTARGETSPATH",""],["WINDOWSLIBPATH","C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0"],["WINDOWSSDKDIR","C:\\Program Files (x86)\\Windows Kits\\10\\"],["WINDOWSSDKLIBVERSION","10.0.19041.0\\"],["WINDOWSSDKVERSION","10.0.19041.0\\"],["VISUALSTUDIOVERSION","16.0"]]
[ctest] 2/4 Test #1: color_camera_node_test ........... Passed 3.53 sec
[ctest] 3/4 Test #2: image_manip_node_test ............***Failed 5.11 sec
[ctest]
[ctest] 4/4 Test #4: neural_network_test ..............***Failed 8.05 sec
[ctest] [14442C10C1A1C6D200] [2.375] [NeuralNetwork(2)] [warning] Network compiled for 6 shaves, maximum available 16, compiling for 8 shaves likely will yield in better performance
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest]
[ctest] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ctest] neural_network_test.exe is a Catch v2.11.0 host application.
[ctest] Run with -? for options
[ctest]
[ctest] -------------------------------------------------------------------------------
[ctest] Neural network node data checks
[ctest] -------------------------------------------------------------------------------
[ctest] ..\tests\src\neural_network_test.cpp(41)
[ctest] ...............................................................................
[ctest]
[ctest] ..\tests\src\neural_network_test.cpp(98): FAILED:
[ctest] REQUIRE( receivedLogMessage == false )
[ctest] with expansion:
[ctest] 1 == false
[ctest]
[ctest] ===============================================================================
[ctest] test cases: 1 | 0 passed | 1 failed
[ctest] assertions: 121 | 120 passed | 1 failed
[ctest]
[ctest]
[ctest]
[ctest] 50% tests passed, 2 tests failed out of 4
[ctest]
[ctest] Total Test time (real) = 8.11 sec
[ctest]
[ctest] The following tests FAILED:
[ctest] 2 - image_manip_node_test (Failed)
[ctest] 4 - neural_network_test (Failed)
[ctest] Errors while running CTest
[ctest] CTest finished with return code 8
[extension] [7631] cmake.ctest finished (returned 8)
DepthAI sporadically fails starting stereo modules device with
terminate called after throwing an instance of 'std::logic_error'
what(): Stream: __rpc_main isn't opened.
using gen2 pipeline https://github.com/luxonis/depthai-core/tree/gen2_develop
The device can start without problems most of the time just by restarting the pipeline.
While churning today to get ctest working, I encountered multiple times the ctest suite of tests reporting that tests Passed, yet they actually failed. I was able to capture the most recent test run in which this occurred.
[proc] Executing command: ctest -j1 -C Debug -T test --output-on-failure
[ctest] Site: DALE-XMG
[ctest] Build name: Win32-ninja
[ctest] Test project C:/njs/depthai-core/build
[ctest] Start 1: color_camera_node_test
[kit] OK running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat amd64 10.0.19041.0, env vars: [["CL",""],["_CL_",""],["INCLUDE","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\ATLMFC\\include;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\um;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\cppwinrt"],["LIBPATH","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\ATLMFC\\lib\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\lib\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\lib\\x86\\store\\references;C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319"],["LINK",""],["_LINK_",""],["LIB","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\ATLMFC\\lib\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\um\\x64"],["PATH","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\\\Extensions\\Microsoft\\IntelliCode\\CLI;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX64\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Team Tools\\Performance Tools\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Team Tools\\Performance Tools;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Common\\VSPerfCollectionTools\\vs2019\\\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Common\\VSPerfCollectionTools\\vs2019\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\devinit;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.19041.0\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\\\MSBuild\\Current\\Bin;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\libnvvp;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2019.4.0\\;;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Users\\dale\\AppData\\Local\\Microsoft\\WindowsApps;C:\\njs\\wslgit;;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\Llvm\\x64\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe"],["TMP","C:\\Users\\dale\\AppData\\Local\\Temp"],["FRAMEWORKDIR","C:\\Windows\\Microsoft.NET\\Framework64\\"],["FRAMEWORKDIR64","C:\\Windows\\Microsoft.NET\\Framework64\\"],["FRAMEWORKVERSION","v4.0.30319"],["FRAMEWORKVERSION64","v4.0.30319"],["UCRTCONTEXTROOT",""],["UCRTVERSION","10.0.19041.0"],["UNIVERSALCRTSDKDIR","C:\\Program Files (x86)\\Windows Kits\\10\\"],["VCINSTALLDIR","C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\"],["VCTARGETSPATH",""],["WINDOWSLIBPATH","C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0"],["WINDOWSSDKDIR","C:\\Program Files (x86)\\Windows Kits\\10\\"],["WINDOWSSDKLIBVERSION","10.0.19041.0\\"],["WINDOWSSDKVERSION","10.0.19041.0\\"],["VISUALSTUDIOVERSION","16.0"]]
[ctest] 1/22 Test #1: color_camera_node_test .............. Passed 3.45 sec
[ctest] Start 2: image_manip_node_test
[ctest] 2/22 Test #2: image_manip_node_test ............... Passed 3.38 sec
[ctest] Start 3: pipeline_test
[ctest] 3/22 Test #3: pipeline_test ....................... Passed 0.50 sec
[ctest] Start 4: neural_network_test
[ctest] 4/22 Test #4: neural_network_test .................***Failed 7.08 sec
[ctest] [14442C10C1A1C6D200] [4.903] [NeuralNetwork(2)] [warning] Network compiled for 6 shaves, maximum available 16, compiling for 8 shaves likely will yield in better performance
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest] 0
[ctest] 1
[ctest] 2
[ctest] 3
[ctest]
[ctest] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ctest] neural_network_test.exe is a Catch v2.11.0 host application.
[ctest] Run with -? for options
[ctest]
[ctest] -------------------------------------------------------------------------------
[ctest] Neural network node data checks
[ctest] -------------------------------------------------------------------------------
[ctest] ..\tests\src\neural_network_test.cpp(41)
[ctest] ...............................................................................
[ctest]
[ctest] ..\tests\src\neural_network_test.cpp(98): FAILED:
[ctest] REQUIRE( receivedLogMessage == false )
[ctest] with expansion:
[ctest] 1 == false
[ctest]
[ctest] ===============================================================================
[ctest] test cases: 1 | 0 passed | 1 failed
[ctest] assertions: 121 | 120 passed | 1 failed
[ctest]
[ctest]
[ctest] Start 5: camera_preview
[ctest] 5/22 Test #5: camera_preview ...................... Passed 5.06 sec
[ctest] Start 6: camera_video
[ctest] 6/22 Test #6: camera_video ........................ Passed 5.12 sec
[ctest] Start 7: mono_camera
[ctest] 7/22 Test #7: mono_camera ......................... Passed 5.06 sec
[ctest] Start 8: camera_mobilenet
[ctest] 8/22 Test #8: camera_mobilenet .................... Passed 5.06 sec
[ctest] Start 9: webcam_mobilenet
[ctest] 9/22 Test #9: webcam_mobilenet .................... Passed 5.09 sec
[ctest] Start 10: mjpeg_encoding
[ctest] 10/22 Test #10: mjpeg_encoding ...................... Passed 5.05 sec
[ctest] Start 11: h264_encoding
[ctest] 11/22 Test #11: h264_encoding ....................... Passed 5.06 sec
[ctest] Start 12: stereo
[ctest] 12/22 Test #12: stereo .............................. Passed 5.07 sec
[ctest] Start 13: image_manip
[ctest] 13/22 Test #13: image_manip ......................... Passed 5.08 sec
[ctest] Start 14: image_manip_warp
[ctest] 14/22 Test #14: image_manip_warp .................... Passed 5.06 sec
[ctest] Start 15: color_camera_control
[ctest] 15/22 Test #15: color_camera_control ................ Passed 5.08 sec
[ctest] Start 16: system_information
[ctest] 16/22 Test #16: system_information .................. Passed 5.07 sec
[ctest] Start 17: device_queue_event
[ctest] 17/22 Test #17: device_queue_event .................. Passed 5.06 sec
[ctest] Start 18: opencv_support
[ctest] 18/22 Test #18: opencv_support ...................... Passed 5.06 sec
[ctest] Start 19: mobilenet_device_side_decoding
[ctest] 19/22 Test #19: mobilenet_device_side_decoding ...... Passed 5.05 sec
[ctest] Start 20: tiny_yolo_v3_device_side_decoding
[ctest] 20/22 Test #20: tiny_yolo_v3_device_side_decoding ... Passed 5.08 sec
[ctest] Start 21: tiny_yolo_v4_device_side_decoding
[ctest] 21/22 Test #21: tiny_yolo_v4_device_side_decoding ... Passed 5.07 sec
[ctest] Start 22: camera_mobilenet_sync
[ctest] 22/22 Test #22: camera_mobilenet_sync ............... Passed 5.07 sec
[ctest]
[ctest] 95% tests passed, 1 tests failed out of 22
[ctest]
[ctest] Total Test time (real) = 105.75 sec
[ctest]
[ctest] The following tests FAILED:
[ctest] 4 - neural_network_test (Failed)
[ctest] Errors while running CTest
[ctest] CTest finished with return code 8
[extension] [7565] cmake.ctest finished (returned 8)
Failure reports when the tests are unable to communicate with camera, render UI, etc.
Is there a way to get a point cloud out of the depthai-core interface? None of the examples showed how to do that.
Hi, I am trying to integrate compiled dynamic libraries into a project in Xcode based on openframeworks. But I run into a wall, as the compiler cant find the XLinkPublicDefines.h, included in the XLinkConnection.h file (#include <XLink/XLinkPublicDefines.h>
) Can you may help me how to procede? What details of information do you need from me, in order to help me?
The following error is produced when attempting to use a custom yolov4-tiny NN model with a non-square aspect ratio (e.g. 640x352):
[14442C1041155FD700] [255.697] [system] [critical] Fatal error. Please report to developers. Log: 'PlgDetectionParser' '108'
Luxonis-Martin on the Discord explained that it's not currently supported, but that I can open an issue to request it.
Thanks and best regards.
Hi,
Thank you for your work.
I have seen in the documentation the getImuToCameraExtrinsics and getCameraToImuExtrinsics functions. I have tried to use them in a similar way to the getCameraExtrinsics functions in the example code https://github.com/luxonis/depthai-core/blob/main/examples/src/calibration_reader.cpp. But I get the following error: segmentation fault ('Core' dump).
If someone could help me I would really appreciate it. Thank you very much
Cheers,
Jose
Added "add_subdirectory(depthai-core EXCLUDE_FROM_ALL)" to 2nd line in RTAB-Map CMakelists.
Depthai builds fine as is as a static lib. Using that from rtabmap Ive tried symlinking to the depthai and adding it as a subfolder as above. Didnt work.
/rtabmap/corelib/src/../include/rtabmap/core/camera/CameraDepthAI.h:40:10: fatal error: 'depthai/depthai.hpp' file not found
#include <depthai/depthai.hpp>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Previously I built depthai-core then added manual overides on the cmake invocation
cmake -Dnlohmann_json_DIR="/home/m/external-source/depthai-core/build/install/lib/cmake/nlohmann_json" -DXLink_DIR="/home/m/external-source/depthai-core/build/install/lib/cmake/XLink" -Ddepthai-core_DIR="/home/m/external-source/depthai-core/build/install/lib/cmake/depthai" -DWITH_GTSAM=OFF -DWITH_DEPTHAI=ON ..
Which used to work... but not anymore the linking fails
/usr/bin/ld: cannot find -lBZip2::bz2
/usr/bin/ld: cannot find -lFP16::fp16
/usr/bin/ld: cannot find -larchive_static
/usr/bin/ld: cannot find -lspdlog::spdlog
Which raises the question - how is another project with complex cmakelists like rtabmap suppose to use depthai?
Considering depthai is static how do I include the static lib and include into rtabmap so it finds the packages? Currently depthai is installed under build/install and cmake cant find it which lead to the manual directory hackery.
as you may have gathered Im not a cmake expert.
CMake Error at CMakeLists.txt:60 (add_library):
Cannot find source file:
/home/jhurliman/Code/depthai-core/shared/depthai-shared/src/general/data_writer.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc
CMake Error at CMakeLists.txt:60 (add_library):
No SOURCES given to target: depthai-core
Hello,
I'm trying to build the example project provided in the repo. I can build and install the depthai-core with out any build issues.
Here are the build logs:
dvb@garuda ~/d/e/build (develop)> cmake ..
-- The CXX compiler identification is GNU 10.1.0
-- 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
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/dvb/.hunter
-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: eeacf38 | Config-ID: 5a9137c ]
-- [hunter] NLOHMANN_JSON_ROOT: /home/dvb/.hunter/_Base/062a19a/eeacf38/5a9137c/Install (ver.: 3.8.0)
-- Found nlohmann_json: /home/dvb/.hunter/_Base/062a19a/eeacf38/5a9137c/Install/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.8.0")
-- [hunter] NLOHMANN_JSON_SCHEMA_VALIDATOR_ROOT: /home/dvb/.hunter/_Base/062a19a/eeacf38/5a9137c/Install (ver.: 2.1.1)
-- [hunter] XLINK_ROOT: /home/dvb/.hunter/_Base/062a19a/eeacf38/5a9137c/Install (ver.: luxonis-2020.2)
-- [hunter] BZIP2_ROOT: /home/dvb/.hunter/_Base/062a19a/eeacf38/5a9137c/Install (ver.: 1.0.8-p0)
-- [hunter] BOOST_ROOT: /home/dvb/.hunter/_Base/062a19a/eeacf38/5a9137c/Install (ver.: 1.72.0-p0)
-- Boost version: 1.72.0
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Compiling depthai-core resources in PATCH_ONLY mode
-- Downloading Depthai device side binaries from server...
-- Downloading depthai and patch
-- Downloading and checking depthai.cmd
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- Downloading and checking depthai-usb2-patch.patch
-- [download 28% complete]
-- [download 95% complete]
-- [download 100% complete]
-- LIST OF RESOURCES: /home/dvb/depthai-core/example/build/depthai-core/resources/depthai.cmd;/home/dvb/depthai-core/example/build/depthai-core/resources/depthai-usb2-patch.patch
-- Check for working incbin assembly directive
-- Check for working incbin assembly directive - works
-- The C compiler identification is GNU 10.1.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
-- Configuring done
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_C_COMPILE_OBJECT
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Can some one point me to the right direction to solve this issue..
Helo everybody.
I finally managed to compile my project inside the codeblocks.
Apparently, all depthai-core dependency libraries have been properly compiled and installed.
After a good spanking, my program finally finds libdepthai-core.so.
So I took the example given in: depthai-core / examples / src / camera_video_example.cpp.
However, when I try to run it bursts on the line “dai :: Device d (p);”.
With the following error: "Segmentation fault".
I have already enabled the Raspberry pi 3 camera interface.
3D camera on and connected via USB.
I keep trying to solve it.
Any tips on what could be the problem?
Thanks.
why
:"Discoverability" is important for allowing customers to implement unaided and as it stands now our quick implementation of ISP controls from the host is not as 'discoverable' as it should be - meaning users have to trudge through .h files (or ask us for up) to figure out how to use some of the ISP controls.
how
:We can improve this by refactoring the ISP controls as described here.
what
:Re-implement bits of the ISP controls so they are more easily discoverable
and usable by customers.
why
:Many applications can make use of full-rate IMU output and our IMU (BNO085) is capable of quite high rates. As of now, we have an initial implementation that was done simply to be able to factory-test the onboard IMU prior to shipping.
how
:The fastest way to implement such high rates is to make use of the bulk USB endpoint (instead of an interrupt-based one), so we will be implementing in this way. And it sounds that many applications that need this information are fine with this output methodology.
what
:Make a bulk USB-endpoint IMU output node that supports the full rate output of the IMU.
All the example code provided with depthai-core (just downloaded) is working on my Windows 10 (latest). If I set a breakpoint anywhere, it correctly hits that breakpoint and I am able to inspect variables. I can even single step through the code. However, if I hit "Continue" the execution, it always fails. The error is below. It doesn't matter which example I choose to test with, hit a breakpoint and it is unable to continue execution.
Have you seen this before?
Bob Davies
Unhandled exception at 0x00007FFEC0A94ED9 in edge_detector.exe: Microsoft C++ exception: std::runtime_error at memory location 0x0000000B5C6FE5C8.
The location is here in DataQueue.hpp:
template <class T>
std::shared_ptr<T> get() {
if(!running) throw std::runtime_error(exceptionMessage.c_str()); <<<<<<<<<<<<<<<<<<running is false so exception
std::shared_ptr<ADatatype> val = nullptr; <<<<<<<<< next instruction...
if(!queue.waitAndPop(val)) {
throw std::runtime_error(exceptionMessage.c_str());
return nullptr;
}
return std::dynamic_pointer_cast<T>(val);
}
It also happens in tryGet, depending on the example app, with the same value for running (false.)
Would it make sense to add a method to pause or stop a loaded pipeline, i.e. the opposite operation of Device::startPipeline? Currently, the device must be closed and re-opened to start/stop a pipeline.
Perhaps an unrelated question to the above; but is it or will it be possible to switch between pipelines in the future without reopening the device?
error log here:
`
[ 98%] Building CXX object CMakeFiles/depthai-opencv.dir/src/opencv/ImgFrame.cpp.o
/home/marco/tmp/build/depthai-core/src/opencv/ImgFrame.cpp: In member function ‘cv::Mat dai::ImgFrame::getFrame(bool)’:
/home/marco/tmp/build/depthai-core/src/opencv/ImgFrame.cpp:42:20: error: ‘CV_16FC1’ was not declared in this scope; did you mean ‘CV_16SC1’?
42 | type = CV_16FC1;
| ^~~~~~~~
| CV_16SC1
/home/marco/tmp/build/depthai-core/src/opencv/ImgFrame.cpp:55:20: error: ‘CV_16FC3’ was not declared in this scope; did you mean ‘CV_16SC3’?
55 | type = CV_16FC3;
| ^~~~~~~~
| CV_16SC3
make[2]: *** [CMakeFiles/depthai-opencv.dir/build.make:63: CMakeFiles/depthai-opencv.dir/src/opencv/ImgFrame.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:274: CMakeFiles/depthai-opencv.dir/all] Error 2
`
If you clone this repo, run CMake, and build the resulting .sln, you will see an error. OpenCV has no CV_16FC1/C3 support and this code assumed it did. If you would like to give it a try, this code with show the error when running on Windows 10.
if exist depthai-core (rmdir depthai-core /s)
“c:\Program Files\Git\bin\git.exe” clone “GitHub - luxonis/depthai-core: DepthAI C++ Library”
cd depthai-core
git submodule update --init --recursive
cd ..
“C:\Program Files\CMake\bin\Cmake.exe” -DCMAKE_CONFIGURATION_TYPES=Debug;Release -DDEPTHAI_BUILD_EXAMPLES=ON -DOpenCV_DIR=…/opencv/Build -S depthai-core -B depthai-core/Build
msbuild.exe depthai-core/Build/depthai.sln /p:Configuration=Debug
msbuild.exe depthai-core/Build/depthai.sln /p:Configuration=Release
why
:Our customers (and we) have run into this sort of issue:
Any idea why 22 frames of depth are delivered ok followed by the camera disconnecting?
The problem in this case was that some outputs of the StereoDepth node were connected to XLink queues, but no reading from those queues took place, and they filled up. And by default the queues are configured as blocking (can't accept new packets when getting full) and this could lead to the device pipeline also blocking. No crash, but will stay stuck until the host takes action (which never happened).
Simply adding a line like d.getOutputQueue("rectified_left", 8, false)
has the effect of reconfiguring the queue as non-blocking (last parameter), and old packets would be overwritten when the queue gets full.
A solution here would be to not connect/link the unused outputs in the pipeline. For example if the rectified streams are not used, remove/comment out this code:
stereo->rectifiedLeft.link(xoutRectifL->input);
stereo->rectifiedRight.link(xoutRectifR->input);
Not connecting unused outputs also allows the DepthAI device to apply some performance/memory optimizations.
So we are wondering if we report a warning in case a queue gets full (especially if set as blocking, but not only), so to help diagnose situations like this? And maybe also make the log level configurable (or disable the log), if the logs would be frequent with a certain usage.
how
:First we gather all statistics from all queues (both device and host side):
Then we can:
what
:Implementation details are TBD at this point.
The interface class dai::Pipeline
has a variable of type std::shared_ptr<PipelineImpl>
.
It's not possible to get a pipeline which is guaranteed to be thread safe once returned from a function. As such, any driver which exposes dai::Pipeline
can't guarantee run-time consistency (and in some cases, even safety).
A failure case can be as simple as:
Recommendations:
dai::FrozenPipeline
which is only move constructible from a dai::Pipeline
dai::Pipeline
from dai::FrozenPipeline
(with different PipelineImpl
objects)dai::Device
works only on the frozen pipelineHi,
Using the ImageManipulation node with the video/still stream results in the following error:
Fatal error. Please report to developers. Log: 'ImageManipHelper' '60'
This occurs even if the ImgFrame::Type is set to NV12
Still images also cannot have a different resolution than video frames it seems, so one cannot adjust the image output resolution before encoding that way either.
Best regards,
oysstu
When a device is already connected and running some pipeline, other device can be booted but not connected after that.
Can be mitigated by specifying the device by id.
To be fixed soon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.