Reply
Thread Tools
Posts: 4 | Thanked: 0 times | Joined on Jun 2008
#1
hi all,

is it possible to compile gnu multi precision library into OS2008?does somebody already compile it?..im just new in the development of software..already installed scratchbox..im planning to do ipsec on the OS2008 using strongswan..to do cross compile i need gnu mp to proceed..

error when i try to compile in scratchbox :

[sbox-DIABLO_ARMEL: ~/gmp-4.2.3] > ./configure
checking build system type... arm-unknown-linux-gnueabi
checking host system type... arm-unknown-linux-gnueabi
checking for a BSD-compatible install... /scratchbox/tools/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=standard
checking compiler gcc -O3 -fomit-frame-pointer ... no, program does not run
checking whether cc is gcc... yes
checking compiler cc -O3 -fomit-frame-pointer ... no, program does not run
configure: error: could not find a working compiler, see config.log for details
 
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#2
It looks like someone else has been able to do it: http://repository.maemo.org/extras-d...lo/free/g/gmp/
__________________
Disclaimer: If a program I wrote doesn't work/breaks your tablet... It's not my fault
mcedit | Utility Calculators (WIP) | PyRDesktop
My Blog | Twitter
 
Posts: 4 | Thanked: 0 times | Joined on Jun 2008
#3
thanks for fast reply..but got error when installing

[sbox-DIABLO_ARMEL: ~] > fakeroot dpkg --install *.deb
(Reading database ... 7065 files and directories currently installed.)
Preparing to replace libgmp3-dev 2:4.2.2+dfsg-3 (using libgmp3-dev_4.2.2+dfsg-3_armel.deb) ...
Unpacking replacement libgmp3-dev ...
dpkg: error processing libgmp3-dev_4.2.2+dfsg-3_i386.deb (--install):
package architecture (i386) does not match system (armel)
Preparing to replace libgmp3-doc 2:4.2.2+dfsg-3 (using libgmp3-doc_4.2.2+dfsg-3_all.deb) ...
Unpacking replacement libgmp3-doc ...
Preparing to replace libgmp3c2 2:4.2.2+dfsg-3 (using libgmp3c2_4.2.2+dfsg-3_armel.deb) ...
Unpacking replacement libgmp3c2 ...
dpkg: error processing libgmp3c2_4.2.2+dfsg-3_i386.deb (--install):
package architecture (i386) does not match system (armel)
Preparing to replace libgmpxx4ldbl 2:4.2.2+dfsg-3 (using libgmpxx4ldbl_4.2.2+dfsg-3_armel.deb) ...
Unpacking replacement libgmpxx4ldbl ...
dpkg: error processing libgmpxx4ldbl_4.2.2+dfsg-3_i386.deb (--install):
package architecture (i386) does not match system (armel)
Setting up libgmp3-doc (4.2.2+dfsg-3) ...
Setting up libgmp3c2 (4.2.2+dfsg-3) ...

Setting up libgmpxx4ldbl (4.2.2+dfsg-3) ...

Setting up libgmp3-dev (4.2.2+dfsg-3) ...
Errors were encountered while processing:
libgmp3-dev_4.2.2+dfsg-3_i386.deb
libgmp3c2_4.2.2+dfsg-3_i386.deb
libgmpxx4ldbl_4.2.2+dfsg-3_i386.deb

do you know where i can find step to cross compile application such as strongswan which is for IPsec..i need to use it on the N800..
 
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#4
You really didn't get any errors worth noting there... You just tried to install programs made for an i386 architecture on an armel architecture. Your dpkg line should have been:
Code:
dpkg -i *_armel.deb
And you wouldn't have gotten problems.

As for step-by-step instructions: it's really more of a trial and error process for me. I don't remember the commands off the top of my head, but basically download the debian source, apply the debian patch, and compile with dpkg-buildpackage. It may take a while to get it right, but stick with it and you'll get it...

I'll see if I can get strongswan compiled in scratchbox for you tomorrow, if you can't get it.
__________________
Disclaimer: If a program I wrote doesn't work/breaks your tablet... It's not my fault
mcedit | Utility Calculators (WIP) | PyRDesktop
My Blog | Twitter
 

The Following User Says Thank You to TrueJournals For This Useful Post:
Posts: 4 | Thanked: 0 times | Joined on Jun 2008
#5
thanks man for your help..i try to download source from debian website which is compile for armel..but too many dependencies i guest..sigh..really appreciate if you could help to point me where i should go..thanks again
 
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#6
You're right, there is a long tree of dependencies to satisfy... Unfortunately, due to personal projects, among other things, I can't really get this working right now. Stick with following the dependency trail, and you should get it eventually. However, once you do that, you'll need to make sure that you can install the run dependencies of strongswan.

Alternatively, you can try adding:
Code:
Name: debian sid
Address: http://http.us.debian.org/debian
Distribution: sid
Components: free non-free
To your application manager, and try then installing strongswan, however this could mess up your OS, so don't do this if you're not prepared to have the possibility of having to reinstall the OS. If you do that, just make sure that you don't UPDATE anything, and that you disable it when you're done.

Good luck! Oh, and this link might help you... it's just a small guide of how to extract debian sources and build a package... Nice reference if you forget.
__________________
Disclaimer: If a program I wrote doesn't work/breaks your tablet... It's not my fault
mcedit | Utility Calculators (WIP) | PyRDesktop
My Blog | Twitter
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:49.