-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made changes to compile and run on Linux with gcc (#228)
Co-authored-by: ousnius <ousnius@users.noreply.github.com>
- Loading branch information
Showing
53 changed files
with
932 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
project(BSOS) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
|
||
find_package(wxWidgets REQUIRED gl core base net xrc adv qa html propgrid) | ||
find_package(OpenGL REQUIRED) | ||
find_package(GLEW REQUIRED) | ||
set(fbxsdk_dir ../fbxsdk) | ||
find_library(fbxsdk fbxsdk PATHS ${fbxsdk_dir}/lib/gcc/x64/release) | ||
|
||
set(commonsources | ||
lib/FSEngine/FSBSA.cpp | ||
lib/FSEngine/FSEngine.cpp | ||
lib/FSEngine/FSManager.cpp | ||
lib/gli/glm/detail/glm.cpp | ||
lib/LZ4F/lz4.c | ||
lib/LZ4F/lz4frame.c | ||
lib/LZ4F/lz4hc.c | ||
lib/LZ4F/xxhash.c | ||
lib/NIF/Animation.cpp | ||
lib/NIF/BasicTypes.cpp | ||
lib/NIF/bhk.cpp | ||
lib/NIF/ExtraData.cpp | ||
lib/NIF/Factory.cpp | ||
lib/NIF/Geometry.cpp | ||
lib/NIF/NifFile.cpp | ||
lib/NIF/Nodes.cpp | ||
lib/NIF/Objects.cpp | ||
lib/NIF/Particles.cpp | ||
lib/NIF/Shaders.cpp | ||
lib/NIF/Skin.cpp | ||
lib/NIF/utils/Object3d.cpp | ||
lib/SOIL2/etc1_utils.c | ||
lib/SOIL2/image_DXT.c | ||
lib/SOIL2/image_helper.c | ||
lib/SOIL2/SOIL2.c | ||
lib/TinyXML-2/tinyxml2.cpp | ||
src/components/Anim.cpp | ||
src/components/Automorph.cpp | ||
src/components/DiffData.cpp | ||
src/components/Mesh.cpp | ||
src/components/NormalGenLayers.cpp | ||
src/components/SliderCategories.cpp | ||
src/components/SliderData.cpp | ||
src/components/SliderGroup.cpp | ||
src/components/SliderManager.cpp | ||
src/components/SliderPresets.cpp | ||
src/components/SliderSet.cpp | ||
src/files/MaterialFile.cpp | ||
src/files/ObjFile.cpp | ||
src/files/ResourceLoader.cpp | ||
src/files/TriFile.cpp | ||
src/program/GroupManager.cpp | ||
src/program/PresetSaveDialog.cpp | ||
src/render/GLExtensions.cpp | ||
src/render/GLMaterial.cpp | ||
src/render/GLOffscreenBuffer.cpp | ||
src/render/GLShader.cpp | ||
src/render/GLSurface.cpp | ||
src/ui/wxStateButton.cpp | ||
src/utils/AABBTree.cpp | ||
src/utils/ConfigurationManager.cpp | ||
src/utils/Log.cpp | ||
src/utils/PlatformUtil.cpp | ||
src/utils/StringStuff.cpp | ||
) | ||
set(OSsources | ||
${commonsources} | ||
src/components/RefTemplates.cpp | ||
src/components/TweakBrush.cpp | ||
src/files/FBXWrangler.cpp | ||
src/program/EditUV.cpp | ||
src/program/FBXImportDialog.cpp | ||
src/program/OutfitProject.cpp | ||
src/program/OutfitStudio.cpp | ||
src/program/ShapeProperties.cpp | ||
) | ||
set(BSsources | ||
${commonsources} | ||
src/files/wxDDSImage.cpp | ||
src/program/BodySlideApp.cpp | ||
src/program/NormalsGenDialog.cpp | ||
src/program/PreviewWindow.cpp | ||
src/ui/wxNormalsGenDlg.cpp | ||
) | ||
|
||
add_executable(OutfitStudio ${OSsources}) | ||
add_executable(BodySlide ${BSsources}) | ||
|
||
include(${wxWidgets_USE_FILE}) | ||
target_include_directories(OutfitStudio SYSTEM PRIVATE | ||
${fbxsdk_dir}/include | ||
/usr/include/wine/windows | ||
) | ||
target_include_directories(BodySlide SYSTEM PRIVATE | ||
/usr/include/wine/windows | ||
) | ||
target_include_directories(OutfitStudio PUBLIC lib/gli) | ||
target_include_directories(BodySlide PUBLIC lib/gli) | ||
|
||
target_link_libraries(OutfitStudio | ||
${wxWidgets_LIBRARIES} | ||
${OPENGL_LIBRARIES} | ||
${GLEW_LIBRARIES} | ||
${fbxsdk} | ||
xml2) | ||
|
||
target_link_libraries(BodySlide | ||
${wxWidgets_LIBRARIES} | ||
${OPENGL_LIBRARIES} | ||
${GLEW_LIBRARIES} | ||
xml2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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. Use the "--enable-stl" option to | ||
configure. If you get errors about an ABI mismatch, that means you | ||
compiled wxWidgets with a different compiler version than BS&OS (and | ||
wxWidgets is strangely picky about that). 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. | ||
|
||
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 .. | ||
make | ||
|
||
The possible values for CMAKE_BUILD_TYPE: | ||
Release | ||
RelWithDebInfo | ||
Debug | ||
MinSizeRel | ||
(nothing) | ||
|
||
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. | ||
|
||
Some useful make options: | ||
make VERBOSE=1 | ||
make -j 4 | ||
|
||
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. Unfortunately, | ||
program data such as xrc files and icons also come from the data dir; | ||
if you make changes to the data files, you'll have to copy them over. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.