This is an old revision of the document!
Note: when cloning orx and running it's accomapanying setup file, a windows gmake build project is automatically created. These instructions will help you do this manually if you ever need to remake your own.
There are 5 steps required to build Orx using gmake
This step is already covered under cloning orx. Please follow those instructions first.
Orx works with mingw32. Do not download the mingw64 project. Orx does not support this compiler yet. You can download an installer from: https://sourceforge.net/projects/mingw/files/Installer/ You will want the mingw-get-setup.exe file.
When first cloning Orx, this project should already be created for you. If so, skip this section.
Expected output:
Building configurations... Running action 'gmake'... Generating windows/gmake/Makefile... Generating windows/gmake/orx.make... Generating windows/gmake/orxLIB.make... Generating windows/gmake/Bounce.make... Done.
Expected output
"==== Building orxLIB (debug) ====" Creating ../../../lib/dynamic Creating obj/Debug/orxLIB orxPlugin_EmbeddedList.cpp orxAnim.c orxAnimPointer.c orxAnimSet.c orxModule.c orxType.c orxClock.c orxCommand.c orxConfig.c orxConsole.c orxEvent.c orxLocale.c orxResource.c orxSystem.c orxThread.c orxDebug.c orxFPS.c orxProfiler.c orxDisplay.c orxFont.c orxGraphic.c orxScreenshot.c orxText.c orxTexture.c orxFile.c orxInput.c orxJoystick.c orxKeyboard.c orxMouse.c orxParam.c orxMath.c orxVector.c orxBank.c orxMemory.c orxFrame.c orxFX.c orxFXPointer.c orxObject.c orxSpawner.c orxStructure.c orxTimeLine.c orxBody.c orxPhysics.c orxPlugin.c orxCamera.c orxRender.c orxShader.c orxShaderPointer.c orxViewport.c orxSound.c orxSoundPointer.c orxSoundSystem.c orxHashTable.c orxLinkList.c orxString.c orxTree.c Linking orxLIB Running post-build commands cmd /c copy /Y ..\..\..\lib\dynamic\orx*.dll ..\..\..\bin ..\..\..\lib\dynamic\orxd.dll 1 file(s) copied. "==== Building orx (debug) ====" Creating obj/Debug/orx orxMain.c Linking orx "==== Building Bounce (debug) ====" Creating ../../../bin/plugins/demo Creating obj/Debug/Bounce orxBounce.c Linking Bounce
If you check in the C:\[somewhere]\orx\code\lib\dynamic folder, you'll see an liborxd.a and orxd.dll
If you wish to build the other configurations, you can do so with:
mingw32.make config=profile
and…
mingw32.make config=release
… respectively.
Q. You get no errors, but no information either, just output like:
"==== Building orxLIB (debug) ====" "==== Building orx (debug) ====" "==== Building Bounce (debug) ===="
A. Try compiling again with debug messages again to get all possible information:
mingw32-make -d config=debug
Q. If you cannot compile, and you see something in the messages or logs regarding: C:\Program Files (x86)\Git\bin\sh.exe
A. This is because you have installed Git Bash and it has added C:\Program Files (x86)\Git\bin to your windows path. Therefore git binaries are available to your windows console and are clashing with mingw. Remove the path from your Environment Variables:
C:\Program Files (x86)\Git\bin
Reopen your windows console and try compiling again.
Q. You don't get any specific errors in the debug output.
A. Ensure you passed the correct config value. It must be either debug
, profile
, release
or not specified. If you typed any other value, you will get empty output like:
"==== Building orxLIB (wrong) ====" "==== Building orx (wrong) ====" "==== Building Bounce (wrong) ===="