Jo2003 / vlc_record

15 stars 6 forks source link

Need assistance to build the "moi dom" flavor from the project sources #5

Open poketix opened 8 years ago

poketix commented 8 years ago

I'm trying to build the "moi dom" flavor on the Windows platform using the gcc (MinGW) compiler. Neither Qt5 nor Qt4.8 succeeds - the numerous build errors are reported. Any assistance or brief guide would be greatly appreciated (English. Russian are both ok). Thanks in advance. Poketix.

Jo2003 commented 8 years ago

Use the the branch "rodnoe.tv", master will not work for you. You have to use Qt4.8.x. Qt5 isn't fully supported yet. I use Qt Creator. Open moi-dom.pro. Run qmake and rebuild should work. The correct version of MinGW for Qt4.8.x is MinGW 4.40.

poketix commented 8 years ago

Thanks a lot. I'll give it a try and report the progress. Edit: Tried to build using the gcc4.40 and Qt4.8.5 installed to the default locations. Before everything may I kindly suggest fixing the warning in the "libvlc_media_player.h"? Line 36 - instead of

# ifdef __cplusplus
extern "C" {
# else
#  include <stdbool.h>
# endif

it is better to use

# ifdef __cplusplus
extern "C" {
# endif

# ifndef __cplusplus
#  include <stdbool.h>
# endif

as otherwise there is a compiler warning about the not finding the "#endif". Now I'm still not succeeding to build. The following error is reported:

C:\Temp\vlc_record-rodnoe.tv>mingw32-make -s -j2 release

Project MESSAGE: Using standard api client ...Project MESSAGE: using XML parser ...gcc: program.rc: No such file or directory
gcc: warning: '-x c' after last input file has no effect
gcc: no input files
windres: preprocessing failed.
mingw32-make[1]: *** [release/program_res.o] Error 1
mingw32-make: *** [release] Error 2

C:\Temp\vlc_record-rodnoe.tv>which mingw32-make
/cygdrive/c/Qt/mingw/bin/mingw32-make

Any suggestion?

poketix commented 8 years ago

I managed to build the executable. The reason for the issue with the "program.rc" was interference from the cygwin installed on my PC. The make used wrong "echo" (not the build-in one of Windows but the one from cygwin that misinterprets the "#" chracter). Now I have the working executable that allows me watching the MOI-DOM programs. The only missing part is the program resources required by the "makensis". Those are completely missing for the moi_dom in the branch unlike kartina_tv and some others. For the time being I'll probably reuse the missing files from the existing installation. Should this work? Anyway thanks a lot for the support, I'm going deeper into the implementation now to check what can be done to improve the MOI-DOM experience.