![]() |
Compiling in Linux - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5) +--- Thread: Compiling in Linux (/showthread.php?tid=988) |
Compiling in Linux - davidMC1982 - 08-28-2008 Hi, This happens with both the SVN version and downloading the 05/08/08 source. Bullet compiled fine: Here's the output: Code: [david@localhost vdrift]$ scons This is on PCLinuxOS2007. All the libraries were installed from the repo. Any ideas? Thanks, David [/code] - joevenzon - 08-28-2008 Looks like the logging.h file was using a forward-declared class as a member in an STL container and my STL/compiler combo compiled that but not yours. Anyway, I removed all of the forward declarations and put the class definitions in order -- try updating to R2122 and see if that fixed it. - davidMC1982 - 09-01-2008 Thanks, all sorted now. I believe the initial compile problems may have been related to GCC 4.x because the project wouldn't build. I recompiled in GCC 3.3.6 and all was fine. - joevenzon - 09-01-2008 OK, glad you got it working. I compile with gcc 4.2.0 now, I think (I'm not at my dev comp right now), so I think that *should* have worked -- do you stil get errors with GCC 4.X? - davidMC1982 - 09-01-2008 With latest SVN release, yes, still problems. It appears to compile fine but doesn't link or whatever way round it goes. It errors out with undefined references to STD ![]() Compile with GCC3.3.6 and all is fine. Dave - alex25 - 09-01-2008 davidMC1982 Wrote:With latest SVN release, yes, still problems. It appears to compile fine but doesn't link or whatever way round it goes. It errors out with undefined references to STD you probably have a mixture of objects compiled with gcc 3 and 4 respectively. remove all the object files and try to recompile again with gcc 4 (the bullet library should also be compiled with the same gcc version). i have no problems compiling with gcc 4.3.1 on debian. --alex-- - joevenzon - 09-01-2008 You can run Code: scons --clean please help me,lib problems. - dalish - 10-03-2008 hello,i am new with linux,and i want to experience this game .my os type is linux (fedora9),i want to enjoy the lastest release of this game ,so i chose to compile from the source file.i download the source file , then tar -zxvf vdrift...(not full,just mean) cd vdrift..(not full) cd bullet-2.66 ./configure jam bulletcollision bulletmath cd .. scons but, problem occured. it shows: scons: Reading SConscript files ... Checking for C++ header file GL/gl.h... yes Checking for C++ header file GL/glu.h... yes Checking for C++ header file SDL/SDL.h... yes Checking for C++ header file SDL/SDL_image.h... yes Checking for C++ header file SDL/SDL_net.h... no You do not have the SDL/SDL_net.h headers installed. Exiting. can you help me? thank you very much! - joevenzon - 10-03-2008 You need to install the sdl-net library. I'm not familiar with fedora but the package should be available through your distribution's package manager as SDL_net or something similar. |