Hi all,
I'm relative newbee in QtDeveloppement with c++ on windows.
I' m working on project with integration of videoInput library and Qt4 gui together, but i have some pbm to include this lib in the .pro file for compiling :
I'm using mingw32 and Qt4.43.
this is mi simple .pro file :
TEMPLATE = app
TARGET =
DEPENDPATH += .
# Input
HEADERS += webcamapp.h
FORMS += winCam.ui
SOURCES += main.cpp webcamapp.cpp
INCLUDEPATH += "C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp\include"
LIBS += -L"C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp"
LIBS += -videoInputLib.a
TEMPLATE = app
TARGET =
DEPENDPATH += .
# Input
HEADERS += webcamapp.h
FORMS += winCam.ui
SOURCES += main.cpp webcamapp.cpp
INCLUDEPATH += "C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp\include"
LIBS += -L"C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp"
LIBS += -videoInputLib.a
To copy to clipboard, switch view to plain text mode
i'm testing with -lvideoInputLib to but the lib is not find...!!!
the library is in an directory : videoInputLib.a with an other dir for include .h
If i use this library in codeblocks with the same mingw without Qt4 project there is no pbm....
is there a special command in .pro file to include lib in .a format and not .lib ?
(i can import some other lib if it's in this format from other library).
the make process return this error :
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/production/worklab/cpp/progetTest/webcam
QTV'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -Wl,-subsystem,windows -o debug\webcamQTV.exe debug/main.o debu
g/webcamapp.o -L"c:\Qt\4.4.3\lib" -lmingw32 -lqtmaind "-LC:\Program Files\video
Input01995\compiledLib\compiledByDevCpp" -videoInputLib.a -lQtGuid4 -lQtCored4
g++: unrecognized option `-videoInputLib.a'
debug/webcamapp.o: In function `_ZN9WebCamAppC2Ev':
D:/production/worklab/cpp/progetTest/webcamQTV/webcamapp.cpp:15: undefined refer
ence to `videoInput::listDevices(bool)'
debug/webcamapp.o: In function `_ZN9WebCamAppC1Ev':
D:/production/worklab/cpp/progetTest/webcamQTV/webcamapp.cpp:15: undefined refer
ence to `videoInput::listDevices(bool)'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\webcamQTV.exe] Error 1
mingw32-make[1]: Leaving directory `D:/production/worklab/cpp/progetTest/webcamQ
TV'
mingw32-make: *** [debug] Error 2
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/production/worklab/cpp/progetTest/webcam
QTV'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -Wl,-subsystem,windows -o debug\webcamQTV.exe debug/main.o debu
g/webcamapp.o -L"c:\Qt\4.4.3\lib" -lmingw32 -lqtmaind "-LC:\Program Files\video
Input01995\compiledLib\compiledByDevCpp" -videoInputLib.a -lQtGuid4 -lQtCored4
g++: unrecognized option `-videoInputLib.a'
debug/webcamapp.o: In function `_ZN9WebCamAppC2Ev':
D:/production/worklab/cpp/progetTest/webcamQTV/webcamapp.cpp:15: undefined refer
ence to `videoInput::listDevices(bool)'
debug/webcamapp.o: In function `_ZN9WebCamAppC1Ev':
D:/production/worklab/cpp/progetTest/webcamQTV/webcamapp.cpp:15: undefined refer
ence to `videoInput::listDevices(bool)'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\webcamQTV.exe] Error 1
mingw32-make[1]: Leaving directory `D:/production/worklab/cpp/progetTest/webcamQ
TV'
mingw32-make: *** [debug] Error 2
To copy to clipboard, switch view to plain text mode
Sorry for this poor indication, but i reallyy need to resolve this pb m .
thank's a lot.
Bookmarks