6 posts / 0 new
Last post
ForumImport
Offline
Last seen: 8 years 4 months ago
Joined: 09/22/2009 - 18:47
Gentoo gcc-4.6.1 and boost 1.46 problem

[ 15%] Building CXX object k3dsdk/CMakeFiles/k3dsdk.dir/xpath.cpp.o
In file included from /var/tmp/portage/media-gfx/k3d-0.8.0.1/work/k3d-source-0.8.0.1/k3dsdk/xpath.cpp:28:0:
/usr/include/boost-1_46/boost/spirit.hpp:18:4: warning: #warning "This header is deprecated. Please use: boost/spirit/include/classic.hpp" [-Wcpp]
In file included from /var/tmp/portage/media-gfx/k3d-0.8.0.1/work/k3d-source-0.8.0.1/k3dsdk/gil/boost/gil/extension/numeric/../../extension/dynamic_image/apply_operation.hpp:21:0,
from /var/tmp/portage/media-gfx/k3d-0.8.0.1/work/k3d-source-0.8.0.1/k3dsdk/gil/boost/gil/extension/numeric/../../extension/dynamic_image/dynamic_image_all.hpp:24,
from /var/tmp/portage/media-gfx/k3d-0.8.0.1/work/k3d-source-0.8.0.1/k3dsdk/gil/boost/gil/extension/numeric/resample.hpp:14,
from /var/tmp/portage/media-gfx/k3d-0.8.0.1/work/k3d-source-0.8.0.1/k3dsdk/utility_gl.cpp:36:
/var/tmp/portage/media-gfx/k3d-0.8.0.1/work/k3d-source-0.8.0.1/k3dsdk/gil/boost/gil/extension/numeric/../../extension/dynamic_image/apply_operation_base.hpp:117:22: error: reference ‘_op’ cannot be declared ‘mutable’ [-fpermissive]
/var/tmp/portage/media-gfx/k3d-0.8.0.1/work/k3d-source-0.8.0.1/k3dsdk/gil/boost/gil/extension/numeric/../../extension/dynamic_image/apply_operation_base.hpp:130:22: error: reference ‘_op’ cannot be declared ‘mutable’ [-fpermissive]
make[2]: *** [k3dsdk/CMakeFiles/k3dsdk.dir/utility_gl.cpp.o] Error 1
make[1]: *** [k3dsdk/CMakeFiles/k3dsdk.dir/all] Error 2
make: *** [all] Error 2
emake failed

ForumImport
Offline
Last seen: 8 years 4 months ago
Joined: 09/22/2009 - 18:47
Gentoo gcc-4.6.1 and boost 1.46 problem

Could be more gcc 4.6 related than boost 1.46, I'm using boost 1.46.1 without problems here, though with gcc 4.5. Would it be much trouble to try with the latest mercurial? If you have the dependencies installed already, the quick instructions at http://developer.k-3d.org/ should work.
Regards,
Bart

ForumImport
Offline
Last seen: 8 years 4 months ago
Joined: 09/22/2009 - 18:47
Gentoo gcc-4.6.1 and boost 1.46 problem

Aha, I see. Thank you.
Tried fresh sources and got different error much mor later:
[ 42%] Building CXX object modules/nurbs/CMakeFiles/k3d-nurbs.dir/extrude_patch.cpp.o
In file included from /usr/include/boost-1_46/boost/gil/extension/io/png_io.hpp:41:0,
from /home/dave2/k3d/k3d/modules/png_io/bitmap_importer.cpp:30:
/usr/include/boost-1_46/boost/gil/extension/io/png_io_private.hpp: In member function ‘void boost::gil::detail::png_reader_color_convert::apply(const View&)’:
/usr/include/boost-1_46/boost/gil/extension/io/png_io_private.hpp:228:22: error: ‘int_p_NULL’ was not declared in this scope
Will try fresh sources compilation.
Thank you.

ForumImport
Offline
Last seen: 8 years 4 months ago
Joined: 09/22/2009 - 18:47
Gentoo gcc-4.6.1 and boost 1.46 problem

For the lastest problem: it is a libpng change. The patch is attached.
For the first problem: it's caused because gcc 4.6 needs const object initialized. Patch soon.

ForumImport
Offline
Last seen: 8 years 4 months ago
Joined: 09/22/2009 - 18:47
Gentoo gcc-4.6.1 and boost 1.46 problem

Ok, I resolved all the errors, and I could compile k3d 0.8.0.1 on archlinux with lastest version of all packages.
You'll find all patches here: (click "Tarball"):
https://aur.archlinux.org/packages.php?ID=3638
I hope that developers will include them.

ForumImport
Offline
Last seen: 8 years 4 months ago
Joined: 09/22/2009 - 18:47
Gentoo gcc-4.6.1 and boost 1.46 problem

Many thanks for the changes, the GTK combobox problem is a thing I had hit as well, but your fix is much better because it works on both old and new Gtk versions. I've included it in the latest head.
As for the rest of the fixes, these seem to be against older revisions of the code and I think they're no longer needed. Since Ubuntu is on gcc 4.6 too now, I was able to test, and everything seems to work now.
Could you try the latest from http://sourceforge.net/scm/?type=hg&group_id=11113 and see if it also compiles for you? If it does, I could bump the minor version number and do a new release, it's way overdue anyway.
Cheers,
Bart

Log in or register to post comments