I have an ubuntu machine to run cura-build from the following doc.
Refer: https://github.com/Ultimaker/cura-build#ubuntulinux
My gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)
while running cmake command
I am getting this error,
~/ cura-build/build$ cmake …
cmake: /usr/lib64/tableausdk/libcurl.so.4: no version information available (required by cmake)
CMake Error at CMakeLists.txt:24 (get_filename_component):
get_filename_component unknown component CACHE
– Configuring incomplete, errors occurred!
See also “/cura-build/CMakeFiles/CMakeOutput.log”.
See also “/cura-build/CMakeFiles/CMakeError.log”.
In the CMakeError.log,
CMakeFiles/cmTC_2f3cc.dir/CheckSymbolExists.c.o: In function main': CheckSymbolExists.c:(.text+0x16): undefined reference to
pthread_create’
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_2f3cc.dir/build.make:97: recipe for target ‘cmTC_2f3cc’ failed
make[1]: *** [cmTC_2f3cc] Error 1
make[1]: Leaving directory '/cura-build/CMakeFiles/CMakeTmp’
Makefile:126: recipe for target ‘cmTC_2f3cc/fast’ failed
make: *** [cmTC_2f3cc/fast] Error 2
File /cura-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 also tried to compile gcc,
$ gcc -pthread
gcc: fatal error: no input files
compilation terminated.