Re: [Plib-users] (cory vs. pui) The attack of setValuator
Brought to you by:
sjbaker
From: Stuart M. <stu...@bl...> - 2008-06-15 19:52:43
|
You need to find where the libraries are installed and ensure that the -L library path flag is set correctly. Unfortunately I really don't know much about Linux installs or autoconf, but I do know what it's doing is creating a small C file which has a call to a function that should be in the library (glNewList in this case). It then compile and link that small program and if it works then library must have been found. From the list below it looks like you have Mesa installed so I can only assume it's not in a location the the linker looks by default, therefore the -L<dir path> option must be given to tell it where to look for the libMesaGL.0 (or libMesaGL.a sorry, as I said I don't know much about linux). e.g. it could be the library is /usr/local/lib/libMesaGL.sl so you would need to get -L /usr/local/lib in the the link flags (again, sorry don't know how to drive autoconf to do this). The configure script should generate a log (config.log?) that shows the small program is it trying to compile. To find the library you could do a find / -name "lib*Mesa*" (might take a while 8-) It could also be the library is named something else, (say) libOSMesaGL.a or something. No idea how to properly fix something like that, but as a last resort you could hand edit the configure.ac (might be configure.in) and change the name. Hopefully some help. Good luck, Stuart. cory barton wrote: > I wasn't sure how to get the SVN version, so I am trying to install > PLIB 1.8.5, but ./configure is failing. > > Here is the last bit of the ./configure output(everything before it is yes): > > checking for pthread_create in -lpthread... no > checking for glNewList in -lGL... no > checking for glNewList in -lMesaGL... no > configure: error: could not find working GL library > > I do have the following packages installed: > ii freeglut3 2.4.0-6 > OpenGL Utility Toolkit > ii freeglut3-dev 2.4.0-6 > OpenGL Utility Toolkit development files > ii glutg3 3.7-25 > the OpenGL Utility Toolkit > ii glutg3-dev 3.7-25 > the OpenGL Utility Toolkit development files > ii libgl1-mesa-dev 7.0.3~rc2-1ubuntu3 > A free implementation of the OpenGL API -- G > ii libgl1-mesa-dri 7.0.3~rc2-1ubuntu3 > A free implementation of the OpenGL API -- D > ii libgl1-mesa-glx 7.0.3~rc2-1ubuntu3 > A free implementation of the OpenGL API -- G > rc libglew1.4 1.4.0-1ubuntu1 > The OpenGL Extension Wrangler - runtime envi > ii libglew1.5 1.5.0dfsg1-3ubuntu1 > The OpenGL Extension Wrangler - runtime envi > ii libglib2.0-0 2.16.3-1ubuntu2 > The GLib library of C routines > ii libglib2.0-cil 2.12.0-2ubuntu3 > CLI binding for the GLib utility library 2.1 > ii libglibmm-2.4-1c2a 2.16.0-1 > C++ wrapper for the GLib toolkit (shared lib > ii libglu1-mesa 7.0.3~rc2-1ubuntu3 > The OpenGL utility library (GLU) > ii libglu1-mesa-dev 7.0.3~rc2-1ubuntu3 > The OpenGL utility library -- development fi > ii libglut3 3.7-25 > the OpenGL Utility Toolkit > ii libglut3-dev 3.7-25 > development libraries and headers for GLUT > ii xlibmesa-gl-dev 1:7.3+10ubuntu10 > transitional package for Debian etch > ii xorg-driver-fglrx > 1:7.1.0-8-3+2.6.24.13-18.41 Video driver for ATI graphics > accelerators > ii xscreensaver-gl 5.04-4ubuntu1 > GL(Mesa) screen hacks for xscreensaver > ii xserver-xorg-video-glint 1:1.1.1-8 > X.Org X server -- Glint display driver > > What am I missing? I have googled all over for a solution to this, but > have not found it. > > Thanks, > > Cory > > > On Fri, Jun 13, 2008 at 2:59 PM, cory barton <co...@gm...> wrote: > >> I haven't tried the most recent SVN version. >> >> I will try that and let you know. May be tuesday before I have a >> chance to try that. I am going out of town. >> >> thanks, >> >> Cory >> >> >> On Fri, Jun 13, 2008 at 9:25 AM, Fay John F Dr CTR USAF 46 SK >> <joh...@eg...> wrote: >> >>> Hmmm ... I'm running on Windows, but that shouldn't make a difference. >>> (Of course, "shouldn't" is the longest word in the English language, >>> right up there with "if.") >>> >>> Have you tried getting the most recent SVN version? >>> >>> Unfortunately I've been away from the library for a couple of years now, >>> and I'm a bit rusty on what's what. >>> >>> John F. Fay >>> Technical Fellow >>> Jacobs Technology TEAS Group >>> 850-883-1294 >>> >>> -----Original Message----- >>> From: pli...@li... >>> [mailto:pli...@li...] On Behalf Of cory >>> barton >>> Sent: Thursday, June 12, 2008 5:13 PM >>> To: PLIB Users >>> Subject: Re: [Plib-users] (cory vs. pui) The attack of setValuator >>> >>> 1.8.4c2 ubuntu package >>> >>> >>> >>> On Thu, Jun 12, 2008 at 5:30 PM, Fay John F Dr CTR USAF 46 SK >>> <joh...@eg...> wrote: >>> >>>> Sorry, I still can't get it to crash. >>>> >>>> What version of PUI are you using? >>>> >>>> John F. Fay >>>> Technical Fellow >>>> Jacobs Technology TEAS Group >>>> 850-883-1294 >>>> >>>> -----Original Message----- >>>> From: pli...@li... >>>> [mailto:pli...@li...] On Behalf Of cory >>>> barton >>>> Sent: Thursday, June 12, 2008 3:53 PM >>>> To: PLIB Users >>>> Subject: Re: [Plib-users] (cory vs. pui) The attack of setValuator >>>> >>>> Here is the code: >>>> >>>> <snip> >>>> >>>> >>>> On Thu, Jun 12, 2008 at 4:42 PM, Fay John F Dr CTR USAF 46 SK >>>> <joh...@eg...> wrote: >>>> >>>>> Hmmm ... unless somebody else steps in, please forward me a copy of >>>>> >>>> the >>>> >>>>> offending code. I've tried putting in your code snippet and the >>>>> >>>> program >>>> >>>>> works just fine for me, so evidently something else is going on. >>>>> >>>>> John F. Fay >>>>> Technical Fellow >>>>> Jacobs Technology TEAS Group >>>>> 850-883-1294 >>>>> >>>>> -----Original Message----- >>>>> From: pli...@li... >>>>> [mailto:pli...@li...] On Behalf Of cory >>>>> barton >>>>> Sent: Thursday, June 12, 2008 3:19 PM >>>>> To: PLIB Users >>>>> Subject: [Plib-users] (cory vs. pui) The attack of setValuator >>>>> >>>>> I found the following in the PUI documentation today: >>>>> There are many occasions when you'd really like to have the PUI >>>>> >>> widget >>> >>>>> directly drive and/or reflect the value of some memory location in >>>>> >>> the >>> >>>>> application code. These calls let you do that: >>>>> >>>>> void puObject::setValuator ( int *i ) ; >>>>> void puObject::setValuator ( float *f ) ; >>>>> void puObject::setValuator ( char *s ) ; >>>>> >>>>> >>>>> Once you make one of these calls, PUI will automatically update the >>>>> memory location indicated with the current value of the widget >>>>> whenever it changes - and also update the appearance of the widget to >>>>> reflect the value stored in that memory location whenever the widget >>>>> is redrawn. This is often a lot more convenient than using a callback >>>>> function to register changes in the widget's value. >>>>> >>>>> So I tried it out: >>>>> //global variable >>>>> float update = 1.0f; >>>>> >>>>> //initialize my puInput inside a function >>>>> //hertz text input >>>>> hertz_text = new puInput ( curx, cury, >>>>> curx + >>>>> PUI_TEXT_WIDTH, >>>>> cury + >>>>> PUI_TEXT_HEIGHT ) ; >>>>> hertz_text->setValuator( &update ); >>>>> hertz_text->setLabel( "Hertz" ); >>>>> hertz_text->setLabelPlace( PUPLACE_TOP_CENTERED ); >>>>> >>>>> >>>>> This compiles, and runs. >>>>> >>>>> It seems to work correctly as long as I do not remove all of the >>>>> characters from the puInput box. However if I am trying to change the >>>>> value, when I am typing in the new value, if the new value ever >>>>> becomes a non valid float value, then the program crashes. For >>>>> >>> example >>> >>>>> if I want to change 1.0 to 2.0 and I delete 1.0 so I can type 2.0, >>>>> then instant crash. I can change from 1.0 to 2.0 if I type the 2 >>>>> >>> after >>> >>>>> the 1, and then erase the 1. >>>>> >>>>> Searching the mail archives and googling didn't help, so I am posting >>>>> here. >>>>> >>>>> I suspect either my weak understanding of pointers means that I am >>>>> passing an incorrect argument to the setValuator function, or maybe >>>>> the puInput object is writing invalid data to the update variable. >>>>> >>>>> Please let me know how to fix this. >>>>> >>>>> thanks, >>>>> >>>>> Cory >>>>> >>>>> >>>> >>>> >>> ------------------------------------------------------------------------ >>> - >>> >>>> Check out the new SourceForge.net Marketplace. >>>> It's the best place to buy or sell services for >>>> just about anything Open Source. >>>> http://sourceforge.net/services/buy/index.php >>>> _______________________________________________ >>>> plib-users mailing list >>>> pli...@li... >>>> https://lists.sourceforge.net/lists/listinfo/plib-users >>>> >>>> >>> ------------------------------------------------------------------------ >>> - >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://sourceforge.net/services/buy/index.php >>> _______________________________________________ >>> plib-users mailing list >>> pli...@li... >>> https://lists.sourceforge.net/lists/listinfo/plib-users >>> >>> ------------------------------------------------------------------------- >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://sourceforge.net/services/buy/index.php >>> _______________________________________________ >>> plib-users mailing list >>> pli...@li... >>> https://lists.sourceforge.net/lists/listinfo/plib-users >>> >>> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > > > |