Changeset ea878ba in buchla-emu
- Timestamp:
- 08/01/2017 05:46:02 PM (7 years ago)
- Branches:
- master
- Children:
- bdd5a63
- Parents:
- 74c44d9
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r74c44d9 rea878ba 32 32 FLAGS_LNK := $(FLAGS) -pthread -Wall -Wextra 33 33 LIBS := $(SDL2_LIB)/libSDL2.a \ 34 $(SDL2_LIB)/libSDL2_net.a \ 34 35 $(SDL2_LIB)/libSDL2_ttf.a \ 35 36 $(SDL2_LIB)/libfreetype.a \ … … 41 42 FLAGS_LNK := $(FLAGS) -Wall -Wextra 42 43 LIBS := $(SDL2_LIB)/libSDL2.a \ 44 $(SDL2_LIB)/libSDL2_net.a \ 43 45 $(SDL2_LIB)/libSDL2_ttf.a \ 44 46 $(SDL2_LIB)/libfreetype.a \ … … 60 62 $(SDL2_LIB)/libSDL2.a \ 61 63 $(SDL2_LIB)/libSDL2main.a \ 64 $(SDL2_LIB)/libSDL2_net.a \ 62 65 $(SDL2_LIB)/libSDL2_ttf.a \ 63 66 $(SDL2_LIB)/libfreetype.a \ 64 67 -l gdi32 \ 65 68 -l imm32 \ 69 -l iphlpapi \ 66 70 -l ole32 \ 67 71 -l oleaut32 \ 68 72 -l version \ 69 -l winmm 73 -l winmm \ 74 -l ws2_32 70 75 endif 71 76 -
emu/all.h
r74c44d9 rea878ba 28 28 29 29 #include <SDL2/SDL.h> 30 #include <SDL2/SDL_net.h> 30 31 #include <SDL2/SDL_ttf.h> 31 32 -
emu/sdl.c
r74c44d9 rea878ba 33 33 SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_VERBOSE); 34 34 35 if (SDLNet_Init() < 0) { 36 fail("SDLNet_Init() failed: %s", SDLNet_GetError()); 37 } 38 35 39 if (TTF_Init() < 0) { 36 40 fail("TTF_Init() failed: %s", TTF_GetError()); … … 44 48 { 45 49 TTF_Quit(); 50 SDLNet_Quit(); 46 51 SDL_Quit(); 47 52 } -
readme.txt
r74c44d9 rea878ba 26 26 https://libsdl.org/ 27 27 28 The SDL2 website also hosts the SDL2_ttf project, which adds support 29 for TrueType fonts to SDL2. SDL2_ttf, in turn, requires the FreeType 30 library, which is available from the FreeType website: 28 The SDL2 website also hosts the SDL2_net and SDL2_ttf projects, which 29 add support for networking and TrueType fonts to SDL2 30 31 SDL2_ttf, in turn, requires the FreeType library, which is available 32 from the FreeType website: 31 33 32 34 https://www.freetype.org/ … … 67 69 make install 68 70 69 # Build and install SDL2_ttf last71 # Build and install SDL2_ttf, now that we have FreeType and SDL2 70 72 71 73 tar zxvf SDL2_ttf-2.0.14.tar.gz … … 76 78 ../configure --prefix=/opt/sdl2 \ 77 79 --with-sdl-prefix=/opt/sdl2 --with-freetype-prefix=/opt/sdl2 80 81 make 82 make install 83 84 # Build and install SDL2_net last 85 86 tar zxvf SDL2_net-2.0.1.tar.gz 87 cd SDL2_net-2.0.1 88 mkdir build 89 cd build 90 91 ../configure --prefix=/opt/sdl2 --with-sdl-prefix=/opt/sdl2 78 92 79 93 make
Note:
See TracChangeset
for help on using the changeset viewer.