Results 1 to 4 of 4

Thread: QWT embedded

  1. #1
    Join Date
    Sep 2008
    Posts
    22
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Default QWT embedded

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWT embedded

    Quote Originally Posted by damien View Post
    /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?

  3. #3
    Join Date
    Nov 2010
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QWT embedded

    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!!

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QWT embedded

    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

Similar Threads

  1. problem installing qwt 5.1.1 on linux for ARM
    By raman_31181 in forum Qwt
    Replies: 4
    Last Post: 18th August 2010, 15:51
  2. QWT introduction
    By nitriles in forum Qwt
    Replies: 4
    Last Post: 28th September 2007, 11:48
  3. Qwt 5.0.2
    By Uwe in forum Qt-based Software
    Replies: 1
    Last Post: 20th September 2007, 19:21
  4. How to upgrade Qwt 5.0.1 to Qwt 5.0.2
    By luffy27 in forum Qwt
    Replies: 1
    Last Post: 15th July 2007, 20:55
  5. use interesting QWT Library with QT3.X
    By raphaelf in forum Qwt
    Replies: 2
    Last Post: 23rd January 2006, 12:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.