I saw the solution for the error of rdkafka-sys v4.5.0+1.9.2
](Error: failed to run custom build command for `rdkafka-sys v4.5.0+1.9.2`)
I changed the cargo.toml to the solution as well, but it says the CMake eror which cannot connect with my Visual Studio C complier, is it any configuration needs to deal with this error?
Whenever CMake outputs that "is not able to compile a simple test program" error, there's usually a log file in the build directory that details exactly what it was trying to build when it failed, which may provide some hint as to what's wrong.
It's been a while since I debugged CMake build errors like this so I don't remember exactly what these log files are called, but check the build directory for any files called CMake(..something..).log
and see if it states what it was trying to do when it failed.
Is it CMakeLists.txt
? Where can I find this? is it any single project file?
No, the files you're looking for is CMakeOutput.log
and CMakeError.log
. If I recall correctly, the one you're interested in to track down these sort of issues is CMakeError.log
.
It will tell you exactly what command it was running that caused the error, and the exact error as well.
I don't actually know how the CMake builder crate works, but I assume it creates a build directory for the CMake projects somewhere in the cargo target
directory, and that's where I suspect you'll find those log files.