[ 1%] Building CXX object CMakeFiles/theoraplayer.dir/theoraplayer/src/TheoraWorkerThread.cpp.o
/home/ricardo/src/libtheoraplayer/theoraplayer/src/TheoraWorkerThread.cpp: In member function ‘virtual void TheoraWorkerThread::execute()’:
/home/ricardo/src/libtheoraplayer/theoraplayer/src/TheoraWorkerThread.cpp:83:63: error: ‘sprintf’ was not declared in this scope
sprintf(name, "TheoraWorkerThread %d", threadCounter++);
^
/home/ricardo/src/libtheoraplayer/theoraplayer/src/TheoraWorkerThread.cpp:84:32: error: invalid conversion from ‘char*’ to ‘pthread_t {aka long unsigned int}’ [-fpermissive]
pthread_setname_np(name);
^
/home/ricardo/src/libtheoraplayer/theoraplayer/src/TheoraWorkerThread.cpp:84:32: error: too few arguments to function ‘int pthread_setname_np(pthread_t, const char*)’
In file included from /home/ricardo/src/libtheoraplayer/theoraplayer/include/theoraplayer/TheoraAsync.h:14:0,
from /home/ricardo/src/libtheoraplayer/theoraplayer/include/theoraplayer/TheoraWorkerThread.h:12,
from /home/ricardo/src/libtheoraplayer/theoraplayer/src/TheoraWorkerThread.cpp:46:
/usr/include/pthread.h:462:12: note: declared here
extern int pthread_setname_np (pthread_t __target_thread, const char *__name)
^
make[2]: *** [CMakeFiles/theoraplayer.dir/theoraplayer/src/TheoraWorkerThread.cpp.o] Error 1
make[1]: *** [CMakeFiles/theoraplayer.dir/all] Error 2
make: *** [all] Error 2
Any clues?
Thanks in advance!
Last edit: Ricardo Pérez 2014-12-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
How can I compile libtheoraplayer for Linux?
I do the following:
$ cd libtheoraplayer
$ cmake .
$ make
And I got the following error message:
Any clues?
Thanks in advance!
Last edit: Ricardo Pérez 2014-12-22
check the latest svn trunk, I believe I've solved the compilation issues