You are not logged in.
Hey,
I'm trying to compile torcs (http://torcs.sourceforge.net/) from source and I'm getting an error.
make[3]: *** No rule to make target `/usr/include/x86_64-linux-gnu/bits/predefs.h', needed by `controlconfig.o'. Stop.I've successfully installed all the multilib packages (although, I don't see any predefs in the file list on any of the packages anyways).
Any help would be appreciated, thanks!
Last edited by pdexter (2012-10-23 01:42:55)
Offline
Regular torcs requires plib, however somehow the arch package for torcs does not require it. There must be some sort of workaround.
Specifically, torcs requires a dynamically loaded library version of plib which arch linux does not offer. I've tried adding -fPIC to the CFLAGS, CPPFLAGS, and CXXFLAGS to the configure of plib but no shared object files are generated.
I can neither run an already built version of torcs (requires shared object of plib) nor can I build it myself. The only thing I can do is run the arch packaged version of it. This is not an option however since I need to make changes to the source.
Offline
It has just been updated to version 1.3.4: https://projects.archlinux.org/svntogit … 923996a6ae
You can look at the PKGBUILD and friends: https://projects.archlinux.org/svntogit … ages/torcs
I see no magic here, but I know nothing about compiling ;P
Offline
Interesting, I'll take a look at these, thanks!
While it will be useful to look at this information, I am required to use torcs version 1.3.1. Reason being - there is a patch for torcs which adds certain capabilities, which I require for my work, that only works on 1.3.1 (I've tried it on others). I've also slightly modified the torcs source from what it used to be. I did this on an ubuntu machine but have recently switched to arch linux. I cannot figure out how to get either my plib problem (no shared object libraries), or my initial problem (the compilation error from above). If I could solve either of these I would be quite happy (for now at least, eventually I need to solve both of these issues).
I am very much dreading having to move to one of the ubuntu machines here to do the work.
Offline
PKGBUILDs for previous releases are available, but I'm not sure how much will it help: https://projects.archlinux.org/svntogit … ages/torcs
Offline
Solved. I'm a little embarrassed at the solution, but it had to do with me trying to run some code which was previously compiled on a i386 machine. This was killing the build process. Anyways, it seems this problem wasn't directly related to torcs (just mentioning this for anybody in the future with this problem).
Offline