Author Topic: Recompile Pppsettings And Packagemanager  (Read 4044 times)

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
Recompile Pppsettings And Packagemanager
« 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?

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Recompile Pppsettings And Packagemanager
« Reply #1 on: February 12, 2006, 10:28:08 pm »
Quote
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...
SL6000-L, RC12

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
Recompile Pppsettings And Packagemanager
« Reply #2 on: February 12, 2006, 11:47:58 pm »
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

Quote
[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]#
« Last Edit: February 13, 2006, 12:03:12 am by wjping119 »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Recompile Pppsettings And Packagemanager
« Reply #3 on: February 13, 2006, 12:13:43 am »
you need to use the the configuration file in /opt/cross/arm/3.4...../armv5tel-cacko-linux/qt/mkspecs

doing something like
Code: [Select]
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
SLC-860 cacko / senao wifi

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
Recompile Pppsettings And Packagemanager
« Reply #4 on: February 13, 2006, 02:34:00 am »
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

Code: [Select]
[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]#
« Last Edit: February 13, 2006, 02:53:11 am by wjping119 »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Recompile Pppsettings And Packagemanager
« Reply #5 on: February 13, 2006, 02:50:59 am »
did you remove all Makefile in the subdirectories before re-running qmake?
SLC-860 cacko / senao wifi

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
Recompile Pppsettings And Packagemanager
« Reply #6 on: February 13, 2006, 02:56:31 am »
removed

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Recompile Pppsettings And Packagemanager
« Reply #7 on: February 13, 2006, 03:04:57 am »
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 _)
« Last Edit: February 13, 2006, 03:13:18 am by pgas »
SLC-860 cacko / senao wifi

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
Recompile Pppsettings And Packagemanager
« Reply #8 on: February 13, 2006, 04:29:27 am »
yes,they are work very well,Thank you pgas
but I want to know,how you compiled them?was there some errors in compilling?
« Last Edit: February 13, 2006, 04:30:21 am by wjping119 »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Recompile Pppsettings And Packagemanager
« Reply #9 on: February 13, 2006, 04:38:28 am »
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.
« Last Edit: February 13, 2006, 04:45:05 am by pgas »
SLC-860 cacko / senao wifi

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
Recompile Pppsettings And Packagemanager
« Reply #10 on: February 13, 2006, 05:49:32 am »
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?
« Last Edit: February 13, 2006, 05:50:20 am by wjping119 »