Hi, David,
That sounds great! I build my own images but applying patches is
something on the edge of my current ability:) Could you outline
briefly where in the directory structure the patch needs to be applied
and perhaps the Linux command that is needed to accomplish it?
I did download and install the pre-built ipk package. Was it supposed
to contain the executable? The libraries showed up but not any of the
compiler components.
I have been programing in Fortran since late 1963 so this is quite
interesting to me. I have several hundred thousand lines of Fortran
code here and there on my computers:)
Thanks for all your work. Hope to get something up and running in the
next few days.
Delbert
On Saturday 01 January 2011, David Kuehling wrote:
> Hi,
>
> I just successfully patched the openwrt-xburst to allow compilation of
> Fortran programs. The short patch is attached, and I'm ready to commit
> in case nobody objects.
>
> To test the gfortran-enabled openwrt you need the following steps (after
> applying the patch):
>
> - make distclean
>
> - copy a new config to .config
>
> - enable the gfortan compiler via 'make menuconfig', deeply hidden in the
> the "advanced configuration options" menu
>
> - enable buildding of the the libgfortran run-time lib, in the "base
> system" menu
>
> (alternatively add these lines to your .config:
>
> CONFIG_INSTALL_GFORTRAN=y
> CONFIG_PACKAGE_libgfortran=y
> )
>
> - install the libgfortran ipk on your nanonote
>
> Pre-build libgfortran ipk package available here:
>
> http://mosquito.dyndns.tv/~spock/openwrt/
>
> For now I managed to compile and run a simple fortran90 hello world
> program:
>
> --8<--
> program HelloWorld
> write (*,*) 'Hello, world!' ! This is an inline comment
> end program HelloWorld
> --8<--
>
> via:
>
> mipsel-openwrt-linux-gfortran hello.f90 -o hello
>
> Did I overlook something? Is it just that simple? Never programmed in
> fortran. Next thing would be trying to port octave (probably using
> plplot as plotting backend?).
>
> cheers,
>
> David
> --
> GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg
> Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40
>
>
_______________________________________________
Qi Hardware Discussion List
Mail to list (members only): [email protected]
Subscribe or Unsubscribe:
http://lists.en.qi-hardware.com/mailman/listinfo/discussion