Giter Club home page Giter Club logo

Comments (8)

sevhabert avatar sevhabert commented on May 10, 2024

can you show the full cmake generation text? I can not see any error before the configuring incomplete.

from openvino.

wanghanyang123 avatar wanghanyang123 commented on May 10, 2024

I have solved my issue, thank you. @SeverineH
But I have another question about these demos just run with python3?

from openvino.

wanghanyang123 avatar wanghanyang123 commented on May 10, 2024

When I cmake, there is a error about:

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/why/openvino/dldt/inference-engine/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_5a4da/fast"
/usr/bin/make -f CMakeFiles/cmTC_5a4da.dir/build.make CMakeFiles/cmTC_5a4da.dir/build
make[1]: Entering directory '/home/why/openvino/dldt/inference-engine/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5a4da.dir/CheckSymbolExists.c.o
/usr/bin/cc -fPIE -fPIC -Wformat -Wformat-security -fstack-protector-strong -fPIE -o CMakeFiles/cmTC_5a4da.dir/CheckSymbolExists.c.o -c /home/why/openvino/dldt/inference-engine/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_5a4da
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5a4da.dir/link.txt --verbose=1
/usr/bin/cc -fPIE -fPIC -Wformat -Wformat-security -fstack-protector-strong -rdynamic CMakeFiles/cmTC_5a4da.dir/CheckSymbolExists.c.o -o cmTC_5a4da
CMakeFiles/cmTC_5a4da.dir/CheckSymbolExists.c.o:在函数‘main’中:
CheckSymbolExists.c:(.text+0x1b):对‘pthread_create’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_5a4da.dir/build.make:86: recipe for target 'cmTC_5a4da' failed
make[1]: *** [cmTC_5a4da] Error 1
make[1]: Leaving directory '/home/why/openvino/dldt/inference-engine/build/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_5a4da/fast' failed
make: *** [cmTC_5a4da/fast] Error 2

File /home/why/openvino/dldt/inference-engine/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
}

And there is not setupvars.sh in the folder of <../inference-engine/bin>, so I could not set the environment variable.
@SeverineH

from openvino.

antonrom23 avatar antonrom23 commented on May 10, 2024

@wanghanyang123 , yes demos run with Python3. If I understand correctly you solved issue and can I close this issue?

from openvino.

sgriset avatar sgriset commented on May 10, 2024

When I cmake, there is a error about:

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/why/openvino/dldt/inference-engine/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_5a4da/fast"
/usr/bin/make -f CMakeFiles/cmTC_5a4da.dir/build.make CMakeFiles/cmTC_5a4da.dir/build
make[1]: Entering directory '/home/why/openvino/dldt/inference-engine/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5a4da.dir/CheckSymbolExists.c.o
/usr/bin/cc -fPIE -fPIC -Wformat -Wformat-security -fstack-protector-strong -fPIE -o CMakeFiles/cmTC_5a4da.dir/CheckSymbolExists.c.o -c /home/why/openvino/dldt/inference-engine/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_5a4da
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5a4da.dir/link.txt --verbose=1
/usr/bin/cc -fPIE -fPIC -Wformat -Wformat-security -fstack-protector-strong -rdynamic CMakeFiles/cmTC_5a4da.dir/CheckSymbolExists.c.o -o cmTC_5a4da
CMakeFiles/cmTC_5a4da.dir/CheckSymbolExists.c.o:在函数‘main’中:
CheckSymbolExists.c:(.text+0x1b):对‘pthread_create’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_5a4da.dir/build.make:86: recipe for target 'cmTC_5a4da' failed
make[1]: *** [cmTC_5a4da] Error 1
make[1]: Leaving directory '/home/why/openvino/dldt/inference-engine/build/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_5a4da/fast' failed
make: *** [cmTC_5a4da/fast] Error 2

File /home/why/openvino/dldt/inference-engine/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
}

And there is not setupvars.sh in the folder of <../inference-engine/bin>, so I could not set the environment variable.
@SeverineH

How did you solve this

from openvino.

Liujingxiu23 avatar Liujingxiu23 commented on May 10, 2024

@wanghanyang123 I confused how you solve the problem?

from openvino.

zongwave avatar zongwave commented on May 10, 2024

Hi, can anyone give some information on how to resolve the cmake failed with check "pthread" error?

I built openvino on Ubuntu 19.10

/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fa979.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_fa979.dir/CheckSymbolExists.c.o -o cmTC_fa979
/usr/bin/ld: CMakeFiles/cmTC_fa979.dir/CheckSymbolExists.c.o: in function main': CheckSymbolExists.c:(.text+0x1f): undefined reference to pthread_create'
collect2: error: ld returned 1 exit status

from openvino.

jgespino avatar jgespino commented on May 10, 2024

Closing, feel free to start a new issue if additional assistance is needed.

from openvino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.