dannyxyz22 / ehci

Automatically exported from code.google.com/p/ehci
0 stars 0 forks source link

how compile ehci dynamic library on Windows with visual studio? #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hello, i want to use ehci python bindings but i don't know how to compile 
it on windows, i use windows XP and i have visual studio 2005, i found it 
is difficult to set, because i knows little about makefile. please give 
some instruction to compile on windows, thank you.

Original issue reported on code.google.com by weihuan2...@gmail.com on 20 Oct 2008 at 1:35

GoogleCodeExporter commented 9 years ago
Hi weihuan, 
you are right, the makefile uses SWIG and it's currently only working in Linux.
One will need SWIG for windows in order to make it work
(http://www.swig.org/Doc1.3/Windows.html). It will take me a while to finish 
it, so,
in case anyone wants to implement that for windows and submit a patch, I'd be 
happy
to incorporate it to the project.
Thank you!

Original comment by danielba...@gmail.com on 20 Oct 2008 at 3:01

GoogleCodeExporter commented 9 years ago
I m also using VisualStudio, in order to compile, the following 3 files needs 
to be 
included to an empty win32 console project
ehci-0.4\lib\ehci.h
ehci-0.4\lib\ehci.cpp
ehci-0.4\samples\boxView3d.cpp (other samples also work, but this one is cool!)

also remeber to setup the OpenCV environment

#ifdef _DEBUG
    #pragma comment(lib,"cvd.lib")
    #pragma comment(lib,"cvauxd.lib")
    #pragma comment(lib,"cxcored.lib")
    #pragma comment(lib,"highguid.lib")
#else
    #pragma comment(lib,"cv.lib")
    #pragma comment(lib,"cvaux.lib")
    #pragma comment(lib,"cxcore.lib")
    #pragma comment(lib,"highgui.lib")
#endif

GoodLuck!

Original comment by vinj...@gmail.com on 3 Nov 2008 at 1:18

GoogleCodeExporter commented 9 years ago
Hi vinjn.z ,

thanks for sharing it with us.

I've linked that to http://code.google.com/p/ehci/wiki/CompilingOnWindows and 
added
as a featured page.

Thank you

Original comment by danielba...@gmail.com on 28 Feb 2009 at 12:11

GoogleCodeExporter commented 9 years ago
Hmmm.. but, still no info about how to compile to create the python bindings, 
which
the issue was about?

Original comment by tapetskr...@gmail.com on 3 Mar 2009 at 3:27

GoogleCodeExporter commented 9 years ago
How can I setup the OpenCV environment? Can you help to show me the steps to 
include:
#ifdef _DEBUG
    #pragma comment(lib,"cvd.lib")
    #pragma comment(lib,"cvauxd.lib")
    #pragma comment(lib,"cxcored.lib")
    #pragma comment(lib,"highguid.lib")
#else
    #pragma comment(lib,"cv.lib")
    #pragma comment(lib,"cvaux.lib")
    #pragma comment(lib,"cxcore.lib")
    #pragma comment(lib,"highgui.lib")
#endif

Which file should I add in this?

Original comment by chaitong...@gmail.com on 27 May 2009 at 9:57