In Qt Creator ,Application.pro I have these lines of code:
...
#------------------------------------------------------------------------------
# Compiler flags:
#------------------------------------------------------------------------------
CONFIG += warn_off
QMAKE_LFLAGS += -Wl,-rpath,$$(VTKHOME)/lib/vtk-5.2
win32 {
QMAKE_LFLAGS += /NODEFAULTLIB:library
}
QMAKE_CXXFLAGS_DEBUG += -g
QMAKE_CXXFLAGS += -g
...
when I run the project I got this error:
error: /NODEFAULTLIB:library: No such file or directory
Its maybe related to qt creator environment settings ,or program codes.
As I changed This
CONFIG += warn_off
to
CONFIG += static
there is no error but a window opens and want to specify an executable File, and at last Run * and below is the message
No executable specified.
I have these files in my release folder:
AppGUI_res.o
libApp.a
libtest.a
so what should I do to Execute my program ,It Built with no errors.
Bookmarks