Irrlicht project to Linux
Irrlicht project to Linux
I want to make my Irrlicht project available to run on a Linux system, and it has currently been built for windows using LuaJIT and sol2. What are the steps I should take to make this compatible? I've heard to make sure the Software driver type works, or Linux likes OpenGL, or need to get Vulkan to run with arm64? I'm definitely lacking knowledge in this area so any help is appreciated.
Re: Irrlicht project to Linux
I have no experience using LUA with Irrlicht. But as for Irrlicht - as long as you use OpenGL it will usually be fine on Linux.
As a first step you can also try to get it running with gcc on Windows. That way you can get most compiler troubles out of the way first.
And the rest is - avoid libraries which are not available on both platforms. And if you use any os specific code in your game then that has to be written twice.
As a first step you can also try to get it running with gcc on Windows. That way you can get most compiler troubles out of the way first.
And the rest is - avoid libraries which are not available on both platforms. And if you use any os specific code in your game then that has to be written twice.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Irrlicht project to Linux
To prepare for migration I find it useful to put all platform specific methods (e.g. getting the download / user data path and such) to a separate module so that you only have one place to modify if necessary (of course it's best to avoid platform specific code, but it's not always possible). In my projects the header file is named "CPlatform.h" and there are several implementations, e.g. "CPlatformWindows.cpp" and "CPlatformAndroid.cpp" which implement the methods and are only included when compiling for the specific platform.
Apart from that getting an Irrlicht project to run on Linux should not be a big deal (at least from the graphics), it took me a day or two to run my game on the Raspberry Pi
Apart from that getting an Irrlicht project to run on Linux should not be a big deal (at least from the graphics), it took me a day or two to run my game on the Raspberry Pi
Re: Irrlicht project to Linux
Irrlicht comes in the official repos of almost every linux distro. If you install from there it usually just builds right out of the box.
That said, I would still recommend cloning the latest version of 1.9 from the sourceforge repo. There is a code blocks project in the source folder that can be used to build irrlicht without ever touching the terminal.
That said, I would still recommend cloning the latest version of 1.9 from the sourceforge repo. There is a code blocks project in the source folder that can be used to build irrlicht without ever touching the terminal.
Re: Irrlicht project to Linux
Currently compiling on Ubuntu, combing through errors and library linking stuff. I’ll keep this thread posted but so far so good I suppose… The big issues at this time come from getting luajit, sol2, etc. to work more than irrlicht.
