spotify / echoprint-codegen

Codegen for Echoprint
http://echoprint.me/codegen
Other
959 stars 291 forks source link

Windows compilation instructions updates #42

Open meetar opened 12 years ago

meetar commented 12 years ago

Following the Windows instructions here… https://github.com/echonest/echoprint-codegen/tree/master/windows

"Download zlib: http://zlib.net/zlib125.zip" - this file now 404s. The latest version is: http://zlib.net/zlib-1.2.7.tar.gz

I'm also getting an error when compiling codegen: 1>LINK : fatal error LNK1181: cannot open input file 'zlib.lib'

No file by that name is included in the latest zlib installation:

Additionally, there are now pre-compiled DLLs available here, this may be a simpler solution: http://www.winimage.com/zLibDll/index.html http://www.winimage.com/zLibDll/zlib125dll.zip

meetar commented 12 years ago

Even simpler: there's an exe here: http://static.echonest.com/ENMFP_codegen.zip

borisreitman commented 12 years ago

Is Echoprint-codegen the same thing as ENMFP-codegen ?

I would still want to get updated instructions on how to compile zlib.lib for use with Echoprint source code on windows.

ddesroches commented 12 years ago

ENMFP and Echoprint are different technologies, each of which uses a "codegen" application to generate fingerprint codes. See more details at http://notes.variogr.am/post/27796385927/the-audio-fingerprinting-at-the-echo-nest-faq.

In particular, you need to agree to the ENMFP terms of use here (http://developer.echonest.com/downloads/license) before downloading and using ENMFP.

~David

borisreitman commented 12 years ago

I am interested in Echoprint-codegen. However, I have trouble building it because zlib.lib no longer exists in the zlib package.

borisreitman commented 12 years ago

I have trouble with the Zlib dependency. The Zlib I can downloaded (even 1.2.5) builds a file called zlibwapi.lib instead of zlib.lib which your project expects. This new library is supposed to be backward compatible with zlib.lib, however ZLIB_WINAPI flag must be defined when compiling. I tried renaming zlibwapi.lib to zlib.lib, and adding #define ZLIB_WINAPI. Still got a few linker errors.

borisreitman commented 12 years ago

Ok, I succeeded building codegen.exe by following instructions in windows/README.md

jndietz commented 11 years ago

I'm having this same issue. I followed the instructions in windows/README.md and still have the issue.

mkanet commented 10 years ago

Is there a reason why nobody has posted the latest Echoprint-codegen Windows EXE and dlls pre-compiled binaries arent available here? I read somewhere that there are precompiled examples already available for people not ready to compile. This would be particularly useful for people who dont have immediate access to a development environment.

jndietz commented 10 years ago

I believe I read it was a licensing issue with ffmpeg, but I can't remember.

On Thursday, April 10, 2014, mkanet notifications@github.com wrote:

Is there a reason why nobody has posted the latest Echoprint-codegen Windows EXE and dlls pre-compiled binaries arent available in a downloadable zip file here? I read somewhere that there are precompiled examples already available for people not ready to compile. This would be particularly useful for people who dont have immediate access to a development environment.

— Reply to this email directly or view it on GitHubhttps://github.com/echonest/echoprint-codegen/issues/42#issuecomment-40074422 .

mkanet commented 10 years ago

Thanks for replying. I'm just trying to understand what state this project is currently at. I think there's much more to it than just a licensing issue with ffmpeg (based on all the errors I saw when compiling it using VS2013; even after successfully installing boost/zlib).

I find it very hard to believe if nobody has ever gotten the latest code to compile a working Windows executable. The main website http://echoprint.me/codegen makes it seems to suggest there's a fully working "stable" project we can use to build for Windows. I think it even says, there is a working example already we can download (for those of us who aren't ready to compile).

I would like to eventually make my own Windows application (based on a "already working" echoprint codegen example code). However, I can only do that if the package is compilable using the current version of Visual Studio.

I am hoping someone can post their working Windows binaries here.

jndietz commented 10 years ago

Someone posted a compiled binary here, but I'm not sure if they used the latest source code or not:

https://groups.google.com/forum/#!topic/echoprint/Re6cudkf28https://groups.google.com/forum/#!topic/echoprint/Re6cudkf288 8

https://groups.google.com/forum/#!topic/echoprint/Re6cudkf288I also

On Thursday, April 10, 2014, mkanet notifications@github.com wrote:

Thanks for replying. I'm just trying to understand what state this project is currently at. I think there's much more to it than just a licensing issue with ffmpeg (based on all the errors I saw when compiling it using VS2013; even after successfully installing boost/zlib).

I find it very hard to believe if nobody has ever gotten the latest code to compile a working Windows executable. The main website http://echoprint.me/codegen makes it seems to suggest there's a fully working "stable" project we can use to build for Windows. I think it even says, there is a working example already we can download (for those of us who aren't ready to compile).

I would like to eventually make my own Windows application (based on a "already working" echoprint codegen example code). However, I can only do that if the package is compilable using the current version of Visual Studio.

I am hoping someone can post their working Windows binaries here.

— Reply to this email directly or view it on GitHubhttps://github.com/echonest/echoprint-codegen/issues/42#issuecomment-40109330 .

jndietz commented 10 years ago

I also have compiled binaries with source code as of around July/August

  1. Let me know if you would like those. It took me a couple days to get it compiled, but I didn't encounter any serious errors compiling in VS2010 or VS2012.

On Thursday, April 10, 2014, mkanet notifications@github.com<javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Thanks for replying. I'm just trying to understand what state this project is currently at. I think there's much more to it than just a licensing issue with ffmpeg (based on all the errors I saw when compiling it using VS2013; even after successfully installing boost/zlib).

I find it very hard to believe if nobody has ever gotten the latest code to compile a working Windows executable. The main website http://echoprint.me/codegen makes it seems to suggest there's a fully working "stable" project we can use to build for Windows. I think it even says, there is a working example already we can download (for those of us who aren't ready to compile).

I would like to eventually make my own Windows application (based on a "already working" echoprint codegen example code). However, I can only do that if the package is compilable using the current version of Visual Studio.

I am hoping someone can post their working Windows binaries here.

— Reply to this email directly or view it on GitHubhttps://github.com/echonest/echoprint-codegen/issues/42#issuecomment-40109330 .

mkanet commented 10 years ago

Thanks so much for replying, yes, please post your latest exe (and any other dependencies it needs to actually work). The previous link you posted doesnt take me to a zip file (or any discussion of it).

I would love to get help to build this under VS2013. The only thing Ive done after loading the latest project into VS2013, was to install the latest Boost and Zlib; which is a piece of cake to do using VS2013's online installer. Unfortunately, I noticed that code references such as

#include <boost/numeric/ublas/matrix.hpp>

produce error messages like "error C1083: Cannot open include file: 'boost/numeric/ublas/matrix.hpp': No such file or directory". Even though I have installed the Boost C++ library (using the Visual Studio online component browser and installer). I think that's the preferred method to install new libraries now under VS2013 instead of manually downloading and extracting addons.

So, if you could please post a zip file with the binaries you mentioned ASAP, I'd really appreciate it!

jndietz commented 10 years ago

Here is a direct link to a RAR containing the zlib+taglib and a codegen.exe.

https://groups.google.com/group/echoprint/attach/95196a008c4e6917/codegen-and-libs.rar?part=4

That might be able to get you started. I will send my binaries in a few hours when I am home from my day gig.

On Thursday, April 10, 2014, mkanet notifications@github.com<javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Thanks so much for replying, yes, please post your latest exe (and any other dependencies it needs to actually work). The previous link you posted doesnt take me to a zip file (or any discussion of it).

I would love to get help to build this under VS2013. The only thing Ive done after loading the latest project into VS2013, was to install the latest Boost and Zlib; which is a piece of cake to do using VS2013's online installer. Unfortunately, I noticed that code references such as

include <boost/numeric/ublas/matrix.hpp>

produce error messages like "error C1083: Cannot open include file: 'boost/numeric/ublas/matrix.hpp': No such file or directory". Even though I have installed the Boost C++ library (using the Visual Studio online component browser and installer).

So, if you could please post a zip file with the binaries you mentioned ASAP, I'd really appreciate it!

— Reply to this email directly or view it on GitHubhttps://github.com/echonest/echoprint-codegen/issues/42#issuecomment-40113372 .

mkanet commented 10 years ago

Thanks looking forward to it! It looks like the one in that link is almost 4 years old. EDIT: I got this working! All I had to do was add ffmpeg in the same directory.

Maybe, after you get settled at home; and, upload the newer binary(s), you wouldn't mind helping me get the source code to compile under VS2013. I hope you dont mind, I just sent you an email; maybe we could discuss this via email?

Thanks a million!

StupdNPC commented 9 years ago

Don't know if this still matters after almost a year:

I got it compiled. I followed the instructions precisely as described in the readme-file, until the step, where you have to compile the codegen.exe. There I had to perform one little edit: In Visual Studio (2012 by the way), select the project explorrer and do a right click on "codegen". Select "Properties" --> "Linker" --> and then the first sub-selection (In German it is "Allgemein", probably named "General" or something in your UI).

In this menu, you have to change the path for additional library directories. For zlib, there is still the 1.2.5 configured. simply change "5" to an "8" (or probably later version). Then the library compiled without a flaw and I received an executable binary. Add the missing dlls to the codegen.exe-folder, and it works just as expected.

Hope this helps.