LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 12-07-2004, 06:54 PM   #1
EvilLinux
LQ Newbie
 
Registered: Dec 2004
Location: San Diego, CA
Distribution: Ubuntu\CentOS\Red Hat Ent.
Posts: 6

Rep: Reputation: 0
Question Convert a dll code to linux


Ok here is the low down. I need to convert\port this program @ Sourcemod (do a google search for the link since I can't put it up sorry) for Valve's Source engine, but the problem is that it was written for windows. Now us Linux Server hosts got kicked out of the loop because of this. But us linux server people want to covert to source of these plugins and program to Linux. I would like to know a couple things:

1) How do I port stuff from windows to linux. Really what we need is to convert he source of the program\mod\plugin we want to use to a .so to be run on the server
2) How do I compile and make this run on linux(s)?


Any help on this would be more than greatful. I'm a complete at doing this stuff. I'm a hardcore linux user, but I havn't ported\created stuff to run on linux in a couple years.
 
Old 12-07-2004, 07:07 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
There is no cut and dry "port Windows code to Linux" method. Seriously, if you're not an experienced programmer then someone else will have to tackle this. Instead of "Can I get some help?" it would be more like "Can someone do this for me?" The main problem is that Microsoft felt the need to go against any programming ideas that were somewhat standard. They introduced all sort of non-portable things and that's why it's such a monstrous job to port the code over. Porting code from one flavor of *NIX to another can be really trivial. But porting code from Windows to any other OS is usually a nightmare.

I know it's not the answer you were looking for and I know it's frustrating to have the solution right there if only you knew how to use it, but porting code can be a very daunting task. Unless you find someone that has a motive in porting it over you're probably not going to find any volunteers.

Last edited by itsme86; 12-07-2004 at 07:09 PM.
 
Old 12-07-2004, 07:08 PM   #3
EvilLinux
LQ Newbie
 
Registered: Dec 2004
Location: San Diego, CA
Distribution: Ubuntu\CentOS\Red Hat Ent.
Posts: 6

Original Poster
Rep: Reputation: 0
ok thank you very much.

*Siff Siff*

I better drop some money on programming books, sigh... Or I got to pay someone to do this, bummer man, bummer. Ok well thank you again, that was what I was going to guess. Thank you again.
 
Old 12-08-2004, 01:53 AM   #4
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
Have you looked at http://www.valve-erc.com/srcsdk/linux_compiling.html or http://www.valve-erc.com/srcsdk/Code/ServerPlugins.html ?

I don't have a valve source game, and I haven't found the sdk. Do I have to own one?
 
Old 12-08-2004, 01:57 AM   #5
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
And I suspect that there are few windows dependencies in valve's plugin acrhitecture, but who knows. If the've got a linux client and server sdk, then "porting" a plugin should be easy.
 
Old 12-08-2004, 10:51 AM   #6
EvilLinux
LQ Newbie
 
Registered: Dec 2004
Location: San Diego, CA
Distribution: Ubuntu\CentOS\Red Hat Ent.
Posts: 6

Original Poster
Rep: Reputation: 0
ok, hrm. I'm going to give those links a look. All you got to do to get the SDK is to download STEAM from Valve's steampowered website. Just make an account and you'll see the Source SDK to do the stuff, everything is free, unless you want to pay for the games. Also those links are I'm pretty sure what I needed. I'm going to give it a try. Thank you again so much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Windows DLL code to Linux shared library DavidW567 Programming 7 07-27-2010 09:15 AM
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 01:48 PM
convert a qt designer code in linux to run in windows shaj4848 LinuxQuestions.org Member Success Stories 0 07-27-2005 02:29 AM
Can I access a Windows DLL directly from Linux code? Silverjam Linux - Software 3 07-10-2004 10:46 PM
Link DLL with C code on Win32 (CygWin) jpbarto Programming 4 10-23-2003 03:30 PM


All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration