qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] Linker Error I do not understand

Subject: Re: [Qt-interest] Linker Error I do not understand
From: Matthias Pospiech
Date: Tue, 22 Jun 2010 09:34:45 +0200
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@ABV0@@Z
??0QuEyeCamera@@QAE@XZ
??1QuEyeCamera@@UAE@XZ
??_7QRgbMatrix@@6B@
??_7QuEyeCamera@@6B@
?ArrPos@QRgbMatrix@@ABEHHH@Z
?OnUEyeMessage@QuEyeCamera@@AAEJIJ@Z
?acquireImage@QuEyeCamera@@QAEXXZ
?allocateMemmory@QuEyeCamera@@QAE_NXZ
?bitsPerPixel@QuEyeCamera@@QAEHXZ
?colorMode@QuEyeCamera@@QAEHXZ
?convertMemoryToRGBMatrix@QuEyeCamera@@AAEXXZ
?getMaxImageSize@QuEyeCamera@@QAEXPAH0@Z
?image@QuEyeCamera@@QAE?AVQImage@@XZ
?initCamera@QuEyeCamera@@QAEHPAKPAUHWND__@@@Z
?loadParameter@QuEyeCamera@@QAEXXZ
?openCamera@QuEyeCamera@@QAE_NXZ
?pixelToRGB@QuEyeCamera@@AAEXPBDAAH11@Z
?rgbMatrix@QuEyeCamera@@QAEAAVQRgbMatrix@@XZ
?setColorMode@QuEyeCamera@@QAE_NH@Z
?setWindowHandle@QuEyeCamera@@QAEXPAUHWND__@@@Z
?startVideo@QuEyeCamera@@QAEXXZ
?stopVideo@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
<----------------

_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>