Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 790553 Details for
Bug 835021
sci-libs/flann-1.9.1-r5[octave] cannot find -loctinterp
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
find and use OCTLIBDIR in the custom command
flann-1.9.1-octave-6.patch (text/plain), 1.88 KB, created by
Jouni Kosonen
on 2022-07-07 18:45:02 UTC
(
hide
)
Description:
find and use OCTLIBDIR in the custom command
Filename:
MIME Type:
Creator:
Jouni Kosonen
Created:
2022-07-07 18:45:02 UTC
Size:
1.88 KB
patch
obsolete
>diff --git a/src/matlab/CMakeLists.txt b/src/matlab/CMakeLists.txt >old mode 100644 >new mode 100755 >index ebacaea..da544e5 >--- a/src/matlab/CMakeLists.txt >+++ b/src/matlab/CMakeLists.txt >@@ -63,19 +63,6 @@ if(MEX_CMD AND MEXEXT_CMD) > set(BUILD_MATLAB_BINDINGS OFF) > endif() > elseif(OCT_CMD) >- SET(MEX_FILE ${CMAKE_CURRENT_BINARY_DIR}/${MEX_NAME}.oct) >- ADD_CUSTOM_COMMAND( >- OUTPUT ${MEX_FILE} >- COMMAND ${OCT_CMD} >- ARGS ${CMAKE_CURRENT_SOURCE_DIR}/${MEX_NAME}.cpp -I${PROJECT_SOURCE_DIR}/src/cpp -L${PROJECT_BINARY_DIR}/lib -DFLANN_STATIC -lflann_s -lgomp >- DEPENDS flann_s ${CMAKE_CURRENT_SOURCE_DIR}/${MEX_NAME}.cpp >- COMMENT "Building MEX extension ${MEX_FILE}" >- ) >- >- ADD_CUSTOM_TARGET(mex_${MEX_NAME} ALL DEPENDS ${MEX_FILE}) >- >- FILE(GLOB MATLAB_SOURCES *.m) >- > find_program(OCTAVE_CONFIG_EXECUTABLE NAMES octave-config) > > if (OCTAVE_CONFIG_EXECUTABLE) >@@ -87,8 +74,25 @@ elseif(OCT_CMD) > OUTPUT_VARIABLE OCTAVE_OCT_SITE_DIR > OUTPUT_STRIP_TRAILING_WHITESPACE) > >+ execute_process (COMMAND ${OCTAVE_CONFIG_EXECUTABLE} -p OCTLIBDIR >+ OUTPUT_VARIABLE OCTAVE_OCT_LIB_DIR >+ OUTPUT_STRIP_TRAILING_WHITESPACE) >+ > endif() > >+ SET(MEX_FILE ${CMAKE_CURRENT_BINARY_DIR}/${MEX_NAME}.oct) >+ ADD_CUSTOM_COMMAND( >+ OUTPUT ${MEX_FILE} >+ COMMAND ${OCT_CMD} >+ ARGS ${CMAKE_CURRENT_SOURCE_DIR}/${MEX_NAME}.cpp -I${PROJECT_SOURCE_DIR}/src/cpp -L${PROJECT_BINARY_DIR}/lib -DFLANN_STATIC -lflann_s -lgomp -L${OCTAVE_OCT_LIB_DIR} >+ DEPENDS flann_s ${CMAKE_CURRENT_SOURCE_DIR}/${MEX_NAME}.cpp >+ COMMENT "Building MEX extension ${MEX_FILE}" >+ ) >+ >+ ADD_CUSTOM_TARGET(mex_${MEX_NAME} ALL DEPENDS ${MEX_FILE}) >+ >+ FILE(GLOB MATLAB_SOURCES *.m) >+ > INSTALL (FILES ${MEX_FILE} DESTINATION ${OCTAVE_OCT_SITE_DIR}) > INSTALL (FILES ${MATLAB_SOURCES} DESTINATION ${OCTAVE_M_SITE_DIR}) > else()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 835021
:
766896
|
766897
| 790553