Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

ILMbase errors #15

Open
ahemberger opened this issue Jan 20, 2021 · 5 comments
Open

ILMbase errors #15

ahemberger opened this issue Jan 20, 2021 · 5 comments
Labels

Comments

@ahemberger
Copy link

ahemberger commented Jan 20, 2021

Hello; trying to build this project and, when I run cmake, I see the following errors. I tried editing the CMakeLists.txt file as advised here, but unfortunately that fix does not seem to work in this case.

ILMBASE_ROOT is undefined
-- #define ILMBASE_VERSION_STRING "2.5.0"
-- ILMBASE INCLUDE PATH: H:/github/vcpkg/installed/x64-windows/include/OpenEXR
-- HALF LIB: H:/github/vcpkg/installed/x64-windows/lib/Half-2_5.lib
-- IEX LIB: H:/github/vcpkg/installed/x64-windows/lib/Iex-2_5.lib
-- IEXMATH LIB: H:/github/vcpkg/installed/x64-windows/lib/IexMath-2_5.lib
-- ILMTHREAD LIB: H:/github/vcpkg/installed/x64-windows/lib/IlmThread-2_5.lib
-- IMATH LIB: H:/github/vcpkg/installed/x64-windows/lib/Imath-2_5.lib
-- Configuring done
CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IlmThread" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Iex" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Half" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IexMath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IlmThread" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Iex" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Half" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IexMath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IlmThread" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Iex" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Half" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IexMath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IlmThread" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Iex" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Half" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IexMath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

@simogasp
Copy link
Member

simogasp commented Jan 20, 2021

Probably this is due to the fact that vcpkg uses the latest version of openexr which recently switched to modern cmake management of the targets and alicevision still uses the old way to import the library.
You should try to add a

find_dependency(OpenEXR)

here https://github.com/alicevision/AliceVision/blob/develop/src/cmake/AliceVisionConfig.cmake.in

@ahemberger
Copy link
Author

Hi @simogasp, thanks! I tried this (here's a snippet of where I inserted this line in the file you mention), but still seem to be getting the same errors. Might you have any other advice for what I can try? After about 5 days wrestling with trying to build meshroom, I think this might be the last hurdle standing in my way!

find_dependency(Boost COMPONENTS @ALICEVISION_BOOST_COMPONENTS@)
set(BOOST_NO_CXX11 @BOOST_NO_CXX11@)
if(BOOST_NO_CXX11)
add_definitions(-DBOOST_NO_CXX11_SCOPED_ENUMS)
endif()

find_dependency(OpenEXR)

# propagate other building options

set(ALICEVISION_HAVE_OPENGV @ALICEVISION_HAVE_OPENGV@)
set(ALICEVISION_HAVE_ALEMBIC @ALICEVISION_HAVE_ALEMBIC@)

@simogasp
Copy link
Member

simogasp commented Jan 21, 2021

You can try to remove cmake/FindIlmBase.cmake, it may conflict with other find_dependency() (and relaunch cmake from scratch)

@ahemberger
Copy link
Author

Hi @simogasp! Amazing! That solution seems to have worked.

One slightly-unrelated followup question: I notice that when running Install for both this package and AliceVIsionQT, the installer places the built files at /qml/..., which is at the root of my drive that I'm working on (on Windows). This strikes me as possibly not correct (?). I've been moving them into my build directory itself, but where are they actually supposed to live in order to be used properly with Meshroom?

I suspect this question may be related to this one.

@ahemberger
Copy link
Author

Actually, reading the meshroom installation docs more closely, it appears that the location of these files seems somewhat arbitrary, so long as I properly set up environment variables to point meshroom at each of these. So...nevermind!

Thanks again so much for all the help.

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

No branches or pull requests

2 participants