performous / composer

Song editor for Performous and other singing games
Other
39 stars 23 forks source link

windows build #17

Closed nieknooijens closed 9 years ago

nieknooijens commented 10 years ago

I tried cross-compiling composer with mxe, but cmake keeps nagging about Qt5GUI glu32 library, which I can't find...

tapio commented 10 years ago

I've tried that too in the past and ran into problems (surprise!). For one, MXE compiles everything as static so there needs to be some extra magic with Qt to make its plugins work. I recently pushed something related to that, but IIRC, I still was unable to get it to recognize the Windows platform plugin.

I have also installed Qt Creator on a Windows machine and tried compiling natively. qaudiodecoder branch is nice in that you don't need any additional libs besides Qt. However, MinGW version of Qt does not currently have a decoder plugin available, so it's useless. On the other hand, Visual C++ version would be capable of decoding audio, but I was unable to fix weird errors I got when trying to compile.

Using native Windows MinGW Qt Creator with ffmpeg (i.e. master branch) might be the best bet at this time. I think I tried that first originally, but my version of ffmpeg did not compile with Composer. :/

nieknooijens commented 10 years ago

after some fiddeling with different versions of mingw (one from qt had dwarf-symbols one from mingw.org something else) and a huge DLL-HELL i managed to get something working

schermafdruk van 2014-03-10 14 35 54 schermafdruk van 2014-03-10 13 44 17 well that's more like it!

build can be downloaded here: http://ubuntuone.com/23A0BO1a6kjHkQrLrKV7ys

tapio commented 10 years ago

Can't start because of missing libwinpthread-1.dll.

Is your build capable of playback and especially analyzing music files? Because that is the hot question. Getting crippled Composer built and launched has not been a huge problem - making it able to decode audio for analyzing is.

nieknooijens commented 10 years ago

I added the winpthread dll, but there's another problem, it fails to initiate the qt winodws environment so you need to install that manually from http://qt-project.org/downloads :-1: :-1:
i used the online installer to install Qt 5.2.1 for Windows 32-bit (MinGW 4.8, OpenGL, 634 MB) in C:\Qt fortunately it does decode the audio perfectly!

link is still the same as the old one: http://ubuntuone.com/23A0BO1a6kjHkQrLrKV7ys

at least we're making progress!

nieknooijens commented 10 years ago

this one should work! http://ubuntuone.com/23A0BO1a6kjHkQrLrKV7ys it starts, and decodes an .ogg file (still have trouble with mp3, need to check with dependecychecker)

nieknooijens commented 10 years ago

new build run: https://www.dropbox.com/s/d4lygfvtdlb5zv6/performous-composer-build.zip this one works PERFECTLY!!! mp3, ogg everything works!! (I admit, I was kind of lazy so I bundled the complete Qt dll collection with it, but hey, it works!!) this one is not built with qt on windows like the previous one, but instead it's compiled with mxe, which is alot faster...

tapio commented 10 years ago

Tried it, but couldn't decode (i.e. show pitch waves of) either ogg nor mp3. Playback works. Composer output attached to the end (the errors at the bottom are for ogg and mp3 files respectively.).

If it works on your system (do pitch waves really appear, or do you only hear music?), we need to figure out how. Have you any third-party codec packs or similar stuff installed? Is it possible that something is missing from the zip even though it seems you've copied loads of stuff? Do the log messages differ for you?

log

nieknooijens commented 10 years ago

I have the same output And no, pitch waves do nog appear, mainly because audio-playback is done through streamcopy, but audio decoding is done through ons of Microsofts protocols which is only supported through msvc compiler. This means i have to recompile it again on Windows. 2014/07/09 20:26 "Tapio Vierros" notifications@github.com:

Tried it, but couldn't decode (i.e. show pitch waves of) either ogg nor mp3. Playback works. Composer output attached to the end (the errors at the bottom are for ogg and mp3 files respectively.).

If it works on your system (do pitch waves really appear, or do you only hear music?), we need to figure out how. Have you any third-party codec packs or similar stuff installed? Is it possible that something is missing from the zip even though it seems you've copied loads of stuff? Do the log messages differ for you?

[image: log] https://cloud.githubusercontent.com/assets/83229/3529043/aa25fb16-0795-11e4-9d1d-0985edd2446f.png

— Reply to this email directly or view it on GitHub https://github.com/performous/composer/issues/17#issuecomment-48514497.

nieknooijens commented 10 years ago

so Qaudiodecoder branch is the only one that does pitch wasves on linux, according to this site: http://qt-project.org/wiki/Qt_Multimedia_Backends Qtmultimedia audio decoding is only supported by Windows media foundation on windows. So I re-installed qt 5.3 for MSVC 2012 compiler in my virtual-machine and upgraded cmake to version 3 I was finally able to generate a visual-studio project, after resolving some errors concerning static doubles (seriously microsoft! those should be supported) I managed to get it building... in RELEASE! debug doesn't compile because MSVC can't " deduce" the tipes used in some templates, it spams alot of C27xx errors (all the same) and they all point to xutility (which is a microsoft header outside my project) actually running it is a pain too, because it can't find the qt libs (that's why I hate windows) after this DLL-hell http://qt-project.org/wiki/Deploy_an_Application_on_Windows I finally managed to run it, the program runs fine but doesn't play audio, even worse when opening an audio file it finds the media-foundation service (which is an improvement already) but crashes when decoding audio because it reads from an memmory address outside it's allowed boundaries :-1: WTF!! anyway if you want some fun with it yourself, here are the solution files for visual studio 2012 (with the 32-bit VS2012 Qt libs installed in C:\Qt with the Qt online installer) and the build: https://www.dropbox.com/s/zlgp0svyi8afmqd/composerMSVC-attempt.7z

nieknooijens commented 10 years ago

here' s a new build: https://www.dropbox.com/s/d4lygfvtdlb5zv6/performous-composer-build.zip?dl=0

nieknooijens commented 9 years ago

I had someone test a few builds on windows 8.1 and he had the following issues: my latest build: audio not playing composer 1.1: not starting. The problem is I'm very busy with my internship, I didn't even have "fall holidays" so I only have the weekends off. in those weekends I have no time either, because my sister moved into a new appartment and she decided I had to build all of those Ikea closets and next 2 weekends I'm on Japanese culture events with performous (I keep getting asked for events). Next holiday i'll be bug hunting again!

nieknooijens commented 9 years ago

this one should work: https://www.dropbox.com/s/654hz35cih2euk5/composer-build.zip?dl=0

nieknooijens commented 9 years ago

I had a few people testing it and everything seems to work, just a few minor annoyances which I just fixed, closing this issue.