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 #2

Open
KOLLSOFT opened this issue Sep 12, 2021 · 3 comments
Open

加载不到dll #2

KOLLSOFT opened this issue Sep 12, 2021 · 3 comments

Comments

@KOLLSOFT
Copy link

err msg:

Fusing layers...
Traceback (most recent call last):
File "Main.py", line 12, in
dll = cdll.LoadLibrary(r'lib/Dll.dll') # 加载用C语言封装过的“易键鼠”dll
File "C:\Users\Test\anaconda3\envs\yolo\lib\ctypes_init_.py", line 451, in LoadLibrary
return self.dlltype(name)
File "C:\Users\Test\anaconda3\envs\yolo\lib\ctypes_init
.py", line 373, in init
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'D:\Work\opensource\FPSAutomaticAiming\lib\Dll.dll' (or one of its dependencies). Try using the full path with constructor syntax.


是需要安装其他的库吗?

@chaoyu1999
Copy link
Owner

建议自己将dll重新封装编译一遍,因为每台电脑的环境都不太一样,不保证每个电脑都能用我封装的dll

@chaoyu1999
Copy link
Owner

chaoyu1999 commented Sep 13, 2021

@tuziqq
Copy link

tuziqq commented May 1, 2022

怎么重写编译呀

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