SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Indie Subsims (https://www.subsim.com/radioroom/forumdisplay.php?f=174)
-   -   Question for the gamers (https://www.subsim.com/radioroom/showthread.php?t=187477)

magicstix 09-04-11 12:17 PM

You can just redefine them with a precompiler statement.

#if _MSC_VER
#define snprintf _snprintf
#define strncmp _strnicmp
#endif

Etc... This will be ignored by the linux compilers and will properly replace the functions under MSVC

redtyphoon 09-04-11 01:24 PM

MSVC
 
I think the define statements make sense short-term, to get OpenSSN up and running now. Long-term though I have concerns about patching against specific compilers. There are a lot of C/C++ compilers out there. Ideally I'd like to have a solution in place that will work on Windows, regardless of which compiler is used.

FERdeBOER 09-05-11 06:55 AM

I will play openssn in Linux, but if you can port it to Windows you will enlarge your audience...

I think is more a matter of how much time you have at your disposal and how much of this time will the windows port need.

PS: i've just sent to you an outdated Spanish manual translation. :cry:

I have very little spare time this last month...

magicstix 09-05-11 02:10 PM

Typhoon, if you want me to upload the windows binaries to SF my username is magic-stix.

redtyphoon 09-05-11 02:25 PM

Upload access
 
I've granted the account magic-stix release file access, which should allow you to upload binaries to the mirrors. If it's not working, please let me know.

magicstix 09-05-11 02:58 PM

Windows version is up.

redtyphoon 09-05-11 04:30 PM

Windows version
 
Thanks!
Before announcing the new version I downloaded and tried to give it a run (I've got WINE) and I'm getting the "incorrect application configuration" message which so commonly plagues MSVC developers. Could you check to see if a DLL is missing?

This page has details on how to cover all the bases:
http://www.virtualdub.org/blog/pivot/entry.php?id=296

magicstix 09-05-11 04:56 PM

Hmmm. That's odd, the game works fine for me right out of the zip. Does it say which dll is missing?

magicstix 09-05-11 04:59 PM

OK I pulled the zip and ran it on my other windows machine and got an error. I'll look into it, i think I'm probably missing the msvc c runtime dll.

redtyphoon 09-05-11 05:01 PM

DLLs
 
No, the error doesn't say which DLLs are missing. But one of the prime characteristics of the "incorrect configuration" error is that people with MSVC installed on their machines can run the program fine, but people without MSVC cannot. It's pretty common. The list of problem DLLs is available in the link I posted.

Update: I just you beat me to a follow up post.

magicstix 09-05-11 05:36 PM

For some reason it keeps trying to use the debug versions of the Visual C runtime libraries, I've gone back and rebuilt openSSN and all of its dependencies but the deps seem to still want to use debug symbols... I'll poke around at it some and see if I can fix it.

magicstix 09-05-11 06:01 PM

OK try it now. For some reason the SDL_gfx.dll was trying to link against debug symbols for the C runtime regardless of how I built it, so I built it with static linking of deps instead. Works on both of my windows machines now.

redtyphoon 09-05-11 07:04 PM

Works A-ok here
 
The new package works a-ok here. Everything seems to be intact and i was able to run it (emulated) and play through a mission. Very nicely done, sir. I will make the appropriate announcements.

Thank you very much for your hard work.

CTarana 02-10-12 09:50 AM

I would definately be interested in seeing OpenSSN ported over to WindowsXP, Vista or 7. I use XP myself and the last version of OpenSSN I have works great. I have version 0.7. I just installed copies of MinGW C++ and Microsoft Visual Studio 8 for another project I'm working on. I'm trying to teach myself C++ and Visual Basic so I can port an older Visual Basic 5.5 program and finish it! :O:

ChristopherT

magicstix 02-10-12 10:47 PM

Quote:

Originally Posted by CTarana (Post 1836526)
I would definately be interested in seeing OpenSSN ported over to WindowsXP, Vista or 7. I use XP myself and the last version of OpenSSN I have works great. I have version 0.7. I just installed copies of MinGW C++ and Microsoft Visual Studio 8 for another project I'm working on. I'm trying to teach myself C++ and Visual Basic so I can port an older Visual Basic 5.5 program and finish it! :O:

ChristopherT

There's already a windows version out there, it's kinda old though...


All times are GMT -5. The time now is 05:02 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.