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

在win10上测试还是不成功 #2

Open
z954134 opened this issue Feb 23, 2024 · 2 comments
Open

在win10上测试还是不成功 #2

z954134 opened this issue Feb 23, 2024 · 2 comments

Comments

@z954134
Copy link

z954134 commented Feb 23, 2024

实验过程中出现 fatal error LNK1181: cannot open input file 'gdal.lib'这个错误,好奇怪啊

@hecktlaspha
Copy link

hecktlaspha commented Aug 18, 2024

我有两台本子, win10的正常跑起来了, 但是win11的挂掉了, 非常奇怪, 报错也是链接器找不到gdal.lib.
但是环境变量是正常的

晚上下班回家又试了一下, 现在可以正常跑了, 说一下解决方法
pkgconfig用的那个pc文件要改一下: Libs: -L${libdir} -l${name}改成Libs: -L${libdir} -l${name}_i
这样pkgconfig才能找到gdal_i.lib.

调用cpp的包真是坐牢一般的体验, cpp的工具用着真难受.

@zwishing
Copy link

我发现了一个问题,就是如果Windows安装的是MSVC 工具链版本的rust就可以正常运行,但是安装的是GNU 工具链版本的就会报这个错误

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

3 participants