CMake configure fail when building Blender on MacOS using custom LIBDIR #83174

Closed
opened 2020-11-29 04:59:25 +01:00 by Rebecca Dengate · 8 comments

System Information
Operating system: MacOS Catalina (10.15.6)
Graphics card: N/A

Blender Version
Using master

Short description of error
When running configure using CMake (on MacOS) with the precompiled libs in a custom location, I would like to tell CMake where to find the libs, which seems to be possible using LIBDIR; however, this is ignored.

On inspecting code, it seems that the CMAKE_PREFIX_PATH is only set for the built-in libdir. If this is set for the custom libdir passed in with LIBDIR, the configure step completes successfully.

Exact steps for others to reproduce the error
In build directory, run cmake -DLIBDIR=/path/to/precompiled/libs/lib/darwin /path/to/blender/source
Note that message "Using pre-compiled LIBDIR: /path/to/precompiled/libs/lib/darwin" appears, but then "Could NOT find ALEMBIC", "Could NOT find USD", etc, which eventually causes the configure step to fail.

**System Information** Operating system: MacOS Catalina (10.15.6) Graphics card: N/A **Blender Version** Using master **Short description of error** When running configure using CMake (on MacOS) with the precompiled libs in a custom location, I would like to tell CMake where to find the libs, which seems to be possible using LIBDIR; however, this is ignored. On inspecting code, it seems that the CMAKE_PREFIX_PATH is only set for the built-in libdir. If this is set for the custom libdir passed in with LIBDIR, the configure step completes successfully. **Exact steps for others to reproduce the error** In build directory, run cmake -DLIBDIR=/path/to/precompiled/libs/lib/darwin /path/to/blender/source Note that message "Using pre-compiled LIBDIR: /path/to/precompiled/libs/lib/darwin" appears, but then "Could NOT find ALEMBIC", "Could NOT find USD", etc, which eventually causes the configure step to fail.

Added subscriber: @beckyd

Added subscriber: @beckyd

This problem appears to be solved with the change attached.

mac_libpath_fix.patch

This problem appears to be solved with the change attached. [mac_libpath_fix.patch](https://archive.blender.org/developer/F9404498/mac_libpath_fix.patch)
Rebecca Dengate self-assigned this 2020-11-29 05:02:24 +01:00
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Please post a differential at https://developer.blender.org/differential/

Please post a differential at https://developer.blender.org/differential/

Thank you. I've created a differential at https://developer.blender.org/D9664.

Thank you. I've created a differential at https://developer.blender.org/D9664.

This issue was referenced by 13c820d87b

This issue was referenced by 13c820d87b62ea55c262bfb2805bd19ae65ddc07
Member

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Member
13c820d87b
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
3 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#83174
No description provided.