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! |