aliens

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tomesm

Pages: [1]
1
Programming / Re: Building on macOS
« on: February 11, 2018, 10:33:20 am »
Try to build as a release version and specify the install destination for the app. Just add following to your cmake command:

Code: [Select]
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/bin/OpenXcom
Perhaps this will help.

I did not experience this error at all. Don't you have your own CmakeLists.txt? Have you tried to compile it with vanilla CmakeLists? I understood your version of OpenXcom different from the vanilla.


btw I am not able to run the built app after compiling anyway.

2
Programming / Re: Building on macOS
« on: February 10, 2018, 01:38:17 pm »
Well, I have managed to build it with cmake but I am getting linking error. What I have done:

1) install SDL library and its dependencies (mixer, image, gfx) via brew as stated in original README.
2) DO NOT INSTALL yaml_cpp via brew. Use 'sudo port install yaml-cpp' instead
3) Download OpenXcom.app 1.0 Bundle and copy all frameworks from Contents to /User/Library/Frameworks
4) cd OpenXcom and mkdir build. then CC=/usr/bin/gcc CXX=/usr/bin/g++ cmake ..
5) make

than I am getting error:

[  1%] Linking CXX executable ../openxcom.app/Contents/MacOS/openxcom
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
     (maybe you meant: _SDL_main)
ld: symbol(s) not found for architecture x86_64

--- posts merged ---

I DID IT!!! I just forgot to specify -DMACOS_SDLMAIN_M_PATH=/path/to/your/SDLMain.m

So again the whole step by step for cmake is:

1) install SDL library and its dependencies (mixer, image, gfx) via brew as stated in original README.
2) DO NOT INSTALL yaml_cpp via brew. Use 'sudo port install yaml-cpp' instead
3)wnload OpenXcom.app 1.0 Bundle and copy all frameworks from Contents to /User/Library/Frameworks
4) cd OpenXcom and mkdir build. then CC=/usr/bin/gcc CXX=/usr/bin/g++ cmake .. -DMACOS_SDLMAIN_M_PATH=/path/to/your/SDLMain.m
5) make

3
Programming / Re: Building on macOS
« on: February 07, 2018, 10:54:34 pm »
Hi, I am also trying to build on mac (high sierra).
Can you please tel mee what exactly you did during this step:

   ifdef main() to remove, on macOS, const from arg ( SDL on Mac issue )


I did not get it what did you in what file :)

Also, I have tried to build based on the original README using cmake. I have installed SDL with brew (based on the original README) and yaml-cpp via macports, but I am getting:
Code: [Select]
OpenXcom/src/Engine/OptionInfo.h:20:10: fatal error:
      'yaml-cpp/yaml.h' file not found
#include <yaml-cpp/yaml.h>

Any thoughts?

Pages: [1]