Click to See Complete Forum and Search --> : flightgear config problem


Rickead2000
04-27-2003, 09:09 AM
Hi,

Had a similar problem with plib. I cannot ./configure SimGear.

I get this...

checking for glNewList in -lGLcore... no
checking for glNewList in -lGL... yes
checking for gluLookAt in -lGLU... yes
checking for glutGetModifiers in -lglut... no
checking for glutGameModeString in -lglut... no

Unable to find the necessary OpenGL or GLUT libraries.

I have glut installed to /usr/local/lib
I ran ./configure --with-GL=/usr/local/lib and this didnt help.

config.log said...

configure:6212: checking for glutGetModifiers in -lglut
configure:6239: gcc -o conftest -g -O2 -D_REENTRANT -I/usr/X11R6/include -L/usr/X11R6/lib conftest.c -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11
-lpthread -lm >&5
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXBindChannelToWindowSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXQueryChannelDeltasSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXChannelRectSyncSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXChannelRectSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXQueryChannelRectSGIX'
collect2: ld returned 1 exit status

Nobody else seems to have this problem, whats wrong??? please help!!!

MightyKC
07-09-2003, 05:55 PM
I have this problem, I can't ./configure plib.
Did you have any luck with it?

bwkaz
07-09-2003, 07:23 PM
(Re)compile glut from source.

The problem that causes those errors, is that your version of the glut library (the one installed in /usr/lib, and the one that's getting linked in for whatever reason) is trying to (always) link against symbols that aren't required to exist in all OpenGL libraries. Rather than using the GL extension mechanism to find out at runtime whether they're there, or at least use the Linux dlopen()/dlsym() mechanism to do the same.

Get glut from Mesa's web site, and install it according to my instructions here:

http://www.nvnews.net/vbulletin/showthread.php?s=&threadid=10032&highlight=%2AglXChannelRectSGIX%2A

It's my April 11, 2003, 8:45 PM reply that has the instructions in it. :)

MightyKC
07-09-2003, 10:11 PM
O.K. Got past GLUT and plib...
I thought I was homefree but SImGear wants MetaKit
I found executable binaries, I have no Idea what to do with.
I found an RPM, which I installed, then tried to ./configure SimGear again, but still no luck. This time I carefully read the text
that told me MetaKit was inside SimGear. Now I know to look there first next time.
;) I still can't ./ configure MetaKit. I think that the answer lies in something like this:
./configure -prefix=usr

I cannot figure out how to modify that line to proceed to make MetaKit:

root@localhost metakit-2.4.9.2]# ./configure
bash: ./configure: No such file or directory


From the README:




UNIX

It is no longer advised to build the Unix code in the "unix/" directory.
Instead, you should perform the following steps:
% cd builds
% ../unix/configure
% make
% make test
And optionally (this only installs the core lib, not script extensions):
% make install

By switching to the "builds/" directory, you will keep the distribution
directory tree 100% unaltered. All changes are made in this subdir, and
all final build results are left behind in this same subdir.




I do not know what to make of this

bwkaz
07-10-2003, 10:01 PM
Uhh, it's telling you what to do. ;)

Start off in the metakit-2.4.9.2 directory. From there, type the following commands:

cd builds
../unix/configure --help

Read through the options. Most of the time, you don't need any of them, but if something else told you to use --prefix=/usr, then use it. Add anything else that you think might help, then:

../unix/configure <the options you decided on>
make
make test
make install

After that, I assume there are other make targets that will install other things, but I doubt that you will need those other things. So cd into the other directory and try configure again once you've done each of these steps. :)

Oh, and one more bit of advice, if I may: If something fails, please don't go on to the next command. If anything fails, stop there and post the errors you got. :)

MightyKC
07-11-2003, 06:47 AM
To keep the unix/ directory as is, please build MetaKit using:

cd ../builds
../unix/configure
make
make test
make install

This is from the unix directory inside of metakit. The two dots and a slash mean to go up two levels and go to that file "builds"

But I was trying that from the top of the MetaKIt directory. So, I see what I did wrong. Thank you. I cruised through the installation SimGear and FlightGear after that. But I have another delimma:


[Kevin@localhost Kevin]$ FlightGear
bash: FlightGear: command not found
[Kevin@localhost Kevin]$ fgfs
fgfs: error while loading shared libraries: libglut.so.3: cannot open shared obj
ect file: No such file or directory


I finished installing FlightGear late and I am supposed to be getting ready for work right now so I haven't really gotten to investigate. So if it something simple I'm sorry. I just looked at your instructions for re-compiling glut. This is what I have to do isn't it. I didn't really check into it because I was wrestling SimGear by then. I will try that tonight or tomorrow morning.

But how do you start up FlightGear and is that message a big problem?


I just looked at your instructions for re-compiling glut. This is what I have to do isn't it. I didn't really check into it because I was wrestling SimGear by then. I will try that tonight or tomorrow morning.