Closed jleroy closed 8 years ago
Maybe this is related to the change in how web-client is bundled in the last version ?
Seems like a weird prefix then.
Here is how PMP tries to find the web-client in the filesystem:
QStringList possibleResourceDirs = {
appResourceDir,
appResourceDir + "../Resources/",
prefixDir + "/share/plexmediaplayer/",
prefixDir + "/plexmediaplayer/"
};
appResourceDir
in this case is the path of the binary itself. prefixDir is what's set with CMAKE_INSTALL_PREFIX
where is your web-client-2.6.9-6ec8fed
directory located?
I do not have any web-client-2.6.9-6ec8fed
directory.
Is it supposed to be created at build time or during PMP first start?
At build. Do you run ninja/make install?
Ok, I see the problem.
I don't run ninja-build install
in my RPM spec file since this step wasn't necessary in previous versions.
But I can't run this command without changing CMAKE_INSTALL_PREFIX
value from /usr
to /my/build/dir/usr
. In this case, the build directory is "harcoded" in PMP binaries (plexmediaplayer
and pmphelper
), which is causing others issues...
So I'm manually copying files located in build/src/web-client-*
to /usr/share/plexmediaplayer/
at install time.
You should be able to use DESTDIR for that: https://cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html
I works, thank you :)
I used -DCMAKE_INSTALL_PREFIX=/usr .., but no webclient files install to /usr/share/plexmediaplayer
@ProfessorKaos64 You need to run ninja install
.
I've built this in the past fine just running 'ninja'. Is it required to run 'ninja build' and 'ninja install' ?
On August 21, 2016 8:56:13 PM EDT, Jonathan Leroy notifications@github.com wrote:
@ProfessorKaos64 You need to run
ninja install
.You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/plexinc/plex-media-player/issues/395#issuecomment-241293907
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Yes, see my comment above.
Debian just uses "ninja". There is no Ninja build. Again, I e built this many times before. Debian Dow sthis since there is another package sharing a similar name.
Since upgrading it to version 1.1.3 on my Fedora test machine, PMP won't start and show the following error:
I do not see any related error in plexmediaplayer.log:
But the debugging console show this error: