Striving
Striving

Reputation: 45

How to set up SDL_gfx in Xcode 6 with SDL 1.2?

I'm using SDL 1.2 and I'm not sure how to add SDL_gfx to the Xcode project. I dowloaded the .zip file from cms.ferzkopp.net. What would need to be done next to get SDL_gfx added in Xcode?

Upvotes: 0

Views: 896

Answers (1)

TPS
TPS

Reputation: 2137

Make sure you have the correct version first of all as you are using SDL 1.2 and not SDL 2.0. Then you need to build the library - there should be detailed instructions in the README file but essentially it a case of doing the following:

Open a terminal window and browse to the extracted source and run the following commands

./autogen.sh
./configure
make
make install

The default location for the installation is /usr/local/lib and /usr/local/include so from that you should be able to link the libSDL_gfx.a file in your Xcode project and include the required header files.

Upvotes: 0

Related Questions