If you are using Blurrr, ignore any random webpages about setup.
Blurrr includes prebuilt ready-to-ship libraries of SDL, SDL_image,
SDL_ttf, ALmixer, and others. The point of Blurrr is that you don’t
have to do all this manual setup so you can just focus on your program
(and skip all the trouble and time lost you spent this entire last
month). All that is required is that you install the platform’s native
build tools, e.g. Visual Studio for Windows, Xcode for Mac/iOS,
Android Studio for Android, etc.
For Visual Studio, you just need their C/C++ compiler stuff.
For Android, use the official Google supplied Android Studio/SDK/NDK.
Don’t use Microsoft Visual Studio’s.
Blurrr itself is installerless and is completely self-contained in the
folder you extract to. I’ve gone to great lengths to avoid doing stuff
that will change/screw-up your developer/system environment.
To test to see if you installed your platform compilers correctly,
open up BlurrrGenProj. Create a New Project (big left button). Pick an
SDL C based project and continue. Then make sure Visual Studio 2015 is
selected. Press Generate. If everything works, a Visual Studio project
should open with the new SDL project.
Look at the left side tree panel in Visual Studio. Currently ALL_BUILD
is the bold faced target. But look for one underneath called
MyBlurrrProject. Right-click it and in the contextual menu, select
"Set as StartUp Project".
Now you can git the Green “play” triangle in the center of the Visual
Studio toolbar to build and launch the SDL hello world program.
Once Windows is working, then focus on Android.
For Android, use the real SDK and NDK from Google, not the Microsoft one.
Google keeps changing everything. (I kept my mouth shut earlier to not
confuse you even more when actsl was telling you to use ant and
ndk-build. Google obsoleted those like 3 years ago, and you are
supposed to use Gradle, Android Studio, and CMake now.)
Anyway, in BlurrrGenProj, go to the Menu and open Preferences. You
must specify the Android SDK path and NDK path. This used to be much
more straight forward but they keep changing things in Android Studio.
You will need to hunt a little for these paths.
If you open Android Studio by itself and maybe create a dummy project,
you can go to File->Project Structure to find out the paths.
The SDK directory usually includes a directory called "platform-tools"
and may have a file called SDK Readme.txt.
The NDK directory usually includes a directory called “toolchains” and
a file called ndk-build
Once you set these directories in Blurrr’s Preferences, go back to the
Existing Project you made earlier for the Visual Studio test, and this
time select Android instead of Visual Studio 2015. Hit generate.
Now go to Android Studio and Open a project. Go to where you created
the Blurrr project/BUILD/Android and open that.
You should now have an Android Studio project. The Menu Items "Build"
and “Run” are the most interesting. If you have your Android device
connected to the computer already, then do Run->Run ‘app’
You will get a prompt which will ask you which device you want to
build/run for. Select your device and hit OK. (The emulators
theoretically will work too, but the real device has fewer problems.)
Hopefully this will build and run on your Android device.
This means Blurrr is now correctly configured, so you can just open up
your project that I made for you on GitHub in BlurrrGenProj. Repeat
Please refer to the Blurrr SDK documentation (markdown) in the
download which also describes what I just wrote. And if you want
YouTube visuals, please watch this Part 3 of the Blurrr SDK Quick
If you have problems, please let me know.