Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

MPV fails to build #33

Closed
breed808 opened this issue Jan 6, 2014 · 8 comments
Closed

MPV fails to build #33

breed808 opened this issue Jan 6, 2014 · 8 comments

Comments

@breed808
Copy link
Contributor

breed808 commented Jan 6, 2014

I'm unable to build CMPlayer from git on my Fedora and Arch machines, as MPV is failing to build.

The error in question is:

[198/198] linking -> build/mpv
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/crt1.o: In function _start': (.text+0x20): undefined reference tomain'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/breed808/rpmbuild/BUILD/cmplayer-git/src/mpv/build'
Build failed
-> task in 'mpv' failed (exit status 1):

Full output is here: http://pastebin.com/6VHMAJi7

@bylee20
Copy link
Owner

bylee20 commented Jan 6, 2014

Does the failure of building MPV block the process of building package?
In fact, the failure is sort of intended one.
CMPlayer only needs object files so error in linking of mpv is normal.

@breed808
Copy link
Contributor Author

breed808 commented Jan 6, 2014

It would seem it is blocking the successful build of the package.

After running

make QMAKE=qmake-qt5 PREFIX=/usr LIBQUVI_SUFFIX=-0.9 cmplayer

I get the following output: http://pastebin.com/p71cWQfq

@bylee20
Copy link
Owner

bylee20 commented Jan 6, 2014

Those messages are irrelevant with previous error in linking mpv. It seems that old symbols have been included. Please remove all old build files and try clean build.

@breed808
Copy link
Contributor Author

breed808 commented Jan 6, 2014

Thank you for the help. I removed the old build files and those errors have stopped.

Unfortunately, I'm now getting

../mpv/stream/stream_dvd.h:22:20: fatal error: config.h: No such file or directory

when building, even though MPV generated config.h in its build/ directory.

@bylee20
Copy link
Owner

bylee20 commented Jan 6, 2014

It is not understandable. What about making new clone and trying it?

@breed808
Copy link
Contributor Author

breed808 commented Jan 6, 2014

Still getting the error in a fresh clone.

In file included from playengine_p.hpp:29:0,
                 from playengine.cpp:2:
../mpv/stream/stream_dvd.h:22:20: fatal error: config.h: No such file or directory
 #include "config.h"
                    ^
compilation terminated.
make[2]: *** [release/playengine.o] Error 1
make[2]: Leaving directory `/home/breed808/Build/Current/cmplayer/src/cmplayer'
make[1]: *** [release] Error 2
make[1]: Leaving directory `/home/breed808/Build/Current/cmplayer/src/cmplayer'
make: *** [cmplayer] Error 2

Full output of make here: http://pastebin.com/6CXRby3r

@bylee20
Copy link
Owner

bylee20 commented Jan 6, 2014

Now I can see what's the problem. Please try again with updated sources.

@breed808
Copy link
Contributor Author

breed808 commented Jan 6, 2014

CMPlayer is now building successfully. Thank you!

@breed808 breed808 closed this as completed Jan 6, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants