Git Product home page Git Product logo

Comments (15)

u8sand avatar u8sand commented on May 29, 2024

This is difficult; but really; if we can compile mpv for windows we can compile Baka MPlayer for windows. I'll probably get in touch with mpv devs for assistance in compiling mpv for windows on linux.

from baka-mplayer.

u8sand avatar u8sand commented on May 29, 2024

Note for those trying to get this compiled on Windows: I have not succeeded yet myself but I will note:

if using our buildscripts in /sbin after installing mxe toolchain--note that their Qt5 Cmake files are broken; see mxe/mxe#466 quite a few of them have to be fixed in Qt5Core, Qt5Gui, Qt5Network, Qt5Svg; perhaps i'll in the next day create a sed command to do it. essentially you'd have to replace %s.lib with lib%s.a in all of Qt's cmake files located in mxe.x86_64/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/. Like @starks who came on IRC with the same issue I had when I was compiling.

from baka-mplayer.

u8sand avatar u8sand commented on May 29, 2024

I couldn't seem to get Qt to pull it's library dependencies (causing large amounts of linking errors) so I cheated by pasting all of it's libraries dependencies into my LIBRARIES array; it compiled successfully but I was unable to run it in wine. I'm going to try it on a windows system just in case...

from baka-mplayer.

TimothyGu avatar TimothyGu commented on May 29, 2024

Hi, just so you know as a part of the MXE team we are currently investigating this issue, and trying to come up with a best solution. Because CMake support is relatively new in Qt, we might have to disable the installation of Qt CMake files to avoid tricking users not knowing this situation into using them. If you are interested in fixing the CMake scripts, by all means please do.

from baka-mplayer.

u8sand avatar u8sand commented on May 29, 2024

My futile attempts are frustrating.

I'm convinced that this SHOULD be possible with MXE. Perhaps I am not yet experienced enough in CMake; I can get everything compiled except for Baka-MPlayer--due to library dependencies not getting pulled.

If anyone has any ideas I'm open to them.

from baka-mplayer.

TimothyGu avatar TimothyGu commented on May 29, 2024

@u8sand We have fixed the CMake issue with Qt some time ago. The major problem with Baka-MPlayer is that it's using CMake 😉. CMake doesn't have sane static dependency management like pkg-config does.

from baka-mplayer.

u8sand avatar u8sand commented on May 29, 2024

@TimothyGu Thanks for the tip! I didn't realize that cmake had an issue with static dependency management--I'll see what I can use instead of cmake. If you have any alternatives to CMake I'm open for suggestions.

from baka-mplayer.

TimothyGu avatar TimothyGu commented on May 29, 2024

@u8sand,

qmake might be the best suited for your purpose. Its syntax is pretty pragmatic, and it fits the following rationale:

  1. does static builds nicely,
  2. does Qt 5 moc etc. files nicely (qmake is made by Qt),
  3. finds regular libraries like libmpv through pkg-config (I haven't tried but should work: http://qt-project.org/doc/qt-5/qmake-project-files.html#configuration-features).

Other build systems:

By the way, the baka-mplayer.exe I linked with qt manually crashed on start in Windows, and in Wine it shows something to the degree of "platform plugin windows not found" and crashed the same way.

from baka-mplayer.

u8sand avatar u8sand commented on May 29, 2024

@TimothyGu thanks for that; I'll keep those in mind for my other projects too :)

For this project QMake it is since the .pro file is there anyway and I remember MXE has a nice way of doing the builds with qmake.

Hopefully I can have better luck with creating a baka-mplayer.exe; but thanks for the insite.

from baka-mplayer.

u8sand avatar u8sand commented on May 29, 2024

Update:
I've just succeeded in compiling for windows with mpv.dll (the shared object) and qt static libraries. I'll most likely be working with the mpv team to complete full static compilation.

The executable ran fine in both wine and a vm of windows 7, will also test in a real version but I'm pretty convinced.

from baka-mplayer.

my-life-is-confetti-zz avatar my-life-is-confetti-zz commented on May 29, 2024

Woo Hoo!

Sent from my T-Mobile 4G LTE Device

-------- Original message --------
From: Daniel Clarke [email protected]
Date:12/11/2014 11:24 AM (GMT-08:00)
To: u8sand/Baka-MPlayer [email protected]
Cc:
Subject: Re: [Baka-MPlayer] Static Compilation for Windows (#7)
Update: I've just succeeded in compiling for windows with mpv.dll (the shared object) and qt static libraries. I'll most likely be working with the mpv team to complete full static compilation.


Reply to this email directly or view it on GitHub.

from baka-mplayer.

TimothyGu avatar TimothyGu commented on May 29, 2024

@u8sand Nice! Did you end up using qmake or did you stick to CMake?

from baka-mplayer.

u8sand avatar u8sand commented on May 29, 2024

@TimothyGu qmake did the trick, thanks a lot for the help.

from baka-mplayer.

my-life-is-confetti-zz avatar my-life-is-confetti-zz commented on May 29, 2024

Funny Joshua,

I would love to try a test build. I'll send this message to your "email
address" also.

On Thu, Dec 11, 2014 at 12:19 PM, Joshua Park [email protected]
wrote:

@ConundrumAdInfinitum https://github.com/ConundrumAdInfinitum Hey want
to try a test build [image: 😸] ? If you can find my email, I'll
send you a test build ;)


Reply to this email directly or view it on GitHub
#7 (comment).

from baka-mplayer.

my-life-is-confetti-zz avatar my-life-is-confetti-zz commented on May 29, 2024

Hi Joshua I would love to try a test build and i think i sent the email to
Daniel again. What am i missing???

On Thu, Dec 11, 2014 at 12:19 PM, Joshua Park [email protected]
wrote:

@ConundrumAdInfinitum https://github.com/ConundrumAdInfinitum Hey want
to try a test build [image: 😸] ? If you can find my email, I'll
send you a test build ;)


Reply to this email directly or view it on GitHub
#7 (comment).

from baka-mplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.