Jump to content
  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
Sign in to follow this  
weeguy

A few questions on porting Vienna

6 posts in this topic

Recommended Posts

I'm currently getting my hands dirty by trying to port Vienna (RSS Reader).

I don't have experience with porting apps so I thought this app should be relatively easy to begin with.

I opened the project in Xcode 2.1 and saw that there were several entries under Other Frameworks highlighted in red. Namely SystemConfiguration.framework, Webkit.framework, ApplicationServices.framework and Security.framework.

 

I deleted those entries and replaced them with the ones found in /System/Library/Frameworks/ . Is that the correct way to do so?

 

Thereafter, I changed the necessary project settings to make it compile as an Intel binary (ie change Architectures to i386).

 

When I tried building it, the sources compiled ok but the errors came when Xcode tried to link the frameworks.

 

Ld /Users/me/2.0.0/build/Deployment/Vienna.app/Contents/MacOS/Vienna normal i386
mkdir /Users/me/2.0.0/build/Deployment/Vienna.app/Contents/MacOS
cd /Users/me/2.0.0
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/usr/bin/gcc-4.0 -o /Users/me/2.0.0/build/Deployment/Vienna.app/Contents/MacOS/Vienna -L/Users/me/2.0.0/build/Deployment -L/Users/chongwee/2.0.0 -F/Users/me/2.0.0/build/Deployment -F/Users/me/2.0.0 -F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks -filelist /Users/me/2.0.0/build/Vienna.build/Deployment/Vienna.build/Objects-normal/i386/Vienna.LinkFileList -framework Cocoa -framework AddressBook -framework Growl -lsqlite3 -framework ApplicationServices -framework SystemConfiguration -framework WebKit -framework Security -arch i386 -lcurl
/usr/bin/ld: warning -F: directory name (/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks) does not exist
/usr/bin/ld: warning /Users/me/2.0.0/Growl.framework/Growl cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/bin/ld: Undefined symbols:
.objc_class_name_GrowlApplicationBridge
collect2: ld returned 1 exit status

 

It seems that the Growl framework that came with the source was built for ppc. So how could I get over this?

 

 

 

If anyone's interested, the instructions for Vienna developers can be found here:

http://www.opencommunity.co.uk/vienna_dev.html

Share this post


Link to post
Share on other sites
/usr/bin/ld: warning /Users/me/2.0.0/Growl.framework/Growl cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)

/usr/bin/ld: Undefined symbols:

.objc_class_name_GrowlApplicationBridge

collect2: ld returned 1 exit status[/code]

 

It seems that the Growl framework that came with the source was built for ppc. So how could I get over this?

If anyone's interested, the instructions for Vienna developers can be found here:

http://www.opencommunity.co.uk/vienna_dev.html

 

Linker reports error cause of Growl.framework precompiled for PPC! Replace it with x86 version. Search forum/wiki, there exist x86 binary of this framework already. or compile it yourself.

Share this post


Link to post
Share on other sites

I've been fighting with the Vienna compile all day! You might look into replacing those frameworks with the ones in the 10.4u SDK. If you didn't install that, re-mount the Xcode image (or re-download it), and open the Packages folder. There are all sorts of neat toys in there. I seem to have gotten past all the errors, but I'm still getting a PPC-only build when I compile. I'll try to keep you posted...

Share this post


Link to post
Share on other sites

mmh, dont know if it really works-

i just compiled it and started it.

it could connect and i could read some rss.

thats all testing i have done.

(eeh, were links allowed? if not, i'll edit asap)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×