Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding FreeBSD build support. #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LadySerenaKitty
Copy link

Making all changes required to build on FreeBSD. Unity is not available for FreeBSD, so all Unity tests are disabled for FreeBSD. Some CMake entries for Linux may have changed, but their functionality remains unchanged.

@LadySerenaKitty
Copy link
Author

Requested changes made, should be ready for merge.

SampleBase/CMakeLists.txt Outdated Show resolved Hide resolved
Tutorials/Tutorial00_HelloLinux/CMakeLists.txt Outdated Show resolved Hide resolved
@LadySerenaKitty
Copy link
Author

Everything builds up to this point:

[ 91%] Building CXX object DiligentSamples/Samples/GLTFViewer/CMakeFiles/GLTFViewer.dir/src/GLTFViewer.cpp.o
/usr/home/jlhawkwell/Projects/DiligentEngine/DiligentSamples/Samples/GLTFViewer/src/GLTFViewer.cpp:1218:23: error: no member named 'ComputeMotionVectors' in 'Diligent::EnvMapRenderer::RenderAttribs'
        EnvMapAttribs.ComputeMotionVectors = m_bEnablePostProcessing;
        ~~~~~~~~~~~~~ ^
1 error generated.
gmake[2]: *** [DiligentSamples/Samples/GLTFViewer/CMakeFiles/GLTFViewer.dir/build.make:76: DiligentSamples/Samples/GLTFViewer/CMakeFiles/GLTFViewer.dir/src/GLTFViewer.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:5244: DiligentSamples/Samples/GLTFViewer/CMakeFiles/GLTFViewer.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

@TheMostDiligent
Copy link
Contributor

Everything builds up to this point:

Please update all 4 submodules to the latest versions.

@LadySerenaKitty
Copy link
Author

Everything builds up to this point:

Please update all 4 submodules to the latest versions.

I did that, re-applied some of my changes, and then this happened:

[ 91%] Linking CXX executable Atmosphere
ld: error: unable to find library -lX11
ld: error: unable to find library -lxcb
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [DiligentSamples/Samples/Atmosphere/CMakeFiles/Atmosphere.dir/build.make:178: DiligentSamples/Samples/Atmosphere/Atmosphere] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:5181: DiligentSamples/Samples/Atmosphere/CMakeFiles/Atmosphere.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

@@ -190,7 +190,7 @@ elseif(PLATFORM_ANDROID)
target_link_libraries(Diligent-SampleBase PRIVATE GLESv3 PUBLIC native_app_glue)
elseif(PLATFORM_LINUX)
find_package(X11 REQUIRED)
target_link_libraries(Diligent-SampleBase PRIVATE XCBKeySyms ${OPENGL_LIBRARY} X11::X11)
target_link_libraries(Diligent-SampleBase PRIVATE XCBKeySyms ${OPENGL_LIBRARY} ${X11_LIBRARIES})
elseif(PLATFORM_MACOS OR PLATFORM_IOS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering, why X11::X11 does not work - this is supposed to be the official way to link with X11 using CMake.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea why it doesn't work, I just know it doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants