Bug #427

*REMINDER* cmake findpackage() doesn't detect 32 bit OpenGL

Added by IR4T4 over 5 years ago. Updated 5 months ago.

Status:Confirmed% Done:

100%

Priority:NormalSpent time:-
Assignee:-
Category:General
Target version:ALL
OS:Linux Arch:64-bit

Description

On Linux 64 bit with multiarch "find_package(OpenGL REQUIRED)" might fail because it doesn’t detect 32 bit libs properly
This seems to be a known cmake thingy but we don’t deal with this in ETL as we do for other lib dependancies.

With 64 bit OpenGL installed the package is found but the build fails when linking the client (which isn’t a surprise).

History

#1 Updated by Jacker over 5 years ago

Had this issue myself a while back on ubuntu

#2 Updated by IR4T4 over 5 years ago

  • Arch set to 64-bit

#3 Updated by IR4T4 over 5 years ago

  • Target version changed from 2.71rc4 to 2.78

#4 Updated by IR4T4 5 months ago

  • Subject changed from cmake findpackage() doesn't detect 32 bit OpenGL to *REMINDER* cmake findpackage() doesn't detect 32 bit OpenGL
  • Status changed from New to Confirmed
  • Target version changed from 2.78 to ALL
  • % Done changed from 0 to 100

To avoid/fix this issue cmake requires to know about 32 bit this way:

https://cmake.org/pipermail/cmake/2016-April/063312.html

We are doing this in easybuild.sh but in case of IDEs these might fail.

Also available in: Atom PDF