Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use VCVars? #58

Open
fluddsskark opened this issue Oct 21, 2023 · 3 comments
Open

How do I use VCVars? #58

fluddsskark opened this issue Oct 21, 2023 · 3 comments

Comments

@fluddsskark
Copy link

I know this is somewhat off-topic but I don't see a lot of documentation of is besides from bruxisma's own documentation, and I tried compiling 3DMM but with no avail. I use VS2022.

@willbr
Copy link

willbr commented Nov 20, 2023

What have you tried and what error message do you get?

Once you have VCVars installed, the commands from the readme should just work.

https://github.com/foone/3DMMForever#build-instructions

$ pushvc (invoke-vcvars -TargetArch x86 -HostArch AMD64)
$ cmake --preset x86:msvc:debug
$ cmake --build build

@pinaoplyaer
Copy link

"CMake Error: Could not read presets from C:/:
File not found: C://CMakePresets.json" i get this error when i try to build it

@willbr
Copy link

willbr commented Apr 20, 2024

You need to navigate to the 3DMMForever folder first.

I get the same error when I'm at the root of the C drive.

C:\
C:\
> cmake --preset x86:msvc:debug
CMake Error: Could not read presets from C:/:
File not found: C://CMakePresets.json

However, if I change my working directory to 3DMMForever, it works.

C:\
> cd "C:\Users\wjbr\src\3DMMForever"

C:\Users\wjbr\src\3DMMForever
~\src\3DMMForever
> cmake --preset x86:msvc:debug
Preset CMake variables:

  CMAKE_BUILD_TYPE="Debug"
  CMAKE_CXX_COMPILER="cl"
  CMAKE_INSTALL_PREFIX:PATH="C:/Users/wjbr/src/3DMMForever/dist"

-- The CXX compiler identification is MSVC 19.39.33523.0
-- The C compiler identification is MSVC 19.39.33523.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found AudioMan: C:/Users/wjbr/src/3DMMForever/kauai/elib/wins/audios.lib
-- Found BRender: C:/Users/wjbr/src/3DMMForever/elib/wind/brfmmxr.lib
-- Found ClangTidy: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/Llvm/x64/bin/clang-tidy.exe (found version "17.0.3")
-- Could NOT find CCache (missing: CCache_EXECUTABLE)
-- Configuring done (1.9s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/wjbr/src/3DMMForever/build

C:\Users\wjbr\src\3DMMForever
~\src\3DMMForever
>



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants