chaoyuaw / pytorch-coviar

Compressed Video Action Recognition
https://www.cs.utexas.edu/~cywu/projects/coviar/
GNU Lesser General Public License v2.1
502 stars 126 forks source link

Any help for building coviar_data_loader on windows? #47

Closed JimLee1996 closed 5 years ago

JimLee1996 commented 5 years ago

I've tried to build coviar using mingw64

D:\bin\MinGW64\bin\gcc.exe -shared -s build\temp.win-amd64-3.6\Release\coviar_data_loader.o build\temp.win-amd64-3.6\Release\coviar.cp36-win_amd64.def -LD:\bin\python\libs -LD:\bin\python\PCbuild\amd64 -lpython36 -lmsvcr140 -o build\lib.win-amd64-3.6\coviar.cp36-win_amd64.pyd -lavutil -lavcodec -lavformat -lswscale -L./ffmpeg/lib/
running install
running build
running build_ext
running install_lib
copying build\lib.win-amd64-3.6\coviar.cp36-win_amd64.pyd -> C:\Users\Jim\AppData\Roaming\Python\Python36\site-packages
running install_egg_info
Writing C:\Users\Jim\AppData\Roaming\Python\Python36\site-packages\coviar-0.1-py3.6.egg-info

Successfully built.

But when I import coviar in python, it fails.

$ ipython
Python 3.6.8 |Anaconda, Inc.| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.3.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import coviar
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-e416fb4448c7> in <module>
----> 1 import coviar

ImportError: DLL load failed: 找不到指定的模块。

Thanks for any ideas.

JimLee1996 commented 5 years ago

Done.

AugustasMacys commented 3 years ago

@JimLee1996 Can you share the steps in detail you did to compile this library please?

JimLee1996 commented 3 years ago

@AugustasMacys I've forked this repo, please see https://jimlee1996.coding.net/public/coviar/coviar/git/commits. And I also install ffmpeg with conda, so the c header and libs are intalled into python dir.

AugustasMacys commented 3 years ago

@JimLee1996 Thanks. In case anyone will need help with installing on Windows. I needed to update my cygwinccompiler.py https://stackoverflow.com/questions/52943590/cython-missing-msvcr140-dll as explained in answer

AugustasMacys commented 3 years ago

@JimLee1996 When you used data loader, did you have this problem? Process finished with exit code -1073741819 (0xC0000005)

JimLee1996 commented 3 years ago

@JimLee1996 When you used data loader, did you have this problem? Process finished with exit code -1073741819 (0xC0000005)

Nope. It's my first time to meet this error😅. Maybe, Is it relevant to this?