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
Issue building libopenshot with JuceHeader.h #1
Comments
It seems that |
Note that when I add |
The following patch fix the issue: $ git diff
diff --git a/cmake/Modules/FindOpenShotAudio.cmake b/cmake/Modules/FindOpenShotAudio.cmake
index 720b93a..329a0b0 100644
--- a/cmake/Modules/FindOpenShotAudio.cmake
+++ b/cmake/Modules/FindOpenShotAudio.cmake
@@ -24,7 +24,7 @@ FOREACH(HEADER_PATH ${JUCE_HEADER_FILES})
get_filename_component(HEADER_DIRECTORY ${HEADER_PATH}
PATH
)
-
+
# Append each directory into the HEADER_DIRECTORIES list
LIST(APPEND HEADER_DIRECTORIES ${HEADER_DIRECTORY})
ENDFOREACH(HEADER_PATH)
@@ -45,7 +45,7 @@ set(LIBOPENSHOT_AUDIO_LIBRARY ${LIBOPENSHOT_AUDIO_LIBRARIES})
# Seems to work fine with just the base dir (rather than all the actual include folders)
set(LIBOPENSHOT_AUDIO_INCLUDE_DIR ${LIBOPENSHOT_AUDIO_BASE_DIR} )
-set(LIBOPENSHOT_AUDIO_INCLUDE_DIRS ${LIBOPENSHOT_AUDIO_BASE_DIR} )
+set(LIBOPENSHOT_AUDIO_INCLUDE_DIRS "${LIBOPENSHOT_AUDIO_BASE_DIR}/include/libopenshot-audio" )
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LIBOPENSHOT_AUDIO_FOUND to TRUE |
Any news here ? (@jonoomph ) |
Want me to open a PR ? |
This (our oldest open issue here) is long since fixed somewhere along the way, and should be improved further in the coming weeks with the introduction of |
I installed libopenshot-audio in a custom directory (let's say
/home/user/local
). When I now try to install libopenshot, CMake correctly find libopenshot-audio. However when building the lib withmake
, I have an error:$ cmake -DCMAKE_INSTALL_PREFIX=/home/user/local -DLIBOPENSHOT_AUDIO_BASE_DIR=/home/user/local .. ... -- Found LIBOPENSHOT_AUDIO: /home/user/local/lib/libopenshot-audio.so 'LIBOPENSHOT_AUDIO_INCLUDE_DIRS:/home/user/local' ...
And
I have the feeling that the issue comes from here https://github.com/OpenShot/libopenshot/blob/master/cmake/Modules/FindOpenShotAudio.cmake#L46 ...
Any idea ?
The text was updated successfully, but these errors were encountered: