Kitty: Builds but fails: undefined symbol: XineramaQueryScreens

Created on 9 Feb 2017  路  3Comments  路  Source: kovidgoyal/kitty

Kitty compiles fine, but running or testing it results in

ImportError: /tmp/kitty/kitty/fast_data_types.so: undefined symbol: XineramaQueryScreens

... even after following @Robgambrill's suggestion (in #23) to add the required linker flags:

ldflags.append('-lXinerama')
ldflags.append('-lXcursor')
ldflags.append('-lXrandr') 

All of those packages are installed, and I can't even find any reference to XineramaQueryScreens in the kitty source code. I would be grateful for any pointers.

Most helpful comment

Thanks for replying so quickly! Indeed, all I had to do was recompile glfw3 with BUILD_SHARED_LIBS turned on, and I was able to run kitty without problems. Thanks again!

All 3 comments

kitty does not use xinerama -- most probably glfw (which kitty uses) is the one that links against it, see for example: https://stackoverflow.com/questions/30662824/build-a-program-with-glfw3-on-linux

Probably glfw on your system is incorrectly built. If you are using a pre-compiled distro package, try building it from source instead.

And you should add -lXinerama to ldpaths not ldflags (the build script has changed since #23)

Thanks for replying so quickly! Indeed, all I had to do was recompile glfw3 with BUILD_SHARED_LIBS turned on, and I was able to run kitty without problems. Thanks again!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wavexx picture wavexx  路  3Comments

Jomik picture Jomik  路  4Comments

atomsymbol picture atomsymbol  路  3Comments

lazarcf picture lazarcf  路  4Comments

mihaicristiantanase picture mihaicristiantanase  路  3Comments