Coder Social home page Coder Social logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
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

  • Changed state: Accepted

from fog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
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 [email protected] on 3 Feb 2012 at 1:24

from fog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
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

from fog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
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 [email protected] on 3 Feb 2012 at 3:19

from fog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
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

from fog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.