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

Make install on Mac OS X 10.15 not working #102

Open
joshabb opened this issue May 2, 2020 · 0 comments
Open

Make install on Mac OS X 10.15 not working #102

joshabb opened this issue May 2, 2020 · 0 comments

Comments

@joshabb
Copy link

joshabb commented May 2, 2020

This has something to do with rpath for sdl2, which now requires hidapi on mac OS X. The fix was found here:

bvschaik/julius#386

Adding this to codemp/CMakeLists.txt fixes it. Changed:

                install(CODE "
                        include(BundleUtilities)
                        set(BU_CHMOD_BUNDLE_ITEMS ON)
                        fixup_bundle(\"${CMAKE_BINARY_DIR}/${MPEngine}.app\" \"\" \"\")

to this

                # if SDL2 library is a framework, we need to indicate to CMake
		# the path to its dependencies. SDL2_LIBRARY contains two parts.
		# Example: /Library/Frameworks/SDL2.framework;-framework Cocoa
		# So strip out everything after the ';'
		string(REGEX REPLACE ";.*$" "" SDL2_LIB_DIR "${SDL2_LIBRARY}")
		if(EXISTS "${SDL2_LIB_DIR}/Versions/A/Frameworks")
			set(DIRS "${DIRS};${SDL2_LIB_DIR}/Versions/A/Frameworks")
		endif()

		install(CODE "
			include(BundleUtilities)
			set(BU_CHMOD_BUNDLE_ITEMS ON)
			fixup_bundle(\"${CMAKE_BINARY_DIR}/${MPEngine}.app\" \"\" \"${DIRS}\")
			"
			COMPONENT Runtime)```
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

No branches or pull requests

1 participant