Hello, how do you compile a C/C++ GarrysMod module into a .dll for linux to use with the linux version of the garrysmod server, I've been able to successfully compile my module into a win32 module and require() it in a windows server but can't seem to compile it for linux, I'm assuming you use the maker file and some kind of wingw32 or fake linux for windows but everytime I do, the linking to libraries used (such as lua_shared and openssl/cryptopp) do not link properly and are not found.
Some ground rules I'm following and using:
I'm using garrysmod_common from danielga ( Github ) so I can access lua_shared libraries because I can't find a source to link
all sources found so far points me to compiling it on windows as I've already tried to compile normally on linux and the dll is just a renamed .so file.
Before you say have you tried compiling on linux: yes, but the end result is always either a fake dll or a .so file.
Any help is appreciated.
Well... that worked... thanks
I'm currently downloading C++ libraries in VS so I can compile on windows using vs2017.
Wait does that automatically build and make the (module name)_(platform).dll available to download? I've used travis to test PHP scripts before but never C++.
I don't mind trying to compile it for windows if you want to
Yeah, so far I've manage to compile with windows and linux which covers both fronts. Is there any point in covering mac? I thought since mac's underlying OS is unix it should work with both linux and mac? (can't test as danielga so proudly put 'Mac was not tested at all (sorry but I'm poor).') and idk if a hackintosh would work.
I will most likely use AppVeyor for my public projects but considering most of my work is private and I get free private travis (thx uni) I'll use travis for testing but do manual compilations for the two platforms.
Hahaha, yeah true that about apple. Oh ok, yeah I was going for compiling to debug for testing and then release for release, I didn't know there was much of a difference tbh, haven't really gone that deep with C/C++.
I'll keep that in mind though, you've been a big help,
Thanks Heaps
Sorry, you need to Log In to post a reply to this thread.