Cannot install OSL on Ubuntu 15.10 #46659

Closed
opened 2015-11-01 16:32:54 +01:00 by Andreas Bergmeier · 11 comments

System Information
Ubuntu 15.10

Blender Version
Broken: master, v2.76

When I try to set up 3rd party libraries, CMake configuration in OSL fails with:

  CMake Error at /usr/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
    Could NOT find IlmBase (missing: ILMBASE_IEX-2_2_LIBRARIES
    ILMBASE_IMATH-2_2_LIBRARIES ILMBASE_ILMTHREAD-2_2_LIBRARIES)
  Call Stack (most recent call first):
    /usr/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
    src/cmake/modules/FindIlmBase.cmake:214 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
    src/cmake/externalpackages.cmake:37 (find_package)
    CMakeLists.txt:200 (include)
**System Information** Ubuntu 15.10 **Blender Version** Broken: master, v2.76 When I try to set up 3rd party libraries, CMake configuration in OSL fails with: ``` CMake Error at /usr/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find IlmBase (missing: ILMBASE_IEX-2_2_LIBRARIES ILMBASE_IMATH-2_2_LIBRARIES ILMBASE_ILMTHREAD-2_2_LIBRARIES) Call Stack (most recent call first): /usr/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) src/cmake/modules/FindIlmBase.cmake:214 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) src/cmake/externalpackages.cmake:37 (find_package) CMakeLists.txt:200 (include) ```

Changed status to: 'Open'

Changed status to: 'Open'
Campbell Barton was assigned by Andreas Bergmeier 2015-11-01 16:32:54 +01:00

Added subscriber: @AndreasBergmeier

Added subscriber: @AndreasBergmeier

Added subscribers: @ideasman42, @mont29

Added subscribers: @ideasman42, @mont29
Campbell Barton was unassigned by Bastien Montagne 2015-11-01 18:12:01 +01:00

Please do not assign tasks yourself.

And this is known issue with new ubuntu, it seems that they have a broken cmake that does not features the arch-related lib folder in expected define (you know, thing like /usr/lib/x86_64-linux-gnu…), so we cannot do anything about it currently.

Please do not assign tasks yourself. And this is known issue with new ubuntu, it seems that they have a broken cmake that does not features the arch-related lib folder in expected define (you know, thing like `/usr/lib/x86_64-linux-gnu`…), so we cannot do anything about it currently.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2015-11-01 18:13:23 +01:00

BTW, such building issues shall not be reported on the bug tracker, they are no bugs at all, ML or IRC are much more fitted for those.

BTW, such building issues shall not be reported on the bug tracker, they are no bugs at all, ML or IRC are much more fitted for those.

In #46659#344488, @mont29 wrote:
Please do not assign tasks yourself.

Ok.

And this is known issue with new ubuntu, it seems that they have a broken cmake that does not features the arch-related lib folder in expected define (you know, thing like /usr/lib/x86_64-linux-gnu…), so we cannot do anything about it currently.

I use CMake from Debian, so any bug comes from Debian.

I will have a talk with the OSL guys and see what to do.

> In #46659#344488, @mont29 wrote: > Please do not assign tasks yourself. Ok. > And this is known issue with new ubuntu, it seems that they have a broken cmake that does not features the arch-related lib folder in expected define (you know, thing like `/usr/lib/x86_64-linux-gnu`…), so we cannot do anything about it currently. I use CMake from Debian, so any bug comes from Debian. I will have a talk with the OSL guys and see what to do.

In #46659#344490, @mont29 wrote:
BTW, such building issues shall not be reported on the bug tracker, they are no bugs at all, ML or IRC are much more fitted for those.

BTW, irc told me to write a bug :)

> In #46659#344490, @mont29 wrote: > BTW, such building issues shall not be reported on the bug tracker, they are no bugs at all, ML or IRC are much more fitted for those. BTW, irc told me to write a bug :)

In #46659#344488, @mont29 wrote:
And this is known issue with new ubuntu, it seems that they have a broken cmake that does not features the arch-related lib folder in expected define (you know, thing like /usr/lib/x86_64-linux-gnu…), so we cannot do anything about it currently.

I think you are wrong. It does find half as /usr/lib/x86_64-linux-gnu/libHalf.so. In Ubuntu I cannot seem to find iex, though (my fault, have to search for Iex).
Analyzing FindIlmBase.cmake in OSL, it seems like there is some mismatch between what the script assumes and what Debian packages provide.
The script searches for Iex-2_2, while Debian only has libIex.so and libIex-2_2.so.12. So there is actually quite a bit we can do about this.
Question is rather what is the correct path.
I will talk to the Debian maintainers and see whether they can shed any light.

> In #46659#344488, @mont29 wrote: > And this is known issue with new ubuntu, it seems that they have a broken cmake that does not features the arch-related lib folder in expected define (you know, thing like `/usr/lib/x86_64-linux-gnu`…), so we cannot do anything about it currently. I think you are wrong. It does find *half* as `/usr/lib/x86_64-linux-gnu/libHalf.so`. In Ubuntu I cannot seem to find *iex*, though (my fault, have to search for *Iex*). Analyzing `FindIlmBase.cmake` in OSL, it seems like there is some mismatch between what the script assumes and what Debian packages provide. The script searches for `Iex-2_2`, while Debian only has `libIex.so` and `libIex-2_2.so.12`. So there is actually quite a bit we can do about this. Question is rather what is the correct path. I will talk to the Debian maintainers and see whether they can shed any light.

Actually it was your commit that broke it: 1eb0523312

At least on Debian pkg-config --libs IlmBase gives me:
- lImath -lHalf -lIex -lIexMath -lIlmThread -lpthread

Which means using the -2_2 variant is not the expected way of linking. So what was the incentive for the commit?

Actually it was your commit that broke it: https://github.com/Nazg-Gul/OpenShadingLanguage/commit/1eb052331210a231900eb173a64500056d83b88c At least on Debian `pkg-config --libs IlmBase` gives me: - lImath -lHalf -lIex -lIexMath -lIlmThread -lpthread Which means using the `-2_2` variant is not the expected way of linking. So what was the incentive for the commit?

So reverting OSL back to 06c4d9598277a4e844cb37779a15873fb016b47e made CMake config work for me.

So reverting OSL back to `06c4d9598277a4e844cb37779a15873fb016b47e` made CMake config work for me.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#46659
No description provided.