Skip to content
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

OpenEXR_Viewers / libCg aliasing error #674

Closed
KBentley57 opened this issue Feb 27, 2020 · 3 comments
Closed

OpenEXR_Viewers / libCg aliasing error #674

KBentley57 opened this issue Feb 27, 2020 · 3 comments
Labels
Needs Discussion To be discussed in the technical steering committee
Milestone

Comments

@KBentley57
Copy link

I'm building openexr with externalproject_add as a third party library for my application. I was using 2.3.0, and everything was working - including the viewers. I install Nvidia_Cg in an earlier step, and now it appears that the viewer's CMake isn't working like it used to. It appears that this effects both 2.4.0 and 2.4.1.

I'm getting the following error about aliasing imported libraries

NOTICE-- Found Cg library
CMake Error at OpenEXR_Viewers/config/LocateCg.cmake:18 (add_library):
  add_library cannot create ALIAS target "Cg::Cg" because target "Cg" is not
  a library.
Call Stack (most recent call first):
  OpenEXR_Viewers/CMakeLists.txt:51 (include)

CMake Error at OpenEXR_Viewers/config/LocateCg.cmake:30 (add_library):
  add_library cannot create ALIAS target "Cg::CgGL" because target "CgGL" is
  not a library.
Call Stack (most recent call first):
  OpenEXR_Viewers/CMakeLists.txt:51 (include)

I can see that libCg.so exists, and it finds it, but gets hung up here.

Thoughts?

@cary-ilm cary-ilm added the Needs Discussion To be discussed in the technical steering committee label Feb 27, 2020
@cary-ilm
Copy link
Member

The OpenEXR_Viewer code is ancient and almost completely useless, it's not a functional viewer, it exists only as example code, but the dependencies are complicated and frequently problematic.

We discussed in the TSC and decided to remove the OpenEXR_Viewer code from the cmake build rules in the 2.5 release and then remove the code entirely in the 3.0 release, when the structure of the repo is rearranged.

@KBentley57
Copy link
Author

@cary-ilm I had read that in some of the other commentary after submitting the report. I'm not actually using my myself, but I was trying to build with all the available options turned on as a sanity check. I hate to leave anything left to chance, but I'll turn it off for now and let it be if it's going to be removed down the road.

Thanks for the reply,

Kyle

@cary-ilm
Copy link
Member

#676 removes OpenEXR_Viewers from the cmake build process, and removes references to it in the INSTALL instructions. The code will be retired in the 3.0 release later in the year. This hopefully resolves the issue, closing for now.

@cary-ilm cary-ilm added this to the v2.5.0 milestone Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Discussion To be discussed in the technical steering committee
Projects
None yet
Development

No branches or pull requests

2 participants