Install Qwt for Gumstix

(Install Qwt in Ubuntu)

After I finished program in Ubuntu, I want to compile the program for gunstix.
In the beginning, I copied the qwt-5.2.1 folder to my build machine (fc13). When I do
$ make distcleam
cd src/ && make -f Makefile distclean
make[1]: Entering directory `/build/czhang/qt-everywhere-opensource-src-4.7.0/projects/qwt-5.2.1/src'
make[1]: *** No rule to make target `/usr/share/qt4/mkspecs/linux-g++/qmake.conf', needed by `Makefile'.  Stop.
make[1]: Leaving directory `/build/czhang/qt-everywhere-opensource-src-4.7.0/projects/qwt-5.2.1/src'
make: *** [sub-src-distclean-ordered] Error 2

I tried many time. It looks like the "distcleam" command is not working very well. The qwt-5.2.1 folder is copied from Ubuntu machine. That means it has already been build for i386 system. The "distcleam" command supposes to clean all make files, and return to original file.

The easiest way to fix is download qwt source file to FC13, copy folder to:
$ qmake
$ make

error occur:

compiling resources-release-shared/qrc_qwt_designer_plugin.cpp
rm -f
linking plugins/designer/
/build/czhang/overo-oe/tmp/sysroots/x86_64-linux/usr/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: cannot find -lQtDesigner
collect2: ld returned 1 exit status
make[1]: *** [plugins/designer/] Error 1
make[1]: Leaving directory `/build/czhang/qt-everywhere-opensource-src-4.7.0/projects/qwt-5.2.1/designer'
make: *** [sub-designer-make_default-ordered] Error 2

It tried to install qwt plugin for qt-designer.
We can disable it by comment out make option in 'qwtconfig.pri'

$ make

Do not need "make install". This command install qwt library to current machine. I am not going to run the program in my FC13.


Next, compile and copy m4 and qwt library to gumstix.

$ rsync -av czhang@
ce-src-4.7.0/projects/qwt-5.2.1/lib/* /usr/lib

No comments:

Post a Comment