scons error

Bug #736143 reported by Joseph Borg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyexiv2
Fix Released
Low
Olivier Tilloy

Bug Description

This is what I get when I try to compile. Can I get some help please?

[root@box pyexiv2]# scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/exiv2wrapper.os -c -fPIC -I/usr/include/python2.4 src/exiv2wrapper.cpp
/usr/include/boost/python/return_opaque_pointer.hpp: In member function 'PyObject* boost::python::detail::opaque_conversion_holder<Pointer>::operator()(Pointer) const':
/usr/include/boost/python/return_opaque_pointer.hpp:25: error: expected initializer before '<' token
/usr/include/boost/python/return_opaque_pointer.hpp:28: error: expected primary-expression before '.' token
scons: *** [build/exiv2wrapper.os] Error 1
scons: building terminated because of errors.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Joe, can you please detail what versions of pyexiv2 and its dependencies you are trying to compile?

Note that the 0.3 series of pyexiv2 requires Python ≥ 2.6, and I see here that you are compiling against Python 2.4.

See the documentation for more details on the required dependencies: http://tilloy.net/dev/pyexiv2/developers.html.

Changed in pyexiv2:
status: New → Incomplete
Revision history for this message
Joseph Borg (joeborg) wrote :

I'm stuck with 2.4 for the time being, can I compile 0.2.2 on 2.4?

Revision history for this message
Olivier Tilloy (osomon) wrote :

I haven’t tested compiling against Python 2.4 for a long time, so I’m not sure that even pyexiv2 0.2.2 will compile, but in any case it would be worth giving it a try. Your feedback will be welcome!

Revision history for this message
Olivier Tilloy (osomon) wrote :

Joe, any progress on this front?
Have you managed to compile pyexiv2 0.2.2 on Python 2.4?

Revision history for this message
Olivier Tilloy (osomon) wrote :

The scons script could easily be improved to check the version of Python before starting compilation and fail gracefully with a meaningful error message when Python < 2.6.

Changed in pyexiv2:
importance: Undecided → Low
status: Incomplete → Confirmed
Olivier Tilloy (osomon)
Changed in pyexiv2:
assignee: nobody → Olivier Tilloy (osomon)
status: Confirmed → In Progress
Revision history for this message
Olivier Tilloy (osomon) wrote :

Fixed at revision 362 of lp:~osomon/pyexiv2/pyexiv2-0.3.

The build script will now check that the version of Python is ≥ 2.6, and it will fail gracefully with a meaningful error message if this requirement is not met.

Changed in pyexiv2:
status: In Progress → Fix Committed
Olivier Tilloy (osomon)
Changed in pyexiv2:
milestone: none → 0.3.1
Olivier Tilloy (osomon)
Changed in pyexiv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.