Author Topic: Help with the compilation, anyone?  (Read 434 times)

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Help with the compilation, anyone?
« 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
« Last Edit: December 11, 2023, 12:04:53 am by Alpha Centauri Bear »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8644
    • View Profile

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: Help with the compilation, anyone?
« Reply #2 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.

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: Help with the compilation, anyone?
« Reply #3 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"?

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: Help with the compilation, anyone?
« Reply #4 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?

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: Help with the compilation, anyone?
« Reply #5 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?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8644
    • View Profile
Re: Help with the compilation, anyone?
« Reply #6 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.