LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 12-28-2010, 02:35 PM   #1
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
GLUT or SDL exception support?


I have just finished installing FlightGear on my ~amd64 Gentoo machine (FlightGear and SimGear were manually installed for development work), and when I ran it, I got this message:
Code:
Uncaught Exception: you should see a meaningful error message
here, but your GLUT (or SDL) library was apparently compiled
and/or linked without exception support. Please complain to
its provider!
I looked at the USE flags for GLUT and SDL, and enabled GLUT's debug use flag (then reconfigured and recompiled FlightGear and SimGear). However, this message still persists.

emerge -pv freeglut libsdl:
Code:
[ebuild   R   ] media-libs/freeglut-2.6.0  USE="debug -mpx" 0 kB
[ebuild   R   ] media-libs/libsdl-1.2.14-r4  USE="X alsa audio joystick opengl video -aalib -custom-cflags -dga -directfb -fbcon -ggi -libcaca -nas -oss (-ps3) -pulseaudio -static-libs (-svga) -tslib -xinerama -xv" 0 kB
My configure lines for SimGear and Flightgear:
Code:
CFLAGS="-O0 -pipe -march=athlon64 -ggdb" CXXFLAGS="$CFLAGS" ./configure --prefix=/home/<user>/flightgear/sginstall
CFLAGS="-O0 -pipe -march=athlon64 -ggdb" CXXFLAGS="$CFLAGS" ./configure --prefix=/home/<user>/flightgear/fgfs --with-simgear=/home/<user>/flightgear/sginstall/
How do I enable exceptions support in SDL and GLUT?

Thank you for any help.
 
Old 12-31-2010, 04:53 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

I think that just adding: "-fexceptions" to your CXXFLAGS should fix the the problem.

Best regards

Oliv'
 
Old 12-31-2010, 08:11 PM   #3
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by Oliv'
I think that just adding: "-fexceptions" to your CXXFLAGS should fix the the problem.
That seems like it would work (thank you for trying to help).

I tried it -- it didn't work. I did it for all of FlightGear's dependencies, as well as FlightGear itself. I'm still getting the same message.

Any other ideas? (I'll keep looking myself, too).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Pygame/SDL Xorg exception PelliX Linux - Desktop 2 12-23-2010 04:08 AM
Sourcecompiling Problem...The sdl-config script installed by SDL could not be found. deepclutch Debian 1 12-15-2005 12:15 PM
help createing exception class from base STL exception qwijibow Programming 4 04-20-2005 05:23 AM
Trying to program an SDL application but cannot find the SDL.h file:SuSE 9.2&KDevelop pujolasdf Linux - Newbie 4 03-13-2005 07:50 AM
SDL vs GLUT MadCactus Programming 3 09-14-2003 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration