This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Compiling for linux


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-06-2009 , 20:55   Compiling for linux
Reply With Quote #1

Can anyone point me to some good documentation on how to compile extensions for linux?
I'm running on windows, so anything I can use to do it from here.

The easiest method would be preferable.
__________________

Last edited by Greyscale; 07-07-2009 at 21:24.
Greyscale is offline
Gachl
BANNED
Join Date: Feb 2009
Old 07-07-2009 , 18:48   Re: Compiling for linux
Reply With Quote #2

compile WHAT?
Sourcemod? A sourcemod plugin? A cake?
If you want to compile a plugin you have to use the compiler which is included in the linux version of sourcemod (in addons/sourcemod/scripting)
Gachl is offline
NouveauJoueur
SourceMod Donor
Join Date: May 2009
Old 07-07-2009 , 19:24   Re: Compiling for linux
Reply With Quote #3

If it's for plugins :

http://www.sourcemod.net/compiler.php
NouveauJoueur is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-07-2009 , 21:24   Re: Compiling for linux
Reply With Quote #4

Sorry about that, forgot to specify

Compiling an extension. (Edited first post)
__________________
Greyscale is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-08-2009 , 06:45   Re: Compiling for linux
Reply With Quote #5

See http://forums.alliedmods.net/showthread.php?t=96686.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-08-2009 , 14:34   Re: Compiling for linux
Reply With Quote #6

We tried cygwin and it just threw a bunch of errors in syntax. It compiled fine in VS.
__________________
Greyscale is offline
BAILOPAN
Join Date: Jan 2004
Old 07-08-2009 , 15:49   Re: Compiling for linux
Reply With Quote #7

FYI, it's okay to use Cygwin if you can get it working, but be very careful if you choose to use GCC on Windows. I'm not so sure it is ABI compatible with the Microsoft virtual table layout.
__________________
egg
BAILOPAN is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-08-2009 , 19:01   Re: Compiling for linux
Reply With Quote #8

Well my friend richard got a virtual machine running the latest ubuntu with compilers installed. Although he is getting this error: "SEE2 instruction set not enabled"

How can we fix this?
__________________
Greyscale is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 07-08-2009 , 19:59   Re: Compiling for linux
Reply With Quote #9

Pass the -msse2 command line parameter to the compiler (in CFLAGS or something)
__________________
hello, i am pm
PM is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 07-08-2009 , 20:59   Re: Compiling for linux
Reply With Quote #10

Adding that flag worked, but apparently I need an older gcc too. It says something in the hl2sdk notes that it doesn't compile in gcc 4.2. I got 4.3.3.

Code:
hl2sdk/public/mathlib/math_base.h:552: error: explicit template specialization cannot have a storage class
Anyone know what version I should use? Not too old, and not too new. Or other solutions if any.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode