Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Gamers & Players
  • Search

[solved] open gl programs are not compiling

Having problems getting your favorite Linux game to work? Want to discuss strategies? This is the place!
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
Author
Message
bigfam
Tux's lil' helper
Tux's lil' helper
Posts: 106
Joined: Thu Dec 30, 2004 9:03 pm
Location: ottawa

[solved] open gl programs are not compiling

  • Quote

Post by bigfam » Mon Mar 27, 2006 2:46 am

Hello, Im having trouble with open gl programs/games compiling, they won't compile. I am running 2.6.15, my nvidia drivers are 8178, and I am running modular xorg 7.0. I think the problem is either the nvidia drivers or the modular xorg. Unfortuately portage won't seem to let me downgrade my nvidia drivers without going back to xorg 6.8. My current drivers are installed properly with direct rendering etc. I can play tribes2, ut2k4, warcraft 3 (in wine), vendetta online and a few other games that have been installed for a while.

Can anyone help me please?

When trying to compile mupen64 I get this error:

Code: Select all

gcc -fPIC -O2 -march=athlon-xp -fomit-frame-pointer -c -o main/gui_gtk/config.o main/gui_gtk/config.c `pkg-config gtk+-2.0 --cflags` -D_GTK2
gcc -fPIC -O2 -march=athlon-xp -fomit-frame-pointer -c -o main/gui_gtk/dirbrowser.o main/gui_gtk/dirbrowser.c `pkg-config gtk+-2.0 --cflags` -D_GTK2
gcc main/rom.o r4300/r4300.o r4300/cop0.o r4300/special.o r4300/regimm.o r4300/exception.o memory/tlb.o memory/memory.o memory/dma.o r4300/interupt.o r4300/cop1.o r4300/tlb.o r4300/cop1_w.o r4300/cop1_s.o r4300/cop1_d.o r4300/recomp.o memory/pif.o r4300/bc.o r4300/cop1_l.o r4300/pure_interp.o r4300/compare_core.o main/plugin.o main/unzip.o main/ioapi.o memory/flashram.o main/md5.o main/mupenIniApi.o main/savestates.o r4300/profile.o main/adler32.o r4300/x86/gr4300.o r4300/x86/gcop0.o r4300/x86/assemble.o r4300/x86/gcop1.o r4300/x86/gcop1_s.o r4300/x86/gcop1_d.o r4300/x86/gtlb.o r4300/x86/gregimm.o r4300/x86/gspecial.o r4300/x86/gcop1_w.o r4300/x86/debug.o r4300/x86/rjump.o r4300/x86/gbc.o r4300/x86/gcop1_l.o r4300/x86/regcache.o main/gui_gtk/main_gtk.o main/gui_gtk/translate.o main/gui_gtk/messagebox.o main/gui_gtk/aboutdialog.o main/gui_gtk/configdialog.o main/gui_gtk/support.o main/gui_gtk/rombrowser.o main/gui_gtk/romproperties.o main/gui_gtk/config.o main/gui_gtk/dirbrowser.o -fPIC -O2 -march=athlon-xp -fomit-frame-pointer -lz -lm -Wl,-export-dynamic `pkg-config gtk+-2.0 --libs` -L/usr/X11R6/lib `sdl-config --libs` -lGL -lpthread -ldl -o mupen64
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000038gl'
/usr/lib/libGLcore.so.1: undefined reference to `_nv000037gl'
collect2: ld returned 1 exit status
make: *** [mupen64] Error 1

!!! ERROR: games-emulation/mupen64-0.5 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! emake failed on 
!!! If you need support, post the topmost build error, and the call stack if relevant.

localhost famine # 
And just now I tried to compile planeshift and I get the following error when 'ode' compiles:

Code: Select all

g++ -c -Wall -fno-rtti -fno-exceptions -Wall -fomit-frame-pointer -ffast-math -O2 -march=athlon-xp -fomit-frame-pointer -fPIC -Iinclude -IOPCODE  -DdTRIMESH_ENABLED -DdNODEBUG -O2 -o drawstuff/src/drawstuff.o drawstuff/src/drawstuff.cpp
g++ -c -Wall -fno-rtti -fno-exceptions -Wall -fomit-frame-pointer -ffast-math -O2 -march=athlon-xp -fomit-frame-pointer -fPIC -Iinclude -IOPCODE  -DdTRIMESH_ENABLED -DdNODEBUG -O2 -o drawstuff/src/x11.o drawstuff/src/x11.cpp
ar rc lib/libdrawstuff.a drawstuff/src/drawstuff.o drawstuff/src/x11.o 
g++ -c -Wall -fno-rtti -fno-exceptions -Wall -fomit-frame-pointer -ffast-math -O2 -march=athlon-xp -fomit-frame-pointer -fPIC -Iinclude -IOPCODE  -DdTRIMESH_ENABLED -DdNODEBUG -O2 -o ode/test/test_ode.o ode/test/test_ode.cpp
g++ -o ode/test/test_ode.exe ode/test/test_ode.o lib/libode.a lib/libdrawstuff.a  -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/lib/X11R6 -L/usr/lib/X11 -lX11 -lGL -lGLU -lm
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000038gl'
/usr/lib/libGLcore.so.1: undefined reference to `_nv000037gl'
collect2: ld returned 1 exit status
make: *** [ode/test/test_ode.exe] Error 1

!!! ERROR: dev-games/ode-0.5-r4 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

localhost famine # 


Last edited by bigfam on Wed Mar 29, 2006 3:20 am, edited 1 time in total.
Top
mars-red
Apprentice
Apprentice
User avatar
Posts: 204
Joined: Wed Sep 15, 2004 11:59 am
Location: New Hampshire
Contact:
Contact mars-red
Website

  • Quote

Post by mars-red » Tue Mar 28, 2006 7:31 pm

Looks like the nvidia drivers aren't exposing things that the gl libs are looking for. That definitely sucks, but try this: In your USE flags, I'm guessing you have "nvidia" specified? Change that to "-nvidia" then try it again. I'm really curious to see the results of that.
my wrench blog: http://www.digitaldownpour.com/blog
Top
bigfam
Tux's lil' helper
Tux's lil' helper
Posts: 106
Joined: Thu Dec 30, 2004 9:03 pm
Location: ottawa

  • Quote

Post by bigfam » Tue Mar 28, 2006 11:25 pm

No I don't have nvidia in my use flags, I tried using -nvidia and compiling again but im getting the same error.

This is friggen annoying, portage won't let me downgrade my nvidia drivers without downgrading xorg to 6.8. this is super duper annoying
argh
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Tue Mar 28, 2006 11:46 pm

bigfam wrote:No I don't have nvidia in my use flags,
Which is the equivalent of "-nvidia" anyway. The flag is either on or off. And, it can only make any difference if packages actually use it. You can list those packages (if there even are any) with: (emerge gentoolkit, if you don't have equery.)

Code: Select all

equery hasuse nvidia
portage won't let me downgrade my nvidia drivers without downgrading xorg
Look at the ebuild: /usr/portage/media-video/nvidia-glx/nvidia-glx-1.0.6111-r3.ebuild
Perhaps you need:

Code: Select all

emerge -n xorg-server mesa
Top
Rainmaker
Veteran
Veteran
User avatar
Posts: 1650
Joined: Thu Feb 12, 2004 2:04 am
Location: /home/NL/ehv/

  • Quote

Post by Rainmaker » Tue Mar 28, 2006 11:59 pm

do you have --as-needed in your LDFLAGS?

If so, try LDFLAGS="" emerge ...
If you can't dazzle them with brilliance, baffle them with bullshit.
Top
bigfam
Tux's lil' helper
Tux's lil' helper
Posts: 106
Joined: Thu Dec 30, 2004 9:03 pm
Location: ottawa

  • Quote

Post by bigfam » Wed Mar 29, 2006 3:01 am

more problems, getting to the root of the problem I think
tried to compile tuxracer and got this

Code: Select all

checking for GL library... no
checking for GL library (with pthreads)... no
checking for MesaGL library... no
checking for MesaGL library (with pthreads)... no
checking for opengl32 library... no
checking for opengl32 library (with pthreads)... no
*** Hmm, you don't seem to have OpenGL libraries installed in the standard
*** location (/usr/lib).  I'll check in /usr/X11R6/lib, since
*** many distributions (incorrectly) put OpenGL libs there.
checking for GL library... no
checking for GL library (with pthreads)... no
checking for MesaGL library... no
checking for MesaGL library (with pthreads)... no
checking for opengl32 library... no
checking for opengl32 library (with pthreads)... no
configure: error: Cannot find GL library

!!! ERROR: games-arcade/tuxracer-0.61-r3 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile
  tuxracer-0.61-r3.ebuild, line 43:   Called egamesconf 'compile' '--disable-ste 
ncil-buffer'

!!! egamesconf failed
!!! If you need support, post the topmost build error, and the call stack if rel 
evant.
I DO have opengl files in /usr/lib.

/usr/lib/libGL.so.1
/usr/lib/libGLU.so.1
/usr/lib/libGLcore.so.1
/usr/liblibGLw.so.1

I also have files in /usr/lib/opengl/nvidia/lib

All my installed games work fine ! why can I not compile anything that I don't already have that uses open gl!
Top
bigfam
Tux's lil' helper
Tux's lil' helper
Posts: 106
Joined: Thu Dec 30, 2004 9:03 pm
Location: ottawa

  • Quote

Post by bigfam » Wed Mar 29, 2006 3:20 am

Okay found my problem, I had some older versions (7667) of the nvidia driver in /usr/lib.

I made sure the only nvidia files are the latest versions (8178) and made sure all my symlinks are what they are supposed to be. That fixed all my problems
Top
Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Gamers & Players”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic