Windows with OpenGL support (without DirectX SDK)
I'm using Windows 7 and Visual Sudio 2010 for this setup. Similar procedure can be applied for other versions of windows and visual studio.
I suggest you don't download whatever was at the website you were led. There's links for Linux, Mac, and Windows, as well as instructions to.
- Get the following packages from the link given
- sqlite3 source and sqlite3 dll.
- Download the
ygopro
source from here. - Build libevent using visual studio command prompt (from start menu in visual studio sdk).
- Extract the
libevent-2.0.22-stable.tar.gz
compressed file andcd
to it from the visual studio command prompt. - Type
nmake Makefile.nmake
. This will generate aevent.lib
file. - Copy the include directory to
ygopro-master/event
. Also copy the files fromWIN32-Code
to theygopro-master/event/include
directory, maintaining the structure. - Copy the
event.lib
toygopro-master/event/lib
. - Extract the
freetype-2.3.5-1-bin.zip
file and copy the include folder toygopro-master/freetype
. Also copy the lib folder toygopro-master/freetype
. - Now we'll build
irrlicht
. - Extract the
irrlicht-1.8.1.zip
and open theirrlicht-1.8.1/source/Irrlicht/Irrlicht10.0.sln
. - Open
IrrCompileConfig.h
from the visual studio solution bar. Find the line#define _IRR_COMPILE_WITH_DIRECT3D_9_
and comment it. - Find the line
#define _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_
and comment it. - Now select
Static lib Debug
in visual studio and buildirrlicht
. - Copy the include folder to
ygopro-master/irrlicht
. Also copy the filelib/Win64-visualStudio/Irrlicht.lib
to folderygopro-master/irrlicht/lib
. - Now we'll build
lua
in visual studio. - Extract the file
lua-5.2.0.tar.gz
. - Open visual studio and create an empty c++ project at any desired location.
- Now in the
header
folder(in visual studio) right click to add an existing item. Now select all the.hpp
and.h
files. - Now right click the
source
folder and selectadd existing item
and select all.c
and files. Note: In visual studio you must add /FORCE to the Additional Options section under Project/project properties/Linker/Command line. Note: In visual studio you must Project/Project properties/(C/C++)/Advanced/Disable Specific Warnings to 4996. - Build the project (Debug or Release).
- Copy
lauxlib.h
,lua.h
,lua.hpp
,luaconf.h
andlualib.h
toygopro-master/lua/include
. Also copy thelua.lib
from theDebug
folder (fromLua
project we just build) toygopro-master/lua/lib
. - Extract
sqlite-amalgamation-3081002.zip
andcd
to this directory ffrom the visual studio command prompt. Typelib /def:sqlite3.def /out:sqlite3.lib
. This will generate asqlite3.lib
file. Copy the.h
files toygopro-master/sqlite3/include
andsqlite3.lib
toygopro-master/sqlite3/lib
. - Extract
premake-stable-windows.zip
toygopro-master/
. - Open
ygopro-master/premake4.lua
and delete the following line. cd
toygopro-master
folder from the command prompt and typepremake4 vs2010
.- Move the following files and folder from
ygopro-master
toygopro/build
- Open
ygopro-master/build/system.conf
in any editor and assignuse_d3d
to0
. (This is important) - Open
ygopro-master/ygo.sln
in visual studio and add all theinclude
andlib
folder to your project. - Create an empty file named
ygopro.rc
inygopro-master/gframe
folder and build the project. - You will be needing
freetype6.dll
,sqlite3.dll
andzlib1.dll
which can be found in the there source package or can be downloaded from the internet.
Fedora 18 x86-64
Arch Linux x86-64
Ubuntu 17.10
game is in bin/debug
you might need to init git submodules
ocgcore
and script
before you start compilingmaybe you will get the warning
Permission Denied
please edit the .git/configif you get this error attempt to call global 'startproject' (a nil value)
please edit the file ygopro/premake4.lua to delete this line:
startproject 'ygopro'
reference :Startup projects are currently only supported by Visual Studio.
you need to modified the system.conf
finished!