Re: Xcode2.1: Making a stand-alone app.
Re: Xcode2.1: Making a stand-alone app.
- Subject: Re: Xcode2.1: Making a stand-alone app.
- From: DJ One37 <email@hidden>
- Date: Fri, 24 Jun 2005 00:28:32 -0400
Hi,
Just want to let everyone know that the problem WAS with having the
framework verion of the SDL libraries and a link to the Fink version.
Once I removed all the frameworks from my project it ran fine on other
platforms.
Cheers,
DJ
> 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
>
>
_______________________________________________
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