Hello,

 

I have been trying to build on windows all weekend, but to no avail.

I am using a fresh windows install with Qt 4.8.1, and cmake 2.8.11.2.

 

I am not sure whether it is a fault on my side, or otherwise:

 

1. The first issue was about zlib. At the website
(http://trojita.flaska.net/download.html),

   it says that zlib is optional, and yet the build always fails at:

 

   [  9%] Building CXX object
CMakeFiles/Streams.dir/src/Streams/IODeviceSocket.cpp.obj

   In file included from
C:\trojita\trojita-trojita\src\Streams\IODeviceSocket.cpp:

   30:

   C:\trojita\trojita-trojita\src\Streams\/3rdparty/rfc1951.h:47:18: error:
zlib.h: No such file or directory

   In file included from
C:\trojita\trojita-trojita\src\Streams\IODeviceSocket.cpp:30:

   C:\trojita\trojita-trojita\src\Streams\/3rdparty/rfc1951.h:74: error:
'z_stream' does not name a type

   C:\trojita\trojita-trojita\src\Streams\/3rdparty/rfc1951.h:91: error:
'z_stream' does not name a type

   mingw32-make[2]: ***
[CMakeFiles/Streams.dir/src/Streams/IODeviceSocket.cpp.obj]

    Error 1

   mingw32-make[1]: *** [CMakeFiles/Streams.dir/all] Error 2

   mingw32-make: *** [all] Error 2

 

2. After including zlib, the project builds to 100%, and then fails with:

 

[100%] Building RC object
CMakeFiles/trojita.dir/src/trojita_ico_win32.rc.obj

CMakeFiles\trojita.dir\build.make:80: recipe for target
`CMakeFiles/trojita.dir/src/trojita_ico_win32.rc.obj' failed

CMakeFiles\Makefile2:2591: recipe for target `CMakeFiles/trojita.dir/all'
failed

makefile:125: recipe for target `all' failed The system cannot find the path
specified.

D:\MinGW\bin\windres.exe: preprocessing failed.

mingw32-make[2]: *** [CMakeFiles/trojita.dir/src/trojita_ico_win32.rc.obj]
Error 1

mingw32-make[1]: *** [CMakeFiles/trojita.dir/all] Error 2

mingw32-make: *** [all] Error 2

12:10:39: The process "D:\MinGW\bin\mingw32-make.exe" exited with code 2.

Error while building/deploying project trojita (kit: 481-mingw) When
executing step 'Make'

 

Please advise.

 

Reply via email to