Comments (8)
can you show the full cmake generation text? I can not see any error before the configuring incomplete.
from openvino.
I have solved my issue, thank you. @SeverineH
But I have another question about these demos just run with python3?
from openvino.
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.
@wanghanyang123 , yes demos run with Python3. If I understand correctly you solved issue and can I close this issue?
from openvino.
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/CMakeTmpRun 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 2File /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.
@wanghanyang123 I confused how you solve the problem?
from openvino.
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.
Closing, feel free to start a new issue if additional assistance is needed.
from openvino.
Related Issues (20)
- Original ONNX/PTH/TF model based on an existing IR as in Open Model Zoo
- [Bug]: Pytorch model converted to openvino returns zeros on Intel GPU
- [Build]: get_input_tensor() must be called on a function with exactly one parameter HOT 5
- [Build]: Openvino inference with YoloV8 HOT 3
- [Good First Issue][TF FE]: Support complex tensors for AddN operation HOT 2
- [Good First Issue][TF FE]: Support complex tensors for BiasAdd operation HOT 2
- [Good First Issue][TF FE]: Support complex tensors for AddV2 operation HOT 2
- [Good First Issue][TF FE]: Support complex tensors for Equal operation HOT 3
- [Good First Issue][TF FE]: Support complex tensors for Sub operation HOT 4
- [Good First Issue][TF FE]: Support complex tensors for Cumsum operation HOT 9
- [Good First Issue][TF FE]: Support complex tensors for ExpandDims operation HOT 2
- [Good First Issue][TF FE]: Support complex tensors for Gather, GatherV2 operations HOT 2
- [Good First Issue][TF FE]: Support complex tensors for Inv operation HOT 14
- [Good First Issue][TF FE]: Support complex tensors for OnesLike operation HOT 13
- [Good First Issue][TF FE]: Support complex tensors for Pack operation HOT 5
- [Good First Issue][TF FE]: Support complex tensors for PadV2 operations HOT 12
- [Good First Issue][TF FE]: Support complex tensors for Rank operation HOT 3
- [Good First Issue][TF FE]: Support MatrixInverse operation for TensorFlow HOT 11
- [Good First Issue][TFL FE]: Support GELU operation for TensorFlow Lite HOT 5
- [Bug]: [GPU] ProgramBuilder build failed! HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvino.