Open JCash opened 2 years ago
Please explain me how to build rive-cpp under windows! Is it possible to do it with the cmake?
Hi @lvdpower !
I haven't tested it, but you should be able to generate cmake files with premake5 cmake
.
The problem I have with generating a set of build system files, is that the premake config script doesn't take the different settings into account (win32 + win64, static linkage).
@lvdpower This is how I did it:
premake5 vs2019
This generates the solution and project files, which you can then open in Visual Studio.
As @JCash mentioned, there was no "Release/x64" profile, so I created that (based on the Release/win32 profile).
To actually get it to compile you need to do two things: 1) Remove all the command line options because they are not compatible (Clear this field: Properties > C/C++ > Command line > Additional options) 2) Apply the fix in my PR here, which will hopefully be accepted (in some form)
Then you can compile.
@projectitis This means we can build it with cl.exe instead of clang? I really like to build it in windows!
So far I've only been able to configure a 32+64 bit library build using the visual studio solution. That is also generating only Win32, so you have to clone the config, create a x64 config. Lastly, you also have to change the dynamic linkage to static.
I think it would be beneficial if it would be possible to use the platform/arch with the build script, e.g.:
build.sh release Win32
/build.sh release Win64