OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Can't link libqpe for qvfb
koan
post Feb 25 2004, 06:13 AM
Post #1





Group: Members
Posts: 328
Joined: 25-February 04
From: UK
Member No.: 2,025



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
Go to the top of the page
 
+Quote Post
koan
post Mar 4 2004, 03:16 AM
Post #2





Group: Members
Posts: 328
Joined: 25-February 04
From: UK
Member No.: 2,025



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st December 2014 - 11:01 PM