On 01/02/2014 09:33 PM, YuGiOhJCJ Mailing-List wrote: > Hello, > > I want to create a package for my distro where blender is installed in > /opt/blender. > I do this: > $ tar xvf blender-2.69.tar.gz > $ mkdir blender > $ cd blender > $ cmake ../blender-2.69 -DCMAKE_INSTALL_PREFIX=/opt/blender > $ make install DESTDIR=/tmp/blender-2.69 > > I expect to have this: > /tmp/blender-2.69/opt/bin/blender > > But I got this: > /tmp/blender-2.69/home/yugiohjcj/documents/downloads/software/blender/bin > In this folder, there is no "blender" binary file. > > Blender works well in my blender build directory. > I can do: > $ bin/blender > and it runs. > Just a minor problem is I need to copy the "../blender-2.69/release/scripts" > directory to the "release" directory in order to avoid these errors: > $ bin/blender > Color management: using fallback mode for management > BLF_lang_init: 'locale' data path for translations not found, continuing > AL lib: alcOpenDevice: Option 'format' is deprecated, please use 'channels' > and 'sample-type' > AL lib: UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead > bpy: couldnt find 'scripts/modules', blender probably wont start. > ImportError: No module named 'bpy_types' > ImportError: No module named 'bpy_types' > pyrna_srna_ExternalType: failed to find 'bpy_types' module > ImportError: No module named 'bpy_types' > ImportError: No module named 'bpy_types' > pyrna_srna_ExternalType: failed to find 'bpy_types' module > ImportError: No module named 'bpy_types' > pyrna_srna_ExternalType: failed to find 'bpy_types' module > ImportError: No module named 'bpy' > ImportError: No module named 'bpy_types' > [...] > Aborted > > So, the only problem I have is that the install prefix "/opt/blender" is not > recognised. > As you can see, the destination directory does not contain the "/opt/blender" > prefix, but the full path from the build directory (including my home folder). > > Can you explain me how to have the correct install prefix ? (and also the > "blender" binary in the bin folder) > > Thank you. > Best regards. > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers >
You need to unset the WITH_INSTALL_PORTABLE option as well, which is by default on and ignores your CMAKE_INSTALL_PREFIX in favor of installing to where you built blender. _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
