chaoyu1999 / FPSAutomaticAiming

基于yolov5的FPS游戏AI。
Apache License 2.0
470 stars 134 forks source link

加载不到dll #2

Open KOLLSOFT opened 2 years ago

KOLLSOFT commented 2 years ago

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 commented 2 years ago

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

chaoyu1999 commented 2 years ago

https://github.com/chaoyu1999/FPSAutomaticAiming/blob/main/lib/dll%E5%B0%81%E8%A3%85%E9%A1%B9%E7%9B%AE.zip 封装dll的项目在这

tuziqq commented 2 years ago

怎么重写编译呀