SA-MP Forums Archive
Visual Studio 2015 question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Visual Studio 2015 question (/showthread.php?tid=625503)



Visual Studio 2015 question - Sanady - 02.01.2017

So hey, I tried to compile streamer in Visual Studio since I am new to it I did, but now when I want to compile it for Linux server, well there is a problem. I have Windows 7, so I found linux extation on microsoft store I download it but I don`t get how should I compile code which is written in Windows to Linux. So anyone have any experience with this? If yes please post here, I was searching on ****** but I haven`t found anything.


Re: Visual Studio 2015 question - KingHual - 02.01.2017

you need a Linux host machine


Re: Visual Studio 2015 question - Sanady - 02.01.2017

Quote:
Originally Posted by KingHual
Посмотреть сообщение
you need a Linux host machine
I have host machine.


Re: Visual Studio 2015 question - Ahmad45123 - 02.01.2017

https://github.com/samp-incognito/sa...gin/wiki#linux


Re: Visual Studio 2015 question - Sanady - 02.01.2017

Quote:
Originally Posted by Ahmad45123
Посмотреть сообщение
Ouch, thank you I didn`t seen this.


Re: Visual Studio 2015 question - KingHual - 02.01.2017

Quote:
Originally Posted by Sanady
Посмотреть сообщение
I have host machine.
then how is it visual studio related?


Re: Visual Studio 2015 question - Sanady - 02.01.2017

Quote:
Originally Posted by KingHual
Посмотреть сообщение
then how is it visual studio related?
Becouse it`s coded in c++, so I wanted to give a try to compile code on Windows for Linux. That`s what I wanted to try if it`s posible.


Re: Visual Studio 2015 question - RoboN1X - 03.01.2017

Quote:
Originally Posted by Sanady
Посмотреть сообщение
Becouse it`s coded in c++, so I wanted to give a try to compile code on Windows for Linux. That`s what I wanted to try if it`s posible.
c++ is not just compiled by Visual Studio, so if you want to compile for linux, use GCC as that's what the project already configured with (.dll from visual studio and .so from gcc). Note that i didn't mention about MinGW/Cygwin since i have never tried to make .so with it, i don't know if it's possible of not, if they do, then you could probably do the same with visual studio, even if it's possible, then i don't know why streamer plugin should depend on Microsoft Visual C++ runtime library for its windows version, so logically back again like i said about project configuration, it may depends on the project (streamer plugin for sa-mp).


Re: Visual Studio 2015 question - SickAttack - 03.01.2017

Quote:
Originally Posted by Sanady
Посмотреть сообщение
Becouse it`s coded in c++, so I wanted to give a try to compile code on Windows for Linux. That`s what I wanted to try if it`s posible.
Windows 10 has Ubuntu


Re: Visual Studio 2015 question - Yashas - 03.01.2017

You can use a virtual machine. You won't have to restart the computer.

I have Windows 7 and Ubuntu on VMWare.