Open RamboWu opened 2 years ago
The console version is located at the console branch here: https://github.com/bupticybee/TexasSolver/tree/console
which contains the CmakeFile.txt that you want. Please use mingw64 (in windows) to compile it, do not use any of microsoft's compiler, which produce slower program.
Thx
Hi, I wanted to take the recommendation to use MinGW to build the console version. I've downloaded it from https://github.com/niXman/mingw-builds-binaries/releases/tag/12.2.0-rt_v10-rev0 but can't work out how to tell it how to build the project according to the CMake file, any chance of a few pointers / sample of a build.bat file ?
The build instructions for the console calls cmake from \CMake\bin after setting up the environment variables by calling the vcvars64.bat from within the Visual Studio installation. I've made a build.bat file from that and it works fine as-is, and produces the executables and install folder etc. - presumably using the Microsoft compiler.
What I can't work out is how to alter any of that to use the MinGW binaries to do the compilation, do I need to point cmake at MinGW in some way or make a custom version of vcvars64.bat ? - or ignore vcvars64.bat entirely and use something else ?
Or is cmake using its own compiler... sorry, this is all new to me !
Hi, I wanted to take the recommendation to use MinGW to build the console version. I've downloaded it from https://github.com/niXman/mingw-builds-binaries/releases/tag/12.2.0-rt_v10-rev0 but can't work out how to tell it how to build the project according to the CMake file, any chance of a few pointers / sample of a build.bat file ?
The build instructions for the console calls cmake from \CMake\bin after setting up the environment variables by calling the vcvars64.bat from within the Visual Studio installation. I've made a build.bat file from that and it works fine as-is, and produces the executables and install folder etc. - presumably using the Microsoft compiler.
What I can't work out is how to alter any of that to use the MinGW binaries to do the compilation, do I need to point cmake at MinGW in some way or make a custom version of vcvars64.bat ? - or ignore vcvars64.bat entirely and use something else ?
Or is cmake using its own compiler... sorry, this is all new to me !
Using Mingw64 is fine, not sure what compiler you downloaded, try download it from offical website. And about how to compile, you should google how to use cmake on windows.
Hi, thanks for responding, since the console documentation provides a sample script to build it, and by default that seems to end up using the Microsoft compiler, but elsewhere it suggests one would be unwise to build it with the Microsoft compiler, but to use MinGW instead; it would be great if there was an equivalent of the sample script/setup for the scenario you recommend building it with.
I imagine people hereabouts who do build it with MinGW have just such a batch file / bash script lying around and might post it in response. I'm trying to work through it myself of course, and will no doubt get there.
Cheers.
I didn't see any CmakeFile.txt in the project. How do I complie it ?