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

Any help for building coviar_data_loader on windows? #47

Closed
JimLee1996 opened this issue Mar 5, 2019 · 6 comments
Closed

Any help for building coviar_data_loader on windows? #47

JimLee1996 opened this issue Mar 5, 2019 · 6 comments

Comments

@JimLee1996
Copy link

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
Copy link
Author

Done.

@AugustasMacys
Copy link

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

@JimLee1996
Copy link
Author

@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
Copy link

@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
Copy link

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

@JimLee1996
Copy link
Author

@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?

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