aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Cross-compilation. Info request  (Read 3246 times)

Gaznevada

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 51
Cross-compilation. Info request
« on: July 02, 2009, 11:13:00 AM »

Hi all,

I've finally managed to set up a working cross-compiler for MIPS-Irix on a
Cygwin environment. Sort of a bloodbath, really. But funny indeed.

Now I want to cross-compile aMule to avoid the bottleneck of compiling
it on my old O2. Is there anybody out there having any experience on cross
compilation of Amule? Any suggestion/advice/hint is warmly welcomed
(except "Quit now and don't waste your time anymore")

Cheers,

--
Gaznevada

Logged
--
"Orwell was an optimist" - Usenet, somewhere.

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Cross-compilation. Info request
« Reply #1 on: July 02, 2009, 11:39:08 AM »

Be prepared that configure is sometimes likely to find native libraries instead of host libraries. For example, when I cross-compile to mingw32 on linux, I have to use the following:
Code: [Select]
../configure \
        --host=mingw32 \
        --with-wx-config=/usr/local/mingw32/bin/wx-config \
        --with-crypto-prefix=/usr/local/mingw32 \
        --without-libpng-config \
        "$@"
Logged
concordia cum veritate

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Cross-compilation. Info request
« Reply #2 on: July 02, 2009, 11:48:59 AM »

You might find some helpful information in my recent wiki article: http://www.amule.org/wiki/index.php/Cross-compilation_for_windows_with_mingw

I've only cross-compiled for Mac, Linux ARMel and Windows from Linux, but the basic steps were always the same. (Only setting up the environment was a different PITA...) I believe it should be identical for cygwin.
Logged

Gaznevada

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 51
Re: Cross-compilation. Info request
« Reply #3 on: July 02, 2009, 12:33:57 PM »

You might find some helpful information in my recent wiki article: http://www.amule.org/wiki/index.php/Cross-compilation_for_windows_with_mingw

I've only cross-compiled for Mac, Linux ARMel and Windows from Linux, but the basic steps were always the same. (Only setting up the environment was a different PITA...) I believe it should be identical for cygwin.

Thanks you all. This definitely helps.

Cheers,

--
Gaznevada
Logged
--
"Orwell was an optimist" - Usenet, somewhere.