User Tools

Site Tools


en:tutorials:orx:windows:cloning_and_building_orx_on_visual_studio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:orx:tutorials:visualstudio:cloning_and_building_orx_on_visual_studio [2020/08/19 19:13 (4 years ago)] – ↷ Links adapted because of a move operation sausageen:tutorials:orx:windows:cloning_and_building_orx_on_visual_studio [2022/03/27 13:37 (2 years ago)] (current) iarwain
Line 1: Line 1:
-====== Building the Orx library on Windows with Visual Studio 2015/2017/2019 ======+====== Building the Orx library on Windows with Visual Studio 2017/2019/2022 ======
  
-Before you can build the Orx library, you will need to clone it using ''git''. First [[en:tutorials:cloning_orx_from_github|follow these instructions to clone and initialize Orx]], then come back.+Before you can build the Orx library, you will need to clone it using ''git''. First [[en:tutorials:orx:cloning_orx_from_github|follow these instructions to clone and initialize Orx]], then come back.
  
 Now that you have the Orx repo and its dependencies, let's compile it using Visual Studio. Now that you have the Orx repo and its dependencies, let's compile it using Visual Studio.
Line 7: Line 7:
 Open the project version for your version of Visual Studio: Open the project version for your version of Visual Studio:
  
-{{ tutorials:orx:tutorials:windows:visual-studio-load-orx.gif |}}+{{ tutorials:orx:windows:visual-studio-load-orx.gif |}}
  
 <WRAP center round important 90%> <WRAP center round important 90%>
-**IMPORTANT**: //Visual Studio 2017 or 2019 can give an error during compilation, generating a request to update the SDK from Windows 8.1 to Windows 10. To solve this is very simple, right click on the project solution (property), and select "Retarget Solution". This will open a window in the center where it automatically asks you if you want to update the solution to SDK 10. click "Ok" and in 2 seconds you have solved the problem.//+**IMPORTANT**: //Visual Studio can give an error during compilation, generating a request to update the SDK from Windows 8.1 to Windows 10. To solve this is very simple, right click on the project solution (property), and select "Retarget Solution". This will open a window in the center where it automatically asks you if you want to update the solution to SDK 10. click "Ok" and in 2 seconds you have solved the problem.//
  
 However please ensure you do have the SDK installed, as it is required with VS2017 and greater. However please ensure you do have the SDK installed, as it is required with VS2017 and greater.
Line 18: Line 18:
 There are several configs to choose from: There are several configs to choose from:
  
-{{ tutorials:orx:tutorials:windows:visual-studio-build-configs.gif |}}+{{ tutorials:orx:windows:visual-studio-build-configs.gif |}}
  
 The configs for regular development are ''Debug'', ''Profile'', and ''Release'' in both 32 and 64-bit. The configs for regular development are ''Debug'', ''Profile'', and ''Release'' in both 32 and 64-bit.
Line 24: Line 24:
 Start with Debug and your preference of 32-bit or 64-bit. Click ''Build Solution'': Start with Debug and your preference of 32-bit or 64-bit. Click ''Build Solution'':
  
-{{ tutorials:orx:tutorials:windows:visual-studio-build-solution.gif |}}+{{ tutorials:orx:windows:visual-studio-build-solution.gif |}}
  
 You will see a successful build in the ''output'' pane with: You will see a successful build in the ''output'' pane with:
  
-{{ tutorials:orx:tutorials:windows:visual-studio-successful-build-output.gif |}}+{{ tutorials:orx:windows:visual-studio-successful-build-output.gif |}}
  
 If you get an error, check the troubleshooting section at end of this tutorial. If you get an error, check the troubleshooting section at end of this tutorial.
Line 36: Line 36:
 Once all three versions of the Orx library are compiled in this way, you can see them in your file system by exploring at: ''orx\code\lib\dynamic'': Once all three versions of the Orx library are compiled in this way, you can see them in your file system by exploring at: ''orx\code\lib\dynamic'':
  
-{{ tutorials:orx:tutorials:windows:explorer-orx-library-files.gif |}}+{{ tutorials:orx:windows:explorer-orx-library-files.gif |}}
  
 Here are listed dll's, link libraries, and debugging files. And that is it. You have compiled the Orx library, which can now be used in game projects of your own. Here are listed dll's, link libraries, and debugging files. And that is it. You have compiled the Orx library, which can now be used in game projects of your own.
Line 44: Line 44:
 ===== Troubleshooting ===== ===== Troubleshooting =====
  
-There are no items here just yet, but if you encounter any errors using Visual Studio 2015, 2017 or 2019, please let us know [[http://forum.orx-project.org|on the forum]]. We'll fix it up quickly and add your errors here for others.+There are no items here just yet, but if you encounter any errors using Visual Studio 20172019 or 2022, please let us know [[http://forum.orx-project.org|on the forum]]. We'll fix it up quickly and add your errors here for others.
  
  
en/tutorials/orx/windows/cloning_and_building_orx_on_visual_studio.1597889611.txt.gz · Last modified: 2020/08/19 19:13 (4 years ago) by sausage