[Qt-interest] Linker Error I do not understand
Matthias Pospiech
matthias.pospiech at gmx.de
Tue Jun 22 09:34:45 CEST 2010
Carsten Breuer schrieb:
> Hi Mathias,
> hi all,
>
>
> schwerer Kunde² ;-).
>
Sorry - the same .pro/pri file setup works perfectly in a different
project, so it is frustrating for my as well.
> you can grab dependecy walker to see what dlls and subdlls
> are needed and what your dll export.
>
>
depends.exe give this output:
??0QRgbMatrix@@QAE at ABV0@@Z
??0QuEyeCamera@@QAE at XZ
??1QuEyeCamera@@UAE at XZ
??_7QRgbMatrix@@6B@
??_7QuEyeCamera@@6B@
?ArrPos at QRgbMatrix@@ABEHHH at Z
?OnUEyeMessage at QuEyeCamera@@AAEJIJ at Z
?acquireImage at QuEyeCamera@@QAEXXZ
?allocateMemmory at QuEyeCamera@@QAE_NXZ
?bitsPerPixel at QuEyeCamera@@QAEHXZ
?colorMode at QuEyeCamera@@QAEHXZ
?convertMemoryToRGBMatrix at QuEyeCamera@@AAEXXZ
?getMaxImageSize at QuEyeCamera@@QAEXPAH0 at Z
?image at QuEyeCamera@@QAE?AVQImage@@XZ
?initCamera at QuEyeCamera@@QAEHPAKPAUHWND__@@@Z
?loadParameter at QuEyeCamera@@QAEXXZ
?openCamera at QuEyeCamera@@QAE_NXZ
?pixelToRGB at QuEyeCamera@@AAEXPBDAAH11 at Z
?rgbMatrix at QuEyeCamera@@QAEAAVQRgbMatrix@@XZ
?setColorMode at QuEyeCamera@@QAE_NH at Z
?setWindowHandle at QuEyeCamera@@QAEXPAUHWND__@@@Z
?startVideo at QuEyeCamera@@QAEXXZ
?stopVideo at QuEyeCamera@@QAEXXZ
which shows, that really nothing from class QCameraWidget is exported to
the dll.
And it does not matter if I compile with msvc or mingw. Only that with
mingw I can not load
the camera dll. But the Link errors concerning my own classes still remain.
> Aehhmm..do you build debug?
>
Yes, because I am developing the dll.
Here is the complete .pro file of the dll (src.pro)
loaded with the main pro file:
--->
TEMPLATE = subdirs
SUBDIRS = src example
CONFIG += ordered recursive
<---
-- src.pro ---------------->
CONFIG += qt
CONFIG += warn_on
CONFIG += thread
LIBRARY_NAME = uEyeCamera
CONFIG(debug, debug|release):win32:LIBRARY_NAME = $$join(LIBRARY_NAME,,,d)
CONFIG += debug
CONFIG -= release
CONFIG += uEyeCameraDll
COMPILER = msvc
DEFINES += QT_DLL UEYECAMERA_DLL
LIBRARYPATH2 = E:/Daten/Dev/SVN/library/
INCLUDEPATH += $${LIBRARYPATH2}include/uEye/
TEMPLATE = lib
TARGET = $${LIBRARY_NAME}
CONFIG += dll
DEFINES += UEYECAMERA_MAKEDLL
LIBS += -L$${LIBRARYPATH2}lib/other/uEye -luEye_api
INCLUDEPATH += ../include/
HEADERS += QCameraGlobal.h \
QuEyeCamera.h \
QRgbMatrix.h \
QCameraWidget.h
SOURCES += QuEyeCamera.cpp \
QRgbMatrix.cpp \
QCameraWidget.cpp
<----------------
More information about the Qt-interest-old
mailing list