maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How to recompile software for the N900? (https://talk.maemo.org/showthread.php?t=71357)

skykooler 2011-03-22 23:29

How to recompile software for the N900?
 
Can anyone who knows how to re-compile software for the N900 explain the process? I am trying to compile swfc but the
./configure
make
make install
process that I use on the desktop doesn't work because ARM processors aren't recognized in the configure script. I figure this means I need to create the makefile myself - anyone know how to do this?

XenGi 2011-03-23 15:27

Re: How to recompile software for the N900?
 
You can,t just recompile any software for maemo.

Mostly you must edit sources to suit maemo specific things like 'optify'. Also I would suggest to build a package instead of just 'make install' because it's easier to remove the software if something doesn't work.

So there's no ultimate answer to your question. Try to specify what software you want to port to maemo.

MohammadAG 2011-03-23 16:12

Re: How to recompile software for the N900?
 
Quote:

Originally Posted by XenGi (Post 973967)
You can,t just recompile any software for maemo.

He can, packaging is another tihng.

There's no compiler on the N900 (at least by default), you'll need the SDK:
http://wiki.maemo.org/Documentation/...l_Installation

sat2050 2011-03-23 16:33

Re: How to recompile software for the N900?
 
Hi mohammad since you have pointed this out I have a query about svn recompiling and i posted my log here
http://talk.maemo.org/showpost.php?p...5&postcount=43
can you please help me with this I am trying to figure out wats wrong with svn package. I need to use svn from my phone please help

mscion 2011-03-23 16:34

Re: How to recompile software for the N900?
 
At the risk of being totally laughed off these pages may I ask, actually, further, not that I would actually use something like this, is there a fortran compiler availble for maemo?

stlpaul 2011-03-23 22:58

Re: How to recompile software for the N900?
 
Quote:

Originally Posted by mscion (Post 974021)
At the risk of being totally laughed off these pages may I ask, actually, further, not that I would actually use something like this, is there a fortran compiler availble for maemo?

GCC includes a Fortran compiler. So, probably.

Mentalist Traceur 2011-03-23 23:17

Re: How to recompile software for the N900?
 
If GCC includes it, then yes, because you can install GCC on the N900 after enabling the SDK repo... Not optified though - that's something you then do manually.

- Edit -

As for compiling, I went to the wiki where they give you a pre-cooked sdk installer for a Debian machine, and then set the whole thing up in VirtualBox. Then read up a little on scratchbox when the entire installation process finishes, and then use that knowledge to compile within scratchbox to the armel target.

mscion 2011-03-24 02:31

Re: How to recompile software for the N900?
 
I happen to notice that in the debian repositories via easy debian there is gfortran. Will give that a try first.

skykooler 2011-03-24 03:20

Re: How to recompile software for the N900?
 
I guess my question is more "What do you put in the makefile to make it compile"? I have scratchbox, but the autoconf script doesn't work because it only makes an x86 makefile. I have never written a makefile before, so I have no idea where to start. Or how to make it a package instead.

JadeH 2011-03-24 04:20

Re: How to recompile software for the N900?
 
I managed to compile things fine on my N900, I compiled irssi and a few random projects that I wanted more recent versions of. gcc is in the repository also
Quote:

deb http://repository.maemo.org/ fremantle/sdk free non-free
add this to application manager and install make,gcc,libc6-dev,etc

MohammadAG 2011-03-24 07:50

Re: How to recompile software for the N900?
 
Be warned, that takes up a significant part of the rootfs, I'd suggest making a chroot inside MyDocs or /home then installing gcc in that.

mscion 2011-03-24 12:46

Re: How to recompile software for the N900?
 
both gcc-4.4 and gfortran-4.2 and gfortran-4.3 from debian repositories worked in easy debian. Compiled and successfully ran some code. gfortran runs fortran 95. There is a version gfortran-4.4 but I could not get it to work. There was a problem with the libraries.

Another option that worked in easy debian: you can use f2c which converts fortran 77 to C code. You then compile it with gcc.

Regardless it is amazing that the n900 runs fortran code! The next step is to make a rack of n900s and use OPENMPI to run parallel jobs!


All times are GMT. The time now is 16:22.

vBulletin® Version 3.8.8