thestr4ng3r / chiaki

Moved to https://git.sr.ht/~thestr4ng3r/chiaki - Free and Open Source PS4 Remote Play Client
https://git.sr.ht/~thestr4ng3r/chiaki
2.19k stars 369 forks source link

Build error - libudev #337

Closed testbughub closed 3 years ago

testbughub commented 4 years ago

Environment

Describe the bug I'm following the steps in platform-build.md. I believe I've installed everything that I need.

To Reproduce I'm clueless when it comes to building/compiling, so I'm not really sure.

Expected behavior Well, an output without errors would be nice ^^

Log Files

--   Found libudev, version 237
CMake Error at setsu/cmake/FindUdev.cmake:11 (target_link_libraries):
  Cannot specify link libraries for target "Udev::libudev" which is not built
  by this project.
Call Stack (most recent call first):
  CMakeLists.txt:74 (find_package)

I hope that this explains what went wrong. If not, I can submit the entire log.

Additional context Add any other context about the problem here. As I mentioned, I'm a real newbie when it comes to building/compiling. I also tried everything mentioned here: https://github.com/thestr4ng3r/chiaki/issues/191 If I've just missed something, I apologize!

thestr4ng3r commented 4 years ago

Try passing -DCHIAKI_ENABLE_SETSU=OFF to cmake.

testbughub commented 4 years ago

Thanks for the quick response! That takes care of that error (gives me another error about not finding ffmpeg libraries instead), but doesn't it need to be "ON" for the touchpad to work? That was kinda the reason for me wanting to build it myself.

tolysz commented 4 years ago

https://installlion.com/linuxmint/tricia/upstream/l/libudev-dev/install/index.html

testbughub commented 4 years ago

https://installlion.com/linuxmint/tricia/upstream/l/libudev-dev/install/index.html

I'm not getting anything. Doesn't look like it has instructions for Tricia>.

thestr4ng3r commented 4 years ago

Yes, setsu needs to be enabled if you want touchpad. I think libudev-dev is already installed since pkg-config is able to find it. This seems more like an issue with old cmake, I have to check how to fix it.

testbughub commented 4 years ago

Yep, libudev-dev (237-3ubuntu10.42) is installed. And cmake (3.10.2-1ubuntu2.18.04.1).

thestr4ng3r commented 3 years ago

Try again now with -DCHIAKI_ENABLE_SETSU=ON. If you encounter more ffmpeg errors, update ffmpeg to >=4, for example from a ppa.

testbughub commented 3 years ago

I updated ffmpeg through jonathonf-ffmpeg-4 ppa, but I get some sort of version error (i think) for avcodec/avutil:

-- Checking for module 'libavutil'
--   Found libavutil, version 56.51.100
-- Checking for module 'libswresample'
--   Found libswresample, version 3.7.100
-- Checking for module 'libswscale'
--   Found libswscale, version 5.7.100
-- Checking for module 'libavcodec'
--   Found libavcodec, version 58.91.100
-- Found FFMPEG: avcodec;avutil (found version "56.51.100") found components:  avcodec avutil 

I may have messed up some packages when trying to fix this myself.

Sorry for just throwing errors at you. I don't like doing it, and if you don't believe it's necessary for the majority, I can live without the touchpad.

thestr4ng3r commented 3 years ago

There is no error in this output. Anything specifically that doesn't work?

testbughub commented 3 years ago

EDIT: Never mind, everything works! I forgot to add

git submodule update --init

Thanks for your help!