PDA

View Full Version : QWT embedded



damien
5th November 2008, 21:26
Hy,
I use QT embedded 3.3.5 with uClinux on a board BF537 de analog device.
I can use qwt in my coputeur but i don't find how build an example of qwt for my board.

I have tried to build the exemple of qwt data_plot in the exemple directory of qt and modify the make file like that :

####### Compiler, tools and options

CC = bfin-linux-uclibc-gcc
CXX = bfin-linux-uclibc-g++
LEX = flex
YACC = yacc
CFLAGS = -pipe -D__linux__ -DQT_NOMMU -DQ_NO_SEMAPHORE -DQT_QWS_NO_SHM -DQT_NO_QWS_MULTIPROCESS -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED
CXXFLAGS = -pipe -D__linux__ -DQT_NOMMU -DQ_NO_SEMAPHORE -DQT_QWS_NO_SHM -DQT_NO_QWS_MULTIPROCESS -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -I/home/cmd-ubuntu/blackfin-sources/qt-embedded-free-3.3.5/mkspecs/qws/linux-bfin-g++ -I. -I../../include -I../../../qwt-5.1.1/src -I.moc/release-shared-mt-emb-bfin/
LINK = bfin-linux-uclibc-g++
LFLAGS = -Wl,-rpath,/home/cmd-ubuntu/blackfin-sources/qt-embedded-free-3.3.5/lib -L/home/cmd-ubuntu/blackfin-sources/qwt-5.1.1/lib
LIBS = $(SUBLIBS) -L/home/cmd-ubuntu/blackfin-sources/qwt-5.1.1/lib -lqwt -L/home/cmd-ubuntu/blackfin-sources/qt-embedded-free-3.3.5/lib -lqte-mt -ldl -lpthread
AR = bfin-linux-uclibc-ar cqs
RANLIB =
MOC = /home/cmd-ubuntu/blackfin-sources/qt-embedded-free-3.3.5/bin/moc
UIC = /home/cmd-ubuntu/blackfin-sources/qt-embedded-free-3.3.5/bin/uic -L /home/cmd-ubuntu/blackfin-sources/qt-embedded-free-3.3.5/plugins
QMAKE = /home/cmd-ubuntu/blackfin-sources/qt-embedded-free-3.3.5/bin/qmake
TAR = tar -cf
GZIP = gzip -9f
COPY = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -R
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p


when i make QT I have this error :

bfin-linux-uclibc-g++ -Wl,-rpath,/home/cmd-ubuntu/blackfin-sources/qt-embedded-free-3.3.5/lib -L/home/cmd-ubuntu/blackfin-sources/qwt-5.1.1/lib=20 -lqwt -o data_plot .obj/release-shared-mt-emb-bfin/main.o .obj/release-shared-mt-emb-bfin/data_plot.o .obj/release-shared-mt-emb-bfin/moc_data_plot.o -L/home/cmd-ubuntu/blackfin-sources/qwt-5.1.1/lib -lqwt -L/home/cmd-ubuntu/blackfin-sources/qt-embedded-free-3.3.5/lib -lqte-mt -ldl -lpthread
/home/cmd-ubuntu/blackfin-sources/build/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: skipping incompatible /home/cmd-ubuntu/blackfin-sources/qwt-5.1.1/lib/libqwt.so when searching for -lqwt
/home/cmd-ubuntu/blackfin-sources/build/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: cannot find -lqwt
collect2: ld returned 1 exit status
make[3]: *** [data_plot] Error 1
make[3]: Leaving directory `/home/cmd-ubuntu/blackfin-sources/qt-embedded-free-3.3.5/examples/data_plot'
make[2]: *** [sub-data_plot] Error 2

I don't understand what that don't working i have give it where is qwt, if you have an idea please?
what is the good way to embedded qwt it's possible like i try to do?

thanks

jacek
6th November 2008, 01:25
/home/cmd-ubuntu/blackfin-sources/build/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: skipping incompatible /home/cmd-ubuntu/blackfin-sources/qwt-5.1.1/lib/libqwt.so when searching for -lqwt
How did you build Qwt? Which compiler did you use?

D-Jack
20th February 2011, 18:13
Hi!

I have the same problem. I'm trying to cross-compile qwt to ngw100 (avr32 based plataform) and it gives me the same message (that -lqwt was not found). It's driving me crazy! Can someone post a small tutorial on this?

Thanx a lot!!

Uwe
20th February 2011, 20:26
Please read carefully: your problem is completely different.

In the first report the qwt library was found by the linker, but identified as incompatible ( obviously not cross compiled ). Your message instead tells you, that the library is not found at all.

Check the paths you pass to the linker ( -L/... ) in your makefile if a valid libqwt.so can be found. If true try a "file /.../libqwt.so", if it has been really cross compiled.

Uwe