Linux commands
-
Hi, I'm trying to port a 3d game for Linux into Windows. I'm stuck right now, because the code has the commands ioperm, outb, and fmod which are Linux only. I'm using Visual Studio 2005. There are dlls out there but I don't know how to implement them. I have a screenshot: http://forum.freegamedev.net/download/file.php?id=416&mode=view[^] Can you help me?
-
Hi, I'm trying to port a 3d game for Linux into Windows. I'm stuck right now, because the code has the commands ioperm, outb, and fmod which are Linux only. I'm using Visual Studio 2005. There are dlls out there but I don't know how to implement them. I have a screenshot: http://forum.freegamedev.net/download/file.php?id=416&mode=view[^] Can you help me?
-
Tuxkart has already been ported to Windows. If you don't want to re-invent the wheel, you can download the current version from SourceForge: http://supertuxkart.sourceforge.net/Downloads[^]
-
If it was, I would know. I've been contributing to it (SuperTuxKart) for a year now. I found the fmod isn't Linux-only... But I try putting double, float, and long double and none of them work.
fmod
must work onWindows
. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hi, I'm trying to port a 3d game for Linux into Windows. I'm stuck right now, because the code has the commands ioperm, outb, and fmod which are Linux only. I'm using Visual Studio 2005. There are dlls out there but I don't know how to implement them. I have a screenshot: http://forum.freegamedev.net/download/file.php?id=416&mode=view[^] Can you help me?
The error you are getting for fmod indicates it can't decide which of the 3 versions of fmod that it should use. you will need to explicitly declare or cast the type of your variable for the fmod call. ioperm and outb are for port access on Linux. ioperm gives access to the serial ports, which you may or may not need to call on Windows based on your security settings. outb writes a byte to the specified port. You can open a serial port with a call to CreateFile, and specify the name of the port, such as "COM2". Then use WriteFile to write a single byte. Depending on how complicated the serial port access is in the game, you may want to look up the "Communication Functions" such as SetupComm. Good Luck
-
The error you are getting for fmod indicates it can't decide which of the 3 versions of fmod that it should use. you will need to explicitly declare or cast the type of your variable for the fmod call. ioperm and outb are for port access on Linux. ioperm gives access to the serial ports, which you may or may not need to call on Windows based on your security settings. outb writes a byte to the specified port. You can open a serial port with a call to CreateFile, and specify the name of the port, such as "COM2". Then use WriteFile to write a single byte. Depending on how complicated the serial port access is in the game, you may want to look up the "Communication Functions" such as SetupComm. Good Luck
-
I put in long double, double, and float in front of fmod and none of them work. outb: you lost me at CreateFile.... I don't know much of anything about programming.