Menu

Linux compilation

2014-12-22
2014-12-23
  • Ricardo Pérez

    Ricardo Pérez - 2014-12-22

    Hi!

    How can I compile libtheoraplayer for Linux?

    I do the following:

    $ cd libtheoraplayer
    $ cmake .
    $ make

    And I got the following error message:

    [  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
  • Krešimir Špes

    Krešimir Špes - 2014-12-23

    check the latest svn trunk, I believe I've solved the compilation issues

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.