Hallo,
ich versuche aMule für den Mac zu kompilieren. Nach erscheinen der Version 1.2.6 hatte ich natürlich Hoffnung, als ich verbesserte Mac-Kompatibilität im Changelog gelesen habe.
Am Wochenende hatte ich mir mit Fink wxgtk installiert. Das kompilieren der wxGTK 2.4.2 wie im Howto beschrieben hat nicht geklappt. make brach mit folgenden Fehler ab:
make: ./distrib/mac/shared-ld-sh: Command not found
make: *** [lib/libwx_gtk-2.4.0.1.1.dylib] Error 127
Ok, also habe ich versucht mit der wxGTK Version von Fink aMule zu kompilieren.
get-info.sh bringt übrigens folgendes zurück:
I. Development Environment
A. Compiler Info
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs Thread model: posix gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
B. wxWindows Info
Version: 2.4.1
-L/sw/lib -L/sw/lib -lwx_gtkd-2.4
C. GTK Info
GTK 1: 1.2.10
./get-info.sh: line 1: pkg-config: command not found
GTK 2:
II. System Environment
A. CPU Info
cat: /proc/cpuinfo: No such file or directory
Type:
cat: /proc/cpuinfo: No such file or directory
Model:
cat: /proc/cpuinfo: No such file or directory
Speed:
cat: /proc/cpuinfo: No such file or directory
BMips:
cat: /proc/cpuinfo: No such file or directory
Flags:
B. Memory Info
cat: /proc/meminfo: No such file or directory
Total:
cat: /proc/meminfo: No such file or directory
Unused:
C. Kernel Info
cat: /proc/sys/kernel/osrelease: No such file or directory
Version:
D. Library Info
./get-info.sh: line 33: ldconfig: command not found
wxWindows library:
./configure hat einwandfrei geklappt
Schon mal nicht schlecht. Danach habe ich dann make ausgeführt und das bracht mit folgenden Fehler dann ab:
g++ -I/usr/include -g -o amulecmd amulecmd-TextClient.o amulecmd-MD5Sum.o -L/sw/lib -L/sw/lib -lwx_gtkd-2.4 -L/usr/lib -lcurl -arch i386 -arch ppc -lz -lssl -lcrypto -lz
ld: for architecture i386
ld: warning /usr/lib/crt1.o cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning /usr/lib/gcc/darwin/3.3/crt2.o cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning amulecmd-TextClient.o cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning amulecmd-MD5Sum.o cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning /sw/lib/libwx_gtkd-2.4.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning /usr/lib/libcurl.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning /usr/lib/libz.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning /usr/lib/libssl.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning /usr/lib/libcrypto.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning /usr/lib/libz.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning /usr/lib/libstdc++.a archive's cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (can't load from it)
ld: warning /usr/lib/libgcc.a archive's cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (can't load from it)
ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: for architecture ppc
ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
symbol _locale_charset used from dynamic library /sw/lib/libiconv.2.dylib(localcharset.o) not from earlier dynamic library /sw/lib/libintl.1.dylib(localcharset.lo)
ld: Undefined symbols:
wxAddProcessCallbackForPid(wxEndProcessData*, int)
make[2]: *** [amulecmd] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
So meine Frage. Ich habe im Forum schon einen Screenshot von aMule auf dem Mac gesehen. Es scheint ja irgendwie zu funktionieren. Aber wie?
Welche Voraussetzungen sind gegeben für eine Kompilierung auf dem Mac?
Ist es die selbe Vorgehensweise wie im Howto. Also wxGTK 2.4.2 und wxBase?
Wäre schön wenn mir jemand weiterhelfen könnte. Stelle mich auch gerne als Tester zur Verfügung.
Wenn noch mehr Infos benötigt werden, poste ich den Rest gerne.
hoschy07