skywind3000 / PyStand

:rocket: Python Standalone Deploy Environment !!
MIT License
736 stars 81 forks source link

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

Open balllei opened 2 years ago

balllei commented 2 years ago

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

myd7349 commented 2 years ago

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

chensong0821 commented 1 year ago

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

skywind3000 commented 1 year ago

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

chensong0821 commented 1 year ago

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

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

AronBushnell commented 7 months ago

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