Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » Compiling strac on windows 7
Compiling strac on windows 7[message #336483] Tue, 07 October 2014 05:52 Go to next message
arnodick is currently offline 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 #336503] Wed, 08 October 2014 02:51 Go to previous messageGo to next message
Scheinworld is currently offline Scheinworld

 
Messages:961
Registered:December 2007
Location: Baltic Sea, Germany
Hello Arno,

didn't you build a weaponmod for JA2 Gold in the good old days?

Regarding your question about compiling Stracciatella code maybe DeFransen's guide can help you further?

I'm not a coder, you know.


Best regards; Schein

[Updated on: Mon, 01 October 2018 22:50]

Report message to a moderator

First Sergeant

Re: Compiling strac on windows 7[message #336505] Wed, 08 October 2014 03:29 Go to previous messageGo to next message
arnodick is currently offline arnodick

 
Messages:16
Registered:August 2007
I did! I'm very surprised you remembered that. It was in the days before the source code was available, so it was a very hacky affair back then. Perhaps with my mod I will bring back some of the ideas I used back then.

Buggler directed me to the answer. I was just overlooking a link to the repository. Once I found that I got it all compiled and running.

Thanks for the reply!

Report message to a moderator

Private
Re: Compiling strac on windows 7[message #336506] Wed, 08 October 2014 03:30 Go to previous messageGo to next message
arnodick is currently offline arnodick

 
Messages:16
Registered:August 2007
Also, good to see the community still going strong! I spent a lot of time on these forums back in the day.

Report message to a moderator

Private
Re: Compiling strac on windows 7[message #336508] Wed, 08 October 2014 11:16 Go to previous messageGo to next message
Scheinworld is currently offline Scheinworld

 
Messages:961
Registered:December 2007
Location: Baltic Sea, Germany
Hi,

DevArnoDick
I'm very surprised you remembered that. It was in the days before the source code was available, so it was a very hacky affair back then. Perhaps with my mod I will bring back some of the ideas I used back then.


Yes, I do! Well, I was always a bit of a hunter-gatherer for JA2 files I believe. Smile

Anyway it's good to see a modder/coder veteran back on track! I wish you good luck for your mod and much fun and if you have built something new... well, you know at least who would like to upload it to Kermi's archive then Wink


Best regards; Schein

Report message to a moderator

First Sergeant

Re: Compiling strac on windows 7[message #354961 is a reply to message #336508] Tue, 18 September 2018 17:33 Go to previous messageGo to next message
arnodick is currently offline 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 cheeky

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 #355014 is a reply to message #354961] Thu, 20 September 2018 16:54 Go to previous messageGo to next message
lynxlynxlynx is currently offline lynxlynxlynx

 
Messages:109
Registered:September 2005
Location: Slovenija
I'm not on windows, so can't help much. Check out our appveyor file in the repository -- that builds windows files for each commit (change) done.


If you like what I do, consider supporting this non-profit.

Report message to a moderator

Sergeant
Re: Compiling strac on windows 7[message #355035 is a reply to message #355014] Sat, 22 September 2018 21:02 Go to previous messageGo to next message
arnodick is currently offline arnodick

 
Messages:16
Registered:August 2007
Thanks for the response lynx, I'll take a look at the appveyor file.

Would you happen to know if there are any contributors who are familiar with the VS build? I'd love to contribute to getting the VS version building reliably, but with a project this size it's hard to know where to start without any context.

Thanks again!

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 Go to previous message
arnodick is currently offline 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
Previous Topic: JA2-Stracciatella 0.16.0
Next Topic: JA2-Stracciatella 0.16.1
Goto Forum:
  


Current Time: Tue Apr 16 06:29:37 GMT+3 2024

Total time taken to generate the page: 0.01458 seconds