Donate Share

TuxCap Games Framework

Subscribe

make error in Linux

  1. 2009-10-04 00:33:07 UTC

    I've gotten cmake working fine but it seems that one of the files is not written correctly. Here is the error I'm getting when I run make after a successful cmake.

    make
    Scanning dependencies of target tuxcap
    [ 1%] Building CXX object tuxcap/lib/CMakeFiles/tuxcap.dir/Ratio.o
    [ 1%] Building CXX object tuxcap/lib/CMakeFiles/tuxcap.dir/Buffer.o
    [ 2%] Building CXX object tuxcap/lib/CMakeFiles/tuxcap.dir/SexyAppBase.o
    [ 2%] Building CXX object tuxcap/lib/CMakeFiles/tuxcap.dir/MTRand.o
    In file included from /home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp:38:
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:13: error: ‘uint32t’ does not name a type
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:18: error: expected ‘)’ before ‘seed’
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:22: error: ‘uint32
    t’ has not been declared
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:23: error: ‘uint32t’ does not name a type
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:24: error: ‘uint32
    t’ does not name a type
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:25: error: ‘uint32t’ does not name a type
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:26: error: ‘uint32
    t’ does not name a type
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp:69: error: expected ‘)’ before ‘seed’
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp: In member function ‘void Sexy::MTRand::SRand(const std::string&)’:
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp:97: error: ‘mt’ was not declared in this scope
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp: At global scope:
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp:103: error: variable or field ‘SRand’ declared void
    /home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp:103: error: ‘uint32_t’ was not declared in this scope
    make[2]: *** [tuxcap/lib/CMakeFiles/tuxcap.dir/MTRand.o] Error 1
    make[1]: *** [tuxcap/lib/CMakeFiles/tuxcap.dir/all] Error 2
    make: *** [all] Error 2

    It seems uint32_t is not declared or something and it is throwing off the compiler. Anyone else have this problem or know how to fix it?

  2. 2009-10-04 01:19:00 UTC

    Turns out a few files where missing #include <stdint.h>. Adding that to MTRand.h and ImageLib.h has fixed the above problem but know I have an even more cryptic problem.


    [root@localhost tuxcap-build]# make [ 36%] Built target tuxcap Linking CXX executable ../../pythondemo1/Pythondemo1 ../lib/libtuxcap.so.4.0: undefined reference to forkpty' ../lib/libtuxcap.so.4.0: undefined reference toopenpty' collect2: ld returned 1 exit status make[2]: *** [tuxcap/pythondemo1/../../pythondemo1/Pythondemo1] Error 1 make[1]: *** [tuxcap/pythondemo1/CMakeFiles/../../pythondemo1/Pythondemo1.dir/all] Error 2 make: *** [all] Error 2


    I can't even open libtuxcap.so.4.0 to fix the problem because my text editor doesn't recognize the character encoding.

    what a mess.

  3. 2009-10-04 06:02:34 UTC

    Hi

    Check out the latest versions in the cvs repository, these problems have been fixed a while ago.

    libtuxcap.so.4.0 is a binary library file, don't edit it

    cheers WP

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.