Xanix
GHIII
You'll need glfw and gmp libraries and headers.
Compiling under Dev-Cpp
File->New->Project...
Click on windows application, change name and then click ok.
After saving delete main.cpp form project.
Now add all .cpp and .h files from OTclient directory.
Project->Options->Parameters
to linker add following libraries:
libglfw.a
libglu32.a
libopengl32.a
libwsock32.a
Rebuild all and run. glfw.dll and gmp.dll libraries should be in project directory.
That's all
Micorosoft Visual C++
Microsoft gave big present for us. They Visual Studio Express is free. You can get it there:
http://msdn.microsoft.com/vstudio/express/visualc/
You'll also need some headers from Platform SDK, which you can find there:
http://www.microsoft.com/downloads/d...displaylang=en
Visual c++ might not find headers form Platform SDK, if it happens, go to your Visual c++ directory, then to 'VC' directory and make PlatformSDK folder. Copy 'Bin', 'Include' and 'Lib' form 'real' PlatformSDK directory to 'VC/PlatformSDK'.
Run VC.
Then go to 'File->New->Project' and chose empty project. Name as you want.
To header files add all '.h' files, to source files add all '.cpp' files.
Then go to Project->Properties->Configuration Properties->Linker->Command Line and in 'Additional Options' add:
/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
Additional options:
I set Link Time Code generation in Linker->Optimization
and c/c++->Optimization optimization to Full Optimization and Whole Program Optimization to Enable link-time code generation.
That's all.
Compiling under Dev-Cpp
File->New->Project...
Click on windows application, change name and then click ok.
After saving delete main.cpp form project.
Now add all .cpp and .h files from OTclient directory.
Project->Options->Parameters
to linker add following libraries:
libglfw.a
libglu32.a
libopengl32.a
libwsock32.a
Rebuild all and run. glfw.dll and gmp.dll libraries should be in project directory.
That's all
Micorosoft Visual C++
Microsoft gave big present for us. They Visual Studio Express is free. You can get it there:
http://msdn.microsoft.com/vstudio/express/visualc/
You'll also need some headers from Platform SDK, which you can find there:
http://www.microsoft.com/downloads/d...displaylang=en
Visual c++ might not find headers form Platform SDK, if it happens, go to your Visual c++ directory, then to 'VC' directory and make PlatformSDK folder. Copy 'Bin', 'Include' and 'Lib' form 'real' PlatformSDK directory to 'VC/PlatformSDK'.
Run VC.
Then go to 'File->New->Project' and chose empty project. Name as you want.
To header files add all '.h' files, to source files add all '.cpp' files.
Then go to Project->Properties->Configuration Properties->Linker->Command Line and in 'Additional Options' add:
/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
Additional options:
I set Link Time Code generation in Linker->Optimization
and c/c++->Optimization optimization to Full Optimization and Whole Program Optimization to Enable link-time code generation.
That's all.