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