Compile a plugin for linux using windows? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Compile a plugin for linux using windows? (
/showthread.php?tid=103450)
Compile a plugin for linux using windows? -
Outbreak - 19.10.2009
I'm using Windows XP. Trying to build a plugin to work on a Linux server.
What would i need to do to build it into a .so file?
Re: Compile a plugin for linux using windows? -
ev0lution - 20.10.2009
Spare hard disk space and memory, VMWare Player and the Linux distribution running on the server you're compiling it for. ****** the rest.
Re: Compile a plugin for linux using windows? -
Outbreak - 20.10.2009
Thanks for the reply.
Just downloaded VMware player. Now downloading an Ubuntu image for it. Hopefully im going in th right direction.
Re: Compile a plugin for linux using windows? -
Outbreak - 20.10.2009
ain't working
i ran the "make" command and got this error..
sclinux.h:44:3: error: #error "Can't figure computer byte order (__BYTE_ORDER macro not found)"
make *** [all] Error 1
Re: Compile a plugin for linux using windows? -
Outbreak - 21.10.2009
Anybody know a solution to this?
Re: Compile a plugin for linux using windows? -
Outbreak - 24.10.2009
I got it to compile, but the output file size is 3.74MB
The original before editing it was around 24KB
All i did was change two things. I then went back to the original cpp and tried compiling that, same tihng happened the output was 3.74MB
It shouldn't be that size...
Can anyone help me with compiling a plugin properly?
EDIT: When i use the file with the server it gives me the file not found error message. So the plugin was compiled wrong, but how do i do it right?