Skip to main content

can't create phone me advaneced ipkg package for openwrt

1 reply [Last post]
alexfromberlin
Offline
Joined: 2009-04-29
Points: 0

Hi,

I am having a problem with the phone me advanced cross compilation for OpenWRT. I was following this nice guide: http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGOpenWRT from the java.net wiki pages.

The compilation itself worked pretty fine for me but finally i didn't managed it to create the .ipkg package. I have compiled the phone me advanced source without any problems. Libpthread is also compiled.

Somehow the package integration doesn't work. It ends up with the following error message:

make[1]: Entering directory `/home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686'
make[2]: Entering directory `/home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686'
make[3]: Entering directory `/home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/package/cdc'
install -d -m0755 /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/build_dir//pmea-fp/ipkg/pmea-fp/usr/java/cdc
cp -fpR files/usr/java/cdc /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/build_dir//pmea-fp/ipkg/pmea-fp/usr/java
mkdir -p /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/bin/packages/
find /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/build_dir//pmea-fp/ipkg/pmea-fp -name 'CVS' -o -name '.svn' -o -name '.#*' | xargs -r rm -rf
NM="-linux-uclibc-nm" STRIP="/home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/staging_dir/host/bin/sstrip" STRIP_KMOD="-linux-uclibc-strip --strip-unneeded --remove-section=.comment" /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/scripts/rstrip.sh /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/build_dir//pmea-fp/ipkg/pmea-fp
rstrip.sh: /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/build_dir//pmea-fp/ipkg/pmea-fp/usr/java/cdc/bin/cvm:executable
SIZE=`cd /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/build_dir//pmea-fp/ipkg/pmea-fp; du -bs --exclude=./CONTROL . 2>/dev/null | cut -f1`; /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/staging_dir/host/bin/sed -i -e "s|^\(Installed-Size:\).*|\1 $SIZE|g" /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/build_dir//pmea-fp/ipkg/pmea-fp/CONTROL/control
ipkg-build -c -o 0 -g 0 /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/build_dir//pmea-fp/ipkg/pmea-fp /home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/bin/packages/
*** Error: CONTROL/control is missing field Architecture

ipkg-build: Please fix the above errors and try again.
make[3]: *** [/home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/bin/packages//pmea-fp_1_1_2-b04_.ipk] Error 1
make[3]: Leaving directory `/home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/package/cdc'
make[2]: *** [package/cdc/compile] Error 2
make[2]: Leaving directory `/home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686'
make[1]: *** [/home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686/staging_dir//stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/alex/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686'
make: *** [world] Error 2
alex@vega:~/test/kamikaze_8.09/build_dir/mips/OpenWrt-SDK-ar71xx-for-Linux-i686$

I have no idea how i can solve this problem. The control file looks like a text file and it is not zero. I would appreciate any help on this.

Thanks
Alex

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexfromberlin
Offline
Joined: 2009-04-29
Points: 0

I found a solution by myself.