COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Prev Previous Post   Next Post Next
Old 11-21-2008, 01:35 PM   #1
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 768
Default Compiling NINJAM Server on Windows

I've seen a few posts lately saying "can't get it working". This worked for me:

Download the attached Eclipse project (after installing Eclipse, of course, along with MingW GCC, and getting all that working - not explained here!), drop the 0.06 server source into the "ninjamsvr" folder, then import the project into a workspace. (Hopefully that'll work...)

Make the following changes (these should apply whether you're using Eclipse or not):
1) in ninjam/server/ninjamsrv.cpp, add #include <ctype.h> to the "#ifdef _WIN32" section
2) in ninjam/server/makefile, comment out "CFLAGS += -pthread"
3) in ninjam/server/makefile, append "-lwsock32" to the $(CXX) line near the end

The project should then build clean.

(I can imagine there being problems on Linux, too - the ctype.h might help and there needs to be a library providing the network functions but I forget what it is.)

It's up for testing on thermaltake.dnsalias.net:2049 if you want to try it.
Attached Files
File Type: zip ninjamsvr-project.zip (2.4 KB, 471 views)
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.

Last edited by pljones; 11-21-2008 at 02:40 PM. Reason: test host added
pljones is offline   Reply With Quote
 

Thread Tools
Display Modes

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 -7. The time now is 05:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.