Help - Search - Members - Calendar
Full Version: Can't link libqpe for qvfb
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Qt/Qtopia
koan
Hi,

I'm learning about QPE and Qtopia by writing some test apps.

I can link to libqpe for apps to run on my zaurus but when I try to compile an app to run on qvfb on my desktop, I can't link. The message I get is:

/opt/Qtopia/lib/libqpe.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

Somehow, I don't have the right version of that library.
Can anyone help me figure out what I need to do to link to libqpe ?

I'm running SuSE 8.2 and I installed qtopia-free 1.5.

> arm-linux-g++ -v
Reading specs from /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)

I'm using the standard dev-x86-qpe.sh script.

thanks in advance

koan
koan
Ah, I should always make sure to run tmake each time I switch between ARM and x86 development.

Now my problem is that I'm not linking against QPE properly:

gcc -o display MainWindow.o main.o moc_MainWindow.o -L/opt/Qtopia/lib -lqpe -lqte
MainWindow.o(.text+0x2b): In function `MainWindow::MainWindow[not-in-charge]()':
: undefined reference to `QMainWindow::QMainWindow[not-in-charge](QWidget*, char
const*, unsigned)'
MainWindow.o(.text+0x30): In function `MainWindow::MainWindow[not-in-charge]()':
: undefined reference to `QString::shared_null'

etc etc

I can't see why. I changed LINK to g++ in the Makefile although that doesn't affect the linking as far as QPE is concerned.

Any suggestions gratefully received,

koan
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.