I was wondering if any of the PCSX2 Linux elders could offer any insight on the way PCSX2 is configuring the install paths via cmake. I've been making RPM packages of PCSX2 for Fedora for a while now and haven't ran into this before. Basically I'm setting the
PACKAGE_MODE to ON and setting the
CMAKE_INSTALL_PREFIX to /usr. What is happening when
PACKAGE_MODE is set to ON is the following error when configuring
Code:
CMake Error at cmake/SelectPcsx2Plugins.cmake:20 (message):
Skip build of onepad: miss some dependencies:check these libraries -> sdl2,
X11, gtk2
Call Stack (most recent call first):
cmake/SelectPcsx2Plugins.cmake:228 (print_dep)
CMakeLists.txt:62 (include)
The dependencies are all satisfied for onepad as PCSX2 compiles and works fine via the build.sh script and via my rpmbuild SPEC file.
Next without setting
PACKAGE_MODE at all and only setting
CMAKE_INSTALL_PREFIX to /usr it seems cmake is ignoring
CMAKE_INSTALL_PREFIX entirely and installing into the
<source directory>/bin directory.
My cmake command is as follows for compiling with
PACKAGE_MODE set to ON
Code:
cmake -DCMAKE_BUILD_PO=FALSE -DSDL2_API=FALSE -DGTK3_API=TRUE -DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake -DCMAKE_INSTALL_PREFIX="/usr" -PACKAGE_MODE=ON ..
and my cmake command for compiling with only
CMAKE_INSTALL_PREFIX set
Code:
cmake -DCMAKE_BUILD_PO=FALSE -DSDL2_API=FALSE -DGTK3_API=TRUE -DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
I've been messing with this off and on for the past day. Any advice on how to get past this will be greatly appreciated.