summaryrefslogtreecommitdiffstats
path: root/graphics/Blender/README.Slackware
blob: 1d819e7c3f784cbc54776ad0fc7a5c389e2e4ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
This script builds Blender from its source code, rather than repackaging
an existing binary version. The process is therefore more complex and
time consuming but allows finer tuning of capabilities of the resulting
package. Working through the prerequisite packages from the REQUIRES field
of Blender.info results in the following basic build order:
	multimedia/ffmpeg
	audio/jack-audio-connection-kit
	libraries/opencv
	graphics/opencollada
	libraries/OpenAL
	libraries/openjpeg
	python/python3
	python/python-requests
	development/valgrind
	libraries/LibRaw
	libraries/libwebp
	development/numpy3
	development/SDL2
	graphics/opencolorio
	graphics/openimageio
	libraries/jemalloc
	libraries/freealut
	graphics/Blender

When generating a new build order, python3 should first be added to the
REQUIRES field of python-requests.info.

To facilitate the greatest utility for Blender, its is strongly
suggested that a number of standard SBo packages be built with
a more complete set of features than provided by the default scripts:
    1. the opencv package could/should first be built with additional
features by preinstalling some other packages e.g.
REQUIRES="
opencl-headers libjpeg-turbo ffmpeg Sphinx libdc1394
numpy3 gtkglext tbb jdk
"
The cmake configuration in opencv.SlackBuild can be replaced with:
  cmake \
    -DCMAKE_C_FLAGS="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
    -DCMAKE_BUILD_TYPE="Release" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_SHARED_LIBS=ON \
    -DENABLE_PRECOMPILED_HEADERS=OFF \
    -DLIB_SUFFIX=$LIBDIRSUFFIX \
    -DWITH_TBB=ON \
    -DWITH_OPENCL=ON \
    -DWITH_OPENGL=ON \
    -DWITH_QT=ON \
    -DWITH_XINE=ON \
    -DBUILD_EXAMPLES=ON \
    -DINSTALL_C_EXAMPLES=ON \
    -DINSTALL_PYTHON_EXAMPLES=ON \
    -DBUILD_NEW_PYTHON_SUPPORT=ON \
    -DWITH_FFMPEG=ON \
    -DCMAKE_SKIP_RPATH=ON \
    -DWITH_1394:BOOL=ON \
    ..

If resources allow, the very large cudatoolkit package is another
possible package which may be preinstalled and be utilised by the
opencv build process.

    2. the ffmpeg package could/should first be built with additional
features by preinstalling some other packages e.g.
REQUIRES="lame x264
speex libbluray xvidcore OpenAL libmodplug frei0r libdc1394 libavc1394
libiec61883 ladspa_sdk gsm rtmpdump libvpx libva twolame celt faac
dirac schroedinger openjpeg "

    3. the numpy SlackBuild at SBo does not build the python3 modules
which are needed to be useful for any numpy-related python scripting in
blender. It is therefore numpy3 which is the prerequisite for this build
of blender.

Due to the official versions of some software packages included in
Slackware 14.1, the most recent version of Blender that can be built from
the source code is Blender-2.74. Building more recent versions of
Blender would require replacement of at least the openexr and ilmbase
packages (both already updated in -current).