diff --git a/.gitignore b/.gitignore index 8bcbd13..57f9c5f 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ colmap/share colmap/plugins colmap/COLMAP.bat colmap/RUN_TESTS.bat -/lichtfeld-studio/LichtFeld-Studio* +/lichtfeld-studio/LichtFeld-Studio-Portable/ diff --git a/lichtfeld-studio/LichtFeld-Studio b/lichtfeld-studio/LichtFeld-Studio index 4ad2d1a..584f154 160000 --- a/lichtfeld-studio/LichtFeld-Studio +++ b/lichtfeld-studio/LichtFeld-Studio @@ -1 +1 @@ -Subproject commit 4ad2d1a4c554f7a779e98e7a7d81b29b18813dbe +Subproject commit 584f154bfd8ec5ac4a148f678f0b2a22cf45a272 diff --git a/lichtfeld-studio/LichtFeld-Studio.exe.lnk b/lichtfeld-studio/LichtFeld-Studio.exe.lnk new file mode 100644 index 0000000..8194700 Binary files /dev/null and b/lichtfeld-studio/LichtFeld-Studio.exe.lnk differ diff --git a/lichtfeld-studio/build-instructions.txt b/lichtfeld-studio/build-instructions.txt new file mode 100644 index 0000000..d2b4a4c --- /dev/null +++ b/lichtfeld-studio/build-instructions.txt @@ -0,0 +1,49 @@ +1. Go to AppData directory + +``` +cd %APPDATA% +``` + +2. Clone and set up vcpkg + +``` +git clone https://github.com/microsoft/vcpkg.git +cd vcpkg && .\bootstrap-vcpkg.bat -disableMetrics && cd .. +``` + +3. Run the following in the LichtFeld-Studio directory + NOTE: This creates a portable build for devices with CUDA Compute Capability 8.6 + +``` +cmake -B build -S . -G Ninja ^ + -DCMAKE_BUILD_TYPE=Release ^ + -DBUILD_PORTABLE=ON ^ + -DBUILD_PYTHON_STUBS=OFF ^ + -DCMAKE_CUDA_ARCHITECTURES=86 ^ + -DBUILD_CUDA_MIN_SM=86 ^ + -DCMAKE_TOOLCHAIN_FILE="%APPDATA%\vcpkg\scripts\buildsystems\vcpkg.cmake" +``` + +4. Run the following. Adjust the number of threads accordingly + +``` +cmake --build build -j4 +``` + +5. Run the following to create the portable build. + +``` +cmake --install build --prefix ../LichtFeld-Studio-Portable +``` + +| NOTE: The full directory structure of the portable install should look like so: + +``` +. +├── bin/ +├── DLLs/ +├── extensions/ +├── Lib/ +├── share/ +└── LICENSE (35 KB) +``` \ No newline at end of file