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

缺少dll #27

Closed
JohnnyLeung996 opened this issue Aug 23, 2021 · 15 comments
Closed

缺少dll #27

JohnnyLeung996 opened this issue Aug 23, 2021 · 15 comments

Comments

@JohnnyLeung996
Copy link

windows找不到libgcc_s_seh-1.dll, libwinpthread-1.dll, libgomo-1.dll, libstdc++-6.dll

需要装什么库?

@bupticybee
Copy link
Owner

这个是我在编译的时候忘记链接这些库了,我晚上寻求一下解决方案

@JohnnyLeung996
Copy link
Author

好的,还有在windows上编译不了

CMake Error at CMakeLists.txt:2 (project):
The CMAKE_C_COMPILER:

/usr/local/Cellar/gcc@7/7.5.0_3/bin/gcc-7

is not a full path to an existing compiler tool.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:2 (project):
The CMAKE_CXX_COMPILER:

/usr/local/Cellar/gcc@7/7.5.0_3/bin/g++-7

is not a full path to an existing compiler tool.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

@JohnnyLeung996
Copy link
Author

应该也是缺少库吧

@bupticybee
Copy link
Owner

I see, 这个需要手动在clion中把编译器选成自己下载的mingw

@bupticybee
Copy link
Owner

我默认上传的Clion 配置文件是mac用的,/usr/local/Cellar/gcc@7/7.5.0_3/bin/g++-7 这个也很明显是mac的路径,win的路径不长这样,你可能要手动改下

@JohnnyLeung996
Copy link
Author

我找到了一个类似的路径H:\Tools\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0
但是里面没有bin文件夹,不知道g++-7是什么

1

@bupticybee
Copy link
Owner

我找到了一个类似的路径H:\Tools\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0
但是里面没有bin文件夹,不知道g++-7是什么

1

就只需要在clion中把compiler设置成mingw就行,其他的都不需要改,我自然对你的本地文件结构也不了解

@bupticybee
Copy link
Owner

这个项目已经有两三个人在win上编译成功了,所以肯定是可以编译的

@JohnnyLeung996
Copy link
Author

我用的就是mingw,把CMake options删掉就能编译了,但是编译出来的也是缺少libgcc_s_seh-1.dll, libwinpthread-1.dll, libgomo-1.dll, libstdc++-6.dll

1
2
3
4

@bupticybee
Copy link
Owner

我用的就是mingw,把CMake options删掉就能编译了,但是编译出来的也是缺少libgcc_s_seh-1.dll, libwinpthread-1.dll, libgomo-1.dll, libstdc++-6.dll

1
2
3
4

你直接使用IDE里边的run option可以用么?这个应该是肯定可以用的才对呀,好多其他人都是这么跑起来的

@bupticybee
Copy link
Owner

你直接用IDE里边的zhe这个

截屏2021-08-23 下午9 06 39

跑得起来么?

@bupticybee
Copy link
Owner

windows找不到libgcc_s_seh-1.dll, libwinpthread-1.dll, libgomo-1.dll, libstdc++-6.dll

需要装什么库?

我已经更新了0.1.0版本的windows包,现在应该不会有dll问题了,你尝试一下?

@bupticybee
Copy link
Owner

Closing because the problem is solved by 0.1.0 release

@JohnnyLeung996
Copy link
Author

非常抱歉,一直没看消息,都可以了。

@bupticybee
Copy link
Owner

非常抱歉,一直没看消息,都可以了。

赞~感谢使用,欢迎提意见和建议

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

2 participants