install_deps.sh gives slight misinformation [patch attached] #42555

Closed
opened 2014-11-09 23:14:38 +01:00 by inactive account · 4 comments

System Information
Ubuntu 14.10, but probably applies to other Linux and Linux-like systems

Blender Version
Broken: 2.72, git hash 8c712eaa29

Short description of error
In short, the final message of install_deps.sh could be interpreted that you either pass options to CMake, or you run make. This is only correct when CMake has already been succesfully run before.

Exact steps for others to reproduce the error
Run install_deps.sh, then check this message:

If you're using CMake add this to your configuration flags:
  -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio
  -D OPENEXR_ROOT_DIR=/opt/lib/openexr
  -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio
  -D WITH_CYCLES_OSL=ON
  -D WITH_LLVM=ON
  -D LLVM_VERSION=3.4
  -D CYCLES_OSL=/opt/lib/osl
  -D WITH_CODEC_FFMPEG=ON
  -D FFMPEG_LIBRARIES='avformat;avcodec;avutil;avdevice;swscale;rt;theoradec;theoraenc;theora;vorbisfile;vorbis;vorbisenc;ogg;x264;openjpeg_JPWL;openjpeg'
  -D FFMPEG=/opt/lib/ffmpeg

Or even simpler, just run (in your blender-source dir):
  make -j8 BUILD_CMAKE_ARGS=" -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio -D OPENEXR_ROOT_DIR=/opt/lib/openexr -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio -D WITH_CYCLES_OSL=ON -D WITH_LLVM=ON -D LLVM_VERSION=3.4 -D CYCLES_OSL=/opt/lib/osl -D WITH_CODEC_FFMPEG=ON -D FFMPEG_LIBRARIES='avformat;avcodec;avutil;avdevice;swscale;rt;theoradec;theoraenc;theora;vorbisfile;vorbis;vorbisenc;ogg;x264;openjpeg_JPWL;openjpeg' -D FFMPEG=/opt/lib/ffmpeg"

The text "Or even simpler..." could mean "never mind reading the above, the next thing is simpler, so just do that". This is incorrect, as there is no Makefile to begin with. Somebody (read: me) could be inclined to run CMake without reading the instructions to pass it certain options, just to try and create that missing Makefile (which won't work).

IMO the attached patch 0001-Clarified-the-note-that-you-can-give-CMake-arguments.patch cleans this up with only a minimal change in the text.

**System Information** Ubuntu 14.10, but probably applies to other Linux and Linux-like systems **Blender Version** Broken: 2.72, git hash 8c712eaa297162669fc0be849da115dd8db400d5 **Short description of error** In short, the final message of install_deps.sh could be interpreted that you either pass options to CMake, or you run make. This is only correct when CMake has already been succesfully run before. **Exact steps for others to reproduce the error** Run install_deps.sh, then check this message: ``` If you're using CMake add this to your configuration flags: -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio -D OPENEXR_ROOT_DIR=/opt/lib/openexr -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio -D WITH_CYCLES_OSL=ON -D WITH_LLVM=ON -D LLVM_VERSION=3.4 -D CYCLES_OSL=/opt/lib/osl -D WITH_CODEC_FFMPEG=ON -D FFMPEG_LIBRARIES='avformat;avcodec;avutil;avdevice;swscale;rt;theoradec;theoraenc;theora;vorbisfile;vorbis;vorbisenc;ogg;x264;openjpeg_JPWL;openjpeg' -D FFMPEG=/opt/lib/ffmpeg Or even simpler, just run (in your blender-source dir): make -j8 BUILD_CMAKE_ARGS=" -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio -D OPENEXR_ROOT_DIR=/opt/lib/openexr -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio -D WITH_CYCLES_OSL=ON -D WITH_LLVM=ON -D LLVM_VERSION=3.4 -D CYCLES_OSL=/opt/lib/osl -D WITH_CODEC_FFMPEG=ON -D FFMPEG_LIBRARIES='avformat;avcodec;avutil;avdevice;swscale;rt;theoradec;theoraenc;theora;vorbisfile;vorbis;vorbisenc;ogg;x264;openjpeg_JPWL;openjpeg' -D FFMPEG=/opt/lib/ffmpeg" ``` The text "Or even simpler..." could mean "never mind reading the above, the next thing is simpler, so just do that". This is incorrect, as there is no Makefile to begin with. Somebody (read: me) could be inclined to run CMake without reading the instructions to pass it certain options, just to try and create that missing Makefile (which won't work). IMO the attached patch [0001-Clarified-the-note-that-you-can-give-CMake-arguments.patch](https://archive.blender.org/developer/F122962/0001-Clarified-the-note-that-you-can-give-CMake-arguments.patch) cleans this up with only a minimal change in the text.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @sybrenstuvel

Added subscriber: @sybrenstuvel

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2014-11-10 08:36:38 +01:00

Nah, in blender source dir (not build dir), there is a makefile… So instructions are correct. ;)

Nah, in blender **source dir** (not build dir), there **is** a makefile… So instructions are correct. ;)
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#42555
No description provided.