[email protected]
[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@@[email protected]@@Z
??0QuEyeCamera@@[email protected]
??1QuEyeCamera@@[email protected]
??_7QRgbMatrix@@6B@
??_7QuEyeCamera@@6B@
[email protected]@@[email protected]
[email protected]@@[email protected]
[email protected]@@QAEXXZ
[email protected]@@QAE_NXZ
[email protected]@@QAEHXZ
[email protected]@@QAEHXZ
[email protected]@@AAEXXZ
[email protected]@@[email protected]
[email protected]@@QAE?AVQImage@@XZ
[email protected]@@QAEHPAKPAUHWND__@@@Z
[email protected]@@QAEXXZ
[email protected]@@QAE_NXZ
[email protected]@@[email protected]
[email protected]@@QAEAAVQRgbMatrix@@XZ
[email protected]@@[email protected]
[email protected]@@QAEXPAUHWND__@@@Z
[email protected]@@QAEXXZ
[email protected]@@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
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-interest

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