Rybadour / Spider-Fish

A simple Bullet Hell Shooter.
socr.uwindsor.ca/~giga
8 stars 4 forks source link

Distributing libraries #13

Closed madebyjeffrey closed 12 years ago

madebyjeffrey commented 12 years ago

The current repository has a number of libraries prebuilt for windows. I believe this to not be an ideal setup. We should not be distributing libraries.

Instead, we can let the user store them somewhere and provide input to CMake on the command line to tell where they are.

As a multiplatform project I think this is the most practical way.

cdrllrd commented 12 years ago

I made a new branch build_test that does not have any of the libraries, I modified the cmake to remove a lot of clutter, Link SDL and mainly follow what I found on other games on github

If we could get someone on Windows/Mac to test it out, and see how hard it is to build would be great.

cdrllrd commented 12 years ago

If it turns out that Windows won't work without the libraries in the directory, we can add exceptions in the .gitignore file so those on windows can have them without git complaining about not tracking them.

madebyjeffrey commented 12 years ago

Good job, it runs. I literally only had to install SDL, and it built.

There are some warnings at runtime,

objc[82275]: Class SDLTranslatorResponder is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined. objc[82275]: Class SDL_QuartzView is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined. objc[82275]: Class SDL_QuartzWindowDelegate is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined. objc[82275]: Class SDL_QuartzWindow is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined.

But this is because I have some dylibs (think dll), and I have the framework (which is the one that cmake has it linking to).