D
D
deadcats2014-06-11 19:30:51
Qt
deadcats, 2014-06-11 19:30:51

Error: cannot find -lqtmaind/-lqtmain?

I'm trying to build a program in QtCreator (Qt 5.2 with MinGW4.8).
As a result, I get the only error:

:-1: error: cannot find -lqtmaind
collect2.exe:-1: error: error: ld returned 1 exit status

when building in debug, and similarly with -lqtmain in release. Hence the assumption that the problem is in the debug version of the library (in its absence, because it seems to be). PATH contains
C :\Qt\Qt5.2.0\Tools\mingw48_32\bin;C:\Qt\Qt5.2.0\5.2.0\mingw48_32\bin; (not a problem with the paths) Tell me what is the problem, in which direction to look at all? UPD: Linking:

g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\signal_viewer.exe build/main.o build/moc_main.o  -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -lqtmain -LC:/Users/Deadcats/Desktop/signal_view/fftw3/ "-LC:\Program Files (x86)\Jack\lib\" -LC:\Qt\Qt5.2.0\5.2.0\mingw48_32\lib -lQt5OpenGL -lQt5Widgets -lQt5Gui -lQt5Core 
c:/qt/qt5.2.0/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lqtmain
collect2.exe: error: ld returned 1 exit status

The problem with the paths and the truth. libqtmain(d).a is in lib . To be honest, I don't really know what to do next. If you specify a path or copy files, then about fifty undefined reference to _imp__...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Paul, 2014-06-13
@deadcats

It's because of the
Well, or install this Jack somewhere along the way without spaces.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question