aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: Universal Compile for tiger and leopard  (Read 13266 times)

hardtraks

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Universal Compile for tiger and leopard
« Reply #15 on: April 02, 2008, 02:06:03 AM »

Thank you for the effort  :)

I'm going to download Xcode and give a try too  :P even if I don't understand anything atm. 
Logged

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: Universal Compile for tiger and leopard
« Reply #16 on: April 02, 2008, 06:48:00 AM »

Problem is alot of people say that since late november/early december, they cant compile those amule CVS for tiger. I have no idea though if this is correct or not. Thats about the time my laptop with tiger on it got stolen. And it took me about a month to get the money to buy a new one... heh. It came with leopard...
Logged

blackfede

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 66
Re: Universal Compile for tiger and leopard
« Reply #17 on: April 02, 2008, 03:14:05 PM »

The version on libiconv shipped with tiger is 5.0.0, but we need the 7.0.0, so i tried to install libiconv via darwinports... bingo! Version 7.0.0! So you can use that!
Anyway i do the tricks, and change the reference to point at version instelled with darwinports, but there'a another problem....

Code: [Select]
[14:12] MacOS$> otool -L amule
amule:
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
        /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 12.0.0)
        /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime (compatibility version 1.0.0, current version 14.0.0)
        /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit (compatibility version 1.0.0, current version 525.13.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
        /opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 32.0.0)
        /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.10.0)
        /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 949.27.0)
        /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 34.0.0)
        /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 677.15.0)
[14:12] MacOS$> ./amule
dyld: lazy symbol binding failed: Symbol not found: _open$UNIX2003
  Referenced from: /Users/blackfede/Desktop/aMule-CVS-20080401-static-libiconv/aMule.app/Contents/MacOS/./amule
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _open$UNIX2003
  Referenced from: /Users/blackfede/Desktop/aMule-CVS-20080401-static-libiconv/aMule.app/Contents/MacOS/./amule
  Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap


Logged
All troll are idiots and will go in /dev/null

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: Universal Compile for tiger and leopard
« Reply #18 on: April 03, 2008, 04:07:18 AM »

The whole point is to have a binary that can be run on an out of the box tiger... and leopard. or at least with only updates from apple.
Logged

blackfede

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 66
Re: Universal Compile for tiger and leopard
« Reply #19 on: April 03, 2008, 10:05:49 AM »

I understand, but what i think is: if static link is difficult, why just don't include the libiconv in the bundle and play with install_name_tool to make it work correctly? libiconv require only libSystem.B, and this is a System lib.

By the way, another problem seems to be this libSystem.B: your build require version 111.0.0, but on Tiger i have 88.1.11. Now this is a problem i can't figure out how to resolve...
Logged
All troll are idiots and will go in /dev/null

blackfede

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 66
Re: Universal Compile for tiger and leopard
« Reply #20 on: April 03, 2008, 10:36:40 AM »

Maybe i'm wrong, but i think is not possible to build a unique bundle for Tiger and Leopard. We must build one for Tiger (Universal) and one for Leopard (Universal). Did you agree?
« Last Edit: April 03, 2008, 08:48:28 PM by blackfede »
Logged
All troll are idiots and will go in /dev/null

rigodon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: Universal Compile for tiger and leopard
« Reply #21 on: April 03, 2008, 06:47:41 PM »

http://forum.amule.org/index.php?topic=13726.0

This version is leopard only i think, and it's fine.
Logged

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: Universal Compile for tiger and leopard
« Reply #22 on: April 03, 2008, 07:48:12 PM »

Yeah we know. thats an old version though. It possible to build applications thats run on both tiger and leopard. the problem is dependencies.
Logged

blackfede

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 66
Re: Universal Compile for tiger and leopard
« Reply #23 on: April 04, 2008, 10:24:55 PM »

We should look for a way to compile aMule using Tiger SDK, it must be possible to set a flag, to use 10.4u SDK. So, in this way, if you build for Tiger, it will be ok for Leopard to!
In Xcode, i know how to do this, just go in Project -> Edit Project Settings -> Cross-Develop Using Target SDK -> 10.4u.
Logged
All troll are idiots and will go in /dev/null

blackfede

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 66
Re: Universal Compile for tiger and leopard
« Reply #24 on: April 04, 2008, 10:34:51 PM »

Maybe the isysroot is what we need! Can you give it a try? If you don't have 10.4u SDK, you can download for free at Apple Developer Connect: http://connect.apple.com/
Logged
All troll are idiots and will go in /dev/null

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: Universal Compile for tiger and leopard
« Reply #25 on: April 05, 2008, 08:13:50 PM »

the -isysroot /Developer/SDKs/MacOSX10.4u.sdk
is the way to do that. If you look carefuly, wxmac is compiled with that option by default. the problem though, is that it wont begin to compile amule. It gives me errors about multiple declarations and missing defines etc... probably due to versions of libraries
and yeah it works fine with the 10.5 sdk.
Logged

blackfede

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 66
Re: Universal Compile for tiger and leopard
« Reply #26 on: April 07, 2008, 09:17:51 AM »

So we return back to the problem of compilation under 10.4... there are a lot a topic with people who can't compile aMule with 10.4, including myself... Did you get some error about wxChar and/or wxString operator?
Logged
All troll are idiots and will go in /dev/null

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: Universal Compile for tiger and leopard
« Reply #27 on: April 07, 2008, 10:34:16 PM »

You get that error if you compile under 10.4 i get different ones with the 10.4 sdk under 10.5. I think the problem is that amule is expecting content of header files that dosent exist(because of the older versions). Maybe I can compile all the libraries needed under tiger statically and then compile amule. To do that i need to triple boot into tiger. Which means i need refit and to repartition my drive, which is a bit annoying. or maybe i can use an external drive and save myself the hastle. Ill play with that tonight. Havent had time cus ive been busy.
Logged
Pages: 1 [2]