Compiling luadch on windows

Guides for Hub Software

DSHub | ADCH++ | LUADCH
Locked
Toast

Compiling luadch on windows

Post by Toast » 19 Jul 2008, 23:02

howto compile guide by Pulsar

Step 01
'''''''''''''''''''''''
download and install OpenSSL to "C:\OpenSSL"
(choose "windows system directory" in setup)
-> http://www.slproweb.com/download/Win32O ... 0_9_8h.exe


Step 02
'''''''''''''''''''''''
download the following files:
"gcc-core-4.2.1-sjlj-2.tar.gz" -> http://downloads.sourceforge.net/mingw/ ... g_mirror=1
"gcc-g++-4.2.1-sjlj-2.tar.gz" -> http://downloads.sourceforge.net/mingw/ ... g_mirror=1
"mingw-runtime-3.13.tar.gz" -> http://downloads.sourceforge.net/mingw/ ... g_mirror=1
"binutils-2.17.50.tar.gz" -> http://downloads.sourceforge.net/mingw/ ... g_mirror=1
"w32api-3.10.tar.gz" -> http://downloads.sourceforge.net/mingw/ ... g_mirror=1


Step 03
'''''''''''''''''''''''
create "C:\mingw"


Step 04
'''''''''''''''''''''''
unpack all *.gz and *.tar files to "C:\mingw"


Step 05
'''''''''''''''''''''''
create "C:\mingw_temp"


Step 06
'''''''''''''''''''''''
copy "g++-sjlj.exe" and "gcc-sjlj.exe" from "C:\mingw\bin" to "C:\mingw_temp"


Step 07
'''''''''''''''''''''''
in "C:\mingw_temp" rename "gcc-sjlj.exe" to "gcc.exe" and "g++-sjlj.exe" to "g++.exe"


Step 08
'''''''''''''''''''''''
copy both back to "C:\mingw\bin", delete "mingw_temp"


Step 09
'''''''''''''''''''''''
add ;C:\mingw\bin to your PATH
how to set PATH:
-> http://vlaurie.com/computers2/Articles/environment.htm


Step 10
'''''''''''''''''''''''
copy "C:\OpenSSL\include\openssl" to "C:\mingw\include"


Step 11
'''''''''''''''''''''''
copy all files from "C:\OpenSSL\lib\MinGW\" to "C:\mingw\lib\"


Step 12
'''''''''''''''''''''''
goto "C:\mingw\lib" and rename "ssleay32.a" to "libssleay32.a"


Step 13
'''''''''''''''''''''''
install a svn client
-> http://tortoisesvn.net/downloads


Step 14
'''''''''''''''''''''''
create "C:\sourceforge"
right-click into the directory, choose "SVN checkout" in the menu and enter "https://luadch.svn.sourceforge.net/svnroot/luadch" in the url field
confirm with ok


Step 15
'''''''''''''''''''''''
goto "C:\sourceforge\trunk\luadch\", start "compile_with_mingw.bat"
when everything was ok, you can find luadch in "C:\sourceforge\trunk\luadch\build_mingw\"


Have fun!
PS: with "SVN Update" you can always get the latest luadch version

Locked