[SOLVED] Build Errors (Dependencies package)- libpng?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

tomadom
Just popping in
Just popping in
Posts: 14
Joined: Fri Dec 05, 2014 13:08

[SOLVED] Build Errors (Dependencies package)- libpng?

Postby tomadom » Sat Dec 06, 2014 01:51

Hi
I'm using a MinGW compiler 4.8.1 on Windows XP (Win32).
The creating a Makefile with Cmake for the CEGUI dependencies downloaded from the CEGUI website seems to work fine. The build process not so good.

The errors are below. I'm terrible at solving these issues so I'm wondering if someone could point me in the right direction as I really want to start using CEGUI. I may need to build each dependency individually. I initially had a similar error with libexpat so I built it on it's own. Now the error has moved to libpng.
I'm not using C++11 if that helps explain it.

Here's the errors occuring during the make process. I've included some of the lead up output as well.

Code: Select all

Scanning dependencies of target libpng
[  7%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/png.c.obj
[  8%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngerror.c.obj
[  8%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngget.c.obj
[  8%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngmem.c.obj
[  8%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngpread.c.obj
[  8%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngread.c.obj
[  8%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngrio.c.obj
[  9%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngrtran.c.obj
[  9%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngrutil.c.obj
[  9%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngset.c.obj
[  9%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngtrans.c.obj
[  9%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngwio.c.obj
[  9%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngwrite.c.obj
[  9%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngwtran.c.obj
[ 10%] Building C object src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/__/pngwutil.c.obj
Linking C shared library ..\..\..\dependencies\bin\liblibpng.dll
c:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: ..\scripts\pngwin.def:5: syntax error
c:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:..\scripts\pngwin.def: file format not recognized; treating as linker script
c:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../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[3]: *** [dependencies/bin/liblibpng.dll] Error 1
CMakeFiles\Makefile2:211: recipe for target 'src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/all' failed
mingw32-make[2]: *** [src/libpng-1.4.7/CEGUI-BUILD/CMakeFiles/libpng.dir/all] Error 2
Makefile:74: recipe for target 'all' failed
mingw32-make[1]: *** [all] Error 2

c:\cegui-deps-0.8.x-src>
Last edited by tomadom on Sun Dec 07, 2014 12:14, edited 1 time in total.

tomadom
Just popping in
Just popping in
Posts: 14
Joined: Fri Dec 05, 2014 13:08

Re: Build Errors (Dependencies package)- libpng?

Postby tomadom » Sat Dec 06, 2014 07:14

Ok.. Has anyone successfully built CEGUI and it's dependencies on Windows XP using a MinGW compiler?

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

Re: Build Errors (Dependencies package)- libpng?

Postby Ident » Sat Dec 06, 2014 11:59

What CEGUI version?

From what I see it seems that libpng is incorrectly named liblibpng ? Could this be? Could be a bug in the CMake but why did it not happen on other compilers then, also people successfuly used MINGW in the past (see forum search)
CrazyEddie: "I don't like GUIs"

tomadom
Just popping in
Just popping in
Posts: 14
Joined: Fri Dec 05, 2014 13:08

Re: Build Errors (Dependencies package)- libpng?

Postby tomadom » Sun Dec 07, 2014 04:54

I'm using the latest CEGUI version but I think I'll try some earlier versions.
I'm using Cmake 2.8.12 and have tried later versions as well. I think the problem is originating with Cmake as I am now getting the below errors..



Code: Select all


C:\cegui-deps-0.8.x-src>cmake -G "MinGW Makefiles"
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: C:/CodeBlocks/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/CodeBlocks/MinGW/bin/gcc.exe -- broken
CMake Error at C:/cmake/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "C:/CodeBlocks/MinGW/bin/gcc.exe" is not able to compile a
  simple test program.

  It fails with the following output:

   Change Dir: C:/cegui-deps-0.8.x-src/CMakeFiles/CMakeTmp



  Run Build Command:C:/CodeBlocks/MinGW/bin/mingw32-make.exe
  "cmTryCompileExec2551396697/fast"

  C:/CodeBlocks/MinGW/bin/mingw32-make.exe -f
  CMakeFiles\cmTryCompileExec2551396697.dir\build.make
  CMakeFiles/cmTryCompileExec2551396697.dir/build

  mingw32-make.exe[1]: Entering directory
  'C:/cegui-deps-0.8.x-src/CMakeFiles/CMakeTmp'

  C:\cmake\bin\cmake.exe -E cmake_progress_report
  C:\cegui-deps-0.8.x-src\CMakeFiles\CMakeTmp\CMakeFiles 1

  Building C object
  CMakeFiles/cmTryCompileExec2551396697.dir/testCCompiler.c.obj

  C:\CodeBlocks\MinGW\bin\gcc.exe -o
  CMakeFiles\cmTryCompileExec2551396697.dir\testCCompiler.c.obj -c
  C:\cegui-deps-0.8.x-src\CMakeFiles\CMakeTmp\testCCompiler.c

  Linking C executable cmTryCompileExec2551396697.exe

  C:\cmake\bin\cmake.exe -E cmake_link_script
  CMakeFiles\cmTryCompileExec2551396697.dir\link.txt --verbose=1

  C:\cmake\bin\cmake.exe -E remove -f
  CMakeFiles\cmTryCompileExec2551396697.dir/objects.a

  C:\CodeBlocks\MinGW\bin\ar.exe cr
  CMakeFiles\cmTryCompileExec2551396697.dir/objects.a
  @CMakeFiles\cmTryCompileExec2551396697.dir\objects1.rsp

  C:\CodeBlocks\MinGW\bin\gcc.exe C:/cegui-deps-0.8.x-src/src/zlib-1.2.5
  -Wl,--whole-archive CMakeFiles\cmTryCompileExec2551396697.dir/objects.a
  -Wl,--no-whole-archive -o cmTryCompileExec2551396697.exe
  -Wl,--out-implib,libcmTryCompileExec2551396697.dll.a
  -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32
  -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32
  -ladvapi32


  c:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
  cannot find C:/cegui-deps-0.8.x-src/src/zlib-1.2.5: Permission denied

  collect2.exe: error: ld returned 1 exit status

  CMakeFiles\cmTryCompileExec2551396697.dir\build.make:91: recipe for target
  'cmTryCompileExec2551396697.exe' failed

  mingw32-make.exe[1]: Leaving directory
  'C:/cegui-deps-0.8.x-src/CMakeFiles/CMakeTmp'

  mingw32-make.exe[1]: *** [cmTryCompileExec2551396697.exe] Error 1

  Makefile:116: recipe for target 'cmTryCompileExec2551396697/fast' failed

  mingw32-make.exe: *** [cmTryCompileExec2551396697/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:17 (project)


-- Configuring incomplete, errors occurred!
See also "C:/cegui-deps-0.8.x-src/CMakeFiles/CMakeOutput.log".
See also "C:/cegui-deps-0.8.x-src/CMakeFiles/CMakeError.log".

C:\cegui-deps-0.8.x-src>

tomadom
Just popping in
Just popping in
Posts: 14
Joined: Fri Dec 05, 2014 13:08

Re: Build Errors (Dependencies package)- libpng?

Postby tomadom » Sun Dec 07, 2014 12:13



Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests