Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Porting c++ programs windows to linux

 
Post new topic   Reply to topic Printable version
 View previous topic  How were the SVS settings created? Post :: Post I have an idea!  View next topic  
Author Message
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Mon Oct 01, 2007 9:57 am   Post maybe stupid    Post subject: Porting c++ programs windows to linux Reply to topic Reply with quote

I'm in the process of porting a catid's directory server which is written in MSVC++ to linux, but I am stuggling on a few things. If i suceed the results could be potentially exciting, or at least pave the way for a native linux port of merv-bot and a port of the biller. Which would incorage more zones to use asss as they could still use there existing mervbot skills.

Does anyone know where some good tutorials/guides are for porting windows programs? I've yet to find any on google that go into much detail or say anything other than "use wine" which is what i'm trying to avoid.
_________________
Rediscover online gaming. Get Subspace | STF The future...prehaps
Back to top
View users profile Send private message Add User to Ignore List
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Mon Oct 01, 2007 12:02 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

no worried i've got it to compile now, just need to fix the bugs tongue.gif (mainly caused by my crappy attempts at GetProfileString etc
Back to top
View users profile Send private message Add User to Ignore List
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Mon Oct 01, 2007 4:42 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

I've completed the port it works 100% as far as i can tell.

If you run linux try it at:

http://forums.minegoboom.com/viewtopic.php?p=74575#74575
Back to top
View users profile Send private message Add User to Ignore List
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Mon Oct 01, 2007 4:57 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

nice biggrin.gif
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Mon Oct 01, 2007 5:24 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

i've read that when you're going to port something over, make it better. don't do a line-by-line conversion.
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:38
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Mon Oct 01, 2007 5:25 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Meh, I wouldn't call it a port anymore if it's visibly different. sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Mon Oct 01, 2007 5:27 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

CypherJF wrote:
i've read that when you're going to port something over, make it better. don't do a line-by-line conversion.


I didnt have to change many lines. only those with windows specific stuff. Probably could make it better if i knew more c++ and linux tongue.gif

Solo Ace wrote:
Meh, I wouldn't call it a port anymore if it's visibly different. sa_tongue.gif

o.O its identical in functionality pretty much apart from the ini file..... wtf are u on about
Back to top
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:38
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Tue Oct 02, 2007 2:28 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

I was replying to Cypher about the term "porting" software as we use it here.

Wikipedia wrote:
In computer science, porting is the process of adapting software so that an executable program can be created for a computing environment that is different from the one for which it was originally designed (e.g. different CPU, operating system, or third party library).


Cypher was talking about "making it better", which wouldn't be anything like "porting" if that'd come close to changing the code's design (read quote below).

Wikipedia wrote:
The term is not generally applied to the process of adapting software to run with less memory on the same CPU and operating system, nor is it applied to the rewriting of source code in a different language (i.e. language conversion or translation).


And to the user, it wouldn't look much like a "port" if it's visibly different. That was my point. If I go too fast for "u", then nevermind.
Back to top
View users profile Send private message Add User to Ignore List
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Tue Oct 02, 2007 6:50 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

Solo Ace wrote:
If I go too fast for "u", then nevermind.

yep i'm only a simple flabby icon_sad.gif
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Tue Oct 02, 2007 8:18 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

Solo Ace wrote:
I was replying to Cypher about the term "porting" software as we use it here.

[..]



And to the user, it wouldn't look much like a "port" if it's visibly different. That was my point. If I go too fast for "u", then nevermind.

Oh fine... mr smarty pants. icon_wink.gif
Back to top
View users profile Send private message Add User to Ignore List
the doc at work
Guest


Offline

PostPosted: Fri Oct 05, 2007 5:56 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

has anyone had a chance to test if it works for their setup? im interested in any feedback.
Back to top
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Mon Oct 08, 2007 10:45 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

CatId's subbill2 is going to be ported next icon_smile.gif I'm about 25% way though. This is a bit more tricky as it has threads and mutexs and the like,

I am thinking of renaming some of the commands to make them asss compatible.
Back to top
View users profile Send private message Add User to Ignore List
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Tue Oct 16, 2007 8:21 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

This was much much harder to port icon_sad.gif Mainly problems with non-standard C++. And i barely understand C++

Another Doc Flabby production:

http://forums.minegoboom.com/viewtopic.php?p=74746#74746

I never did rename any of the commands however.
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 55 page(s) served in previous 5 minutes.

phpBB Created this page in 0.741723 seconds : 38 queries executed (76.8%): GZIP compression disabled