Skip to content

Commit 963561e

Browse files
committed
fixed windows buiöd
1 parent 2e57c26 commit 963561e

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

.github/workflows/cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Configure CMake (FUSE)
4040
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
4141
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
42-
run: env PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/c/Program Files (x86)/WinFSP/lib" cmake -B $(echo '${{github.workspace}}/build' | tr '\\' '/') -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DOODLE_LIBRARY=$(echo '${{github.workspace}}' | tr '\\' '/')/libInfinite/oo2core_8_win64.dll
42+
run: env PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/c/Program Files (x86)/WinFSP/lib" cmake -B $(echo '${{github.workspace}}/build' | tr '\\' '/') -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DDOWNLOAD_PNGPP=ON -DOODLE_LIBRARY=$(echo '${{github.workspace}}' | tr '\\' '/')/libInfinite/oo2core_8_win64.dll
4343

4444
- name: Build (FUSE)
4545
# Build your program with the given configuration
@@ -48,7 +48,7 @@ jobs:
4848
- name: Configure CMake (no FUSE)
4949
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
5050
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
51-
run: cmake -B $(echo '${{github.workspace}}/build2' | tr '\\' '/') -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DOODLE_LIBRARY=$(echo '${{github.workspace}}' | tr '\\' '/')/libInfinite/oo2core_8_win64.dll -DFUSE=OFF
51+
run: cmake -B $(echo '${{github.workspace}}/build2' | tr '\\' '/') -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DOODLE_LIBRARY=$(echo '${{github.workspace}}' | tr '\\' '/')/libInfinite/oo2core_8_win64.dll -DFUSE=OFF -DDOWNLOAD_PNGPP=ON
5252

5353
- name: Build (no FUSE)
5454
# Build your program with the given configuration

3D/AssImpExporter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "libInfinite/BitmapBatchExtractor.h"
1414
#include "libInfinite/MaterialJsonExporter.h"
1515

16-
#include <png++/png.hpp>
16+
//#include <png++/png.hpp>
1717

1818
#define INDEX_BUFFER_TYPE_TRIANGLE_LIST 3
1919
#define INDEX_BUFFER_TYPE_TRIANGLE_STRIP 5
@@ -403,6 +403,7 @@ void AssImpExporter::newScene(){
403403
meshinfoHandles.clear();
404404
materialMap.clear();
405405
usedMaterials.clear();
406+
usedBitmaps.clear();
406407
// the obj exporter needs at least one material
407408
scene->mMaterials = (aiMaterial**)realloc(scene->mMaterials, (++scene->mNumMaterials) * sizeof(aiMaterial*));
408409
aiMaterial* aimat = new aiMaterial();

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set(FUSE ON)
1717
option(YTTRIUM_3D_VIEWER "Build the 3D viewer" ON)
1818
option(BUILD_CLI_VERSION "Build CLI" ON)
1919
option(SANITIZE_ADDRESS "use ASAN" OFF)
20-
20+
option(DOWNLOAD_PNGPP "Download libpng++ 2.10 from launchpad" OFF)
2121

2222

2323

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Dependencies are
4343
- glew (libglew-dev)
4444
- glm (libglm-dev)
4545
- libassimp-dev
46+
- libpng-dev
47+
- libpng++-dev
4648

4749
to compile, run
4850
```
@@ -64,13 +66,15 @@ mingw-w64-x86_64-glew
6466
mingw-w64-x86_64-glfw
6567
mingw-w64-x86_64-glm
6668
mingw-w64-x86_64-assimp
69+
mingw-w64-x86_64-libpng
70+
mingw-w64-x86_64-jsoncpp
6771
```
6872

6973
The build process is like it is on linux, except that oodle has to be specified manually, and pkg-config doesn't work as nicely for WinFSP
7074
```
7175
mkdir build
7276
cd build
73-
env PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/c/Program Files (x86)/WinFSP/lib" cmake -DOODLE_LIBRARY=<path/to/oodle.dll> ..
77+
env PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/c/Program Files (x86)/WinFSP/lib" cmake -DOODLE_LIBRARY=<path/to/oodle.dll> -DDOWNLOAD_PNGPP=ON ..
7478
make
7579
```
7680

0 commit comments

Comments
 (0)