Results 1 to 1 of 1
Linking problems in QT under linux
Hello All ,
I am using ubuntu 64 bit with wine-dev , I have problem linking from QT IDE through to function exported by ...
- 01-16-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 1
linking to shared lib under QT ubuntu 64 bit
Linking problems in QT under linux
Hello All ,
I am using ubuntu 64 bit with wine-dev , I have problem linking from QT IDE through to function exported by user32.dll.so in /usr/lib32/wine
the compiler output is
Code:
Running build steps for project graph-1...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/home/aamir/qt-dev/graph/graph-1-build-desktop'
/usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile ../graph-1/graph-1.pro
make: Leaving directory `/home/aamir/qt-dev/graph/graph-1-build-desktop'
make: Entering directory `/home/aamir/qt-dev/graph/graph-1-build-desktop'
g++ -o graph-1 main.o dialog.o moc_dialog.o -L/usr/lib -L/usr/lib32/wine -luser32.dll -lQtGui -lQtCore -lpthread
/usr/bin/ld: cannot find -luser32.dll
make: Leaving directory `/home/aamir/qt-dev/graph/graph-1-build-desktop'
collect2: ld returned 1 exit status
make: *** [graph-1] Error 1
The process "/usr/bin/make" exited with code %2.
Error while building project graph-1 (target: Desktop)
When executing build step 'Make'
qt project file looks like
Code:
QT += core gui
TARGET = graph-1
TEMPLATE = app
INCLUDEPATH += /usr/include/wine/windows
LIBS += -L/usr/lib32/wine -luser32.dll
SOURCES += main.cpp\
dialog.cpp
HEADERS += dialog.h
FORMS += dialog.ui
I am passing the right arguments to the linker , as documented by QT project files , I have tried just user32 , user32.dll and user32.dll.so all other files seems to link except user define ones
this is the output I get form ld
:: error: cannot find -luser32.dll


Reply With Quote