NOW no libglut?

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
Ygarl
Merchant
Merchant
Posts: 42
Joined: Wed Jul 07, 2004 9:37 am
Location: London UK
Contact:

NOW no libglut?

Post by Ygarl »

RIght, compiled, make, make install.



[root@localhost vegastrike]# cd /usr/local/bin
[root@localhost bin]# vegastrike
vegastrike: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory
[root@localhost bin]# locate libglut.so.3
/usr/local/lib/libglut.so.3.8.0
/usr/local/lib/libglut.so.3

Now what the crumbs is going on HERE?
I compiled and installed freeglut (and its links as you can see) as I had no luck with the RPMs that Fedora core 3 installed - got the same errors there as well.

Any ideas?
Durr...
That which can be imagined can be achieved.
dandandaman
Artisan
Artisan
Posts: 1270
Joined: Fri Jan 03, 2003 3:27 am
Location: Perth, Western Australia
Contact:

Post by dandandaman »

Why are you running as root? Try it as a normal user...
(On the off chance that it might work that way)

Dan.a
"Computers are useless. They can only give you answers."
-- Pablo Picasso
Ygarl
Merchant
Merchant
Posts: 42
Joined: Wed Jul 07, 2004 9:37 am
Location: London UK
Contact:

Post by Ygarl »

Hmm... ditto as user...

[ygarl@localhost usr]$ cd bin
[ygarl@localhost bin]$ vegastrike
vegastrike: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory

Hmm.. wierd.
That which can be imagined can be achieved.
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

maybe try copying (cp -d to keep symlinks) the libglut.so.3 into /usr/lib rather than /usr/local/lib. It may not want to look there.
Also, check that they aren't just dead symlinks
Ari Rahikkala
Bounty Hunter
Bounty Hunter
Posts: 141
Joined: Wed May 12, 2004 12:12 pm
Location: Kärsämäki, Finland
Contact:

Post by Ari Rahikkala »

Or just use

Code: Select all

LD_LIBRARY_PATH=/usr/local/lib vegastrike
Another possible cause for that message is libglut.so.3 being a dangling symlink. Try following it with ls -l until you get to the actual library...
Ygarl
Merchant
Merchant
Posts: 42
Joined: Wed Jul 07, 2004 9:37 am
Location: London UK
Contact:

Post by Ygarl »

Thanks to everyone - I'll fix this properly when I get a chance, but setting the environment variable for the library works great for now.

However (typical) what setting on the vegastrike should be set to get the mouse_glide (or even mouse_warp) to work. I am getting tired of using the keyboard to fight and getting clobbered!
<!-- #no_mouse -->
<bind mouse="0" player="1" button="0" modifier="none" command="FireKey"/>
<!-- #end -->
<!-- #warp_mouse inv_warp_mouse inv_glide_mouse glide_mouse
<bind mouse="0" player="0" button="0" modifier="none" command="FireKey" />
#end -->
<bind mouse="0" button="2" modifier="none" command="ABKey"/>
<bind mouse="0" button="1" modifier="none" command="MissileKey"/>
<bind mouse="0" button="3" modifier="none" command="TargetKey"/>
<bind mouse="0" button="4" modifier="none" command="PickTargetKey"/>
<bind mouse="0" button="5" modifier="none" command="DecelKey"/>
<bind mouse="0" button="6" modifier="none" command="SheltonKey"/>
<bind mouse="0" button="7" modifier="none" command="AccelKey"/>
<bind mouse="0" button="8" modifier="none" command="WeapSelKey"/>
<bind mouse="0" button="9" modifier="none" command="MisSelKey"/>
<!-- #warp_mouse inv_warp_mouse glide_mouse inv_glide_mouse
<axis name="x" mouse="0" axis="0" inverse="false" />
#end -->
<!-- #warp_mouse glide_mouse
<axis name="y" mouse="0" axis="1" inverse="true" />
#end -->
<!-- #inv_warp_mouse inv_glide_mouse
<axis name="y" mouse="0" axis="1" inverse="false" />
#end -->
<!-- #joy_throttle joy_t_a_rev joy_throttle_and_axis joy_axis joy_normal -->
<bind joystick="0" player="0" button="0" modifier="none" command="FireKey"/>
<bind joystick="0" button="1" modifier="none" command="ABKey"/>
<bind joystick="0" button="2" modifier="none" command="MissileKey"/>
<bind joystick="0" button="3" modifier="none" command="TargetKey"/>
<bind joystick="0" button="4" modifier="none" command="PickTargetKey"/>
<bind joystick="0" button="5" modifier="none" command="DecelKey"/>
<bind joystick="0" button="6" modifier="none" command="SheltonKey"/>
<bind joystick="0" button="7" modifier="none" command="AccelKey"/>
<bind joystick="0" button="8" modifier="none" command="WeapSelKey"/>
<bind joystick="0" button="9" modifier="none" command="MisSelKey"/>
<axis name="x" joystick="0" axis="0" inverse="false"/>
<axis name="y" joystick="0" axis="1" inverse="false"/>
<!-- #end -->
<!-- #joy_throttle joy_t_a_rev
<axis name="throttle" joystick="0" axis="2"/>
#end -->
<!-- #joy_t_a_rev
<axis name="z" joystick="0" axis="3"/>
#end -->
<!-- #joy_throttle_and_axis
<axis name="throttle" joystick="0" axis="3"/>
#end -->
<!-- #joy_axis joy_throttle_and_axis
<axis name="z" joystick="0" axis="2"/>
#end -->
<!-- if you have a joystick with an analogue hatswitch
<axis name="hatswitch" nr="0" margin="0.15" joystick="0" axis="2">
<hatswitch value="-1.0"/>
<hatswitch value="-0.6"/>
<hatswitch value="-0.19"/>
<hatswitch value="0.1"/>
</axis>
-->
<!-- <bind hatswitch="0" button="0" modifier="none" command="ABKey" />-->
<!-- <bind hatswitch="0" button="1" modifier="none" command="Cockpit::SwitchRVDU" />
<bind hatswitch="0" button="2" modifier="none" command="Cockpit::SwitchLVDU" />
<bind hatswitch="0" button="3" modifier="none" command="Cockpit::InsideLeft" />
-->
<!--

<bind joystick="0" digital-hatswitch="0" direction="up" command="ABKey"/>
<bind joystick="0" digital-hatswitch="0" direction="left" command="TargetKey"/>
<bind joystick="0" digital-hatswitch="0" direction="center" command="ABKey"/>

<bind joystick="0" digital-hatswitch="0" direction="right" command="ABKey"/>

-->
And further later on:
<section name="joystick">
<!-- #glide_mouse
<var name="mouse_cursor" value="true"/>
<var name="reverse_mouse_spr" value="false"/>
#end -->
<!-- #inv_glide_mouse
<var name="mouse_cursor" value="true"/>
<var name="reverse_mouse_spr" value="true"/>
#end -->
<!-- #glide_mouse no_mouse inv_glide_mouse -->
<var name="warp_mouse" value="true"/>
<var name="mouse_sensitivity" value="40"/>
<!-- #end -->
<!-- #warp_mouse inv_warp_mouse
<var name="warp_mouse" value="true"/>
<var name="mouse_sensitivity" value="120"/>
#end -->
<var name="warp_mouse_zone" value="200"/>
<var name="mouse_exponent" value="1.5"/>
<var name="deadband" value="0.05"/>
<var name="debug_digital_hatswitch" value="false"/>
<var name="force_feedback" value="false"/>
<!-- #joy_throttle joy_t_a_rev joy_throttle_and_axis joy_axis joy_normal -->
<var name="force_use_of_joystick" value="false"/>
<!-- #end -->
<!-- #no_joy
<var name="force_use_of_joystick" value="false" />
#end -->
Now what's going on there?
I've fiddled a little but I don't want to keep screwing about in case I really mess things up!

Also, the sound is completely dead - I'll paste that once this part is sorted....
Sound works elsewhere btw - just VS.
That which can be imagined can be achieved.
Post Reply