ccv icon indicating copy to clipboard operation
ccv copied to clipboard

Unstable win32

Open Corion opened this issue 13 years ago • 10 comments

These are my changes to make siftmatch.exe build on Windows mingw gcc 4.4.1.

These changes are ugly, especially the make.bat things I did. I plan to add a proper Makefile once I get the build somewhat stabilized.

Corion avatar Feb 12 '12 11:02 Corion

Hi, thanks for the pull request, I am more interested in the script that compiles with windows, can you elaborate on that? I have tried to fix the memory access error in sift, please checkout the my new commit (b3591e0062fd89514bae4bbe477a775c3d7bfb3f) and see if that fix the problem, thanks!

liuliu avatar Feb 13 '12 16:02 liuliu

There are now new commits adding "makefile.mk" for bin/ and lib/ , which do build the library and programs using dmake.exe on Windows. There were very little changes needed, mostly in the files included.he two relevant patches are e4dce69 and 0472e6f I think.

Corion avatar Feb 13 '12 17:02 Corion

Sorry that recently I am pushing some aggressive changes in APIs and code structure in general that potentially could break this pull request. After I finished dpm and a few touches in bbf, there will finally be a tagged 0.1 version, could you modify this pull request by then? Thanks!

liuliu avatar Apr 04 '12 23:04 liuliu

Hello,

Am 05.04.2012 01:39, schrieb Liu Liu:

Sorry that recently I am pushing some aggressive changes in APIs and code structure in general that potentially could break this pull request. After I finished dpm and a few touches in bbf, there will finally be a tagged 0.1 version, could you modify this pull request by then? Thanks!

I've rebased my branch request onto your changes. I'll withdraw this pull request and send a fresh one for the rebased branch.

-max

Corion avatar Apr 07 '12 17:04 Corion

OK - closing the pull request didn't work out, but I was able to update the commit range. This branch should (currently) merge without problems into your unstable branch. If you don't want to merge it now, I'll rebase again later - no need to hurry.

Corion avatar Apr 07 '12 17:04 Corion

Hi, since 0.1 is out, if you are still interested in this, could you patch stable/r0.1-rc1 branch with Win32 compilation support? That will be a great help!

liuliu avatar Jul 02 '12 05:07 liuliu

Hello,

Hi, since 0.1 is out, if you are still interested in this, could you patch stable/r0.1-rc1 branch with Win32 compilation support? That will be a great help!

Yes, I'm still interested! I'm just really busy currently, so I don't know if I can submit a patch-branch before end of this week. The main meat of my change is to guard against #include <malloca.h> on Win32 in lib/ccv.h:

+#ifndef _MSC_VER #include <unistd.h> #include <stdint.h> +#endif ... +#ifdef _WIN32 +#include <malloc.h> +#else #include <alloca.h> +#endif

But I need some time to do an actual diff between my git-tree for the Perl bindings at https://github.com/Corion/image-ccv/ (in the directory ccv-lib) and your source.

-max

Corion avatar Jul 03 '12 16:07 Corion

在windows下运行,训练出来的分类器,读取有问题。 需要转换。

mhm0902 avatar Jan 18 '13 07:01 mhm0902

Any chance on getting these merged with a tutorial on how to compile on Win32? Ideally with Visual Studio (C++) 2012.

Thank you!

bompus avatar Apr 19 '13 17:04 bompus

I just saw your request - sorry for not reacting sooner :-/

I don't use Visual Studio, so I can't be of help here, sorry. I only use the MinGW gcc compiler, and that only because it's included with Strawberry Perl.

Corion avatar Sep 07 '13 17:09 Corion