Cmake error while configuring

32 views
Skip to first unread message

Karin Westin

unread,
Jan 7, 2023, 3:20:56 PM1/7/23
to coin3d-discuss
Hi all

I'm trying to install coin3d on ubuntu 20.04. However, when running
cmake -Hcoin -Bcoin_build -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/local
-DCMAKE_BUILD_TYPE=Release -DCOIN_BUILD_DOCUMENTATION=OFF

I get the following error: 

CMake Error at /home/karin/coin_build/CMakeFiles/CMakeTmp/CMakeLists.txt:17 (add_executable):
  Target "cmTC_57d34" links to target "OpenGL::OpenGL" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at /usr/share/cmake-3.16/Modules/CheckCXXSourceCompiles.cmake:110 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  CMakeLists.txt:679 (check_cxx_source_compiles)

Do any of you know how to solve this?

Best
Karin

Fabrizio Morciano

unread,
Mar 5, 2023, 2:51:54 PM3/5/23
to coin3d-discuss
Hello,
could you provide the result of cmake output?
Which version or revison have you used?
I try on ubuntu with coin revision 38428b3c0595a8c8771766c00ab84178b2d3df07 and it's ok.

Cheers

  Fabrizio

Reply all
Reply to author
Forward
0 new messages