OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: wjping119 on February 12, 2006, 11:53:28 am
-
I translated the text resource in pppsettings and packagemanager packages into chinese,but the two packages' structural is so simple,I have no idea how to compile them.can someone give me some help?
-
I translated the text resource in pppsettings and packagemanager packages into chinese,but the two packages' structural is so simple,I have no idea how to compile them.can someone give me some help?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114563\"][{POST_SNAPBACK}][/a][/div]
I think you are talking about the qt stuff - run 'qmake' to generate a Makefile, then go from there with 'make' as normal...
-
yes,you are right.the Makefile was generated after run qmake
but when I run make(I have already inthe cross compiling enviroment)
ti seems make for the i686 paltform,not the zaurus'armv5tel,the make command is wrong.
and there are two errors
[root@MagicLinux packagemanager-1.1.0]# make
cd src && make -f Makefile
make[1]: Entering directory `/mnt/hda1/Documents and Settings/Administrator/桌面/packagemanager-1
.1.0/src'
g++ -c -pipe `pkg-config libstartup-notification-1.0 --cflags` -Wall -W -O2 -g -pipe -D_FORTIFY_S
OURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 -DDESKTOP_VERSION -DQT_NO_DEBUG -DQT_SHARED -DQT
_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I/opt/cross/arm/3.4.4-xscale-softvfp/armv5
tel-cacko-linux/qt/include -o qpkg.o qpkg.cpp
/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/qt/bin/uic qpkgbase.ui -i qpkgbase.h -o qpkgbase.cpp
g++ -c -pipe `pkg-config libstartup-notification-1.0 --cflags` -Wall -W -O2 -g -pipe -D_FORTIFY_S OURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 -DDESKTOP_VERSION -DQT_NO_DEBUG -DQT_SHARED -DQT _THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I/opt/cross/arm/3.4.4-xscale-softvfp/armv5 tel-cacko-linux/qt/include -o qpkgbase.o qpkgbase.cpp
/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/qt/bin/moc qpkg.h -o moc_qpkg.cpp
g++ -c -pipe `pkg-config libstartup-notification-1.0 --cflags` -Wall -W -O2 -g -pipe -D_FORTIFY_S OURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 -DDESKTOP_VERSION -DQT_NO_DEBUG -DQT_SHARED -DQT _THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I/opt/cross/arm/3.4.4-xscale-softvfp/armv5 tel-cacko-linux/qt/include -o moc_qpkg.o moc_qpkg.cpp
/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/qt/bin/moc qpkgbase.h -o moc_qpkgbase.cp p
g++ -c -pipe `pkg-config libstartup-notification-1.0 --cflags` -Wall -W -O2 -g -pipe -D_FORTIFY_S OURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 -DDESKTOP_VERSION -DQT_NO_DEBUG -DQT_SHARED -DQT _THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I/opt/cross/arm/3.4.4-xscale-softvfp/armv5 tel-cacko-linux/qt/include -o moc_qpkgbase.o moc_qpkgbase.cpp
test -d ../ipkg_root/usr/lib/qt/bin/ || mkdir -p ../ipkg_root/usr/lib/qt/bin/
g++ -o ../ipkg_root/usr/lib/qt/bin/qpkg main.o qpkg.o qpkgbase.o moc_qpkg.o moc_qpkgbase.o -L/ opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/qt/lib -L/usr/X11R6/lib `pkg-config libst artup-notification-1.0 --libs` -lqt-mt -lXext -lX11 -lm
/usr/bin/ld: skipping incompatible /opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/lib/l ibstartup-notification-1.so when searching for -lstartup-notification-1
/usr/bin/ld: cannot find -lstartup-notification-1
collect2: ld returned 1 exit status
make[1]: *** [../ipkg_root/usr/lib/qt/bin/qpkg] error 1
make[1]: Leaving directory `/mnt/hda1/Documents and Settings/Administrator/desktop/packagemanager-1.1.0/src'
make: *** [sub-src] error 2
[root@MagicLinux packagemanager-1.1.0]#
-
you need to use the the configuration file in /opt/cross/arm/3.4...../armv5tel-cacko-linux/qt/mkspecs
doing something like
export QMAKESPEC=/opt/cross/arm/3.4...../armv5tel-cacko-linux/qt/mkspecs
before running qmake.
if you prefer you can send me you sources and i'll try to compile them, when I find some time
-
now I export QMAKESPEC=/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/qt/mkspecs/default/
it can generate Makefile correctly
but 'make' still have same errors
[root@MagicLinux pppsettings-1.0.3]# qmake
[root@MagicLinux pppsettings-1.0.3]# make
cd pppconfig && make -f Makefile
make[1]: Entering directory `/root/Desktop/pppsettings-1.0.3/pppconfig'
test -d ../ipkg_root/usr/lib/qt/bin/ || mkdir -p ../ipkg_root/usr/lib/qt/bin/
g++ -o ../ipkg_root/usr/lib/qt/bin/pppconfig main.o pppconfig.o config.o pppconfigbase.o moc_pppconfig.o moc_pppconfigbase.o -L/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/qt/lib -L/usr/X11R6/lib `pkg-config libstartup-notification-1.0 --libs` -lqt-mt -lXext -lX11 -lm
/usr/bin/ld: skipping incompatible /opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/lib/libstartup-notification-1.so when searching for -lstartup-notification-1
/usr/bin/ld: cannot find -lstartup-notification-1
collect2: ld returned 1 exit status
make[1]: *** [../ipkg_root/usr/lib/qt/bin/pppconfig] error 1
make[1]: Leaving directory `/root/Desktop/pppsettings-1.0.3/pppconfig'
make: *** [sub-pppconfig] error 2
[root@MagicLinux pppsettings-1.0.3]#
-
did you remove all Makefile in the subdirectories before re-running qmake?
-
removed
-
hmm strange, have you tried to look into the qmake configuration files if the cross -compiler is correctly defined?
Let me now if the attached packages work.
also rename the files
packagemanager_cn... --> packagemanager-cn...
pppsettings_cn... --> pppsettings-cn...
(the forums change the - into _)
-
yes,they are work very well,Thank you pgas
but I want to know,how you compiled them?was there some errors in compilling?
-
I used a cross compiler that was build with the builder.
I exported QMAKESPEC and QTDIR to the respective path in the crosscompiler
qmake
make
mkipkg ipk-root
no errors everything was ok.
I'll check with the sdk if the config files are ok.
btw, if you want me to put your other translations on mail.pdaxrom.org/contrib just tell me.
-
I translated the systemsetting in /usr/bin: cpuoverclock.py;datentime.py;inputconfig.py;lightnpower.py;looknfeel.py;network.
y;usbfunction.py into zh_CN
and gqview.po;grisbi.po,dlume.po and today's packagemanage,pppsettings into zh_CN,all of them display no peoblem but the dlume.mo not recognised.
which part should I upload?only these translated files?