-
Notifications
You must be signed in to change notification settings - Fork 81
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
Build for Windows #45
Comments
The only really supported platform is Linux, that is what I use to develop and test the code. However I don't think that there is something terribly Linux specific in the C++ code of The tricky thing here is that it is using autotools as a build system, which is fine on systems where autotools (aka
|
Hallo Stefan, habe gesehen, du kommst aus Deutschland. Vielen Dank für die schnelle und umfangreiche Antwort. Dein Programm audiowmark konnte ich damit ganz ohne Probleme compilieren, installieren und Wenn ich einen anderen Compiler wie folgt angebe, sudo ./configure --host=x86_64-w64-mingw32 wird ein Package nicht gefunden, obwohl es installiert ist. Dann bekomme ich folgende Fehlermeldung: "checking for _Z28zita_resampler_major_versionv in -lzita-resampler... no" Hast du da eine Idee, wie man das lösen könnte. Besten Dank Gruß PS: |
For the issue tracker I think it is better to use English as a language, simply because others might want to read our discussion as well.
Actually I have two ideas here. The first is that you not only need zita-resampler installed, but you need a cross compiled version of zita-resampler installed, so that it can be used for the Windows build. The second idea is that this particular configure check did already cause some problems for others and has been therefore modified recently (e8b530d). This change is not in a released version however, so you'd have to build from git to try if that fixes your problem. When building from git you need autoconf-archive and gettext and run ./autogen.sh instead of configure. As for speed detection, it uses a searches a range of approximately +/- 20%. |
Hello Stefan, Thank you again for your support and this great program. It cost me a lot of nerves, but I did it. I ended up using Cygwin. libzita-resampler is not available for Cygwin. But now I have a working x32-bit and x64-bit version of Audiowmark for Windows and Linux. BR |
Glad to hear that you managed it! I guess you're really the first person that did it :-) Is there something that can be done to make it easier for the next person that wants to build it on windows? For instance a quick list of steps? And if the source changes are clean enough, it might be possible to include them into the repository, so that it gets easier to build on cygwin in the future? |
Hello Stefan, yes, I will write it down. In the meantime I also found another way to compile it. Video support now also works. The biggest problem was a very specific C++ method that doesn't exist under Windows. |
@Greaseball0815 Hello! It would be great if you could share the build for Windows... |
Hello Stefan. As announced, here is a step-by-step guide for compiling audiowmark for Windows x64. During my first attempts I had to make various changes to the source code in order to be able to compile the program. Audiowmark worked then, but had no video support. The current approach requires very few changes to the source code and everything now works exactly like it does in Linux, including video support. However, I had to translate the bash script for videowmark into C++, because there is no viable alternative for bash scripts on Windows, except with the help of additional software. The porting worked. Everything works as it should. I hope this guide will be helpful here and there. In any case, I would be very happy. BR Step-by-Step guide videowmark.cpp |
@Greaseball0815 Thank you very much for the instructions! Let me clarify, wouldn’t it be difficult for you to make a Portable version and post it on a file hosting service? |
…ier) See #45. Signed-off-by: Stefan Westerfeld <[email protected]>
Great, thank you! The question of how to build audiowmark on Windows really came up from different users in the past, so I hope this helps everyone who wants a Windows build. I added your guide and your videowmark C++ version to the docs/ subdirectory and put a link into the README.adoc.
Yes, it doesn't actually remove the watermark, it just prevents automatic detection. The watermark is still there, and should be detectable if you correct the tempo manually. We could do it automatically by implementing something similar than the speed detection algorithm we already have, just to scan for different tempos automatically. It just wasn't a high priority for me right now. There are also newer approaches to synchronization that claim to be less vulnerable to tempo changes, for instance one paper I saw is https://arxiv.org/pdf/2308.12770.pdf |
Btw, would it help if we added something like
to |
I just tested it in Cygwin environment. Yes, your preprocessor directive would work. So, why not?
Yes, the watermark is still there but undetectable by audiowmark. The watermark, that audiowmark creates, is very, very robust. It even survives recording from speaker to microphone ( through the air ). Just a great job. If you want me to test something or do a beta test for you, just let me know. BR |
See #45. Signed-off-by: Stefan Westerfeld <[email protected]>
Hello Stefan. I made an update for videowmark and the build guide.
videowmark-win.cc win-x64-build-guide.txt ( Updated: 07.03.2024 ) BR |
Hello Stefan. Holy moly. I checked the Step-By-Step guide around 1000 times, but I overlooked one thing. BR |
See #45. Signed-off-by: Stefan Westerfeld <[email protected]>
Ok, I updated the repository with the files you attached. |
Perfect. |
@Greaseball0815 yes would you upload your Windows binary somewhere and post a link? I'd like to experiment with it before I set up a full build environment. Thanks! |
Hello Stefan,
very nice project.
Is there a way to build it for windows?
BR
Andreas
The text was updated successfully, but these errors were encountered: