frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Toolkit installation error

I am getting the following error in couple of machines that I tried to install the toolkit. Could you please let me know how to fix this error?

-- Found Atlas: /usr/include
-- Found Atlas (include: /usr/include library: /usr/lib/libatlas.so lapack: /usr/lib/liblapack.so
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.4.3", minimum required is "3.0")
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "3.0")
-- Found NumPy: /usr/local/lib/python3.4/dist-packages/numpy/core/include (found suitable version "1.13.1", minimum required is "1.7.1")
-- NumPy ver. 1.13.1 found (include: /usr/local/lib/python3.4/dist-packages/numpy/core/include)
CMake Error at cmake/Dependencies.cmake:148 (STRING):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:46 (include)

-- Could NOT find Boost
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- python
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.6")
-- Python interface is disabled or not all required dependencies found. Building without it...
-- Detected Doxygen OUTPUT_DIRECTORY: ./doxygen/

-- Found Git: /usr/bin/git (found version "1.9.1")

-- ******************* Caffe Configuration Summary *******************
-- General:
-- Version : 1.0.0
-- Git : 1.0-dirty
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized

-- Build type : Release

-- BUILD_SHARED_LIBS : ON
-- BUILD_python : ON
-- BUILD_matlab : OFF
-- BUILD_docs : ON
-- CPU_ONLY : ON
-- USE_OPENCV : ON
-- USE_LEVELDB : ON
-- USE_LMDB : ON
-- USE_NCCL : OFF

-- ALLOW_LMDB_NOLOCK : OFF

-- Dependencies:
-- BLAS : Yes (Atlas)
-- Boost : Yes (ver. 1.58)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 2.5.0)
-- lmdb : Yes (ver. 0.9.10)
-- LevelDB : Yes (ver. 1.15)
-- Snappy : Yes (ver. 1.1.0)
-- OpenCV : Yes (ver. 2.4.8)

-- CUDA : No

-- Documentaion:
-- Doxygen : /usr/bin/doxygen (1.8.6)

-- config_file : /opt/movidius/caffe/.Doxyfile

-- Install:

-- Install path : /opt/movidius/caffe/build/install

CMake Warning (dev) in src/caffe/CMakeLists.txt:
Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
interface. Run "cmake --help-policy CMP0022" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

Target "caffe" has an INTERFACE_LINK_LIBRARIES property which differs from
its LINK_INTERFACE_LIBRARIES properties.

INTERFACE_LINK_LIBRARIES:

proto;/usr/local/lib/libboost_system.so;/usr/local/lib/libboost_thread.so;/usr/local/lib/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libglog.so;/usr/lib/x86_64-linux-gnu/libgflags.so;$<$<NOT:$<CONFIG:DEBUG>>:/usr/lib/x86_64-linux-gnu/libprotobuf.so>;$<$<CONFIG:DEBUG>:/usr/lib/x86_64-linux-gnu/libprotobuf.so>;-lpthread;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/liblmdb.so;/usr/lib/x86_64-linux-gnu/libleveldb.so;opencv_core;opencv_highgui;opencv_imgproc;/usr/lib/liblapack.so;/usr/lib/libcblas.so;/usr/lib/libatlas.so

LINK_INTERFACE_LIBRARIES:

proto;/usr/local/lib/libboost_system.so;/usr/local/lib/libboost_thread.so;/usr/local/lib/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libglog.so;/usr/lib/x86_64-linux-gnu/libgflags.so;/usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/liblmdb.so;/usr/lib/x86_64-linux-gnu/libleveldb.so;opencv_core;opencv_highgui;opencv_imgproc;/usr/lib/liblapack.so;/usr/lib/libcblas.so;/usr/lib/libatlas.so

This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/opt/movidius/caffe/build/CMakeFiles/CMakeOutput.log".
See also "/opt/movidius/caffe/build/CMakeFiles/CMakeError.log".
Installation failed. Error on line 128

Comments

  • 6 Comments sorted by Votes Date Added
  • These are the last few lines of CMakeError.log file

    Building C object CMakeFiles/cmTryCompileExec588996707.dir/CheckSymbolExists.c.o
    /usr/bin/cc -o CMakeFiles/cmTryCompileExec588996707.dir/CheckSymbolExists.c.o -c /opt/movidius/caffe/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
    Linking C executable cmTryCompileExec588996707
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec588996707.dir/link.txt --verbose=1
    /usr/bin/cc CMakeFiles/cmTryCompileExec588996707.dir/CheckSymbolExists.c.o -o cmTryCompileExec588996707 -rdynamic
    CMakeFiles/cmTryCompileExec588996707.dir/CheckSymbolExists.c.o: In function

    main':
    CheckSymbolExists.c:(.text+0x16): undefined reference to
    pthread_create'
    collect2: error: ld returned 1 exit status
    make[1]: *** [cmTryCompileExec588996707] Error 1
    make[1]: Leaving directory `/opt/movidius/caffe/build/CMakeFiles/CMakeTmp'
    make: *** [cmTryCompileExec588996707/fast] Error 2

    File /opt/movidius/caffe/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
    /* */

    include <pthread.h>

    int main(int argc, char** argv)
    {
    (void)argv;

    ifndef pthread_create

    return ((int*)(&pthread_create))[argc];

    else

    (void)argc;
    return 0;

    endif

    }

    Determining if the function pthread_create exists in the pthreads failed with the following output:
    Change Dir: /opt/movidius/caffe/build/CMakeFiles/CMakeTmp

    Run Build Command:/usr/bin/make "cmTryCompileExec3083821348/fast"
    /usr/bin/make -f CMakeFiles/cmTryCompileExec3083821348.dir/build.make CMakeFiles/cmTryCompileExec3083821348.dir/build
    make[1]: Entering directory

    /opt/movidius/caffe/build/CMakeFiles/CMakeTmp'
    /usr/bin/cmake -E cmake_progress_report /opt/movidius/caffe/build/CMakeFiles/CMakeTmp/CMakeFiles 1
    Building C object CMakeFiles/cmTryCompileExec3083821348.dir/CheckFunctionExists.c.o
    /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec3083821348.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
    Linking C executable cmTryCompileExec3083821348
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3083821348.dir/link.txt --verbose=1
    /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec3083821348.dir/CheckFunctionExists.c.o  -o cmTryCompileExec3083821348 -rdynamic -lpthreads
    /usr/bin/ld: cannot find -lpthreads
    collect2: error: ld returned 1 exit status
    make[1]: *** [cmTryCompileExec3083821348] Error 1
    make[1]: Leaving directory
    /opt/movidius/caffe/build/CMakeFiles/CMakeTmp'
    make: *** [cmTryCompileExec3083821348/fast] Error 2
  • Which OS are you trying to install the toolkit on? The toolkit is designed to run on a computer with the Ubuntu Linux 16.04 LTS operating system.

  • I am installing it on Ubuntu 14.04. Is there any issue in installing it on Ubuntu 14.04?

  • @asvkarthick MvNC SDK is supported only on Ubuntu 16.04. There are quite a lot of dependency issues with 14.04, unless you are willing to manually find and install all dependencies, I recommend you move to a machine running Ubuntu 16.04.

  • Are later versions of Ubuntu going to be supported? Is it easy to install on 17.04?

  • @jwhitmore the reason we choose 16.04 is because of its LTS plan (5 years as stated by canonical). Is there a specific reason you want 17.04 (9 months as stated by canonical)?

Sign In or Register to comment.