|
From: Bruce S. <Bru...@nc...> - 2010-05-25 04:44:44
|
I did a clean install of Ubuntu 10.04 on a Windows machine and tried to compile Visual. I'm stuck in the configure phase and wonder whether someone can help me get unstuck. gtkglextmm depends on gtkmm-2.4, which the configure machinery finds okay (/usr/lib/libgtkmm-2.4) despite there being nothing in /usr/lib/pkgconfig about gtkmm-2.4. gtkglextmm also depends on gdkglextmm, which in turn depends on gdkmm-2.4, which the configure machinery claims doesn't exist despite the existence of /usr/lib/libgdkmm-2.4 (as with gtkmm, there's nothing about gdkmm in /usr/lib/pkgconfig). So my question is, how does the configure machinery find /usr/lib/libgtkmm-2.4 but not /usr/lib/libgdkmm-2.4? And what should I do to compile the latest source? Whoever packaged the working python-visual package for Ubuntu 10.04 presumably didn't have my problem, or got around it somehow. When I examine the Ubuntu source used to create the package, I don't see any difference in the configure machinery. Bruce P.S. I should comment that some auxiliary files, such as the cactus photo in stonehenge.py, are missing from the Ubuntu package. That's my fault; I discovered only rather recently that the make procedure for Linux didn't include a couple of these auxiliary files. |
|
From: Guy K. K. <g....@ma...> - 2010-05-25 05:30:20
|
On Tue, 25 May 2010 16:44:34 Bruce Sherwood wrote: > I did a clean install of Ubuntu 10.04 on a Windows machine and tried to > compile Visual. I'm stuck in the configure phase and wonder whether > someone can help me get unstuck. What is a "clean install on a Windows machine"? In my books, when installing Linux on a box, it's not a Windows box anymore ... > gtkglextmm depends on gtkmm-2.4, which the configure machinery finds > okay (/usr/lib/libgtkmm-2.4) despite there being nothing in > /usr/lib/pkgconfig about gtkmm-2.4. > > gtkglextmm also depends on gdkglextmm, which in turn depends on > gdkmm-2.4, which the configure machinery claims doesn't exist despite > the existence of /usr/lib/libgdkmm-2.4 (as with gtkmm, there's nothing > about gdkmm in /usr/lib/pkgconfig). > > So my question is, how does the configure machinery find > /usr/lib/libgtkmm-2.4 but not /usr/lib/libgdkmm-2.4? And what should I > do to compile the latest source? Usually the headers are in specific "-dev" packages on Debian/Ubuntu systems, as they're not strictly needed for execution, but only for building (development). If I search on my system for a libgdkmm header, this is what I get: $ dpkg -S /usr/lib/gdkmm-2.4/include/gdkmmconfig.h libgtkmm-2.4-dev: /usr/lib/gdkmm-2.4/include/gdkmmconfig.h Same with this one: $ dpkg -S /usr/include/gdkmm-2.4/gdkmm.h libgtkmm-2.4-dev: /usr/include/gdkmm-2.4/gdkmm.h So, try installing the package "libgtkmm-2.4-dev". One thing I often found useful in getting the right packages in was to do an "apt-get build-dep <package name>". So in this case "apt-get build-dep python- visual". This resolved the build dependencies of the python-visual packages as it is in the repositories, but as changes were often incremental, most of the -dev packages were pulled in this way already, and I've had a whole lot less to worry about. HTH, Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Pūtaiao o Mōhiohio me Pāngarau Massey University, Albany (North Shore City, Auckland) 473 State Highway 17, Gate 1, Mailroom, Quad B Building voice: +64 9 414-0800 ext. 9266 fax: +64 9 441-8181 G....@ma... http://www.massey.ac.nz/~gkloss |
|
From: Bruce S. <Bru...@nc...> - 2010-05-25 19:22:45
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks much, Guy. Your help got me most of the way through compiling,
though I'm currently stopped in the final linking phase with "cannot
find -lboost_python-mt", which puzzles me.<br>
<br>
Some time ago I found the following on the web, which turns out to be
relevant for Boost 1.40 on Ubuntu 10.04: "Furthermore building pyrap
with boost-1.37 and gcc-4.3.2 gave an error due to a missing include.
The following patch has to be applied to boost:"<br>
<br>
In /usr/include (probably), change
/boost/python/detail/translate_exception.hpp<br>
===================================================================<br>
--- boost/python/detail/translate_exception.hpp (revision 50228)<br>
+++ boost/python/detail/translate_exception.hpp (working copy)<br>
@@ -9,6 +9,7 @@<br>
<br>
# include <boost/call_traits.hpp><br>
# include <boost/type_traits/add_const.hpp><br>
+# include <boost/type_traits/add_reference.hpp><br>
<br>
# include <boost/function/function0.hpp><br>
<br>
I'm more and more curious about how someone built the python-visual
package for Ubuntu 10.04, using ostensibly the same source and build
procedures.<br>
<br>
Bruce<br>
<br>
P.S. Yeah, I misspoke about "clean" install. What I meant was I'd done
a dual-boot install on a Windows machine, and by "clean" I meant that I
started from scratch rather than upgrading from an earlier version of
Ubuntu.<br>
<br>
Guy K. Kloss wrote:
<blockquote cite="mid:201...@ma..."
type="cite">
<pre wrap="">On Tue, 25 May 2010 16:44:34 Bruce Sherwood wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I did a clean install of Ubuntu 10.04 on a Windows machine and tried to
compile Visual. I'm stuck in the configure phase and wonder whether
someone can help me get unstuck.
</pre>
</blockquote>
<pre wrap=""><!---->
What is a "clean install on a Windows machine"? In my books, when installing
Linux on a box, it's not a Windows box anymore ...
</pre>
<blockquote type="cite">
<pre wrap="">gtkglextmm depends on gtkmm-2.4, which the configure machinery finds
okay (/usr/lib/libgtkmm-2.4) despite there being nothing in
/usr/lib/pkgconfig about gtkmm-2.4.
gtkglextmm also depends on gdkglextmm, which in turn depends on
gdkmm-2.4, which the configure machinery claims doesn't exist despite
the existence of /usr/lib/libgdkmm-2.4 (as with gtkmm, there's nothing
about gdkmm in /usr/lib/pkgconfig).
So my question is, how does the configure machinery find
/usr/lib/libgtkmm-2.4 but not /usr/lib/libgdkmm-2.4? And what should I
do to compile the latest source?
</pre>
</blockquote>
<pre wrap=""><!---->
Usually the headers are in specific "-dev" packages on Debian/Ubuntu systems,
as they're not strictly needed for execution, but only for building
(development). If I search on my system for a libgdkmm header, this is what I
get:
$ dpkg -S /usr/lib/gdkmm-2.4/include/gdkmmconfig.h
libgtkmm-2.4-dev: /usr/lib/gdkmm-2.4/include/gdkmmconfig.h
Same with this one:
$ dpkg -S /usr/include/gdkmm-2.4/gdkmm.h
libgtkmm-2.4-dev: /usr/include/gdkmm-2.4/gdkmm.h
So, try installing the package "libgtkmm-2.4-dev".
One thing I often found useful in getting the right packages in was to do an
"apt-get build-dep <package name>". So in this case "apt-get build-dep python-
visual". This resolved the build dependencies of the python-visual packages as
it is in the repositories, but as changes were often incremental, most of the
-dev packages were pulled in this way already, and I've had a whole lot less
to worry about.
HTH,
Guy
_______________________________________________
Visualpython-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Vis...@li...">Vis...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a>
</pre>
</blockquote>
</body>
</html>
|
|
From: Eric A. <Ay...@ma...> - 2010-05-28 22:14:33
|
I'm going through the same problems with 10.04: apt-get install python-visual by itself appears to work but any attempts to create any visual objects crash python with a random assortment of gtkgl/opengl errors. Here's the method I've found that works: apt-get install libboost-python-dev libboost-signals-dev libboost-thread-dev apt-get install libgtkglextmm-x11-1.2-0 libgtkglextmm-x11-1.2-dev apt-get install gtkgl-dev apt-get install python-gtkglext1 apt-get install python-visual Some of that may be redundant, and the order may or may not be important; but I am now reasonably certain that on a fresh 64-bit install of 10.04 on a Core2Duo, those commands in that order will give me a working sphere(). They give me vpython 5.12, which I know is not the latest version but after the absurd amount of time I've blown on this problem I really don't care whether it's the latest or not! -ea -- --- ----- ------- ----------- ------------- Dr. Eric Ayars Associate Professor of Physics California State University, Chico ay...@ma... On May 24, 2010, at 9:44 PM, Bruce Sherwood wrote: > I did a clean install of Ubuntu 10.04 on a Windows machine and tried to > compile Visual. I'm stuck in the configure phase and wonder whether > someone can help me get unstuck. > > gtkglextmm depends on gtkmm-2.4, which the configure machinery finds > okay (/usr/lib/libgtkmm-2.4) despite there being nothing in > /usr/lib/pkgconfig about gtkmm-2.4. > > gtkglextmm also depends on gdkglextmm, which in turn depends on > gdkmm-2.4, which the configure machinery claims doesn't exist despite > the existence of /usr/lib/libgdkmm-2.4 (as with gtkmm, there's nothing > about gdkmm in /usr/lib/pkgconfig). > > So my question is, how does the configure machinery find > /usr/lib/libgtkmm-2.4 but not /usr/lib/libgdkmm-2.4? And what should I > do to compile the latest source? > > Whoever packaged the working python-visual package for Ubuntu 10.04 > presumably didn't have my problem, or got around it somehow. When I > examine the Ubuntu source used to create the package, I don't see any > difference in the configure machinery. > > Bruce > > P.S. I should comment that some auxiliary files, such as the cactus > photo in stonehenge.py, are missing from the Ubuntu package. That's my > fault; I discovered only rather recently that the make procedure for > Linux didn't include a couple of these auxiliary files. > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
|
From: Guy K. K. <g....@ma...> - 2010-05-28 23:07:00
|
On Sat, 29 May 2010 10:14:26 Eric Ayars wrote: > They give me vpython 5.12, which I know is not the latest version but after > the absurd amount of time I've blown on this problem I really don't care > whether it's the latest or not! If you're then just using a binary packaged version of python-visual, you do not need the "*-dev" packages. These are *only* required for building/compiling. So you may want to try to chuck these out and see if it still works (it should). On a side note, I've found that aptitude instead of apt-get is better at resolving dependencies, and it keeps the system cleaner, as it knows and tracks what packages were installed purely as a dependency, and it kicks them out automatically again as soon as they're orphaned. It should be for most purposes a drop in replacement for apt-get. Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Pūtaiao o Mōhiohio me Pāngarau Massey University, Albany (North Shore City, Auckland) 473 State Highway 17, Gate 1, Mailroom, Quad B Building voice: +64 9 414-0800 ext. 9266 fax: +64 9 441-8181 G....@ma... http://www.massey.ac.nz/~gkloss |
|
From: Venkat R. <ven...@gm...> - 2010-07-12 16:47:04
|
FWIW, I can confirm Eric's observation. I recently installed vpython (Ubuntu's version) on my older machine which has 32-bit Ubuntu-10.04. If we just install vpython it doesn't seem to pull all the dependencies. When running, it shows some obscure opengl errors. Then if we do, apt-get install libgtkglextmm-x11-1.2-dev it works. Probably a dependency bug. Bye, Venkat. On Fri, May 28, 2010 at 7:07 PM, Guy K. Kloss <g....@ma...> wrote: > On Sat, 29 May 2010 10:14:26 Eric Ayars wrote: > > They give me vpython 5.12, which I know is not the latest version but > after > > the absurd amount of time I've blown on this problem I really don't care > > whether it's the latest or not! > > If you're then just using a binary packaged version of python-visual, you > do > not need the "*-dev" packages. These are *only* required for > building/compiling. So you may want to try to chuck these out and see if it > still works (it should). > > On a side note, I've found that aptitude instead of apt-get is better at > resolving dependencies, and it keeps the system cleaner, as it knows and > tracks what packages were installed purely as a dependency, and it kicks > them > out automatically again as soon as they're orphaned. It should be for most > purposes a drop in replacement for apt-get. > > Guy > > -- > Guy K. Kloss > Institute of Information and Mathematical Sciences > Te Kura Pūtaiao o Mōhiohio me Pāngarau > Massey University, Albany (North Shore City, Auckland) > 473 State Highway 17, Gate 1, Mailroom, Quad B Building > voice: +64 9 414-0800 ext. 9266 fax: +64 9 441-8181 > G....@ma... http://www.massey.ac.nz/~gkloss<http://www.massey.ac.nz/%7Egkloss> > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
|
From: Andrew M. <amo...@de...> - 2010-07-12 19:40:04
|
This bug seems to come up when there is a new release of Ubuntu. Last fall (or winter, can't remember) when I ran into the problem, the discussion on this list seemed to indicate that we file bug reports. So, I posted a comment to this bug: https://bugs.launchpad.net/bugs/482928 All the discussions I've read seemed to indicate that there is a problem with how python is making the opengl calls. For whatever reason, it only works when the -dev package is installed, which is not how python normally works. One of the debian maintainers submitted a fix that now requires the -dev package to be included on installs of python-visual. I don't think that is an ideal fix, but from an end user standpoint (assuming this trickles down to ubuntu) it should work all right. I'm no developer, so I can't really complain, but I was hoping it would be fixed in a better way. On Mon, Jul 12, 2010 at 11:46 AM, Venkat Ramanan <ven...@gm...> wrote: > FWIW, I can confirm Eric's observation. > > I recently installed vpython (Ubuntu's version) on my older machine which > has 32-bit Ubuntu-10.04. > > If we just install vpython it doesn't seem to pull all the dependencies. > When running, it shows some obscure opengl errors. > > Then if we do, > > apt-get install libgtkglextmm-x11-1.2-dev > > it works. Probably a dependency bug. > > Bye, > Venkat. > > On Fri, May 28, 2010 at 7:07 PM, Guy K. Kloss <g....@ma...> wrote: >> >> On Sat, 29 May 2010 10:14:26 Eric Ayars wrote: >> > They give me vpython 5.12, which I know is not the latest version but >> > after >> > the absurd amount of time I've blown on this problem I really don't care >> > whether it's the latest or not! >> >> If you're then just using a binary packaged version of python-visual, you >> do >> not need the "*-dev" packages. These are *only* required for >> building/compiling. So you may want to try to chuck these out and see if >> it >> still works (it should). >> >> On a side note, I've found that aptitude instead of apt-get is better at >> resolving dependencies, and it keeps the system cleaner, as it knows and >> tracks what packages were installed purely as a dependency, and it kicks >> them >> out automatically again as soon as they're orphaned. It should be for most >> purposes a drop in replacement for apt-get. >> >> Guy >> >> -- >> Guy K. Kloss >> Institute of Information and Mathematical Sciences >> Te Kura Pūtaiao o Mōhiohio me Pāngarau >> Massey University, Albany (North Shore City, Auckland) >> 473 State Highway 17, Gate 1, Mailroom, Quad B Building >> voice: +64 9 414-0800 ext. 9266 fax: +64 9 441-8181 >> G....@ma... http://www.massey.ac.nz/~gkloss >> >> >> ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Visualpython-users mailing list >> Vis...@li... >> https://lists.sourceforge.net/lists/listinfo/visualpython-users >> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |