Page 1 of 1

Unable to build in Qt Creator

PostPosted: Wed Mar 13, 2013 1:35 pm
by emil1532
Hi,

I'm getting the following compile error in Qt Creator:
Code: Select all
g++ -mthreads -Wl,-subsystem,windows -o debug\goldendict.exe object_script.goldendict.Debug  -L"c:\QtSDK\Desktop\Qt\4.8.4\MinGW\lib" -lmingw32 -lqtmaind build\goldendict_res.o -lz -liconv -lwsock32 -lwinmm -lpsapi -lvorbisfile -lvorbis -logg -lhunspell-1.2 -Lwinlibs/lib -lQtWebKitd4 -lphonond4 -lQtXmld4 -lQtGuid4 -lQtNetworkd4 -lQtCored4
mingw32-make.exe[1]: Leaving directory `D:/Documents/sandbox/goldendict-build-desktop-Qt_4_8_4__MinGW__Debug'
c:/qtsdk/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lz

I'm on Windows 7 32-bit, with Qt 4.8.4 for MinGW. I'm trying to build the source package downloaded from GoldenDict website (1.0.1).

However, I'm able to successfully build GoldenDict on command line by running "qmake goldendict.pro" and "make". What do you think could be the problem?

Re: Unable to build in Qt Creator

PostPosted: Wed Mar 13, 2013 2:00 pm
by Tvangeste
1.0.1 version is very old, you'd better use the latest source from Github, it should compile on Windows with no problems.

https://github.com/goldendict/goldendict

Just clone the repository like this: git clone git://github.com/goldendict/goldendict.git

Alternatively, you could download the sources from here: https://github.com/goldendict/goldendic ... master.zip , but I'd recommend to get the proper clone so that you could get source updates any time.