Forums
Build system - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: Build system (/showthread.php?tid=10)



Build system - thelusiv - 07-07-2005

The Linux automake build system for VDrift needs some work. Here are a few things that need to be done:- remove symlinks to a certain version of automake and instead replace them with scripts that find the right files regardless of the user's installed version of automake- add an install target so VDrift can be installed system wide- make the configure script check to make sure OpenGL headers are installed (currently it doesn't check; if they're not there the game will compile and link OK, but segfault when trying to initialize the GL stuff)- update all the build system related files with a new set from automake


Build system - joevenzon - 07-07-2005

- remove symlinks to a certain version of automake and instead replace them with scripts that find the right files regardless of the user's installed version of automakeDoes ./autogen.sh do this?- make the configure script check to make sure OpenGL headers are installed (currently it doesn't check; if they're not there the game will compile and link OK, but segfault when trying to initialize the GL stuff)Hmm, so if the OpenGL libraries are installed but the headers aren't, it segfaults? I can't imagine it would compile correctly without the OpenGL headers....


Build system - thelusiv - 07-08-2005

joevenzon Wrote:Does ./autogen.sh do this?
I'm not sure, but it seems likely that it might create those links. I'm not sure if there's a way to get it to do otherwise. When I'm less tired I might spend some time with the this? Well I finally got around to playing with it a little more. I added cout lines after a bunch of initialization stuff and found it crashed when it tried to initialize OpenGL. I then realized that I did not have the nvidia-glx-dev package installed but was able to run ./configure and make VDrift without any warnings whatsoever. I installed the package, recompiled and it worked.


Build system - joevenzon - 07-08-2005

Weeeird... I'm clueless.


Build system - thelusiv - 07-08-2005

Very weird, I agree. Perhaps the headers for something else are on my system, it has a built in Intel video card that I don't use...the headers are probably in the kernel source. I looked and the configure.in does seem to look for the GL libs.Running autogen.sh does recreate those symlinks. Maybe we just need to add that to the installation instructions for Linux. I will update the FAQ entry and that same text could be distributed as the contents of the INSTALL file so people will be able to find them in the source distribution and know what to do if their install-sh file's symlink is broken or something.Here's the section of the automake docs that talk about how to set up an install target. I think it could be easily set up, in Anjuta there is a tab under Project -> Configure Project where you can add to the end of the top level Makefile.am.It is also worth noting that Anjuta 2.0 is out now and it might have better/newer build system integrated than 1.2 (which is what I'm using) which might get rid of some of those errors we see while running autogen.sh.