Results 1 to 5 of 5

Thread: Error compiling Torcs

  1. #1

    Default Error compiling Torcs

    http://torcs.sourceforge.net/index.p...#linux-src-all

    Torcs 1.3.1

    I know that there is a packaged Torcs already avialable. I'm compiling Torcs for two reasons, a) So I can better understand compiling packages, so I can compile packages on my own in the future. b) Change target location of where the game is being installed. My first try failed with this:

    ./configure
    Code:
    checking for sin in -lm... no
    configure: error: Can't find libm. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject "torcs compilation problem"
    rm: cannot remove directory `conf23889.dir': Directory not empty
    I went on the Torcs channel on Freenode.net and the person there who was helping suggested that I try this:

    ./configure CFLAGS="-O2 -m64 -fPIC" CPPFLAGS="-O2 -fPIC" CXXFLAGS="-O2 -fPIC" LDFLAGS="-L/usr/lib64" ./configure --prefix=/usr --libdir=/lib64 --disable-xrandr --build=x86_64-suse-linux
    Code:
                                                                                                                            
    checking whether byte ordering is bigendian... unknown                                                                                                       
    configure: error: unknown endianness                                                                                                                         
    presetting ac_cv_c_bigendian=no (or yes) will help                                                                                                           
    rm: cannot remove directory `conf23109.dir': Directory not empty
    both failed for different reasons, the second one, the person helping me indicated to me that it was a autoconf bug @ http://torcs.sourceforge.net/index.p...id=3#linux-src. My current version installed:

    Code:
    comp1:/lib64 # rpm -qa autoconf
    autoconf-2.63-5.2.x86_64
    Any suggestions you can offer me would be graciously appreciated thank you very much =)

    openSuSE 11.2 x86_64

  2. #2

    Default Re: Error compiling Torcs

    Do the compilation as root.

    What is in the directory conf23109.dir? See whether you can remove its content manually, and continue.

    Torcs is a defective software, often crashes.

  3. #3

    Default Re: Error compiling Torcs

    Both commands were running as root when they both failed... :{ ... Any other suggestions?

  4. #4
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    1,770

    Default Re: Error compiling Torcs

    You don't need to run either "./configure" or "make" as root. Only "make install" needs root permission.

    Your problem seems to be missing glibc.
    Code:
    su
    zypper install glibc-devel
    openSUSE 12.3 (x86_64) with Kernel 3.7.10-1.16-desktop and KDE 4.11.2 on MacBook Pro
    Latest MS Windows version used: Win95

  5. #5

    Default Re: Error compiling Torcs

    Thanks, I remember that for future reference, I scrapped it for the windows version, and that worked out fine. Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •