-
Notifications
You must be signed in to change notification settings - Fork 65
/
Readme-linux.txt
57 lines (46 loc) · 2.2 KB
/
Readme-linux.txt
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
Building BodySlide and Outfit Studio on Linux
There's just one file that specifies the build process: CMakeLists.txt.
Install wxWidgets 3.1.3 or newer. If you get errors about an ABI
mismatch, that means you compiled wxWidgets with a different compiler
version than BS&OS. Either gtk2 or gtk3 works. With gtk2, you have
more background color problems; with gtk3, many widgets are distorted
because they don't have enough space. Note that many of wxWidget's
configure options (such as --enable-universal) result in a broken
wxWidgets library, so prefer to use as few options as possible.
Also note that some distribution-provided wxWidgets packages are
broken, so it's likely that you'll have to build wxWidgets yourself
(which is really easy).
Install FBX SDK. Put the path to your FBX SDK installation in the
fbxsdk_dir variable in CMakeLists.txt.
Make sure GLEW is installed.
Then go to your BodySlide-and-Outfit-Studio directory and do:
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wall" ..
make
The possible values for CMAKE_BUILD_TYPE:
Release
RelWithDebInfo
Debug
MinSizeRel
(nothing)
The -Wall option is optional. If you don't care about compiler
warnings, you should probably skip this option.
To specify the compiler, set CC and CXX before running cmake.
The build directory must be completely empty, or cmake will ignore CC
and CXX and use the same compilers as it did last time. Don't forget
to build wxWidgets with the same compiler; the wxWidgets configure script
also uses the CC and CXX environment variables.
Some useful make options:
make VERBOSE=1
make -j 4
The BodySlide and OutfitStudio executables need to be able to find
the res directory, which contains important program data such as xrc
files and icons. By default, the executables search for the res
directory in the same directory as the executables. So, when you
copy the executables into the BodySlide directory within your game,
you need to copy the entire res directory too.
If you don't want to copy the executables to the BodySlide
directory within your game, set WX_BODYSLIDE_DATA_DIR and
WX_OUTFITSTUDIO_DATA_DIR to the BodySlide directory. The res directory
must still be copied into the BodySlide directory.