Check the Desktop development with C++ workload box as you download. If necessary scroll down the page. Click “Language pack” and check “English” box. {“smallUrl”:“https://www. wikihow. com/images/thumb/2/23/Set-Up-SDL-with-Visual-Studio-2017-Step-3-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-3-Version-2. jpg”,“bigUrl”:"/images/thumb/2/23/Set-Up-SDL-with-Visual-Studio-2017-Step-3-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-3-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
If folders GL and GLP exist it’s okay. If they do not, right click in empty area > select New > Folder > type GL > hit ↵ Enter. By same way create folder GLP.
In thrown wizard check Save File. In downloading window you have the folder SDL2-2. 26. 0, (or the last version). Click it > right click > select Copy. Navigate to C:\GL. Inside GL, right click > select Paste. Click on name SDL2-2. 26. 0, (or the last version), > right click > select “Rename” > type SDLbin > hit ↵ Enter. Now in folder GL you have folder SDLbin. (Alternatively, open “Files Explorer” window > C: > GL. Go to downloading window > click downloaded folder and drag into C:\GL > rename to SDLbin). Close downloading window.
In thrown wizard check Save File. In downloading window you have the folder SDL2-2. 26. 0, (or the last version). Click it > right click > select Copy. Navigate to C:\GL. Inside GL, right click > select Paste. Click on name SDL2-2. 26. 0, (or the last version), > right click > select “Rename” > type SDLbin > hit ↵ Enter. Now in folder GL you have folder SDLbin. (Alternatively, open “Files Explorer” window > C: > GL. Go to downloading window > click downloaded folder and drag into C:\GL > rename to SDLbin). Close downloading window.
If Visual Studio is not open. Open it > Click Create a new project > Empty Project > Next. In “Project name” text field type (or copy and paste) SDLx32-0 In “Location” text field delete everything > copy C:\GLP\ > paste. Check “Place solution and project in the same directory” > click Create. Wait till Visual Studio instance with project SDLx32-0, appears. If Visual Studio is open. Click File > New > Project… . The rest as above.
In “Project name” text field type (or copy and paste) SDLx32-0 In “Location” text field delete everything > copy C:\GLP\ > paste. Check “Place solution and project in the same directory” > click Create. Wait till Visual Studio instance with project SDLx32-0, appears.
In “Solution Explorer” window right click the “Source Files” folder (the last one). Click “Add > “New Item…” In the “Add New Item - SDLx32-0” window, click “C++ File (. cpp)”, the first one. For “Name:” copy Main. cpp > delete everything > paste. The “Location” should be C:\GLP\SDLx32-0. If it’s not, copy C:\GLP\SDLx32-0\ > delete everything > paste. Click the Add button. The file will open in the main text editor but leave the file blank for now.
1. Main menu. In Configuration: select Active(Debug) > Platform: Win32 or x86 > click Configuration Manager. “Configuration Manager” wizard In “Active solution platform:” select x86 or Win32 In “Platform”, Win32 or x86 is automatically selected Click Close. 2. Additional Include Directories. See below images. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:”/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} {“smallUrl”:“https://www.
wikihow.
com/images/thumb/5/59/OpenGL-12.
png/460px-OpenGL-12.
png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12.
png/728px-OpenGL-12.
png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Open the C/C++ drop-down menu.
Click General > Additional Include Directories > down arrow at the right of the field > click <Edit.
.
.
Copy C:\GL\SDLbin\include > in “Additional Include Directories” wizard click first icon > paste. In “Additional Include Directories” wizard click OK. 3. Additional Library Directories Open the “Linker” drop-down menu (see below image), and click “General” > click “Additional Library Directories” entry > down arrow at the end of the field > “Edit”. {“smallUrl”:“https://www. wikihow. com/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg”,“bigUrl”:"/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\SDLbin\lib\x86 > in “Additional Library Directories” wizard click first icon > paste. In “Additional Library Directories” wizard click OK. 4. Additional Dependencies In the “Linker” drop-down menu (see below image), click “Input” > the “Additional Dependencies” entry > down arrow at the right of the field > “Edit”. {“smallUrl”:“https://www. wikihow. com/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg”,“bigUrl”:"/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy opengl32. lib; SDL2. lib;SDL2main. lib > paste in “Additional Dependencies” wizard’s most-top text box. In “Additional Dependencies” wizard click OK. 5. System. In the “Linker” drop-down menu (see below image), click “System” > “SubSystem” > down arrow > select “Console (/SUBSYSTEM:CONSOLE)” from the dropdown menu. Click Apply > OK on the “SDL-0 Property Pages” wizard. {“smallUrl”:“https://www. wikihow. com/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg”,“bigUrl”:"/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
1. Main menu. In Configuration: select Active(Debug) > Platform: Win32 or x86 > click Configuration Manager. “Configuration Manager” wizard In “Active solution platform:” select x86 or Win32 In “Platform”, Win32 or x86 is automatically selected Click Close. 2. Additional Include Directories. See below images. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:"/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} {“smallUrl”:“https://www.
wikihow.
com/images/thumb/5/59/OpenGL-12.
png/460px-OpenGL-12.
png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12.
png/728px-OpenGL-12.
png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Open the C/C++ drop-down menu.
Click General > Additional Include Directories > down arrow at the right of the field > click <Edit.
.
.
Copy C:\GL\SDLbin\include > in “Additional Include Directories” wizard click first icon > paste. In “Additional Include Directories” wizard click OK. 3. Additional Library Directories Open the “Linker” drop-down menu (see below image), and click “General” > click “Additional Library Directories” entry > down arrow at the end of the field > “Edit”. {“smallUrl”:“https://www. wikihow. com/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg”,“bigUrl”:"/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\SDLbin\lib\x86 > in “Additional Library Directories” wizard click first icon > paste. In “Additional Library Directories” wizard click OK. 4. Additional Dependencies In the “Linker” drop-down menu (see below image), click “Input” > the “Additional Dependencies” entry > down arrow at the right of the field > “Edit”. {“smallUrl”:“https://www. wikihow. com/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg”,“bigUrl”:"/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy opengl32. lib; SDL2. lib;SDL2main. lib > paste in “Additional Dependencies” wizard’s most-top text box. In “Additional Dependencies” wizard click OK. 5. System. In the “Linker” drop-down menu (see below image), click “System” > “SubSystem” > down arrow > select “Console (/SUBSYSTEM:CONSOLE)” from the dropdown menu. Click Apply > OK on the “SDL-0 Property Pages” wizard. {“smallUrl”:“https://www. wikihow. com/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg”,“bigUrl”:"/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
“Configuration Manager” wizard In “Active solution platform:” select x86 or Win32 In “Platform”, Win32 or x86 is automatically selected Click Close.
Copy C:\GL\SDLbin\include > in “Additional Include Directories” wizard click first icon > paste. In “Additional Include Directories” wizard click OK.
Copy C:\GL\SDLbin\lib\x86 > in “Additional Library Directories” wizard click first icon > paste. In “Additional Library Directories” wizard click OK.
Copy opengl32. lib; SDL2. lib;SDL2main. lib > paste in “Additional Dependencies” wizard’s most-top text box. In “Additional Dependencies” wizard click OK.
Select the “Advanced” tab from the top bar > click Environment Variables. . . . “Environment Variables” wizard is thrown. Double click the “Path” (or “PATH”) Variable in the “System Variables” section. “Edit environment variable” wizard is thrown. Copy C:\GL\SDLbin\lib\x86 > click New > Paste. Click OK in all 3 wizards. Close Visual Studio > in thrown wizard “Save changes to the following items?” click Save. Restart your PC > open Visual Studio. If project is open, it’s okay. If it’s not, in “Open recent” list, click “SDLx32-0. sln” the first one. Now your project is open ready for test.
Select the “Advanced” tab from the top bar > click Environment Variables. . . . “Environment Variables” wizard is thrown. Double click the “Path” (or “PATH”) Variable in the “System Variables” section. “Edit environment variable” wizard is thrown. Copy C:\GL\SDLbin\lib\x86 > click New > Paste. Click OK in all 3 wizards. Close Visual Studio > in thrown wizard “Save changes to the following items?” click Save. Restart your PC > open Visual Studio. If project is open, it’s okay. If it’s not, in “Open recent” list, click “SDLx32-0. sln” the first one. Now your project is open ready for test.
In “Error List” if you see error cannot open file SDL. h, go to previous Part, step 1, Configure project’s Properties, sub-step 2. Configure “Additional Include Directories” and follow instructions. cannot open file SDL2. lib or SDL2main. lib, go to previous Part, step 1, sub-step 3. Configure “Additional Library Directories” and follow instructions. Also to sub-step 4. Configure “Additional Dependencies”. “entry point must be defined” go to previous Part, step 1, sub-step 5. Configure “System” and follow instructions. Thrown wizard about System or dll file, go to previous Part, steps 2 and 3, and follow instructions For other errors. Check whether you have added source file. If you cannot correct them, close Visual Studio > delete project folder SDLx32-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 3. Good job.
In “Error List” if you see error cannot open file SDL. h, go to previous Part, step 1, Configure project’s Properties, sub-step 2. Configure “Additional Include Directories” and follow instructions. cannot open file SDL2. lib or SDL2main. lib, go to previous Part, step 1, sub-step 3. Configure “Additional Library Directories” and follow instructions. Also to sub-step 4. Configure “Additional Dependencies”. “entry point must be defined” go to previous Part, step 1, sub-step 5. Configure “System” and follow instructions. Thrown wizard about System or dll file, go to previous Part, steps 2 and 3, and follow instructions For other errors. Check whether you have added source file. If you cannot correct them, close Visual Studio > delete project folder SDLx32-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 3. Good job.
On Select Template Options, for Template name: If it is “SDLx32-0” it’s okay. If it’s not, copy SDLx32-0 and paste . Output Location: (something like C:\Users\utilisateur\Documents\Visual Studio 2019\My Exported Templates\Project-1. zip) is okay. Click Finish. Template has been created. Delete the thrown window with template’s path. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg”,“bigUrl”:"/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
On Select Template Options, for Template name: If it is “SDLx32-0” it’s okay. If it’s not, copy SDLx32-0 and paste . Output Location: (something like C:\Users\utilisateur\Documents\Visual Studio 2019\My Exported Templates\Project-1. zip) is okay. Click Finish. Template has been created. Delete the thrown window with template’s path. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg”,“bigUrl”:"/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
In Create a new project wizard select SDLx32-0 (if necessary scroll down the list of templates) > click Next. In Configure your new project wizard, if “Project name” is SDLx32-01 it’s okay. If it’s not, copy SDLx32-01 and paste. Location should be C:\GLP, if it’s not, copy C:\GLP and paste > Be sure Place solution and project in the same directory is checked > click Create. In Visual Studio’s GUI main menu, select x86 > hit Ctrl+F5. If a black window with message “SDL initialization succeeded!” appears, then the project was set up correctly. You are now ready to program with SDL. TIP. When you create project with this template remember in Visual Studio main menu select x86.
If folders GL and GLP exist it’s okay. If they do not, right click in empty area > select New > Folder > type GL > hit ↵ Enter. By same way create folder GLP.
If Visual Studio is not open. Open it > Click Create a new project > Empty Project > Next. In “Project name” text field type (or copy and paste) SDLx64-0 In “Location” text field delete everything > copy C:\GLP\ > paste. Check “Place solution and project in the same directory” > click Create. Wait till Visual Studio instance with project SDLx32-0, appears. If Visual Studio is open. Click File > New > Project… . The rest as above.
In “Project name” text field type (or copy and paste) SDLx64-0 In “Location” text field delete everything > copy C:\GLP\ > paste. Check “Place solution and project in the same directory” > click Create. Wait till Visual Studio instance with project SDLx32-0, appears.
In “Solution Explorer” window right click the “Source Files” folder (the last one). Click “Add > “New Item…” In the “Add New Item - SDLx64-0” window, click “C++ File (. cpp)”, the first one. For “Name:” copy Main. cpp > delete everything > paste. The “Location” should be C:\GLP\SDLx64-0. If it’s not, copy C:\GLP\SDLx64-0\ > delete everything > paste. Click the Add button. The file will open in the main text editor but leave the file blank for now.
1. Main menu: In Configuration entry select Active(Debug) > in Platform: entry, select x64 > Click Configuration manager. . . In Configuration Manager wizard, in Active solution platform: select x64 In Platform entry, x64 is selected automatically. Click Close 2. Additional Include Directories: See below images. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:”/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} {“smallUrl”:“https://www.
wikihow.
com/images/thumb/5/59/OpenGL-12.
png/460px-OpenGL-12.
png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12.
png/728px-OpenGL-12.
png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} In SDLx64-0 Property Pages window double click C/C++ > click General > Additional Include Directories > down arrow at the end of the field > click <Edit.
.
.
. Copy C:\GL\SDLbin\include and paste in Additional Include Directories wizard’s upper-most text field. In Additional Include Directories wizard click OK. 3. Additional Library Directories: In the “SDLx64-0 Property Pages” wizard, open Linker (see below image) > click General > Additional Library Directories > down arrow at the end of the field > click <Edit. . . . {“smallUrl”:“https://www. wikihow. com/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg”,“bigUrl”:"/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\SDLbin\lib\x64 and paste in Additional Library Directories wizard’s upper-most text field. Click OK in Additional Library Directories wizard. 4. Additional Dependencies: In “Linker” drop-down menu (see below image), click “Input” > the “Additional Dependencies” entry > down arrow at the right of the field > “Edit”. {“smallUrl”:“https://www. wikihow. com/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg”,“bigUrl”:"/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy opengl32. lib; SDL2. lib;SDL2main. lib and paste in top-most text box in “Additional Dependencies” wizard. In “Additional Dependencies” wizard click OK. 5. System: In Linker drop-down menu (see below image), click System > SubSystem > down arrow at the end of the field > select Console (/SUBSYSTEM:CONSOLE). Click Apply and then OK in “Project’s Property Pages” wizard. {“smallUrl”:“https://www. wikihow. com/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg”,“bigUrl”:"/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
1. Main menu: In Configuration entry select Active(Debug) > in Platform: entry, select x64 > Click Configuration manager. . . In Configuration Manager wizard, in Active solution platform: select x64 In Platform entry, x64 is selected automatically. Click Close 2. Additional Include Directories: See below images. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:"/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} {“smallUrl”:“https://www.
wikihow.
com/images/thumb/5/59/OpenGL-12.
png/460px-OpenGL-12.
png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12.
png/728px-OpenGL-12.
png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} In SDLx64-0 Property Pages window double click C/C++ > click General > Additional Include Directories > down arrow at the end of the field > click <Edit.
.
.
. Copy C:\GL\SDLbin\include and paste in Additional Include Directories wizard’s upper-most text field. In Additional Include Directories wizard click OK. 3. Additional Library Directories: In the “SDLx64-0 Property Pages” wizard, open Linker (see below image) > click General > Additional Library Directories > down arrow at the end of the field > click <Edit. . . . {“smallUrl”:“https://www. wikihow. com/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg”,“bigUrl”:"/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\SDLbin\lib\x64 and paste in Additional Library Directories wizard’s upper-most text field. Click OK in Additional Library Directories wizard. 4. Additional Dependencies: In “Linker” drop-down menu (see below image), click “Input” > the “Additional Dependencies” entry > down arrow at the right of the field > “Edit”. {“smallUrl”:“https://www. wikihow. com/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg”,“bigUrl”:"/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy opengl32. lib; SDL2. lib;SDL2main. lib and paste in top-most text box in “Additional Dependencies” wizard. In “Additional Dependencies” wizard click OK. 5. System: In Linker drop-down menu (see below image), click System > SubSystem > down arrow at the end of the field > select Console (/SUBSYSTEM:CONSOLE). Click Apply and then OK in “Project’s Property Pages” wizard. {“smallUrl”:“https://www. wikihow. com/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg”,“bigUrl”:"/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
1. Main menu: In Configuration entry select Active(Debug) > in Platform: entry, select x64 > Click Configuration manager. . . In Configuration Manager wizard, in Active solution platform: select x64 In Platform entry, x64 is selected automatically. Click Close 2. Additional Include Directories: See below images. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:"/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} {“smallUrl”:“https://www.
wikihow.
com/images/thumb/5/59/OpenGL-12.
png/460px-OpenGL-12.
png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12.
png/728px-OpenGL-12.
png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} In SDLx64-0 Property Pages window double click C/C++ > click General > Additional Include Directories > down arrow at the end of the field > click <Edit.
.
.
. Copy C:\GL\SDLbin\include and paste in Additional Include Directories wizard’s upper-most text field. In Additional Include Directories wizard click OK. 3. Additional Library Directories: In the “SDLx64-0 Property Pages” wizard, open Linker (see below image) > click General > Additional Library Directories > down arrow at the end of the field > click <Edit. . . . {“smallUrl”:“https://www. wikihow. com/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg”,“bigUrl”:"/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\SDLbin\lib\x64 and paste in Additional Library Directories wizard’s upper-most text field. Click OK in Additional Library Directories wizard. 4. Additional Dependencies: In “Linker” drop-down menu (see below image), click “Input” > the “Additional Dependencies” entry > down arrow at the right of the field > “Edit”. {“smallUrl”:“https://www. wikihow. com/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg”,“bigUrl”:"/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy opengl32. lib; SDL2. lib;SDL2main. lib and paste in top-most text box in “Additional Dependencies” wizard. In “Additional Dependencies” wizard click OK. 5. System: In Linker drop-down menu (see below image), click System > SubSystem > down arrow at the end of the field > select Console (/SUBSYSTEM:CONSOLE). Click Apply and then OK in “Project’s Property Pages” wizard. {“smallUrl”:“https://www. wikihow. com/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg”,“bigUrl”:"/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
In Configuration Manager wizard, in Active solution platform: select x64 In Platform entry, x64 is selected automatically. Click Close
In SDLx64-0 Property Pages window double click C/C++ > click General > Additional Include Directories > down arrow at the end of the field > click <Edit. . .
. Copy C:\GL\SDLbin\include and paste in Additional Include Directories wizard’s upper-most text field. In Additional Include Directories wizard click OK.
Copy C:\GL\SDLbin\lib\x64 and paste in Additional Library Directories wizard’s upper-most text field. Click OK in Additional Library Directories wizard.
Copy opengl32. lib; SDL2. lib;SDL2main. lib and paste in top-most text box in “Additional Dependencies” wizard. In “Additional Dependencies” wizard click OK.
Select the “Advanced” tab from the top bar > click Environment Variables. . . . “Environment Variables” wizard is thrown. Double click the “Path” (or “PATH”) Variable in the “System Variables” section. “Edit environement variable” wizard is thrown. Copy C:\GL\SDLbin\lib\x64 > click New > Paste. Click OK in all 3 wizards. Close Visual Studio > in thrown wizard “Save changes to the following items?” click Save. Restart your PC > open Visual Studio. In “Open recent” list, click “SDLx64-0. sln”, the first one. Now your project is open ready for test.
Select the “Advanced” tab from the top bar > click Environment Variables. . . . “Environment Variables” wizard is thrown. Double click the “Path” (or “PATH”) Variable in the “System Variables” section. “Edit environement variable” wizard is thrown. Copy C:\GL\SDLbin\lib\x64 > click New > Paste. Click OK in all 3 wizards. Close Visual Studio > in thrown wizard “Save changes to the following items?” click Save. Restart your PC > open Visual Studio. In “Open recent” list, click “SDLx64-0. sln”, the first one. Now your project is open ready for test.
In “Error List” if you see error cannot open file SDL. h, go to previous Part, step 1, sub-step 2 Additional Include Directories, and follow instructions. cannot open file SDL2. lib or SDL2main. lib, go to previous Part, step 1, sub-step 3 Additional Library Directories and follow instructions. Also to sub-step 4 Configure Additional Dependencies. “entry point must be defined” go to previous Part, step 1, sub-step 5 Configure System, and follow instructions. Thrown wizard about System or dll file, go to previous Part, steps 2 and 3, and follow instructions For other errors. If you can’t correct them, close Visual Studio > delete project folder SDLx64-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 7. Good job. TIP: Even if in Property Pages main settings it is Platform: x64, click Configuration manager. . . and in Active solution platform: select x64.
In “Error List” if you see error cannot open file SDL. h, go to previous Part, step 1, sub-step 2 Additional Include Directories, and follow instructions. cannot open file SDL2. lib or SDL2main. lib, go to previous Part, step 1, sub-step 3 Additional Library Directories and follow instructions. Also to sub-step 4 Configure Additional Dependencies. “entry point must be defined” go to previous Part, step 1, sub-step 5 Configure System, and follow instructions. Thrown wizard about System or dll file, go to previous Part, steps 2 and 3, and follow instructions For other errors. If you can’t correct them, close Visual Studio > delete project folder SDLx64-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 7. Good job. TIP: Even if in Property Pages main settings it is Platform: x64, click Configuration manager. . . and in Active solution platform: select x64.
On Select Template Options, if Template name: is SDLx64-0 it’s okay. If it’s not copy SDLx64-0 and paste. Output Location: (something like C:\Users\utilisateur\Documents\Visual Studio 2019\My Exported Templates\Project-1. zip) is okay. Click Finish. Template has been created. Delete the thrown window with template’s path. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg”,“bigUrl”:"/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
On Select Template Options, if Template name: is SDLx64-0 it’s okay. If it’s not copy SDLx64-0 and paste. Output Location: (something like C:\Users\utilisateur\Documents\Visual Studio 2019\My Exported Templates\Project-1. zip) is okay. Click Finish. Template has been created. Delete the thrown window with template’s path. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg”,“bigUrl”:"/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
In Create a new project wizard in the list of templates select SDLx64-0 (if necessary scroll down the list) > click Next. In Configure your new project wizard, if “Project name” is SDLx64-01 it’s okay. If it’s not copy SDLx64-01 and paste. Location should be C:\GLP. If it’s not, copy C:\GLP and paste. Be sure Place solution and project in the same directory is checked > click Create. In Visual Studio GUI’s main menu, select x64. Hit Ctrl+F5. TIP: Remember in every project you create with this template, select x64 (next to Debug) in Visual Studio’s GUI.
If folders GL and GLP exist it’s okay. If they do not, right click in empty area > select New > Folder > type GL > hit ↵ Enter. By same way create folder GLP.
If the downloaded folder doesn’t contain line with stripes (unzipped folder) click it > right click > Copy. If downloaded folder’s icon contains vertical line with stripes (zipped folder), double click it for get unzipped folder, (or alternatively, click folder > right click > in drop-down menu select Extract all). When unzipping (extracting files) is finished, click unzip folder cmake-3. 25. 1-windows-x86_64. zip (or latest) > right click > Copy. Go to drive (directory) C: > GL > right click > Paste. (Alternatively click folder “cmake-3. 25. 0-windows-x86_64” and drag into folder “GL”). When copying is finished click folder “cmake-3. 25. 1-windows-x86_64” > right click > select “Rename” > type CMake > hit ↵ Enter > double click it > double click folder bin > inside you should see CMake’s logo next to file name cmake-gui > double click this file. If wizard “Windows protect your PC” appears, click More information > Run anyway. Now on your screen you have CMake GUI. Each time you need CMake, navigate to C:\ > GL > double click folder CMake > double click “bin” > double click file cmake-gui (the one with CMake’s logo).
In thrown wizard check Save File. Copy and unzip folder. In downloading window click zip folder SDL-release-2. 26. 0 (or latest version) > right click > select Copy. Navigate to C:\ > GL > right click > select Paste. (Alternatively click folder and drag into C:\GL). Now in directory C:\GL, you have unzip folder SDL-release-2. 26. 0 (or latest version). Click twice on its name > delete name > type: SDLsrc > hit ↵ Enter.
In thrown wizard check Save File. Copy and unzip folder. In downloading window click zip folder SDL-release-2. 26. 0 (or latest version) > right click > select Copy. Navigate to C:\ > GL > right click > select Paste. (Alternatively click folder and drag into C:\GL). Now in directory C:\GL, you have unzip folder SDL-release-2. 26. 0 (or latest version). Click twice on its name > delete name > type: SDLsrc > hit ↵ Enter.
Copy (attention do not copy any space)C:/GL/SDLsrc > paste in CMake GUI first text field. Copy (attention do not copy any space)C:/GL/SDLsrc/build and paste in the second text field. Configure and generate. In CMake GUI, click Configure > in wizard Create Directory click Yes > in wizard “Specify the generator for this project” click Finish. If, instead, wizard “Error” is thrown, click OK > click “File” > click “Delete Cache” > in thrown wizard “Delete Cache”, click Yes. When, in CMake GUI, you read: “Configuring done”, click Generate. You should read: “Generating done”.
Copy C:/GL/SDLsrc/build and paste in File Explorer’s Address bar > hit ↵ Enter > double click “SDL2. sln”, or “SDL2”, or “ALL_BUILD. vcxproj”. An instance of Visual Studio appears. In the main menu, click “Build” > “Build Solution”. Wait till in “Output” window last line you read: ========== Build: X succeeded, 0 failed, 0 up-to-date, Y skipped" ========== TIP: Numbers X of “succeeded” and Y “skipped” change in SDL2 versions. Today (March 14, 2022) are 5 and 2 respectively. Close this instance of Visual Studio > close Cmake.
If Visual Studio is not open. Open it > Click Create a new project > Empty Project > Next. In Configure your new project wizard, Copy SDLsrc-0 and paste in “Project name”, text field. If “Location” is “C:\GLP" it’s okay. If it’s not, copy C:\GLP\ > in “Location” text field delete everything > paste. Check “Place solution and project in the same directory”. Click Create. Wait till Visual Studio instance appears. If it is open. Click File > New > Project… . The rest as above.
In Configure your new project wizard, Copy SDLsrc-0 and paste in “Project name”, text field. If “Location” is “C:\GLP" it’s okay. If it’s not, copy C:\GLP\ > in “Location” text field delete everything > paste. Check “Place solution and project in the same directory”. Click Create. Wait till Visual Studio instance appears.
Copy SDLsrc-0 and paste in “Project name”, text field. If “Location” is “C:\GLP" it’s okay. If it’s not, copy C:\GLP\ > in “Location” text field delete everything > paste. Check “Place solution and project in the same directory”. Click Create. Wait till Visual Studio instance appears.
In Add New Item - SDLsrc-GLEWsrc-0 window, click C++ File (. cpp) (the first one) from the middle of the window. In Name text box type (or copy and paste) Main. cpp Location is C:\GLP\SDLsrc-GLEWsrc-0. If it’s not copy C:\GLP\SDLsrc-GLEWsrc-0\ and paste. Click Add button. The file will open in the main text editor but leave the file blank for now.
1. Main menu. In “Configuration:” entry select “Active(Debug)”. In Platform: entry select x64 > click Configuration Manager. . . . In Active solution platform: select x64. In Platform entry, x64 is automatically selected. Click Close. 2. Additional Include Directories. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:”/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png”,“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>”} {“smallUrl”:“https://www.
wikihow.
com/images/thumb/5/59/OpenGL-12.
png/460px-OpenGL-12.
png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12.
png/728px-OpenGL-12.
png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Open C/C++ entry > click General > In beside menu select the first one, Additional Include Directories > click the down arrow at the end of the field > click Edit.
.
.
.
Copy C:\GL\SDLsrc\include > in Additional Include Directories wizard click first icon > paste.
In Additional Include Directories wizard click OK.
3.
Additional Library Directories.
Open Linker entry > click General > Additional Library Directories > click the down arrow at the end of the field > click Edit.
.
.
.
{“smallUrl”:“https://www.
wikihow.
com/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2.
jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2.
jpg”,“bigUrl”:"/images/thumb/0/03/Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2.
jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-10-Version-2.
jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\SDLsrc\build\Debug > in Additional Library Directories wizard click first icon > paste.
In Additional Library Directories wizard click OK.
4.
Additional Dependencies.
In Linker drop-down menu select Input > in beside menu select the first one, Additional Dependencies > click the down arrow at the end of the field > Edit.
.
.
.
{“smallUrl”:“https://www.
wikihow.
com/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2.
jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2.
jpg”,“bigUrl”:"/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2.
jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2.
jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy opengl32.
lib; SDL2maind.
lib; SDL2d.
lib and paste in Additional Dependencies wizard’s upper-most text box > click OK.
5.
System In Linker drop-down menu select System > in beside menu select the first one, SubSystem > click the down arrow at the end of the field > select Console (/SUBSYSTEM:CONSOLE).
Click Apply and OK.
{“smallUrl”:“https://www.
wikihow.
com/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2.
jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2.
jpg”,“bigUrl”:"/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2.
jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2.
jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
In Active solution platform: select x64. In Platform entry, x64 is automatically selected. Click Close.
Copy C:\GL\SDLsrc\include > in Additional Include Directories wizard click first icon > paste. In Additional Include Directories wizard click OK.
Copy C:\GL\SDLsrc\build\Debug > in Additional Library Directories wizard click first icon > paste. In Additional Library Directories wizard click OK.
Copy opengl32. lib; SDL2maind. lib; SDL2d. lib and paste in Additional Dependencies wizard’s upper-most text box > click OK.
Select the “Advanced” tab from the top bar > click Environment Variables. . . . “Environment Variables” wizard is thrown. Double click the “Path” (or “PATH”) Variable in the “System Variables” section. “Edit environment variable” wizard is thrown. Copy C:\GL\SDLsrc\build\Debug > click New > Paste. Click OK in all 3 wizards. Close Visual Studio > in thrown wizard “Save changes to the following items?” click Save. Restart your PC > open Visual Studio. If project is open, it’s okay. If it’s not, in “Open recent” list, click “SDLsrc-0. sln”, the first one. Now your project is open ready for test.
Select the “Advanced” tab from the top bar > click Environment Variables. . . . “Environment Variables” wizard is thrown. Double click the “Path” (or “PATH”) Variable in the “System Variables” section. “Edit environment variable” wizard is thrown. Copy C:\GL\SDLsrc\build\Debug > click New > Paste. Click OK in all 3 wizards. Close Visual Studio > in thrown wizard “Save changes to the following items?” click Save. Restart your PC > open Visual Studio. If project is open, it’s okay. If it’s not, in “Open recent” list, click “SDLsrc-0. sln”, the first one. Now your project is open ready for test.
In “Error List” if you see error cannot open file SDL. h, go to Part 13, step 1, sub-step 2 Additional Include Directories, and follow instructions. cannot open file SDL2. lib or SDL2main. lib, go to part 13, step 1, sub-step 3 Additional Library Directories and follow instructions. Also to sub-step 4 Configure Additional Dependencies. “entry point must be defined” go to Part 13, step 1, sub-step 5 System, and follow instructions. Thrown wizard about System or dll file go to previous Part steps 2 and 3, and follow instructions For other errors. If you can’t correct them, close Visual Studio > delete project folder SDLsrc-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 12. Good job. TIP: Even if in Property Pages main settings it is Platform: x64, click Configuration manager. . . and in Active solution platform: select x64.
In “Error List” if you see error cannot open file SDL. h, go to Part 13, step 1, sub-step 2 Additional Include Directories, and follow instructions. cannot open file SDL2. lib or SDL2main. lib, go to part 13, step 1, sub-step 3 Additional Library Directories and follow instructions. Also to sub-step 4 Configure Additional Dependencies. “entry point must be defined” go to Part 13, step 1, sub-step 5 System, and follow instructions. Thrown wizard about System or dll file go to previous Part steps 2 and 3, and follow instructions For other errors. If you can’t correct them, close Visual Studio > delete project folder SDLsrc-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 12. Good job. TIP: Even if in Property Pages main settings it is Platform: x64, click Configuration manager. . . and in Active solution platform: select x64.
On Select Template Options, if Template name: is SDLsrc-0, it’s okay. If it’s not, type (or copy and paste) SDLsrc-0 and paste. Output Location: (something like C:\Users\utilisateur\Documents\Visual Studio 2019\My Exported Templates\Project-1. zip) is okay. Click Finish. Template has been created. Delete thrown window with template’s path. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg”,“bigUrl”:"/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
On Select Template Options, if Template name: is SDLsrc-0, it’s okay. If it’s not, type (or copy and paste) SDLsrc-0 and paste. Output Location: (something like C:\Users\utilisateur\Documents\Visual Studio 2019\My Exported Templates\Project-1. zip) is okay. Click Finish. Template has been created. Delete thrown window with template’s path. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg”,“bigUrl”:"/images/thumb/6/69/Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg/aid9342314-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-16-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
In Create a new project wizard in the list of templates select SDLsrc-0 (if necessary scroll down the list) > click Next. In Configure your new project wizard, if “Project name” is SDLsrc-01 it’s okay. If it’s not, type (or copy and paste) SDLsrc-01 Location should be C:\GLP. If it’s not, delete anything, copy C:\GLP and paste. Be sure Place solution and project in the same directory is checked. Click Create. In Visual Studio main menu, select x64 > hit Ctrl+F5. Good job
Location should be C:\GLP. If it’s not, delete anything, copy C:\GLP and paste. Be sure Place solution and project in the same directory is checked. Click Create.
Location should be C:\GLP. If it’s not, delete anything, copy C:\GLP and paste. Be sure Place solution and project in the same directory is checked. Click Create.
Location should be C:\GLP. If it’s not, delete anything, copy C:\GLP and paste. Be sure Place solution and project in the same directory is checked. Click Create.
Set up binaries x86 (32 bits). It’s the easiest. You should start learning set up from here. Set up binaries x64 (64 bits). It targets x64 platform. Choose it only when you are sure your project needs it. Compile SDL source, and set up in project. Targets x64 too. The most difficult. The best though.
In File Explorer navigate to folder where . lib file(s) live(s) (C: > GL > SDL > lib > x86, in this tutorial), click twice on the name of each . lib file and copy (by strike Ctrl+C) the name with its extension . lib. Now go to Additional Dependencies wizard and paste it (by strike Ctrl+V). Type a semicolon (;). If you want configure OpenGL with your project add opengl32. lib.
Open your default Downloads folder and scroll to SDL2-devel-2. 0. 12-VC. zip. Right-click SDL2-devel-2. 0. 12-VC. zip and select Extract Here. Click Extract without changing the folder path. This unzips the files and displays a File Explorer window containing a folder called “SDL-2. 0. 12. " Double-click the new folder to open it. You’ll see three folders and several files. Highlight all of the files and sub-folders and press Control + X. In the same File Explorer window, navigate to the SDL folder you created and double-click it to open it. Right-click a blank area in the folder and select Paste. The files are now moved into the correct folder.
Download and extract the file: Go to https://www. libsdl. org/projects/SDL_image. Below Development Libraries: find and download SDL2_image-devel-2. 0. 5-VC. zip. Right-click the downloaded file called SDL2_image-devel-2. 0. 5-VC. zip and select Extract All. Click Extract. Move the SDL_image. h file to SDL’s include folder. In File Explorer navigate . . . Downloads > SDL2_image-devel-2. 0. 5-VC. zip > SDL2_image-2. 0. 5 > include > click file SDL_image. h > right click > select Copy. Go to C:\SDL\include > right click in blank area > Paste. Move the x64 files to the appropriate folder. Double-click the new folder called SDL2_image-2. 0. 5. Double-click the lib folder and then the x64 folder. Select all the folder’s contents and press Ctrl + X. In the same window, navigate to the SDL folder you created (e. g. , C:\SDL”). Double-click the lib and then the x64 folder. Right-click a blank area of the folder and click Paste. Move the x86 files to the appropriate library folder. Return to the Downloads folder and double-click the unzip SDL2_image-2. 0. 5 folder. Double-click the lib folder and then the x86 folder. Select all of the folder’s contents and press Ctrl + X. In the same window, navigate to the SDL folder you created (e. g. , D:\SDL"). Double-click the lib and then the x86 folder. Right-click a blank area of the folder and click Paste.
Download and unzip the file: Go to https://www. libsdl. org/projects/SDL_ttf and, below Development Libraries: find and download the file called SDL2_ttf-devel-2. 0. 15-VC. zip. Right-click SDL2_ttf-2. 0. 15 folder in your Downloads folder and select Extract All. Click Extract. Move SDL_ttf. h file to SDL’s include folder. Go to Downloads > SDL2_ttf-devel-2. 0. 15-VC. zip > SDL2_ttf-2. 0. 15 > include > click SDL2_ttf. h file > right click > select Copy. Go to C:\SDL\include > right click > select Paste. Move the x64 files to the appropriate library folder. Double-click the SDL2_ttf-2. 0. 15 folder in your Downloads. You find it in unzip folder SDL2_ttf-devel-2. 0. 15-VC. Double-click lib and then x64. Select all the files and press Ctrl + X. In the same File Explorer window, navigate to the SDL folder you created (e. g. , C:\SDL"). Double-click the lib folder Double-click the x64 folder. Right-click a blank area of the folder and select Paste. Move the x86 files to the appropriate library folder. Return to the Downloads folder and double-click the SDL2_ttf-2. 0. 15. Double-click the lib folder and then the x86 folder. Select all of the folder’s contents and press Ctrl + X. In the same window, navigate to the SDL folder you created (e. g. , C:\SDL). Double-click the lib and then the x86 folder. Right-click a blank area of the folder and click Paste.
Download and unzip: Go to https://www. libsdl. org/projects/SDL_mixer and below Development Libraries: find and download SDL2_mixer-devel-2. 0. 4-VC. zip. Right-click the downloaded file and select Extract All and then Extract. Move the SDL2_mixer. h file into SDL’s include folder. Go to Downloads > SDL2_mixer-devel-2. 0. 4-VC. zip > SDL2_mixer-2. 0. 4 > include > click file SDL2_mixer. h > right click > select Copy. Go to C:\SDL\include > in blank area right click > select Paste. Move the x64 files to the appropriate library folder. Double-click the SDL_mixer-2. 0. 4 folder in your Downloads. Double-click lib and then x64. Select all of the files and press Ctrl + X. In the same File Explorer window, navigate to the SDL folder you created (e. g. , C:\SDL"). Double-click the lib folder and then the x64 folder. Right-click a blank area of the folder and select Paste. Move the x86 files to the appropriate library folder. Return to the Downloads folder and double-click the SDL_mixer-2. 0. 4. Double-click the lib folder and then the x86 folder. Select all of the folder’s contents and press Ctrl + X. In the same window, navigate to the SDL folder you created (e. g. , C:\SDL). Double-click the lib and then the x86 folder. Right-click a blank area of the folder and click Paste.
Right-click Source Files in the Solution Explorer window. Select Add > New Item… In the “Add New Item - Project-0” window, click C++ File (. cpp). Change the name if you’d like. The “Location” should be C:\SDL\Project-0\ (or whatever path you’re using). If it’s not, click … to the right of the field, navigate to the correct folder, and click Select folder. Click Add to open the file in the main editor.
Select All Platforms from the “Platform” menu at the top of the window. Expand the C/C++ menu in the left panel and select General. [4] X Research source In the right panel, click Additional Include Directories, down arrow at the end of the field, Edit. At the top of the “Additional Include Directories” wizard, click the brown folder icon (the first icon), and then click . . . next to the text box. In the “Select Directory” window, navigate to C:\SDL (or wherever your SDL folder is), select the include folder, and then click Select Folder. Click OK on the “Additional Include Directories” window. Select x64 from the menu and click Yes, if prompted, to save. Now, click Linker, General, Additional Library Directories in the right panel, the down arrow at the end of the field, and select Edit. Click the brown folder icon, the . . . and navigate to C:\SDL\lib (or wherever your SDL folder is), select the x64 folder, and then click Select Folder. Click OK on the Additional Library Directories window. Now select x86 (or win32) from the “Platform” menu. Click Yes to save if prompted. Again, click Additional Library Directories in the right panel, the down arrow at the end of the field, and select Edit. Click the brown folder icon, and then …. Navigate to C:\SDL\lib (or wherever your SDL folder is), select the x86 folder, and then click Select Folder. Click OK on the Additional Library Directories window. Leave the properties window open, though.
On the Properties window, select x86 (or win32) from the “Platform” menu and click Yes if prompted. Expand the Linker menu in the left panel and select Input. Click the Additional Dependencies option in the right panel, the down arrow at the end of the field, and select Edit. Copy SDl2. lib; SDL2_mixer. lib; SDL2_ttf. lib; SDL2_image. lib; SDL2main. lib and paste into upper most text area of “Additional Dependencies” wizard. Click OK. Switch to the x64 platform using the Platform menu and click Yes if prompted. Click the Additional Dependencies option in the right panel, the down arrow at the end of the field, and select Edit. Copy SDl2. lib; SDL2_mixer. lib; SDL2_ttf. lib; SDL2_image. lib; SDL2main. lib and paste into upper most text area of “Additional Dependencies” wizard. Click OK. Click Apply at the bottom. Don’t close the window.
Expand the Linker menu in the left panel and select System. Switch to the x86 (or Win32) platform. In the right panel, click SubSystem. Click the down-arrow and select Console (/SUBSYSTEM:CONSOLE). Click Apply. Switch to the x64 platform. Click the down-arrow and select Console (/SUBSYSTEM:CONSOLE) again. Click Apply and then OK. Press Windows key + E to open the File Explorer. Navigate to C:\SDL\lib\x64 (unless you’re using a 32-bit version of Windows, in which case, use the x86 folder). When you’re there, select all of the . DLL files you’ll need for this project (at the very list, SDL2. dll—but if you’re using images, sdl2_image. dll, etc. ) and select Copy. Navigate to C:\SDL\Project-0 (or whatever your project folder is called). When there, right-click a blank location in the folder and select Paste.
If you don’t want to load the template into VS immediately, remove the checkmark from “Automatically import the template into Visual Studio. "
Each time you create a project with this template copy dll files and paste into project-folder. Remember in Visual Studio main menu switch to x64. [6] X Research source {“smallUrl”:“https://www. wikihow. com/images/thumb/3/39/9342314-26. jpg/v4-460px-9342314-26. jpg”,“bigUrl”:”/images/thumb/3/39/9342314-26. jpg/aid9342314-v4-728px-9342314-26. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
Image by: Uploader
\nLicense: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://creativecommons.
org/licenses/by/3.
0/">Creative Commons</a>\n</p></div>"}