-
Notifications
You must be signed in to change notification settings - Fork 121
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
XLink not installed with cmake install
(only static issue?)
#272
Comments
Hacking some on this in depthaiDependencies.cmake (probably wrong approach)... # XLink
if(NOT CONFIG_MODE)
if(DEPTHAI_XLINK_LOCAL)
add_subdirectory("${DEPTHAI_XLINK_LOCAL}" ${CMAKE_CURRENT_BINARY_DIR}/XLink EXCLUDE_FROM_ALL)
else()
find_package(XLink ${_QUIET} CONFIG REQUIRED)
endif()
if(NOT BUILD_SHARED_LIBS)
list(APPEND targets_to_export XLink)
endif()
endif() I've got a few steps further, but app compile fails with depthai because it can't find |
I've got a local hack almost working. I think are three things in play...
|
I think removing the |
- fixes luxonis#272 - replaces PR luxonis#298
For a static build of depthai, using
DEPTHAI_XLINK_LOCAL
... a cmake installSetup
Repro
DEPTHAI_XLINK_LOCAL
. Use the same commit as hunter would.CMAKE_INSTALL_PREFIX=c:/myinstalldir
Result
Either try to find_package() and then compile an app that would use this depthai install
-or-
search
c:/myinstalldir
for the xlink cmake fileXLinkConfig.cmake
and its static librariesXLink.lib
/XLinkd.lib
You will find none of these files.
Expected
Your app finds depthai and all its dependencies (like XLink) and cleanly builds.
-or-
You find XLink's cmake files and static libraries in the given install location
c:/myinstalldir
Notes
I see all the needed files in the depthai build directory
...\depthai-core\build\XLink
. This suggests their might be only a small change needed for cmake install process to use those and then do the install.The text was updated successfully, but these errors were encountered: