xray-16 icon indicating copy to clipboard operation
xray-16 copied to clipboard

Is it possible to build engine on macOS?

Open eanekrasov opened this issue 6 years ago • 9 comments

The only dependency I've failed to resolve is liblockfile-dev. Is it possible theoretically?

eanekrasov avatar Aug 11 '19 08:08 eanekrasov

liblockfile is available in homebrew (i'm not an osx user, just a passerby :) )

375gnu avatar Aug 22 '19 14:08 375gnu

brew install liblockfile

nextgeniuspro avatar Aug 22 '19 14:08 nextgeniuspro

The only dependency I've failed to resolve is liblockfile-dev. Is it possible theoretically?

Did you made a build? I tried to do it but no luck. All dependencies are solved, but got missing header files during make.

Dx74rghs avatar Sep 08 '19 23:09 Dx74rghs

Nope. None of the interested developers have a mac.

eagleivg avatar Sep 09 '19 06:09 eagleivg

@eagleivg I have one. But question in other thing, do we need to build engine on MacOS for now? I think no, for what purpose? Many gamers and game developers prefer to use linux or windows operating systems, maybe in some future, but compilation should be fine on OSX too. @eanekrasov I will check that problem by the end of the week.

GeorgeIvlev avatar Sep 09 '19 07:09 GeorgeIvlev

@eanekrasov I have checked build on MacOS. Nope, currently build will fail because of many non supported and not implemented crossplatform "things" in code. I'm not sure that we will support osx systems. Maybe in some future.

GeorgeIvlev avatar Sep 20 '19 20:09 GeorgeIvlev

macOS will be one of the next possible platforms to which we will port the engine.

Xottab-DUTY avatar Oct 12 '19 11:10 Xottab-DUTY

Any news with macOS. Try to cmake.. but always got error:

-- Found LZO: /usr/local/lib/liblzo2.dylib
git commit: 35fbe9728941dda2654dd62249c3a22c8b758e3b
git branch: dev
-- The ASM compiler identification is Clang
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc
Makefile:320: *** missing: export MACOSX_DEPLOYMENT_TARGET=XX.YY.  Stop.
lj_arch.h:82:10: fatal error: 'TargetConditionals.h' file not found
#include "TargetConditionals.h"
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
CMake Error at Externals/LuaJIT-proj/luajit.cmake:191 (if):
  if given arguments:

    "STREQUAL" ""

  Unknown arguments specified
Call Stack (most recent call first):
  Externals/LuaJIT-proj/CMakeLists.txt:1 (include)


-- Configuring incomplete, errors occurred!

https://github.com/LuaJIT/LuaJIT/issues/653 - solution

naymapl avatar Mar 02 '22 21:03 naymapl

Any news with macOS. Try to cmake.. but always got error:

-- Found LZO: /usr/local/lib/liblzo2.dylib
git commit: 35fbe9728941dda2654dd62249c3a22c8b758e3b
git branch: dev
-- The ASM compiler identification is Clang
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc
Makefile:320: *** missing: export MACOSX_DEPLOYMENT_TARGET=XX.YY.  Stop.
lj_arch.h:82:10: fatal error: 'TargetConditionals.h' file not found
#include "TargetConditionals.h"
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
CMake Error at Externals/LuaJIT-proj/luajit.cmake:191 (if):
  if given arguments:

    "STREQUAL" ""

  Unknown arguments specified
Call Stack (most recent call first):
  Externals/LuaJIT-proj/CMakeLists.txt:1 (include)


-- Configuring incomplete, errors occurred!

LuaJIT/LuaJIT#653 - solution

There is a progress in #923, @Vertver managed to compile and launch it to the main menu, but didn't get into the game yet. (though, the pull request is only for macOS with Apple M1 processor. But it can be ported to older macOS versions in future)

Xottab-DUTY avatar Mar 23 '22 20:03 Xottab-DUTY

Technically, the issue is solved, engine can be built on macOS and I want to reduce the number of open issues...

It won't run though, feel free to reopen this issue and rename it or open a new issue with wording something like: "Run on macOS". :)

Xottab-DUTY avatar Sep 27 '22 15:09 Xottab-DUTY

feel free to reopen this issue and rename it or open a new issue with wording something like: "Run on macOS". :)

The issue about running macOS is open! #1104

Xottab-DUTY avatar Oct 13 '22 18:10 Xottab-DUTY