Maybe I can help you with my ezx text editor source code. I will attach it in development forum, be patient. I have build native ezx text editor base on ezx-crosstool-0.5 and dev-ezx-0.2.0 + zmultilineedit header from ezx_sdk.
hello guys
i have a working cross compiler and now want to set it up for compiling ezx applications for my a780
then i installed the ezx_sdk from forum...
now everytime i wanted to compile a hello word included in the sdk i got compile errors from the QT libs (something is not declared and others)
i copied the header files in all include directories that have sth. to do with the cross toolchain and sdk to eliminate patherrors.. but no luck![]()
i have opensuse 10 running and also tried ELDK but this doesn't work
so i use the ezx-crosstool-0.5
could someone give some instructions how to set up my environment?
ps: i also have searched the forum
i did use the standard installation directories (/opt) for the cross-compiler and ezx-sdk...
cu mightymop
Maybe I can help you with my ezx text editor source code. I will attach it in development forum, be patient. I have build native ezx text editor base on ezx-crosstool-0.5 and dev-ezx-0.2.0 + zmultilineedit header from ezx_sdk.
i am using dev-ezx-0.2.0 too and always get the following errors when i try to compile the helloworld program
mopserver:/opt/dev-ezx-0.2.0/helloworld # make
arm-linux-g++ helloworld.o -o helloworld -L../lib -L../lib/ezx/lib -lezxappbase-xscale-r -lqte-mt-xscale-r -lezxjpeg-xscale-r -lezxnotification-xscale-r
/opt/crosstool/gcc-arm-iwmmxt/gcc-3.3.6-glibc-2.3.2/arm-linux/lib/gcc-lib/arm-linux/3.3.6/../../../../arm-linux/bin/ld: cannot find -lqte-mt-xscale-r
collect2: ld returned 1 exit status
make: *** [helloworld] Error 1
of course I copied the libraries from phone to /opt/dev-ezx-0.2.0/lib and /opt/dev-ezx-0.2.0/lib/ezx/lib
Try my addon package to dev-ezx-0.2.0. Good luck!
i copied your addon to /opt/dev-ezx-0.2.0/ and extracted it like decribed
then i switched to /opt/dev-ezx-0.2.0/helloworld-qmake and have edit
the setenv.sh, did a qmake helloworld.pro, make ...
and now i get this:
mopserver:/opt/dev-ezx-0.2.0/helloworld-qmake # qmake helloworld.pro
mopserver:/opt/dev-ezx-0.2.0/helloworld-qmake # make
/opt/dev-ezx-0.2.0/helloworld-qmake/../qt/bin/moc -I../qt/mkspecs/qws/linux-ipaq-g++ -I. -I/opt/dev-ezx-0.2.0/helloworld-qmake/../qt/include -I/opt/dev-ezx-0.2.0/helloworld-qmake/../ezx/include -I. -I. helloworld.cpp -o helloworld.moc
Qt meta object compiler
moc: Invalid argument
Usage: moc [options] <header-file>
-o file Write output to file rather than stdout
-i Do not generate an #include statement
-f[file] Force #include, optional file name
-p path Path prefix for included file
-k Do not stop on errors
-nw Do not display warnings
make: *** [helloworld.moc] Error 1
mopserver:/opt/dev-ezx-0.2.0/helloworld-qmake #
i think a little step by step documenation after installing the crosstool would be very useful![]()
I have follow leprechaun's and samr7's crosstool build instructions on Fedora Core 3 (qt-3.3.2) and then read carefully dev-ezx build instructions. samr7's crosstool resolve calculation problem (i.e. opie calculator, I call opie 'strange' calculator before recompile it with samr7's crosstool), now I used samr7's solution.
I am not an advance to prepare a Makefile, I need qmake of course. Read my output message to build samr7's helloword, is there something different? Please check your qmake version.
[ketut@localhost helloworld-qmake]$ rm Makefile
[ketut@localhost helloworld-qmake]$ source setenv.sh
[ketut@localhost helloworld-qmake]$ qmake -v
Qmake version: 1.07a (Qt 3.3.2)
Qmake is free software from Trolltech AS.
[ketut@localhost helloworld-qmake]$ qmake helloworld.pro
[ketut@localhost helloworld-qmake]$ make
/opt/dev-ezx-0.2.0/helloworld-qmake/../qt/bin/moc helloworld.cpp -o helloworld.moc
/opt/toolchain/arm-linux/gcc-3.3.2-glibc-2.3.2/bin/arm-linux-g++ -DQT_QWS_IPAQ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DQT_NO_DEBUG -I/opt/dev-ezx-0.2.0/qt/mkspecs/qws/linux-ipaq-g++ -I. -I/opt/dev-ezx-0.2.0/helloworld-qmake/../ezx/include -I/opt/dev-ezx-0.2.0/helloworld-qmake/../qt/include -o helloworld.o helloworld.cpp
arm-linux-g++ -Wl,-rpath-link,/opt/toolchain/arm-linux/gcc-3.3.2-glibc-2.3.2/arm-linux/lib -Wl,-rpath-link,/opt/dev-ezx-0.2.0/helloworld-qmake/../qt/lib -o helloworld helloworld.o -L/opt/dev-ezx-0.2.0/helloworld-qmake/../qt/lib -L/opt/dev-ezx-0.2.0/helloworld-qmake/../ezx/lib -lezxappbase-xscale-r -lqte-mt-xscale-r -lezxjpeg-xscale-r -lezxnotification-xscale-r -lqte-mt
hello again
here is the output from "qmake -v":
QMake version: 2.00a
Using Qt version 4.0.1 in /usr/lib
i tried this now:
>> /opt/dev-ezx-0.2.0/helloworld-qmake/../qt/bin/moc helloworld.cpp -o helloworld.moc
<< that one is ok
>>
/opt/crosstool/gcc-arm-iwmmxt/gcc-3.3.6-glibc-2.3.2/arm-linux/bin/arm-linux-g++ -DQT_QWS_IPAQ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DQT_NO_DEBUG -I/opt/dev-ezx-0.2.0/qt/mkspecs/qws/linux-ipaq-g++ -I. -I/opt/dev-ezx-0.2.0/helloworld-qmake/../ezx/include -I/opt/dev-ezx-0.2.0/helloworld-qmake/../qt/include -o helloworld.o helloworld.cpp
<< ok too
but this
>>
arm-linux-g++ -Wl,-rpath-link,/opt/crosstool/gcc-arm-iwmmxt/gcc-3.3.6-glibc-2.3.2/arm-linux/lib -Wl,-rpath-link,/opt/dev-ezx-0.2.0/helloworld-qmake/../qt/lib -o helloworld helloworld.o -L/opt/dev-ezx-0.2.0/helloworld-qmake/../qt/lib -L/opt/dev-ezx-0.2.0/helloworld-qmake/../ezx/lib -lezxappbase-xscale-r -lqte-mt-xscale-r -lezxjpeg-xscale-r -lezxnotification-xscale-r -lqte-mt
<< gave me the following error:
/opt/crosstool/gcc-arm-iwmmxt/gcc-3.3.6-glibc-2.3.2/arm-linux/lib/gcc-lib/arm-linux/3.3.6/../../../../arm-linux/bin/ld: cannot find -lezxappbase-xscale-r
collect2: ld returned 1 exit status
<< seems the linker could not find the libs, true?
that sounds like the problem. have you checked to make sure that the reported "missing" library is actually in "-L/opt/dev-ezx-0.2.0/helloworld-qmake/../ezx/lib"? (i noticed in a previous post that you said you did copy these over, but for some reason its still not seeing this lib).
yes i now have copied them again to this folder
and furthermore some copies named ezxappbase-xscale-r, ezxappbase-xscale-r.so.1.0.0, libezxappbase-xscale-r,... but still the same error...
i try to compile with root permission so he should be able to read all directories...
hm.. !?!?
UPDATE:
i've found the error i had renamed all Libs to lib*.so without the version number at the and this results in another error, but the linker could now find the libs
new ERROR:
arm-linux-g++ -Wl,-rpath-link,/opt/crosstool/gcc-arm-iwmmxt/gcc-3.3.6-glibc-2.3.2/arm-linux/arm-linux/lib -o helloworld helloworld.o -L/opt/dev-ezx-0.2.0/helloworld-qmake/../qt/lib -L/opt/dev-ezx-0.2.0/lib -lezxappbase-xscale-r -lezxjpeg-xscale-r -lezxnotification-xscale-r -lpthread -lqte-mt-xscale-r
/opt/dev-ezx-0.2.0/lib/libqte-mt-xscale-r.so: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [helloworld] Error 1
yeah i get it
the last error comes up 'cause i file was corrupted...
now it works, i can compile ezx
thank u all![]()
PS: any good ideas for some usefull applications? hehe