SA-MP Forums

SA-MP Forums (
-   Plugin Development (
-   -   [Help] Compiling to linux (

N1trO 14/05/2011 10:23 PM

[Help] Compiling to linux
I have developped an INI file plugin for a while, and I'm having an hard time understanding how to compile my project to Linux.
I'm currently using Visual Studio 2010 IDE.

I know nobody really likes to answer the "How to compile to linux" question but it will be very helpful if you can help me quickly.
And I also know this isn't a "c help forum" but i posted it in "Stack Overflow" and non of their responds helped me.


__ 14/05/2011 10:44 PM

Re: [Help] Compiling to linux
If your project produces a makefile, you can export the files to Linux and run "make" to compile your project with the g++ compiler, if I recall.

N1trO 15/05/2011 08:32 AM

Re: [Help] Compiling to linux
Yes, i have a file called Makefile with no extension. So i need to install Linux and a g++ compiler.
But i dont really understand what to do when you said "run "make" to compile".


__ 15/05/2011 08:35 AM

Re: [Help] Compiling to linux
Install a Linux-based OS like CentOS on a virtual machine (or Ubuntu for a GUI) and move the files over, then open Terminal on the system and "cd" to the directory where the files are and type "make" as it will try to compile your project for Linux.

N1trO 15/05/2011 08:59 AM

Re: [Help] Compiling to linux
I'll try it!

I need to modify the code if I'm only using "fstream" and other build-in libraries?

N1trO 16/05/2011 01:55 PM

Re: [Help] Compiling to linux

All times are GMT. The time now is 09:01 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.