
Hi, I am using the latest GIL for the Boost review. Trying to compile the simplest example below and I get the compiler errors further below. Can you give me some ideas what's wrong ? I am running FC4 x86_64 with Boost 1.33 thanks =========================================================================== #define NO_ASL #include <gil/extension/dynamic_image/dynamic_image_all.hpp> #include <gil/extension/io/jpeg_dynamic_io.hpp> using namespace GIL; int main() { rgb8_image_t img; jpeg_read_image("test.jpg", img); jpeg_write_view("test_reverted.jpg", rotated180_view(const_view(img))); return 0; } =========================================================================== [root@server im]# make g++ -g -O6 -Wall -lpthread -L/usr/local/lib64 -I/usr/local/include/boost-1_33 -I. -o test test.cpp ./gil/extension/dynamic_image/../../core/locator.hpp: In member function 'ptrdiff_t gil::membased_2d_locator<I>::y_distance_to(const gil::membased_2d_locator<I>&, typename gil::pixel_2d_locator_base<gil::membased_2d_locator<S_IT>, typename gil::pixel_iterator_traits<PIT>::base_t, S_IT>::x_coord_t) const': ./gil/extension/dynamic_image/../../core/locator.hpp:290: error: invalid application of 'sizeof' to incomplete type 'boost::STATIC_ASSERTION_FAILURE<false>' ./gil/extension/io/jpeg_io_private.hpp: In member function 'void gil::detail::jpeg_reader::read_image(IMAGE&) [with IMAGE = gil::image<gil::image_view<gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*>
, std::allocator<unsigned char> >]': ./gil/extension/io/jpeg_io.hpp:90: instantiated from 'void gil::jpeg_read_image(const char*, IMAGE&) [with IMAGE = gil::rgb8_image_t]' test.cpp:10: instantiated from here ./gil/extension/io/jpeg_io_private.hpp:116: error: no matching function for call to 'resize_clobber_image(gil::image<gil::image_view<gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*> , std::allocator<unsigned char> >&, gil::point2<int>)' ./gil/extension/dynamic_image/../../core/image.hpp:205: note: candidates are: void gil::resize_clobber_image(IMG&, const typename IMG::point_t&) [with IMG = gil::image<gil::image_view<gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*> , std::allocator<unsigned char> >] ./gil/extension/io/jpeg_io_private.hpp: In member function 'void gil::detail::jpeg_reader::apply(const VIEW&) [with VIEW = gil::image_view<gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*> ]': ./gil/extension/io/jpeg_io_private.hpp:117: instantiated from 'void gil::detail::jpeg_reader::read_image(IMAGE&) [with IMAGE = gil::image<gil::image_view<gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*> , std::allocator<unsigned char> >]' ./gil/extension/io/jpeg_io.hpp:90: instantiated from 'void gil::jpeg_read_image(const char*, IMAGE&) [with IMAGE = gil::rgb8_image_t]' test.cpp:10: instantiated from here ./gil/extension/io/jpeg_io_private.hpp:103: error: no match for 'operator!=' in '(+ view)->gil::image_view<L>::dimensions [with LOC = gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*> >]() != gil::detail::jpeg_reader::get_dimensions() const()' make: *** [test] Error 1

Hi Jose, I just tried your program and it does compile on my machine. I'm using VC2003. Could you try to include "gil\core\gil_all.hpp" before including all the other gil header. Also, did you set the paths to boost and the jpeg lib headers? Christian

I am using gcc 4.0.2 on FC4 x86_64 I tried with gil_all.hpp but same error. (and I set both boost and jpeg headers - these are in the default /usr/include) thanks On 9/14/06, Christian Henning <chhenning@gmail.com> wrote:
Hi Jose, I just tried your program and it does compile on my machine. I'm using VC2003. Could you try to include "gil\core\gil_all.hpp" before including all the other gil header. Also, did you set the paths to boost and the jpeg lib headers?
Christian _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

The problem had to do with 64-bit architecture. Fix is on the way. I am working with Jose on verifying the fix. Thanks, Lubomir -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Jose Sent: Thursday, September 14, 2006 11:46 AM To: boost@lists.boost.org Subject: Re: [boost] GIL - basic example I am using gcc 4.0.2 on FC4 x86_64 I tried with gil_all.hpp but same error. (and I set both boost and jpeg headers - these are in the default /usr/include) thanks On 9/14/06, Christian Henning <chhenning@gmail.com> wrote:
Hi Jose, I just tried your program and it does compile on my machine. I'm using VC2003. Could you try to include "gil\core\gil_all.hpp" before including all the other gil header. Also, did you set the paths to boost and the jpeg lib headers?
Christian _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

I updated the GIL sources to fix the 64-bit incompatibility problems. Per Jose's suggestion I also added more GIL sample code to the hello_world.cpp file. http://opensource.adobe.com/gil/download.html Lubomir -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Jose Sent: Thursday, September 14, 2006 11:46 AM To: boost@lists.boost.org Subject: Re: [boost] GIL - basic example I am using gcc 4.0.2 on FC4 x86_64 I tried with gil_all.hpp but same error. (and I set both boost and jpeg headers - these are in the default /usr/include) thanks On 9/14/06, Christian Henning <chhenning@gmail.com> wrote:
Hi Jose, I just tried your program and it does compile on my machine. I'm using VC2003. Could you try to include "gil\core\gil_all.hpp" before including all the other gil header. Also, did you set the paths to boost and the jpeg lib headers?
Christian _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (3)
-
Christian Henning
-
Jose
-
Lubomir Bourdev