You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found OpenCV: /usr (found suitable version "3.2.0", minimum required is "3.0")
-- Checking for modules 'gstreamer-1.0;gstreamer-app-1.0'
-- Found gstreamer-1.0, version 1.14.5
-- Found gstreamer-app-1.0, version 1.14.5
-- Checking for module 'libglog'
-- Found libglog, version 0.3.5
-- Checking for module 'eigen3'
-- Found eigen3, version 3.3.4
-- Checking for module 'libzmq'
-- Found libzmq, version 4.2.5
-- Found Boost: /usr/local/lib/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: date_time graph filesystem iostreams serialization system thread
-- Found JeMalloc: /usr/lib/x86_64-linux-gnu/libjemalloc.so
-- Checking for module 'jsoncpp'
-- Found jsoncpp, version 1.7.4
-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread (found version "3.0.0")
Cloning into '/media/data1/qiurui/reaserch/saf/3rdparty/nsync'...
fatal: unable to access 'https://github.com/google/nsync.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/google/nsync.git' into submodule path '/media/data1/qiurui/reaserch/saf/3rdparty/nsync' failed
Failed to clone '3rdparty/nsync'. Retry scheduled
Cloning into '/media/data1/qiurui/reaserch/saf/3rdparty/nsync'...
fatal: unable to access 'https://github.com/google/nsync.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/google/nsync.git' into submodule path '/media/data1/qiurui/reaserch/saf/3rdparty/nsync' failed
Failed to clone '3rdparty/nsync' a second time, aborting
CMake Error at 3rdparty/CMakeLists.txt:24 (add_subdirectory):
The source directory
/media/data1/qiurui/reaserch/saf/3rdparty/dlib
does not contain a CMakeLists.txt file.
CMake Error at 3rdparty/CMakeLists.txt:31 (add_subdirectory):
The source directory
/media/data1/qiurui/reaserch/saf/3rdparty/litesql
does not contain a CMakeLists.txt file.
-- Found Threads: TRUE
-- Found Boost: /usr/local/lib/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: program_options
-- Checking for module 'libgvc'
-- No package 'libgvc' found
-- Found Git: /usr/bin/git (found version "2.17.1")
--
-- ********************** SAF Configuration Summary **********************
-- General:
-- Git : 5bc296e-dirty
-- System : Linux
-- On Tegra : No
-- Compiler : /usr/bin/c++ (ver. 7.5.0)
-- Release CXX flags : -O3 -DNDEBUG
-- Debug CXX flags : -g
-- Build type :
-- Build tests : No
--
-- Options:
-- BACKEND : cpu
-- USE_CVSDK : No
-- USE_CAFFE : No
-- USE_FRCNN : No
-- USE_ISAAC : No
-- USE_KAFKA : No
-- USE_MQTT : No
-- USE_NCS : No
-- USE_PTGRAY : No
-- USE_PYTHON : No
-- USE_RPC : No
-- USE_SSD : No
-- USE_TENSORFLOW : No
-- USE_WEBSOCKET : No
-- USE_VDMS : No
-- USE_VIMBA : No
--
-- Frameworks:
-- Caffe : No
-- TensorFlow : No
--
-- Dependencies:
-- Boost : Yes (ver. 1.74, Boost::system)
-- OpenCV : Yes (ver. 3.2.0, /usr/include)
-- Eigen : Yes (ver. 3.3.4, /usr/include/eigen3)
-- GStreamer : Yes (ver. 1.14.5, gstapp-1.0;gstbase-1.0;gstreamer-1.0;gobject-2.0;glib-2.0)
-- glog : Yes (ver. 0.3.5, glog)
-- ZeroMQ : Yes (ver. 4.2.5, zmq)
-- VecLib : No
-- CUDA : No
-- Cnmem : No
-- OpenCL : No
-- Protobuf : Yes (ver. 3.0.0, /usr/lib/x86_64-linux-gnu/libprotobuf.so)
-- JeMalloc : Yes (/usr/lib/x86_64-linux-gnu/libjemalloc.so)
-- FlyCapture : No
-- Vimba : No
-- Python API : No
--
-- Install:
-- Install path : /usr/local
--
-- Configuring incomplete, errors occurred!
See also "/media/data1/qiurui/reaserch/saf/build/CMakeFiles/CMakeOutput.log".
See also "/media/data1/qiurui/reaserch/saf/build/CMakeFiles/CMakeError.log".
And in CMakeError.log, the content is:
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /media/data1/qiurui/reaserch/saf/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_4099f/fast && /usr/bin/make -f CMakeFiles/cmTC_4099f.dir/build.make CMakeFiles/cmTC_4099f.dir/build
make[1]: Entering directory '/media/data1/qiurui/reaserch/saf/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_4099f.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -o CMakeFiles/cmTC_4099f.dir/src.c.o -c /media/data1/qiurui/reaserch/saf/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_4099f
/home/Anaconda3/lib/python3.7/site-packages/cmake/data/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4099f.dir/link.txt --verbose=1
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_4099f.dir/src.c.o -o cmTC_4099f
CMakeFiles/cmTC_4099f.dir/src.c.o: In function `main':
src.c:(.text+0x3e): undefined reference to `pthread_create'
src.c:(.text+0x4a): undefined reference to `pthread_detach'
src.c:(.text+0x5b): undefined reference to `pthread_join'
src.c:(.text+0x6f): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_4099f.dir/build.make:86: recipe for target 'cmTC_4099f' failed
make[1]: *** [cmTC_4099f] Error 1
make[1]: Leaving directory '/media/data1/qiurui/reaserch/saf/build/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_4099f/fast' failed
make: *** [cmTC_4099f/fast] Error 2
Source file was:
#include <pthread.h>
void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /media/data1/qiurui/reaserch/saf/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_32661/fast && /usr/bin/make -f CMakeFiles/cmTC_32661.dir/build.make CMakeFiles/cmTC_32661.dir/build
make[1]: Entering directory '/media/data1/qiurui/reaserch/saf/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_32661.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE -o CMakeFiles/cmTC_32661.dir/CheckFunctionExists.c.o -c /home/Anaconda3/lib/python3.7/site-packages/cmake/data/share/cmake-3.15/Modules/CheckFunctionExists.c
Linking C executable cmTC_32661
/home/Anaconda3/lib/python3.7/site-packages/cmake/data/bin/cmake -E cmake_link_script CMakeFiles/cmTC_32661.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_32661.dir/CheckFunctionExists.c.o -o cmTC_32661 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_32661.dir/build.make:86: recipe for target 'cmTC_32661' failed
make[1]: *** [cmTC_32661] Error 1
make[1]: Leaving directory '/media/data1/qiurui/reaserch/saf/build/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_32661/fast' failed
make: *** [cmTC_32661/fast] Error 2
Sorry for my poor on CMake. I follow the instruction on README.md and install all dependencies, but still got this errors. Could you please give me some advice, thanks a lot!
The text was updated successfully, but these errors were encountered:
Which OS are you using?
Ubuntu 18.04. This issue has been solved, but this issue still confused me.
I build a image by Dockerfile, and it work on x86 architecture (should change default python to python3 in Dockerfile line 252, otherwise it will meet error when installing opencv-python), but for arm architecture (nvidia jetson nx), maybe it should change some command in Dockfile, such as change the version of openvino to arm version, and so on. So could you please give me some advice if i want to build a image on arm architecture.
It would be better if there are some documents about this project, and descriptions for each module. Thanks a lot!
Below is all
cmake ..
output information:And in CMakeError.log, the content is:
Sorry for my poor on CMake. I follow the instruction on README.md and install all dependencies, but still got this errors. Could you please give me some advice, thanks a lot!
The text was updated successfully, but these errors were encountered: