aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Leopard compilation Solutions + 1 problem  (Read 5665 times)

greek

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 128
Leopard compilation Solutions + 1 problem
« on: June 13, 2008, 06:46:32 PM »

I think the wiki is a little outdated. In order to compile amule I did the following:

1) install macports 1.6
2) suro port install libiconv gdlib libcryptopp  (this is much better than what the wiki suggests)
3) download wxMac as suggested in the wiki, but the configure needs the libiconv path as follows:
    ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local
4) The amule is configured by:
    ./configure --disable-systray --disable-gtk --enable-embedded_crypto    \                                                      
           --with-wx-config=../wxMac-2.8.7/wx-config    \
           --enable-cas --enable-webserver --enable-amulecmd    \
           --disable-debug --enable-optimize --with-crypto-prefix=/opt/local \
           --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local

With this, it definitely compiles!
Here is the problem, even though the latest gdlib is installed and I supply the gdlib-config binary, the configure script of amule complains about a missing gd.h. I don't understand! I tried installing gdlib in a different place and it still does not see gd.h...


Here is the full output of the configure script:

./configure --disable-systray --disable-gtk --enable-embedded_crypto    \                                                      
           --with-wx-config=../wxMac-2.8.7/wx-config    \
           --enable-cas --enable-webserver --enable-amulecmd    \
           --disable-debug --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local

<blah blah blah>


checking for gdlib-config... /opt/local/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.35)
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no
configure: WARNING:
   gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
   Please check that gdlib-config is in your default path, check out
   LD_LIBRARY_PATH or equivalent variable.
   Or this might also be that your gdlib-config has other name.
   Please try again with --with-gdlib-config=/usr/bin/gdlib-config
   (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
   If you use compiled packages check if you have devel pack installed.
   To download the latest version check http://www.boutell.com/gd
   for sources.

configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating docs/man/Makefile
config.status: creating intl/Makefile
config.status: creating src/Makefile
config.status: creating src/pixmaps/Makefile
config.status: creating src/pixmaps/flags_xpm/Makefile
config.status: creating src/libs/Makefile
config.status: creating src/libs/ec/Makefile
config.status: creating src/libs/ec/cpp/Makefile
config.status: creating src/libs/common/Makefile
config.status: creating src/utils/Makefile
config.status: creating src/utils/aLinkCreator/Makefile
config.status: creating src/utils/aLinkCreator/docs/Makefile
config.status: creating src/utils/aLinkCreator/src/Makefile
config.status: creating src/utils/cas/Makefile
config.status: creating src/utils/cas/docs/Makefile
config.status: creating src/utils/fileview/Makefile
config.status: creating src/utils/wxCas/Makefile
config.status: creating src/utils/wxCas/docs/Makefile
config.status: creating src/utils/wxCas/src/Makefile
config.status: creating src/utils/xas/Makefile
config.status: creating src/utils/xas/autostart-xas
config.status: creating src/utils/xas/docs/Makefile
config.status: creating src/skins/Makefile
config.status: creating src/webserver/Makefile
config.status: creating src/webserver/src/Makefile
config.status: creating src/webserver/default/Makefile
config.status: creating src/webserver/php-default/Makefile
config.status: creating src/webserver/chicane/Makefile
config.status: creating src/webserver/litoral/Makefile
config.status: creating unittests/Makefile
config.status: creating unittests/muleunit/Makefile
config.status: creating unittests/tests/Makefile
config.status: creating po/Makefile.in
config.status: creating Compilation.flags
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing denoiser commands
sed: 2: "1{x;s/.*/1/;x;};/^[ \t]* ...": unexpected EOF (pending }'s)


  Configure script has finished system check.

  Configured aMule 2.2.1 for 'i686-apple-darwin9.3.0'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    no
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               yes
  Should aMule be compiled with UPnP support?                yes
  Should aMule be compiled with IP2country support?          no
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      no
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            installed

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 yes

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  yes
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.8.7 (mac,static)
                                       crypto++              5.5.2 (installed, in /opt/local)
                                       regex                 system
                                       libintl               system
                                       libpng                1.2.26
                                       libgd                 Not detected
                                       zlib                  1.2.3
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Leopard compilation Solutions + 1 problem
« Reply #1 on: June 13, 2008, 10:50:42 PM »

I can't really help you with your error, but please update any documentation you find to be outdated. Most of the developers don't own a Mac and it's rather hard for us to provide good information.
Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 206
Re: Leopard compilation Solutions + 1 problem
« Reply #2 on: June 13, 2008, 11:22:36 PM »


Here is the problem, even though the latest gdlib is installed and I supply the gdlib-config binary, the configure script of amule complains about a missing gd.h. I don't understand! I tried installing gdlib in a different place and it still does not see gd.h...


Here is the full output of the configure script:

./configure --disable-systray --disable-gtk --enable-embedded_crypto    \                                                      
           --with-wx-config=../wxMac-2.8.7/wx-config    \
           --enable-cas --enable-webserver --enable-amulecmd    \
           --disable-debug --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local

<blah blah blah>


checking for gdlib-config... /opt/local/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.35)
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no
configure: WARNING:
   gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
   Please check that gdlib-config is in your default path, check out
   LD_LIBRARY_PATH or equivalent variable.
   Or this might also be that your gdlib-config has other name.
   Please try again with --with-gdlib-config=/usr/bin/gdlib-config
   (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
   If you use compiled packages check if you have devel pack installed.
   To download the latest version check http://www.boutell.com/gd
   for sources.


Try to use:
CPPFLAGS="-I/opt/local/include" \
LDFLAGS="-L/opt/local/lib" \
./configure ...

I compile so on Tiger:
http://gtoso.tor.it/pub/amule/osx/svn/src/amule-uni.OSXBuild
Logged

greek

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 128
Re: Leopard compilation Solutions + 1 problem
« Reply #3 on: June 16, 2008, 01:06:14 PM »

That did not work. :(
Logged

MidgetInaBikini

  • Approved Newbie
  • *
  • Karma: -14
  • Offline Offline
  • Posts: 24
Re: Leopard compilation Solutions + 1 problem
« Reply #4 on: June 16, 2008, 10:12:13 PM »

the only solution i found for all the mac problems is to comply without cas, webserver, cmd or debug.
Quote
./configure --disable-systray --disable-gtk --enable-embedded_crypto               --with-wx-config=../wxMac-2.8.7/build/wx-config               --disable-cas --disable-webserver --disable-amulecmd               --disable-debug --enable-optimize --with-crypto-prefix=/usr/local/cryptopp

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Leopard compilation Solutions + 1 problem
« Reply #5 on: June 17, 2008, 02:30:53 AM »

Could you please tell me where gd.h is located on a Mac? Is this /opt/local/include for all of you?

@MidgetinaBikini: some of your options are deprecated. - for instance --disable-gtk or --enable-embedded_crypto won't have any effect.
Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 206
Re: Leopard compilation Solutions + 1 problem
« Reply #6 on: June 17, 2008, 01:00:00 PM »

Could you please tell me where gd.h is located on a Mac? Is this /opt/local/include for all of you?

gd is not part of osx,
so there is not a default location,
if installed from MacPorts then it's installed under /opt/local

Logged

greek

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 128
Re: Leopard compilation Solutions + 1 problem
« Reply #7 on: June 18, 2008, 01:18:45 AM »

Actually I have tried to download and compile the gdlib locally my self but without any effect. Then I run configure with --enable-cas --with-gdlib-config=../libs/bin/gdlib-config and I get something like:

checking for gdlib-config... ../libs/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.36)
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no
configure: WARNING:
   gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
   Please check that gdlib-config is in your default path, check out
   LD_LIBRARY_PATH or equivalent variable.
   Or this might also be that your gdlib-config has other name.
   Please try again with --with-gdlib-config=/usr/bin/gdlib-config
   (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
   If you use compiled packages check if you have devel pack installed.
   To download the latest version check http://www.boutell.com/gd
   for sources.

So it does find the script, the script works (I checked and it gives the correct paths), the gd.h is there, but configure does not think it is useable?

gdlib is only used by cas, so for now I do --disable-cas.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Leopard compilation Solutions + 1 problem
« Reply #8 on: June 18, 2008, 01:26:13 AM »

Please try again with tomorrow's tarball, GonoszTopi has committed a fix for this.
Logged