Skip to content

Conversation

@worstname
Copy link
Contributor

Update embree library version (embree3-devel) to install for Fedora. You need embree3 to compile Godot from source while using system libraries, otherwise you will get these errors:

In file included from modules/raycast/lightmap_raycaster_embree.cpp:33:
modules/raycast/lightmap_raycaster_embree.h:40:10: fatal error: 'embree3/rtcore.h' file not found
#include <embree3/rtcore.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
scons: *** [modules/raycast/lightmap_raycaster_embree.linuxbsd.editor.dev.x86_64.llvm.o] Error 1
In file included from modules/raycast/register_types.cpp:33:
modules/raycast/lightmap_raycaster_embree.h:40:10: fatal error: 'embree3/rtcore.h' file not found
#include <embree3/rtcore.h>
         ^~~~~~~~~~~~~~~~~~
In file included from modules/raycast/raycast_occlusion_cull.cpp:31:
modules/raycast/raycast_occlusion_cull.h:43:10: fatal error: 'embree3/rtcore.h' file not found
#include <embree3/rtcore.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
scons: *** [modules/raycast/raycast_occlusion_cull.linuxbsd.editor.dev.x86_64.llvm.o] Error 1
1 error generated.
scons: *** [modules/raycast/register_types.linuxbsd.editor.dev.x86_64.llvm.o] Error 1
scons: building terminated because of errors.

Command used to build from source (4.0.3-stable) successfully on Fedora 38

scons platform=linuxbsd builtin_embree=no builtin_enet=no builtin_freetype=no builtin_graphite=no builtin_harfbuzz=no builtin_libogg=no builtin_libpng=no builtin_libtheora=no builtin_libvorbis=no builtin_libwebp=no builtin_mbedtls=no builtin_miniupnpc=no builtin_pcre2=no builtin_zlib=no builtin_zstd=no use_llvm=yes linker=lld dev_build=yes dev_mode=yes tests=yes use_lto=yes

Update embree library version (embree3-devel) to install for Fedora.
@mhilbrunner mhilbrunner added bug area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.0 labels May 23, 2023
@worstname worstname requested a review from akien-mga May 24, 2023 12:45
@Calinou
Copy link
Member

Calinou commented May 24, 2023

I can confirm this change is required on Fedora 38.

@mhilbrunner mhilbrunner removed the request for review from akien-mga May 24, 2023 13:48
@mhilbrunner mhilbrunner merged commit 4ec777d into godotengine:master May 24, 2023
@mhilbrunner
Copy link
Member

Yeah, I just saw Akien put that helpful bit of context into the RC channel :P For posterity:

Fedora did update its embree package to 4.0 which is incompatible with Godot. They still provide embree 3 as embree3-devel.

In this goes! Thanks @worstname for taking the time to contribute so others don't run into this small hiccup, and congrats on your first merged contribution to Godot's docs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:manual Issues and PRs related to the Manual/Tutorials section of the documentation bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants