Get rid of the dash before the name of the library. It should be:
Get rid of the dash before the name of the library. It should be:
hi wysoata,
thank's for your reply....but this don't work....the library is don't find by gcc++.
and i have chekking one more time that the path is the good one.....
i don'k know where to find a way to fixe that
is it the same error coming again? if not, please post it
No, this time the library is don't find at all :
Qt Code:
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 debug/moc_webcamapp.o -L"c:\Qt\4.4.3\lib" -lmingw32 -lqtmaind "-L C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp" videoInputLib.a - lQtGuid4 -lQtCored4 g++: videoInputLib.a: No such file or directory mingw32-make[1]: *** [debug\webcamQTV.exe] Error 1 mingw32-make[1]: Leaving directory `D:/production/worklab/cpp/progetTest/webcamQ TV' mingw32-make: *** [debug] Error 2To copy to clipboard, switch view to plain text mode
Qt Code:
LIBS += -L"C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp" LIBS += -videoInputLib.aTo copy to clipboard, switch view to plain text mode
first statement should not be LIBS += , but DEPENDPATH += , cuz u r providing an extra path to be searched..check if it works with this
....i' modified the .pro this way :
Qt Code:
INCLUDEPATH += "C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp\include" DEPENDPATH += -L"C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp" LIBS +=-videoInputLib.aTo copy to clipboard, switch view to plain text mode
but it give me allway an error :
Qt Code:
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 debug/moc_webcamapp.o -L"c:\Qt\4.4.3\lib" -lmingw32 -lqtmaind -vi deoInputLib.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 2To copy to clipboard, switch view to plain text mode
did you try
LIBS += -lvideoInputLib.a
??
Let your work talk for you
yes, i try this differents options :
LIBS +=-videoInputLib.a (=unrocognized option)
LIBS +=-lvideoInputLib.a (=can not find )
LIBS +=videoInputLib.a (=unrocognized option)
LIBS +=-videoInputLib (=unrocognized option)
LIBS +=--lvideoInputLib (=unrocognized option)
...
Qt Code:
win32:LIBS += C:/Program Files/videoInput01995/compiledLib/compiledByDevCpp/videoInputLib.aTo copy to clipboard, switch view to plain text mode
this should work!
...hum, with this it seam that the path is ok...but it's like the library is not active...no ??
Qt Code:
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 debug/moc_webcamapp.o -L"c:\Qt\4.4.3\lib" -lmingw32 -lqtmaind "-L C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp-lvideoInputLib.a" -lQtGuid4 -lQtCored4 debug/webcamapp.o: In function `_ZN9WebCamAppC2Ev': D:/production/worklab/cpp/progetTest/webcamQTV/webcamapp.cpp:14: undefined refer ence to `videoInput::videoInput()' 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:14: undefined refer ence to `videoInput::videoInput()' 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 2To copy to clipboard, switch view to plain text mode
did u try what i mentioned.. if that doesnt work, then maybe there is some issue with the .a library inclusion..although that seems frivilous..cuz mingw should recognize that
Your'r right.....i don't see your last post.
that's the way. I modified my .pro like that ( and include some reference to directshow libs i need ):
Qt Code:
TEMPLATE = app TARGET = # Input HEADERS += webcamapp.h FORMS += winCam.ui SOURCES += main.cpp webcamapp.cpp INCLUDEPATH += "C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp\include"\ "C:\Program Files\videoInput01995\libs\DShow\include" LIBS +="C:\Program Files\videoInput01995\compiledLib\compiledByDevCpp\videoInputLib.a" LIBS +=-L"C:\Program Files\videoInput01995\libs\DShow\lib"\ -lddraw\ -ldxguid\ -lole32\ -loleaut32\ -lstrmbasd\ -lstrmbase\ -lstrmiids\ -luuidTo copy to clipboard, switch view to plain text mode
and all is now compiling ok !!
thank's for your help and patience !
Bookmarks