OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Builds & Ports => Topic started by: Alpha Centauri Bear on December 10, 2023, 11:55:58 pm

Title: Help with the compilation, anyone?
Post by: Alpha Centauri Bear on December 10, 2023, 11:55:58 pm
Help with the compilation, anyone? Thank you in advance.

Following all steps here:
https://www.ufopaedia.org/index.php/Compiling_with_Microsoft_Visual_C%2B%2B_(OpenXcom)

Got this error in output:
Code: [Select]
1>D:\mine\projects\mine\openxcom\repository\OpenXcom\src\Mod\Mod.cpp : fatal  error C1128: number of sections exceeded object file format limit: compile with /bigobj


I have found this article on this error and can try these suggestions just want to make sure this is the right thing to do.
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1128?view=msvc-170
Title: Re: Help with the compilation, anyone?
Post by: Meridian on December 11, 2023, 12:11:17 am
https://openxcom.org/forum/index.php/topic,7048.msg111353.html#msg111353
Title: Re: Help with the compilation, anyone?
Post by: Alpha Centauri Bear on December 11, 2023, 12:56:33 am
I think it works now. The build was initially set to "debug". I had to change it to "release" and Win32. Could be added to instruction to not confuse other newbies.
Title: Re: Help with the compilation, anyone?
Post by: Alpha Centauri Bear on December 11, 2023, 12:59:20 am
In this instruction https://www.ufopaedia.org/index.php/Compiling_with_Microsoft_Visual_C%2B%2B_(OpenXcom), step #7.

Did you actually mean "move"? Maybe "copy"?
Title: Re: Help with the compilation, anyone?
Post by: Alpha Centauri Bear on December 11, 2023, 02:35:03 am
Question about compiling and actually provided OXCE distribution.

The compiled executable is OpenXcom.exe and is ~6 MB.
The distributed executable is OpenXcomEx.exe and is ~24 MB.

Why is the difference? Is it something extra we need to do to convert one into another?
Title: Re: Help with the compilation, anyone?
Post by: Alpha Centauri Bear on December 11, 2023, 02:36:40 am
Windows installer offers to install data patch. Is this need to be done when/after compiling OXCE?
Title: Re: Help with the compilation, anyone?
Post by: Meridian on December 25, 2023, 09:16:58 am
Why is the difference? Is it something extra we need to do to convert one into another?

The distributed executable is cross-compiled on Linux with MXE.
It's bigger because all DLLs are statically linked.

Windows installer offers to install data patch. Is this need to be done when/after compiling OXCE?

The newest Windows installer doesn't offer to install a data patch.
Data patch is (OXC) / will be (OXCE) included in the distribution itself.

And no, it's not required. It's optional.