ericwa / ericw-tools

Quake/Hexen 2 Map compiling tools - branch of http://disenchant.net/utils
http://ericwa.github.io/ericw-tools
GNU General Public License v2.0
309 stars 56 forks source link

Embree 4.3, problem building on Mac OS Sonoma (14.1.1) M2 #392

Closed victorbstan closed 7 months ago

victorbstan commented 7 months ago

The build process mostly works, except that the compatible installed embree is at version 4.3, and the "tools" build process doesn't seem to like that.

CMake Error at light/CMakeLists.txt:27 (FIND_PACKAGE):
  Could not find a configuration file for package "embree" that is compatible
  with requested version "3.0".

  The following configuration files were considered but not accepted:

    /opt/homebrew/opt/embree/lib/cmake/embree-4.3.0/embree-config.cmake, version: 4.3.0
    /opt/homebrew/lib/cmake/embree-4.3.0/embree-config.cmake, version: 4.3.0
victorbstan commented 7 months ago

PS. I have tried looking for a Version 3.x but can't find one for the latest Mac OS...

ericwa commented 7 months ago

We currently support 3.x only.

It would be possible to support both 3.x and 4.x with some ifdef's - https://github.com/embree/embree#upgrading-from-embree-3-to-embree-4 ; I don't want to require 4.x yet though, because it's not packaged everywhere. e.g. vcpkg only has embree3.

You could try installing embree3 through vcpkg if you want:

https://vcpkg.io/en/getting-started.html

You'd do vcpkg install embree3 (it's a fairly slow compile) then include the -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake when running cmake to configure ericw-tools

ericwa commented 7 months ago

I added embree4 support in db0951d