-
-
Notifications
You must be signed in to change notification settings - Fork 739
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
安装imgui v1.90.4时,出现“LINK : fatal error LNK1561: 必须定义入口点”错误,安装失败 #4859
Comments
Title: When installing imgui v1.90.4, the error "LINK: fatal error LNK1561: The entry point must be defined" appears and the installation fails. |
再试试, |
Try again, |
编译时出现了以上的错误 |
去掉 set_toolchains("clang-cl") 如果用了包,windows 平台是跟 msvc 强绑定的,不支持切其他工具链 |
但我以前用clang-cl是可行的啊,就是说现在windows用imgui只能支持msvc了? |
刚去掉clang-cl编译了,安装时没任何问题,能正常安装 |
clang-cl 对于 win 下的包从没特地支持过,但是如果有些包是 xmake 维护的,目前是能编译过得,而 cmake/meson 的包,是否能过,都是未定义行为。。看人品,这边没有专门做过适配和维护 |
我就是用xrepo来安装的imgui包啊,以前是可行的,现在却编译不过了,看来windows下开发还是用msvc才最保守是吗? |
Remove set_toolchains("clang-cl") If you use packages, the Windows platform is strongly bound to msvc and does not support switching to other tool chains. |
But it was feasible for me to use clang-cl in the past, but now Windows can only support msvc using imgui? |
I just removed clang-cl and compiled it. There is no problem during installation and it can be installed normally. |
clang-cl has never specifically supported packages under win, but if some packages are maintained by xmake, they can currently be compiled. However, whether cmake/meson packages can be compiled is undefined behavior. . Judging from the character, there is no special adaptation and maintenance done here. |
I used xrepo to install the imgui package. It was possible before, but now it cannot be compiled. It seems that msvc is the most conservative way to develop under windows, right? |
刚说了,对win包切 clang-cl从没支持过,是否能过,全凭你运气。。以前是否可以,都不代表现在一定可以。。
只要不用包, 工具链随你切。。windows 下包强绑定 msvc ,仅仅只是这边人力,资源不够,没精力维护这么多 case |
As I said before, clang-cl has never supported win packaging. Whether you can pass it depends on your luck. . Whether it was possible before does not necessarily mean it is possible now. .
As long as you don't need to package it, the tool chain can be cut as you like. . The package under windows is strongly bound to msvc. It only requires manpower here. The resources are not enough and there is no energy to maintain so many cases. |
好吧,那我自己不用包搞搞imgui试试吧,感谢了 |
可以把包描述拷贝下来,针对自己工具链定制和调试。如果解决了问题,也可以反馈回社区 |
尽管对 clang-cl 包没特殊支持过,不过这个 imgui 包是 xmake.lua 维护的,之前是能够跑过。现在不行,是由于解决#4596 (comment) 这个 issue ,做的一些改动,给 break 了。。 |
Okay, then I will try imgui without using the package myself. Thanks. |
You can copy the package description and customize and debug it for your own tool chain. If the problem is solved, you can also feedback it to the community |
Although there is no special support for the clang-cl package, this imgui package is maintained by xmake.lua and could be run before. It doesn't work now, because some changes were made to solve the issue #4596 (comment), which broke the issue. . |
主要是我本身没研究过c++的构建和包之类的东西呢,就单纯一直以来是用VS和xmake+vscode,或UE c++等这些来傻瓜式的使用c++而已,一下说让我来针对工具链定制和调试包描述这个我是真不知道要咋搞 |
The main reason is that I have never studied the construction and packaging of C++. I have always used VS, xmake+vscode, or UE c++ to use C++ in a fool-like manner. Let me talk about the tools. Chain customization and debugging package description I really don’t know what to do |
只是建议
你用 msvc/clang 编译都可以使用 clangd,intellisense 和编译器基本是无关的 |
Just a suggestion
You can use clangd when compiling with msvc/clang. Intellisense has basically nothing to do with the compiler. |
这个 break 的问题我修了,顺带让 cmake 包支持了 clang-cl ,但目前xmake-repo没有相关ci支撑和人力维护,哪些包都能过,全靠人品 |
I fixed this break problem, and incidentally made the cmake package support clang-cl. However, currently xmake-repo does not have relevant ci support and human maintenance. It can pass any package, it all depends on your character. |
Xmake 版本
2.8.8+HEAD.d8e248255
操作系统版本和架构
Windows10 Version 22H2
描述问题
更新了clang版本到18.1.2,且将xmake和VS更新到最新版本后,编译项目时自动更新包,在安装imgui v1.90.4 [debug:y, sdl2_no_renderer:y, runtimes:"MDd", toolchains:"clang-cl", vulkan:y]时,出现“LINK : fatal error LNK1561: 必须定义入口点”错误,安装失败
期待的结果
可以按我对imgui的配置正常安装
工程配置
附加信息和错误日志
The text was updated successfully, but these errors were encountered: