PyStand icon indicating copy to clipboard operation
PyStand copied to clipboard

CMake的时候,CMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage,如何解决啊

Open balllei opened this issue 3 years ago • 5 comments

请教各位大佬,一直都过不去,编译不了

balllei avatar Aug 16 '22 10:08 balllei

您好,能否提供一下你的编译环境及相关信息?

  • 操作系统
  • VS 版本
  • CMake 构建日志

myd7349 avatar Aug 17 '22 01:08 myd7349

mingw重新构建出来的pystand.exe,双击运行没反应

版本: win11 gcc version 8.1.0 (x86_64-win32-seh-rev0, Built by MinGW-W64 project

cmake信息: PS D:\cstemp\PyStand-master_csbuild> D:\green\cmake-3.25.1-windows-x86_64\bin\cmake.exe . -- Configuring done -- Generating done -- Build files have been written to: D:/cstemp/PyStand-master_csbuild PS D:\cstemp\PyStand-master_csbuild> mingw32-make.exe [ 33%] Building CXX object CMakeFiles/PyStand.dir/PyStand.cpp.obj [ 66%] Building RC object CMakeFiles/PyStand.dir/resource.rc.obj [100%] Linking CXX executable PyStand.exe [100%] Built target PyStand

chensong0821 avatar Dec 05 '22 05:12 chensong0821

你编译出来的到底是 32 位可执行还是 64 位?和 runtime 里面的 python dll 一致么?

skywind3000 avatar Dec 05 '22 05:12 skywind3000

你编译出来的到底是 32 位可执行还是 64 位?和 runtime 里面的 python dll 一致么?

谢谢兄弟,换32位的gcc可以了:gcc version 8.1.0 (i686-win32-sjlj-rev0, Built by MinGW-W64 project)

chensong0821 avatar Dec 05 '22 11:12 chensong0821

如果是用32位的gcc如何生成makefile啊?生成之后还是用mingw32-make 执行吗

AronBushnell avatar Mar 07 '24 11:03 AronBushnell