[Solved] cegui-deps-0.8.x-src Invalid def files (MinGW)

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

odedsh
Just popping in
Just popping in
Posts: 12
Joined: Thu Nov 14, 2013 18:17

[Solved] cegui-deps-0.8.x-src Invalid def files (MinGW)

Postby odedsh » Fri Nov 15, 2013 06:37

I've encountered the following problem compiling cegui-deps for 0.8 on Windows using MinGW with gcc 4.7.2. Makefile generated with CMake 2.8

libPNG and EXPAT come with def files that can't be recognized by gcc:
pngwin.def, libexpat.def, libexpatw.def

All of these contain the LIBRARY keyword. Which causes a syntax error :

C:\MinGW\bin\gcc.exe ..\scripts\pngwin.def -shared -o ..\..\..\dependencies\bin\liblibpng.dll -Wl,--out-implib,..\..\..\dependencies\lib\dynamic\liblibpng.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive CMakeFiles\libpng.dir/objects.a -Wl,--no-whole-archive ..\..\..\dependencies\lib\dynamic\libzlib.dll.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32

c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: ..\scripts\pngwin.def:5: syntax error
c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe:..\scripts\pngwin.def: file format not recognized;treating as linker script
c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe:..\scripts\pngwin.def:1: syntax error
collect2.exe: error: ld returned 1 exit status
src\libpng-1.4.7\CEGUI-BUILD\CMakeFiles\libpng.dir\build.make:455: recipe for target 'dependencies/bin/liblibpng.dll' failed
Mingw32-make[2]: *** [dependencies/bin/liblibpng.dll] Error 1


According to:http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/The-Definition-File.html LIBRARY should come with a textual name. Also all other .def files provided do not come with a LIBRARY statement.

Bertram
Quite a regular
Quite a regular
Posts: 73
Joined: Wed Oct 02, 2013 14:46

Re: Bug Report: cegui-deps-0.8.x-src Invalid def files (MinG

Postby Bertram » Sat Nov 16, 2013 01:35

Hi, I confirm the following problem.

Regards,

odedsh
Just popping in
Just popping in
Posts: 12
Joined: Thu Nov 14, 2013 18:17

Re: Bug Report: cegui-deps-0.8.x-src Invalid def files (MinG

Postby odedsh » Sat Nov 23, 2013 20:38

By removing the 'LIBRARY' keyword from the .def files I was able to complete the compilation.

I'll figure out how to suggest a patch to the library but for now anyone interested can easily solve this manually

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Bug Report: cegui-deps-0.8.x-src Invalid def files (MinG

Postby Ident » Fri Jan 03, 2014 15:09

you can fork CEGUI, make a branch for your patch, and do a pull request:
https://confluence.atlassian.com/displa ... l+requests
CrazyEddie: "I don't like GUIs"


User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Bug Report: cegui-deps-0.8.x-src Invalid def files (MinG

Postby Ident » Sat Jan 04, 2014 14:49

Thank you for contributing, it was merged!
CrazyEddie: "I don't like GUIs"


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 17 guests