
- #Visual studio ide for mac wiki how to
- #Visual studio ide for mac wiki mac os
- #Visual studio ide for mac wiki install
- #Visual studio ide for mac wiki code
Gcc -o myprogram myprogram.c ` sdl2-config -cflags -libs ` Once you have the library installed, you can use the sdl2-config program to help you compile your own code: Driving that is left as an exercise for the reader. It works on similar principles to the configure script, but you might find that you enjoy it more, if this is the sort of thing you generally enjoy in the first place. A good rule of thumb for Linux is the number of cores plus two, so you use all the processing resources possible, and if a process or two is competing for the disk, those two extra jobs might be able to put the otherwise-idle CPU cores to work in the meantime (so on a four-core system? Try "make -j6".)Īn (experimental!) alternative to the configure script is the CMake project file. "make" could be "make -j4" or whatever if you have more than one CPU SDL can safely be built in parallel across all the CPU cores you have available to you. SDL tries to do the right thing by default, though, so you can usually get away with no options at all.

In fact, there are a LOT of good options you can use with configure! Be sure to check out its -help option for details. You can change this to a different location with the -prefix option to the configure script. The last command says "sudo" so we can write it to /usr/local (by default).
#Visual studio ide for mac wiki install
#Visual studio ide for mac wiki how to
However, we encourage you to not do this for various technical and moral reasons (see docs/README-dynapi.md), and won't cover the details of how to in this document.


#Visual studio ide for mac wiki code
SDL 2.0, unlike 1.2, uses the zlib license, which means you can build a static library linked directly to your program, or just compile SDL's C code directly as part of your project. Some of these installation instructions happen to work with 1.2, however, on the platforms we cover.
#Visual studio ide for mac wiki mac os
It can be installed on legacy platforms that SDL2 doesn't support, such as Mac OS 9 or OS/2, but settling for 1.2 would not be a drop-in replacement for 2.0. You will need to download the source code first for most of them, unless prebuilt binaries are available. How to install SDL varies depending on your platform.
