Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
balllei opened this issue Aug 16, 2022 · 5 comments

Comments

@balllei
Copy link

balllei commented Aug 16, 2022

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

@myd7349
Copy link
Contributor

myd7349 commented Aug 17, 2022

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

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

@chensong0821
Copy link

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
Copy link
Owner

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

@chensong0821
Copy link

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

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

@AronBushnell
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants