From: Jonathan B. <jbr...@ea...> - 2003-07-14 00:31:40
|
Now that I think about it, I think that we did something non-standard to install our copy of gtkglarea, and it ended up under /usr/local instead of /sw. Try running configure like this: "CPPFLAGS=-I/sw/include ./configure --prefix=/sw" If that works, we will either change the documentation or the configuration scripts. HTH, -Jonathan Brandmeyer On Sat, 2003-07-12 at 23:21, hea...@ct... wrote: > >From: "Jonathan Brandmeyer" <jbr...@ea...> > > > >Can you privately send me the complete config.log (in the top-level > >directory), cvisual/Makefile, and the output from running 'make'? > > > Certainly. Config.log and cvisual/Makefile are attached. Out from make is as > follows: > > [Joe-Heafners-iBook:~/visual-2.1.1] joeheafner% make > Making all in visual > make[1]: Nothing to be done for `all'. > Making all in cvisual > g++ -c -I./CXX/Include -I. -DHAVE_CONFIG_H -I/sw/include/python2.2 -o > arrow.lo -g -O2 -I/sw/include/gtk-1.2 -I/usr/X11R6/include -I/sw/include/ > glib-1.2 -I/sw/lib/glib/include -D_REENTRANT -I/sw/include/glib-1.2 -I/ > sw/lib/glib/include arrow.cpp > In file included from arrow.cpp:2: > xgl.h:10:29: gtkgl/gtkglarea.h: No such file or directory > make[1]: *** [arrow.lo] Error 1 > make: *** [all-recursive] Error 1 > [Joe-Heafners-iBook:~/visual-2.1.1] joeheafner% > > I'm very grateful for your help! > |
From: Joe H. <hea...@vn...> - 2003-07-14 02:38:00
|
On Sunday, Jul 13, 2003, at 20:31 US/Eastern, Jonathan Brandmeyer wrote: > Try running configure like this: "CPPFLAGS=-I/sw/include ./configure > --prefix=/sw" ...this didn't work. The shell interpreted CPPFLAGS=-I/sw/include as a command. So, I tried using setenv as described at http://fink.sourceforge.net/faq/usage-general.php#compile-myself but this didn't work either, so I zapped the environment variables. Note, however, that I only set the CFLAGS environment variable and not the others. So, I finally resorted to hard coding the locations of the "lost" header files. Here are the changes I made: in ~/visual-2.1.1/cvisual/xgl.h, I changed lines 8,9,and 10 to read 8 #include </sw/include/gtk-1.2/gdk/gdk.h> 9 #include </sw/include/gtk-1.2/gtk/gtk.h> 10 #include </sw/include/gtkgl/gtkglarea.h> in /sw/include/gtkgl/gtkglarea.h, I changed line 24 to read 24 #include </sw/include/gtkgl/gdkgl.h> I then issued "make" and got a clean build...FINALLY! Now, the remaining issue that bothers me is that in IDLE, when I press F1 for help I get an error message telling me there's no default browser. I'm using Safari 1.0. There must be a way to make the help come up in the system's default browser (in my case, Safari). Cheers, Joe Heafner ----- <http://www.donotcall.gov/> Use it! Be sure to complain about having to re-register every five years and about the fact that political fundraisers are exempt! |
From: Jonathan B. <jdb...@un...> - 2003-07-14 13:51:06
|
Sorry, I was thinking bash shell rather than C-shell. This worked fine under tcsh: setenv CPPFLAGS -I/sw/include ./configure --prefix=/sw make without having to explicitly change the header files. Just changing CFLAGS doesn't neccesarily help you here, since this is a C++ program and is not really all that sensitive to CFLAGS. CXXFLAGS ( C++ flags) and CPPFLAGS (C pre-processor flags) are the real keys for this package. Regarding the help browser, there is a trigger that we can change in our idle_VPython for the webbrowser documentation. Try changing the value of help_url in idle_VPython/EditorWindow.py to /sw/lib/python2.2/site-packages/visual/docs/index.py. But, that will probably not be enough. idle_VPython opens a webbrowser using the built-in module "webbrowser". In webbrowser.py there is a list of available browsers listed under the section commented as "Platform support for Unix" and you can probably add support for the new browser that way. The Python-MAC SIG might have some better advice though. -Jonathan Brandmeyer ----- Original Message ----- From: "Joe Heafner" <hea...@vn...> To: <jbr...@us...> Cc: <vis...@li...> Sent: Sunday, July 13, 2003 10:37 PM Subject: [Visualpython-users] finally success...but... > On Sunday, Jul 13, 2003, at 20:31 US/Eastern, Jonathan Brandmeyer wrote: > > > Try running configure like this: "CPPFLAGS=-I/sw/include ./configure > > --prefix=/sw" > > ...this didn't work. The shell interpreted CPPFLAGS=-I/sw/include as a > command. So, I tried using setenv as described at > > http://fink.sourceforge.net/faq/usage-general.php#compile-myself > > but this didn't work either, so I zapped the environment variables. > Note, however, that I only set the CFLAGS environment variable and not > the others. > > So, I finally resorted to hard coding the locations of the "lost" > header files. Here are the changes I made: > > in ~/visual-2.1.1/cvisual/xgl.h, I changed lines 8,9,and 10 to read > 8 #include </sw/include/gtk-1.2/gdk/gdk.h> > 9 #include </sw/include/gtk-1.2/gtk/gtk.h> > 10 #include </sw/include/gtkgl/gtkglarea.h> > > in /sw/include/gtkgl/gtkglarea.h, I changed line 24 to read > 24 #include </sw/include/gtkgl/gdkgl.h> > > I then issued "make" and got a clean build...FINALLY! > > Now, the remaining issue that bothers me is that in IDLE, when I press > F1 for help I get an error message telling me there's no default > browser. I'm using Safari 1.0. There must be a way to make the help > come up in the system's default browser (in my case, Safari). > > Cheers, > Joe Heafner > > ----- > <http://www.donotcall.gov/> Use it! Be sure to complain about having to > re-register every five years and about the fact that political > fundraisers are exempt! |
From: <hea...@ct...> - 2003-07-14 16:19:19
|
>Sorry, I was thinking bash shell rather than C-shell. This worked fine >under tcsh: >setenv CPPFLAGS -I/sw/include >./configure --prefix=/sw >make >without having to explicitly change the header files. > >Just changing CFLAGS doesn't neccesarily help you here, since this is a C++ >program and is not really all that sensitive to CFLAGS. CXXFLAGS ( C++ >flags) and CPPFLAGS (C pre-processor flags) are the real keys for this >package. > Okay this finally worked. I added these env variables to my .cshrc file as described on the Fink site. Now visual will build for me without hard coding the locations of the headers. BTW, the OS X install instructions on vpython.org should reflect the fact that there are a few other libs needed other than those that come with Gtk+ and Python22 installed by Fink. There should also be mention of these env variables that need to be set on OS X. As soon as we figure out the web browser thing that should be added too. >Regarding the help browser, there is a trigger that we can change in our >idle_VPython for the >webbrowser documentation. Try changing the value of help_url in >idle_VPython/EditorWindow.py to >/sw/lib/python2.2/site-packages/visual/docs/index.py. But, that will >probably not be enough. idle_VPython opens a webbrowser using the built-in >module "webbrowser". In webbrowser.py there is a list of available >browsers listed under the section commented as "Platform support for Unix" >and you can probably add support for the new browser that way. >The Python-MAC SIG might have some better advice though. > I just subscribed to the Python-Mac SIG list to see of anyone there can help with this. Thanks for the help! Cheers, Joe Heafner - Instructional Astronomy and Physics Home Page http://users.vnet.net/heafnerj/index.html I don't have a Lexus, but I do have a Mac. Same thing. |