MonaSolutions / MonaServer

A lightweight RTMFP, RTMP, WebSocket and HTTP server!
http://monaserver.ovh
GNU General Public License v3.0
714 stars 214 forks source link

Windows 32 bits compilation error #70

Open al-sabr opened 6 years ago

al-sabr commented 6 years ago

After adding the luajit-2.0 src file into External/include I get this error.

2>LINK : fatal error LNK1104: cannot open file 'lua51.lib'
1>LINK : fatal error LNK1104: cannot open file 'libeay32MTd.lib'
al-sabr commented 6 years ago

After adding lua51.lib and libeay32MTd.lib in External/lib I get this error:

1>LINK : fatal error LNK1104: cannot open file 'ssleay32MTd.lib'
2>LINK : fatal error LNK1104: cannot open file 'ssleay32MTd.lib'
al-sabr commented 6 years ago

After adding ssleay32MTd.lib in External/lib I get this error:

1>------ Build started: Project: MonaServer, Configuration: debug Win32 ------
1>LIBCMTD.lib(sprintf.obj) : error LNK2005: _sprintf_s already defined in lua51.lib(lua51.dll)
1>LIBCMTD.lib(vsnprnc.obj) : error LNK2005: _vsprintf_s already defined in lua51.lib(lua51.dll)
1>LIBCMTD.lib(printf.obj) : error LNK2005: _printf already defined in lua51.lib(lua51.dll)
1>C:\Users\dodo\Documents\Visual Studio 2013\Projects\MonaServer\MonaServer\Debug\MonaServer.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========
al-sabr commented 6 years ago

What is going on here ? Why aren't the dependencies already included inside of the External folder?

thomasjammet commented 6 years ago

You can find the right external files here : https://github.com/MonaSolutions/MonaServer2/tree/master/External (except lua for now, but following the lua compilation steps should work). We are concentrating into MonaServer2 which add many cool features so we will not update MonaServer anymore.

al-sabr commented 6 years ago

I tried to compile lua and it doesn't work. Why is there no video tutorial for these things it should clear things so much. I followed all procedures step by step and could not achieve it. I know that MonaServer2 is the right direction but for now It is not safe to switch to it because lots of things are still missing.

thomasjammet commented 6 years ago

You'll find the debug files for windows x64 in attachment here : MonaServer.zip They are compiled with VS2015. If you really need to compile lua for VS2017 don't forget to :

We have not enough time to build any new tutorial for now, thank you for your comprehension.