error when compiling SILLY in win32 xp VC 2008

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

umen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Mon Sep 12, 2011 08:24

error when compiling SILLY in win32 xp VC 2008

Postby umen » Wed Sep 21, 2011 08:51

Hi
im in the process to recompile all the dependces the CEGUI is using to :Multi-threaded Debug DLL (/MDd)
already recompile all the free dependences and now the last SILLY lib . and here im have compilation error :

Code: Select all

1>SILLYPNGImageLoader.cpp
1>d:\cpp\libs\silly\silly-0.1.0\silly-0.1.0\src\loaders\sillypngimageloader.cpp(69) : error C2027: use of undefined type 'png_struct_def'
1>        d:\cpp\libs\silly\silly-0.1.0\silly-0.1.0\extlib\libpng154\include\png.h(819) : see declaration of 'png_struct_def'
1>d:\cpp\libs\silly\silly-0.1.0\silly-0.1.0\src\loaders\sillypngimageloader.cpp(69) : error C2227: left of '->jmpbuf' must point to class/struct/union/generic type


in the function :

Code: Select all

void PNG_error_function(png_structp png_ptr,
                        png_const_charp error)
{
    //  printf("PNG Error: %s\n", error);
    // copied from libpng's pngerror.cpp
    jmp_buf buf;
    memcpy(buf, png_ptr->jmpbuf, sizeof(jmp_buf));
    longjmp(buf, 1);
}


when i remark the :

Code: Select all

 memcpy(buf, png_ptr->jmpbuf, sizeof(jmp_buf));
    longjmp(buf, 1);


every thing is working fine .
im using libpng154 .

umen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Mon Sep 12, 2011 08:24

Re: error when compiling SILLY in win32 xp VC 2008

Postby umen » Wed Sep 21, 2011 10:20

I will answer my self , simple . CEGUI ZILLY lib using libpng 1.48 version .

User avatar
Mikademus
CEGUI MVP
CEGUI MVP
Posts: 130
Joined: Wed Mar 18, 2009 19:14

Re: error when compiling SILLY in win32 xp VC 2008

Postby Mikademus » Wed Sep 21, 2011 23:05

I upvoted you for your very quick answer to your own question! :hammer:


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 13 guests