Open GoogleCodeExporter opened 8 years ago
Hi,
I tried to fix this in rev #881, but I'm not sure whether it helps, because I
have no access to the Linux machine at the moment (there can be more things
broken).
So please try rev #881 and post here another problems;)
Thanks!
Petr
Original comment by kobalicek.petr
on 3 Feb 2012 at 10:09
Hi, thanks for your help.
Ok, this error it fixed, but I have another error...
This error appear in revision r881 and r883...
[...]
[ 58%] Building CXX object
CMakeFiles/Fog.dir/Src/Fog/G2d/Imaging/Codecs/PngCodec.cpp.o
In file included from
/home/spire/workspace/fog-r881/Fog/Src/Fog/G2d/Imaging/Codecs/PngCodec.cpp:25:0:
/home/spire/workspace/fog-r881/Fog/Src/Fog/G2d/Imaging/Codecs/PngCodec_p.h:77:65
: error: ‘png_longjmp_ptr’ has not been declared
/home/spire/workspace/fog-r881/Fog/Src/Fog/G2d/Imaging/Codecs/PngCodec.cpp: In
member function ‘virtual err_t Fog::PngDecoder::readHeader()’:
/home/spire/workspace/fog-r881/Fog/Src/Fog/G2d/Imaging/Codecs/PngCodec.cpp:286:7
: error: invalid conversion from ‘void (*)(__jmp_buf_tag*, int)throw ()’ to
‘int’ [-fpermissive]
/home/spire/workspace/fog-r881/Fog/Src/Fog/G2d/Imaging/Codecs/PngCodec.cpp: In
member function ‘virtual err_t Fog::PngDecoder::readImage(Fog::Image&)’:
/home/spire/workspace/fog-r881/Fog/Src/Fog/G2d/Imaging/Codecs/PngCodec.cpp:351:7
: error: invalid conversion from ‘void (*)(__jmp_buf_tag*, int)throw ()’ to
‘int’ [-fpermissive]
/home/spire/workspace/fog-r881/Fog/Src/Fog/G2d/Imaging/Codecs/PngCodec.cpp: In
member function ‘virtual err_t Fog::PngEncoder::writeImage(const
Fog::Image&)’:
/home/spire/workspace/fog-r881/Fog/Src/Fog/G2d/Imaging/Codecs/PngCodec.cpp:542:7
: error: invalid conversion from ‘void (*)(__jmp_buf_tag*, int)throw ()’ to
‘int’ [-fpermissive]
make[2]: *** [CMakeFiles/Fog.dir/Src/Fog/G2d/Imaging/Codecs/PngCodec.cpp.o]
Error 1
make[1]: *** [CMakeFiles/Fog.dir/all] Error 2
make: *** [all] Error 2
Original comment by claudio....@gmail.com
on 3 Feb 2012 at 1:24
Hi,
this issue is known for older versions of libpng. The missing symbols were
added in libpng 1.5. Stable version of Fog is expected for distant future, so
it was decided to build against newer version of libraries to fix potential
issues.
PNG 1.4 -> 1.5 changes are here:
http://www.libpng.org/pub/png/src/libpng-1.4.x-to-1.5.x-summary.txt
So please try to upgrade your libpng version. 1.5 is more than one year old, I
don't think this should be a problem ;)
Hope that helps
Petr
Original comment by kobalicek.petr
on 3 Feb 2012 at 1:36
Hi, Wow.
In Ubuntu 11.10/Linux Mint 12 not exist a repository of libpng 1.5.
The standard libpng are 1.2.46.
But ok, I've upgraded from sources.
My new error are:
[ 94%] Building CXX object
CMakeFiles/Fog.dir/Src/Fog/UI/Engine/X11UIEngine.cpp.o
/home/spire/workspace/fog-read-only/Fog/Src/Fog/UI/Engine/X11UIEngine.cpp: In
member function ‘virtual void
Fog::X11UIEngine::doBlitWindow(Fog::UIEngineWindow*)’:
/home/spire/workspace/fog-read-only/Fog/Src/Fog/UI/Engine/X11UIEngine.cpp:988:23
: error: ‘struct Fog::ImageBits’ has no member named ‘size’
make[2]: *** [CMakeFiles/Fog.dir/Src/Fog/UI/Engine/X11UIEngine.cpp.o] Error 1
make[1]: *** [CMakeFiles/Fog.dir/all] Error 2
make: *** [all] Error 2
Thanks!
Original comment by claudio....@gmail.com
on 3 Feb 2012 at 3:19
Oh, okay :)
I tried to fix the error. But anyway, if you are planning to use Fog inside the
Qt application, then you don't need to build Fog-UI module, in that case just
write your own configure script, based on configure-unix-makefiles-dbg.sh and
disable UI (delete FOG_BUILD_UI part from cmake args).
Hope that helps ;)
Btw Fog is not finished library and there is quite poor support for text at the
moment, but the library is improving day by day.
Best
Petr
Original comment by kobalicek.petr
on 3 Feb 2012 at 3:39
Original issue reported on code.google.com by
claudio....@gmail.com
on 3 Feb 2012 at 2:09