[SOLVED]Mini2440,UBUNTU,ARM-LINUX-GCC:ld:cannotfind-lqtopia2

[SOLVED]Mini2440,UBUNTU,ARM-LINUX-GCC:ld:cannotfind-lqtopia2

Messaggioda fedeponte » 02 mag , 2012 8:35 am

Hello everybody!
I'm a new user of UBUNTU, FORUM, and Mini2440 Platform.

I known all 2 mounth ago and I must develop with this.

I have a problem: I can't start beacause I never compile example project
"Hello".

I have done a virtual machine with Virtual Box on Windows7 64bit and I have
install and upgrade UBUNTU 11.10.

With terminal I try to compile the "Hello" example from CD and I read so:

ubuntu@ubuntu-VirtualBox:~$ cd
/home/ubuntu/opt/FriendlyARM/mini2440/arm-qtopia/hello
ubuntu@ubuntu-VirtualBox:~/opt/FriendlyARM/mini2440/arm-qtopia/hello$ ls
build description-pak hello.cpp hello.h hello.pro.user Makefile
copia hello_base.ui hello.desktop hello.pro main.cpp
ubuntu@ubuntu-VirtualBox:~/opt/FriendlyARM/mini2440/arm-qtopia/hello$
./build
rm -f .obj/release-shared/moc_hello_base.o
rm -f .moc/release-shared/moc_hello_base.cpp
rm -f .ui/release-shared/hello_base.cpp .ui/release-shared/hello_base.h
rm -f .obj/release-shared/hello.o .obj/release-shared/main.o
.obj/release-shared/hello_base.o
rm -f *~ core *.core
/home/ubuntu/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bi
n/uic
hello_base.ui -o .ui/release-shared/hello_base.h
/home/ubuntu/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++ -c -pipe
-DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB
-DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"hello\"
-DQTOPIA_TRTARGET=\"hello\" -DQT_NO_DEBUG
-I/home/ubuntu/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtop
ia/mkspecs/qws/linux-arm-g++
-I. -I../qtopia-2.2.0-FriendlyARM/qtopia/include
-I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/
-I.moc/release-shared/ -o .obj/release-shared/hello.o hello.cpp
/home/ubuntu/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++ -c -pipe
-DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB
-DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"hello\"
-DQTOPIA_TRTARGET=\"hello\" -DQT_NO_DEBUG
-I/home/ubuntu/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtop
ia/mkspecs/qws/linux-arm-g++
-I. -I../qtopia-2.2.0-FriendlyARM/qtopia/include
-I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/
-I.moc/release-shared/ -o .obj/release-shared/main.o main.cpp
/home/ubuntu/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bi
n/uic
hello_base.ui -i hello_base.h -o .ui/release-shared/hello_base.cpp
/home/ubuntu/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++ -c -pipe
-DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB
-DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"hello\"
-DQTOPIA_TRTARGET=\"hello\" -DQT_NO_DEBUG
-I/home/ubuntu/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtop
ia/mkspecs/qws/linux-arm-g++
-I. -I../qtopia-2.2.0-FriendlyARM/qtopia/include
-I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/
-I.moc/release-shared/ -o .obj/release-shared/hello_base.o
.ui/release-shared/hello_base.cpp
/home/ubuntu/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bi
n/moc
.ui/release-shared/hello_base.h -o .moc/release-shared/moc_hello_base.cpp
/home/ubuntu/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++ -c -pipe
-DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB
-DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"hello\"
-DQTOPIA_TRTARGET=\"hello\" -DQT_NO_DEBUG
-I/home/ubuntu/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtop
ia/mkspecs/qws/linux-arm-g++
-I. -I../qtopia-2.2.0-FriendlyARM/qtopia/include
-I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/
-I.moc/release-shared/ -o .obj/release-shared/moc_hello_base.o
.moc/release-shared/moc_hello_base.cpp
/home/ubuntu/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++ -o hello
.obj/release-shared/hello.o .obj/release-shared/main.o
.obj/release-shared/hello_base.o .obj/release-shared/moc_hello_base.o
-luuid -lqtopia2 -lqtopia -lqpe
-L/home/ubuntu/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtop
ia/lib
-L/home/ubuntu/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/
lib
-lqte
/home/ubuntu/opt/FriendlyARM/toolschain/4.4.3/bin/../lib/gcc/arm-none-linux-gnue
abi/4.4.3/../../../../arm-none-linux-gnueabi/bin/ld:
cannot find -lqtopia2
collect2: ld returned 1 exit status
make: *** [hello] Errore 1

There is somebody to help me?
Thank you so much!
Fede.

PS:Messaggio inserito sia nella categoria "Principianti" sia nella categoria "Installazione e compilazione": scusate in anticipo se ho sbagliato l'inserimento!
Ultima modifica di fedeponte il 11 giu , 2012 10:59 pm, modificato 1 volta in totale.
fedeponte
Leggo soltanto
 
Messaggi: 2
Iscritto il: 23 apr , 2012 11:07 pm
Programmo in: C

[RISOLTO] Mini2440,UBUNTU,ARM-LINUX-GCC:ld:cannotfind -lqtop

Messaggioda fedeponte » 11 giu , 2012 10:58 pm

I'm SOLVED the problem!

In the proget file, I wrote the path:

LIBS +=
-L/home/ubuntu/opt/FriendlyARM/mini2440/rootfs_qtopia_qt4/opt/Qtopia/lib/
-lqtopia2

NOW "./BUILD" RUN CORRECTLY!!!
fedeponte
Leggo soltanto
 
Messaggi: 2
Iscritto il: 23 apr , 2012 11:07 pm
Programmo in: C


Torna a Installazione e compilazione

Chi c’è in linea

Visitano il forum: Nessuno e 2 ospiti

cron