tildearrow / kwin-lowlatency

archived - X11 full-screen unredirection and lots'a settings for KWin
373 stars 10 forks source link

Cannot enable compositor on Kubuntu #28

Closed Odzinic closed 5 years ago

Odzinic commented 5 years ago

Hi,

I apologize in advance if Kubuntu/Ubuntu is not supported. I recently compiled and installed kwin-lowlatency with all required dependencies installed. There were no issue during installation but I found that I cannot enable the compositor anymore. Every time I turn on the compositor, kwin crashes several times and reverts to running without a compositor.

I am using Kubuntu 19.04, the latest kwin-lowlatency (5.16.2) and nvidia 430 drivers. I used the repo clone step to get the source and compile it.

Attached is my kwin crash backtrade: kwin_x11-20190628-133015.kcrash.txt.

Thanks

tildearrow commented 5 years ago

Perhaps Ubuntu/Kubuntu installs libraries to a different path from most distros, causing the KWin-lowlatency backends to be installed to a wrong directory and thus causing version conflicts when started which causes the crashes?

Try using:

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DCMAKE_INSTALL_LIBEXECDIR=lib/x86_64-linux-gnu -DBUILD_TESTING=OFF

instead of

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_LIBEXECDIR=lib -DBUILD_TESTING=OFF

?

tildearrow commented 5 years ago

Wait. Can you please print the output of ls /usr/lib?

Odzinic commented 5 years ago

Wait. Can you please print the output of ls /usr/lib?

Of course. Attached is the output. usrlib_out.txt

tildearrow commented 5 years ago

Can you print the output of:

cd /usr/lib
find | grep kwin

? This is most likely the final step before I can fix README.md for (K)Ubuntu

Odzinic commented 5 years ago

Can you print the output of:

cd /usr/lib
find | grep kwin

? This is most likely the final step before I can fix README.md for (K)Ubuntu

Attached output. grep_output.txt

tildearrow commented 5 years ago

Yup, cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DCMAKE_INSTALL_LIBEXECDIR=lib/x86_64-linux-gnu -DBUILD_TESTING=OFF should do. Can you try using that in your build dir, making again and installing? If it works after that, I'm updating the readme.

Odzinic commented 5 years ago

That fixed it for me. Thanks so much for you help and this great patch!

tildearrow commented 5 years ago

No problem. Reopening because I still need to update the readme.

tildearrow commented 5 years ago

Done. Closing.