• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode2.1: Making a stand-alone app.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode2.1: Making a stand-alone app.


  • Subject: Re: Xcode2.1: Making a stand-alone app.
  • From: Chris Espinosa <email@hidden>
  • Date: Sat, 18 Jun 2005 15:17:42 -0700


On Jun 18, 2005, at 8:35 AM, DJ One37 wrote:

I'm having problems making a stand-alone app with Xcode2.1.


I'm trying to compile a C++ project using various SDL libraries and I

would like to be able to run this program with out installing the

libraries on another computer using 10.3.9.


My computer: Powerbook 15" 1.5Ghz 1Gig Ram 128 Mb VRAM 10.4.1 Xcode2.1

Libraries used: SDL, SDL_ttf, SDL_image, SDL_gfx, libz


I use Fink to get all the SDL stuff.


I have tried:

1) Once complied I change the permissions so that "others" can read and write.

2) I set Zerolink to off when in deployment mode .


So if anyone could please help out it would be greatly appreciated!



You're more than likely running into a trait of the Gnu compiler and linker that they will prefer a dynamic library to a static if both are found in the same directory.  E.g. if you link to SDL with -lSDL, and gcc finds both SDL.a and SDL.dylib in the directory, it will use they dynamic linking, and expect SDL to be installed on the target system.  Since you want to statically link with SDL.a, you should probably just remove SDL.dylib from the directory.

An alternative is to remove the SDL library's icon from your project's Frameworks and Libraries folder, and manually enter "-l/path/to/SDL.a into the Other Linker Flags target setting.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode2.1: Making a stand-alone app.
      • From: DJ One37 <email@hidden>
References: 
 >Xcode2.1: Making a stand-alone app. (From: DJ One37 <email@hidden>)

  • Prev by Date: Re: Xcode2.1: Making a stand-alone app.
  • Next by Date: Re: Universal binaries et al (Re: Adding zip functionality...)
  • Previous by thread: Re: Xcode2.1: Making a stand-alone app.
  • Next by thread: Re: Xcode2.1: Making a stand-alone app.
  • Index(es):
    • Date
    • Thread