Compiling strac on windows 7[message #336483]
|
Tue, 07 October 2014 05:52
|
|
arnodick |
 |
Messages:16
Registered:August 2007 |
|
|
Hi everyone,
I'm looking to get strac compiling on my windows 7 machine. I have visual studio express, but am unsure of what to do. I read the COMPILATIONS file, and it says to build the _build\solution-vs10e\ja2.sl file, but frankly I'm not even sure how to get that file. I found the file on bitbucket but there doesn't seem to be any obvious way to download it.
I'm looking to make a small mod of vanilla JA2, and strac seems to be perfect for that. I have experience programming, but no experience working on very large projects that other people have built, so it's not obvious to me where to begin.
As long as I can get it compiling I can take it from there.
Thanks!
Report message to a moderator
|
Private
|
|
|
|
|
|
|
Re: Compiling strac on windows 7[message #354961 is a reply to message #336508]
|
Tue, 18 September 2018 17:33 
|
|
arnodick |
 |
Messages:16
Registered:August 2007 |
|
|
Hi Stracciatella folks, long time no see!
Apologies for reviving this old thread, but I figured it's better than starting a new one with the same topic, given that it's still sitting proudly on the front page 
Is there anyone from the stracc team, or anyone on the forum at all for that matter, who might be able to assist in getting the latest version of stracc building? I've got the cmake working and building a visual studio project, but building the actual .exe (I'm assuming this is what VS should spit out) doesn't seem to work. Neither debug or release mode works, giving me at least 2 errors about missing parts. I must be missing an obvious step, but with a project this size I'm not sure what.
Thanks for your time!
PS: It's been a few years since I released my last JA2 mod project I called JA2 RogueLike, which auto-saved and wouldn't allow reloading. I'm really happy to see that the latest version of stracc included an identical game mode (Dead is Dead)! It's exciting to see that the community is still working on good old vanilla JA2, giving it the love it deserves. I've been playing stracc on Dead is Dead mode for the last few weeks and REALLY enjoying it, and it's been giving me a lot of ideas for my mod. JA2 is still one of the best games ever made, and I'm enjoying it more than ever 20(?) years later thanks to stracc!
Report message to a moderator
|
Private
|
|
|
|
|
Re: Compiling strac on windows 7[message #355115 is a reply to message #355035]
|
Wed, 26 September 2018 03:22
|
|
arnodick |
 |
Messages:16
Registered:August 2007 |
|
|
Hi Stracciatella folks,
I've made some progress getting Stracciatella compiling on Windows with Visual Studio 2017 but having difficulty.
So far I've used:
cmake -DCMAKE_TOOLCHAIN_FILE=./cmake/toolchain-msvc.cmake -G "Visual Studio 15 2017" ../
Which successfully builds the VS project.
Then I had to set _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING in the preprocessor definitions for the gtest and gtest_main projects. This had something to do with std::tr1 being deprecated in gtest, and I'm not sure if it's a good long term solution.
Now I'm trying to get the ja2 project to compile, but getting this error:
ja2-stracciatella-master\_bin\dependencies\lib-fltk\fltk-internal-prefix\src\fltk-internal\src\flstring.h(28): fatal error C1083: Cannot open include file: 'strings.h': No such file or directory [...\ja2-stracciatella-master\_bin\dependencies\lib-fltk\fltk-internal-prefix\src\fltk-internal-build\src\fltk.vcxproj]
As far as I can tell there is a mistaken build directive called HAVE_STRINGS_H that is being set when it shouldn't be. It should be using string.h instead, I think. I've tried setting HAVE_STRINGS_H to 0 in CMakeCache for fltk, but it didn't have any affect.
When building INSTALL I'm also getting a variety of errors like this:
SGP.obj : error LNK2019: unresolved external symbol _create_engine_options referenced in function _SDL_main
Which I'm not sure how to resolve.
Any help would be much appreciated!
Report message to a moderator
|
Private
|
|
|