way-cooler / way-cooler

Wayland compositor for AwesomeWM
http://way-cooler.org
MIT License
2.14k stars 75 forks source link

Can't locate liblua 5.3 #469

Closed techhazard closed 6 years ago

techhazard commented 6 years ago

Description

I installed way-cooler via the installer script. but it won't start.

Version

way-cooler --version crashes with the below error message. But when I dowloaded the binary version 0.7.0 it crashes with the same error.

Debug log

way-cooler: error while loading shared libraries: liblua.so.5.3: cannot open shared object file: No such file or directory
$ dpkg -l | grep -i lua
ii  liblua5.2-0:amd64                           5.2.4-1ubuntu1                               amd64        Shared library for the Lua interpreter version 5.2
ii  liblua5.3-0:amd64                           5.3.1-1ubuntu2                               amd64        Shared library for the Lua interpreter version 5.3

I am able to run sway, so that's not it.

0.6.2

This version missed a few dependencies as well, but after installing those it shows a blank screen at runtime; both from within unity, as from a tty.

 INFO [way_cooler] src/main.rs:158 Logger initialized, setting wlc handlers. 
 INFO [way_cooler] src/main.rs:163 XDG_VTNR: 7 
 INFO [way_cooler] src/main.rs:163 LC_PAPER: nl_NL.UTF-8 
 INFO [way_cooler] src/main.rs:163 LC_ADDRESS: nl_NL.UTF-8 
 INFO [way_cooler] src/main.rs:163 XDG_SESSION_ID: c2 
 INFO [way_cooler] src/main.rs:163 XDG_GREETER_DATA_DIR: /var/lib/lightdm-data/vince 
 INFO [way_cooler] src/main.rs:163 LC_MONETARY: nl_NL.UTF-8 
 INFO [way_cooler] src/main.rs:163 CLUTTER_IM_MODULE: xim 
 INFO [way_cooler] src/main.rs:163 GPG_AGENT_INFO: /home/vince/.gnupg/S.gpg-agent:0:1 
 INFO [way_cooler] src/main.rs:163 TERM: xterm-256color 
 INFO [way_cooler] src/main.rs:163 VTE_VERSION: 4205 
 INFO [way_cooler] src/main.rs:163 SHELL: /bin/bash 
 INFO [way_cooler] src/main.rs:163 QT_LINUX_ACCESSIBILITY_ALWAYS_ON: 1 
 INFO [way_cooler] src/main.rs:163 WINDOWID: 65011722 
 INFO [way_cooler] src/main.rs:163 LC_NUMERIC: nl_NL.UTF-8 
 INFO [way_cooler] src/main.rs:163 OLDPWD: /home/vince 
 INFO [way_cooler] src/main.rs:163 UPSTART_SESSION: unix:abstract=/com/ubuntu/upstart-session/1000/1753 
 INFO [way_cooler] src/main.rs:163 GNOME_KEYRING_CONTROL:  
 INFO [way_cooler] src/main.rs:163 GTK_MODULES: gail:atk-bridge:unity-gtk-module 
 INFO [way_cooler] src/main.rs:163 USER: vince 
 INFO [way_cooler] src/main.rs:163 LS_COLORS: rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: 
 INFO [way_cooler] src/main.rs:163 LC_TELEPHONE: nl_NL.UTF-8 
 INFO [way_cooler] src/main.rs:163 QT_ACCESSIBILITY: 1 
 INFO [way_cooler] src/main.rs:163 XDG_SESSION_PATH: /org/freedesktop/DisplayManager/Session0 
 INFO [way_cooler] src/main.rs:163 XDG_SEAT_PATH: /org/freedesktop/DisplayManager/Seat0 
 INFO [way_cooler] src/main.rs:163 SSH_AUTH_SOCK: /run/user/1000/keyring/ssh 
 INFO [way_cooler] src/main.rs:163 DEFAULTS_PATH: /usr/share/gconf/ubuntu.default.path 
 INFO [way_cooler] src/main.rs:163 XDG_CONFIG_DIRS: /etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg 
 INFO [way_cooler] src/main.rs:163 DESKTOP_SESSION: ubuntu 
 INFO [way_cooler] src/main.rs:163 PATH: /home/vince/.cargo/bin:/home/vince/bin:/home/vince/install/bin:/home/vince/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games 
 INFO [way_cooler] src/main.rs:163 hostnum: 96 
 INFO [way_cooler] src/main.rs:163 QT_IM_MODULE: ibus 
 INFO [way_cooler] src/main.rs:163 QT_QPA_PLATFORMTHEME: appmenu-qt5 
 INFO [way_cooler] src/main.rs:163 LC_IDENTIFICATION: nl_NL.UTF-8 
 INFO [way_cooler] src/main.rs:163 XDG_SESSION_TYPE: x11 
 INFO [way_cooler] src/main.rs:163 PWD: /home/vince/Downloads 
 INFO [way_cooler] src/main.rs:163 JOB: gnome-session 
 INFO [way_cooler] src/main.rs:163 XMODIFIERS: @im=ibus 
 INFO [way_cooler] src/main.rs:163 EDITOR: nano 
 INFO [way_cooler] src/main.rs:163 GNOME_KEYRING_PID:  
 INFO [way_cooler] src/main.rs:163 LANG: en_US.UTF-8 
 INFO [way_cooler] src/main.rs:163 GDM_LANG: en_US 
 INFO [way_cooler] src/main.rs:163 MANDATORY_PATH: /usr/share/gconf/ubuntu.mandatory.path 
 INFO [way_cooler] src/main.rs:163 LC_MEASUREMENT: nl_NL.UTF-8 
 INFO [way_cooler] src/main.rs:163 COMPIZ_CONFIG_PROFILE: ubuntu 
 INFO [way_cooler] src/main.rs:163 IM_CONFIG_PHASE: 1 
 INFO [way_cooler] src/main.rs:163 GCC_COLORS: error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01 
 INFO [way_cooler] src/main.rs:163 PS1: ┣━━━▌  
 INFO [way_cooler] src/main.rs:163 GDMSESSION: ubuntu 
 INFO [way_cooler] src/main.rs:163 usernum: 61 
 INFO [way_cooler] src/main.rs:163 HISTCONTROL: ignoredups: 
 INFO [way_cooler] src/main.rs:163 SESSIONTYPE: gnome-session 
 INFO [way_cooler] src/main.rs:163 GTK2_MODULES: overlay-scrollbar 
 INFO [way_cooler] src/main.rs:163 SHLVL: 1 
 INFO [way_cooler] src/main.rs:163 HOME: /home/vince 
 INFO [way_cooler] src/main.rs:163 XDG_SEAT: seat0 
 INFO [way_cooler] src/main.rs:163 LANGUAGE: en_US 
 INFO [way_cooler] src/main.rs:163 GNOME_DESKTOP_SESSION_ID: this-is-deprecated 
 INFO [way_cooler] src/main.rs:163 UPSTART_INSTANCE:  
 INFO [way_cooler] src/main.rs:163 UPSTART_EVENTS: started starting 
 INFO [way_cooler] src/main.rs:163 XDG_SESSION_DESKTOP: ubuntu 
 INFO [way_cooler] src/main.rs:163 LOGNAME: vince 
 INFO [way_cooler] src/main.rs:163 VISUAL: nano 
 INFO [way_cooler] src/main.rs:163 DBUS_SESSION_BUS_ADDRESS: unix:abstract=/tmp/dbus-CH5AC4bRJY 
 INFO [way_cooler] src/main.rs:163 XDG_DATA_DIRS: /usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop 
 INFO [way_cooler] src/main.rs:163 QT4_IM_MODULE: xim 
 INFO [way_cooler] src/main.rs:163 LESSOPEN: | /usr/bin/lesspipe %s 
 INFO [way_cooler] src/main.rs:163 INSTANCE: Unity 
 INFO [way_cooler] src/main.rs:163 UPSTART_JOB: unity-settings-daemon 
 INFO [way_cooler] src/main.rs:163 XDG_RUNTIME_DIR: /run/user/1000 
 INFO [way_cooler] src/main.rs:163 DISPLAY: :0 
 INFO [way_cooler] src/main.rs:163 XDG_CURRENT_DESKTOP: Unity 
 INFO [way_cooler] src/main.rs:163 GTK_IM_MODULE: ibus 
 INFO [way_cooler] src/main.rs:163 LESSCLOSE: /usr/bin/lesspipe %s %s 
 INFO [way_cooler] src/main.rs:163 LC_TIME: nl_NL.UTF-8 
 INFO [way_cooler] src/main.rs:163 COLORTERM: gnome-terminal 
 INFO [way_cooler] src/main.rs:163 LC_NAME: nl_NL.UTF-8 
 INFO [way_cooler] src/main.rs:163 XAUTHORITY: /home/vince/.Xauthority 
 INFO [way_cooler] src/main.rs:163 _: /usr/bin/timeout 
 INFO [wayland] src/wayland/mod.rs:6 Initializing wayland protocols 
 INFO [wayland::gamma_control] src/wayland/gamma_control.rs:235 Initializing gamma control manager 
 TRACE [callbacks] src/callbacks.rs:183 Registered wlc callbacks 
 INFO [lua::thread] src/lua/thread.rs:121 Initializing lua... 
 INFO [lua::thread] src/lua/thread.rs:125 Loading Lua libraries... 
 INFO [lua::thread] src/lua/thread.rs:127 Loading way-cooler libraries... 
 TRACE [lua::rust_interop] src/lua/rust_interop.rs:23 Registering Rust libraries... 
 TRACE [lua::rust_interop] src/lua/rust_interop.rs:36 Executing Lua init... 
 TRACE [lua::rust_interop] src/lua/rust_interop.rs:43 Lua register_libraries complete 
 TRACE [lua::init_path] src/lua/init_path.rs:65 Looking for init file at ~/.config/way-cooler/init.lua 
 INFO [lua::init_path] src/lua/init_path.rs:67 Reading init file from ~/.config/way-cooler/init.lua 
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("d")) for Event: KeyEvent::Lua, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("Return")) for Event: KeyEvent::Lua, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("l")) for Event: KeyEvent::Lua, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("h")) for Event: KeyEvent::Lua, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("l")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("Left")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("Right")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("Up")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("Down")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("Left")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("Right")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("Up")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("Down")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("h")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("v")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("e")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("s")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("w")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("f")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("q")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("space")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("space")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("r")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("1")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("1")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("2")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("2")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("3")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("3")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("4")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("4")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("5")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("5")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("6")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("6")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("7")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("7")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("8")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("8")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_ALT, Some("9")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("9")) for Event: KeyEvent::Command, passthrough: false  
 INFO [lua::thread] src/lua/thread.rs:141 Read init.lua successfully 
 INFO [lua::thread] src/lua/thread.rs:164 Entering main loop... 
 WARN [layout::actions::layout] src/layout/actions/layout.rs:481 LayoutTree {
    tree: InnerTree {
        graph: StableGraph {
            Ty: "Directed",
            edges: ,
            node weights: {
                0: Root(
                    Uuid("d1b38d1a-ccaf-46bc-8f42-0870a4ea55cb")
                )
            },
            edge weights: {},
            free_node: NodeIndex(4294967295),
            free_edge: EdgeIndex(4294967295),
            node_count: 1,
            edge_count: 0
        },
        id_map: {},
        view_map: {},
        root: NodeIndex(0),
        active_path: "0"
    },
    active_container: None
} did not have a parent of type Root, doing nothing! 
 TRACE [lua::thread] src/lua/thread.rs:201 Lua: awaiting request 
 TRACE [lua::thread] src/lua/thread.rs:212 Handling a request 
 TRACE [lua::thread] src/lua/thread.rs:360 Updating programs:x11_bar = String(
    "lemonbar"
) 
 TRACE [lua::thread] src/lua/thread.rs:360 Updating mouse:lock_to_corner_on_resize = Boolean(
    false
) 
 TRACE [lua::thread] src/lua/thread.rs:201 Lua: awaiting request 
 INFO [way_cooler] src/main.rs:214 Running wlc... 
 INFO [way_cooler] src/main.rs:61 wlc: WLC-1 Chose mode (0) 3840x2160 
 TRACE [callbacks] src/callbacks.rs:37 output_resolution: WlcOutput { handle: 1, name: "WLC-1", views: [] } from  Size { w: 0, h: 0 } to Size { w: 3840, h: 2160 } 
 WARN [layout::actions::layout] src/layout/actions/layout.rs:481 LayoutTree {
    tree: InnerTree {
        graph: StableGraph {
            Ty: "Directed",
            edges: ,
            node weights: {
                0: Root(
                    Uuid("d1b38d1a-ccaf-46bc-8f42-0870a4ea55cb")
                )
            },
            edge weights: {},
            free_node: NodeIndex(4294967295),
            free_edge: EdgeIndex(4294967295),
            node_count: 1,
            edge_count: 0
        },
        id_map: {},
        view_map: {},
        root: NodeIndex(0),
        active_path: "0"
    },
    active_container: None
} did not have a parent of type Output, doing nothing! 
 TRACE [callbacks] src/callbacks.rs:18 output_created: WlcOutput { handle: 1, name: "WLC-1", views: [] }: WLC-1 
 TRACE [layout::core::tree] src/layout/core/tree.rs:453 Adding new output with WlcOutput { handle: 1, name: "WLC-1", views: [] } 
 TRACE [layout::core::graph_tree] src/layout/core/graph_tree.rs:508 Normalized edge weights for: NodeIndex(0) 
 INFO [layout::core::graph_tree] src/layout/core/graph_tree.rs:240 Added new child NodeIndex(1) for Output { handle: WlcOutput { handle: 1, name: "WLC-1", views: [] }, background: None, bar: None, id: Uuid("92573996-4228-4ac0-9b70-f290b78c7ff0") } 
 TRACE [layout::actions::workspace] src/layout/actions/workspace.rs:44 Adding workspace Workspace { name: "1", geometry: Geometry { origin: Point { x: 0, y: 0 }, size: Size { w: 3840, h: 2160 } }, fullscreen_c: [], id: Uuid("182c6a23-1ba9-4a0c-8160-642d88dea5f2") } 
 TRACE [layout::core::graph_tree] src/layout/core/graph_tree.rs:508 Normalized edge weights for: NodeIndex(1) 
 INFO [layout::core::graph_tree] src/layout/core/graph_tree.rs:240 Added new child NodeIndex(2) for Workspace { name: "1", geometry: Geometry { origin: Point { x: 0, y: 0 }, size: Size { w: 3840, h: 2160 } }, fullscreen_c: [], id: Uuid("182c6a23-1ba9-4a0c-8160-642d88dea5f2") } 
 TRACE [layout::core::graph_tree] src/layout/core/graph_tree.rs:508 Normalized edge weights for: NodeIndex(2) 
 INFO [layout::core::graph_tree] src/layout/core/graph_tree.rs:240 Added new child NodeIndex(3) for Container { layout: Horizontal, floating: false, fullscreen: false, output_handle: WlcOutput { handle: 1, name: "WLC-1", views: [] }, apparent_geometry: Geometry { origin: Point { x: 0, y: 0 }, size: Size { w: 3840, h: 2160 } }, geometry: Geometry { origin: Point { x: 0, y: 0 }, size: Size { w: 3840, h: 2160 } }, id: Uuid("6b8a3bf4-81e7-43b8-ae4e-bb3d545032ca"), borders: Some(Borders { title: "", surface: ImageSurface(Surface(0x7ff396c84000)), geometry: Geometry { origin: Point { x: -20, y: -40 }, size: Size { w: 3860, h: 2200 } }, output: WlcOutput { handle: 1, name: "WLC-1", views: [] }, color: None, title_color: None, title_font_color: None }) } 
 DEBUG [layout::commands] src/layout/commands.rs:374 Layout.SwitchWorkspace("1") 
 TRACE [layout::actions::workspace] src/layout/actions/workspace.rs:79 Switching to workspace 1 
 INFO [way_cooler] src/main.rs:61 wlc: EGL context is double buffered 
 INFO [way_cooler] src/main.rs:61 wlc: EGL version: 1.5 (DRI2) 
 INFO [way_cooler] src/main.rs:61 wlc: EGL vendor: Mesa Project 
 INFO [way_cooler] src/main.rs:61 wlc: EGL client APIs: OpenGL OpenGL_ES  
 INFO [way_cooler] src/main.rs:61 wlc: EGL context (RGB888) 
 INFO [way_cooler] src/main.rs:61 wlc: EGL_CHROMIUM_sync_control EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_NOK_texture_from_pixmap EGL_WL_bind_wayland_display  
 INFO [way_cooler] src/main.rs:61 wlc: GL version: OpenGL ES 3.1 Mesa 17.0.7 
 INFO [way_cooler] src/main.rs:61 wlc: GL vendor: X.Org 
 INFO [way_cooler] src/main.rs:61 wlc: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_OES_viewport_array GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_robustness GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_robustness GL_OES_depth_texture_cube_map GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_separate_shader_objects GL_EXT_shader_integer_mix GL_EXT_tessellation_point_size GL_EXT_tessellation_shader GL_EXT_base_instance GL_EXT_copy_image GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_gpu_shader5 GL_EXT_polygon_offset_clamp GL_EXT_primitive_bounding_box GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_cube_map_array GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_NV_image_formats GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_gpu_shader5 GL_OES_primitive_bounding_box GL_OES_sample_shading GL_OES_sample_variables GL_OES_shader_io_blocks GL_OES_shader_multisample_interpolation GL_OES_tessellation_point_size GL_OES_tessellation_shader GL_OES_texture_border_clamp GL_OES_texture_buffer GL_OES_texture_cube_map_array GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_EXT_blend_func_extended GL_EXT_buffer_storage GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_clip_cull_distance GL_MESA_shader_integer_functions  
 INFO [way_cooler] src/main.rs:61 wlc: GLES2 renderer initialized 
 INFO [way_cooler] src/main.rs:61 wlc: Set new bsurface to output (1) 
 TRACE [callbacks] src/callbacks.rs:30 output_focus: WlcOutput { handle: 1, name: "WLC-1", views: [] } focus=true 
 INFO [way_cooler] src/main.rs:61 wlc: Added output (1) 
 INFO [way_cooler] src/main.rs:61 wlc: become active 
 INFO [callbacks] src/callbacks.rs:130 Preparing compositor! 
 INFO [lua::thread] src/lua/thread.rs:187 Running lua on_init() 
 TRACE [keys] src/keys/mod.rs:88 Registering Keypress(MOD_SHIFT | MOD_ALT, Some("Escape")) for Event: KeyEvent::Command, passthrough: false  
 TRACE [lua::thread] src/lua/thread.rs:212 Handling a request 
 TRACE [lua::thread] src/lua/thread.rs:257 Received request to execute way_cooler.on_init() 
 TRACE [lua::thread] src/lua/thread.rs:265 Code executed okay. 
 TRACE [lua::thread] src/lua/thread.rs:201 Lua: awaiting request 
 TRACE [callbacks] src/callbacks.rs:37 output_resolution: WlcOutput { handle: 1, name: "WLC-1", views: [] } from  Size { w: 3840, h: 2160 } to Size { w: 800, h: 480 } 
   1 : wl_shm (version 1)
   2 : wl_compositor (version 3)
   3 : wl_subcompositor (version 1)
   4 : wl_data_device_manager (version 2)
   5 : wl_seat (version 4)
   6 : wl_shell (version 1)
   7 : zxdg_shell_v6 (version 1)
   8 : gamma_control_manager (version 1)
   9 : wl_output (version 2)
  10 : wl_drm (version 2)
Could not find the desktop_shell protocol!
Please make sure you're running the correct version of Way Cooler
This program only supports versions >= 0.7
Timidger commented 6 years ago

For the 0.7 binary, what's the output of running ldd on the binary?

0.6.2 sounds like it's running correctly. If want a background, you need to add the program (wc-bg) manually. Consult the configuration file to see and modify keybindings.

techhazard commented 6 years ago

For the 0.7.0 one ldd gives the following:

$ ldd $(which way-cooler)
        linux-vdso.so.1 =>  (0x00007ffe95aaa000)
        liblua.so.5.3 => not found
        libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007ff2cf4fa000)
        libwlc.so.0 => not found
        libxkbcommon.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007ff2cf2ba000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007ff2cf098000)
        libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007ff2cee44000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff2ceb33000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff2ce92f000)
        libcairo.so.2 => /usr/lib/x86_64-linux-gnu/libcairo.so.2 (0x00007ff2ce61a000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff2ce412000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff2ce1f5000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff2cdfde000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff2cdc14000)
        /lib64/ld-linux-x86-64.so.2 (0x000055c2c1b92000)
        libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007ff2cdb8f000)
        libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007ff2cd98a000)
        libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007ff2cd602000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff2cd2f9000)
        libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007ff2cd0f0000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff2cce80000)
        libpixman-1.so.0 => /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007ff2ccbd8000)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007ff2cc994000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007ff2cc6ea000)
        libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007ff2cc4c5000)
        libxcb-shm.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007ff2cc2c0000)
        libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007ff2cc0b6000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007ff2cbe94000)
        libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007ff2cbc89000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007ff2cb94f000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007ff2cb73d000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff2cb522000)
        libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007ff2cb300000)
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007ff2cb0dd000)
        libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007ff2cadfc000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007ff2cabe1000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007ff2ca9b7000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007ff2ca7b3000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007ff2ca5ac000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007ff2ca398000)

It seem it can't find liblua, which is odd, since I have installed the liblua-5.3-0 package. Installing the dev package (liblua5.3-dev) didn't help either, even after running ldconfig.

It seems like libwlc is missing as well, which is probably not good, but there's no package in apt for either libwlc or wlc

Timidger commented 6 years ago

That's weird you're missing wlc if you were able to run sway... You don't have a sway that's statically linked to wlc do you? Running ldd $(which sway) should show the same thing, but if it can find it that's very strange...

Can you find the Lua and wlc dynamic libraries on your system? It's possible their in a weird place, like /usr/local/. We've had problems in the past with Ubuntu finding the shared libraries.

techhazard commented 6 years ago

ldd $(which sway) returns: not a dynamic executable, I installed it via the PPA.

With my limited knowledge, liblua5.3 seems to be at the correct location

$ find / -iname '*lua*so' 2>/dev/null
/usr/lib/x86_64-linux-gnu/liblua5.3-c++.so
/usr/lib/x86_64-linux-gnu/liblua5.3.so

Also, I'm running Ubuntu 16.04 if that's any help

techhazard commented 6 years ago

Installing wlc from source, changes this line:

libwlc.so.0 => /usr/local/lib/libwlc.so.0 (0x00007f45a9528000)

It's just liblua.so.5.3 now

techhazard commented 6 years ago
$ sudo ldconfig -v | grep -i lua5.3
        liblua5.3.so.0 -> liblua5.3.so.0.0.0
        liblua5.3-c++.so.0 -> liblua5.3-c++.so.0.0.0
$ ls -la /usr/lib/x86_64-linux-gnu/ | grep liblua5.3.so
lrwxrwxrwx   1 root root        18 apr 14  2016 liblua5.3.so -> liblua5.3.so.0.0.0
lrwxrwxrwx   1 root root        18 apr 14  2016 liblua5.3.so.0 -> liblua5.3.so.0.0.0
-rw-r--r--   1 root root    224104 apr 14  2016 liblua5.3.so.0.0.0
$ cd /usr/lib/x86_64-linux-gnu
$ ln -s liblua5.3.so.0.0.0 liblua.so.5.3

This fixed it :tada: (at least I have a background :slightly_smiling_face:)

I'm not sure why the name is different, and if that's ubuntu's error, or way-cooler's

Now on to figure out how I can spawn an alacritty terminal in way-cooler :smiley:

Timidger commented 6 years ago

Thanks for detailing your fix! Not sure why you had problems linking to Lua... I'll have to investigate this later.

TBH there's a million and one problems with Ubuntu, so I'll probably just eventually make a PPA and point all future problem-havers to that instead.

techhazard commented 6 years ago

That's a great idea! Travis will probably make it very easy to add new builds to the ppa. Here's some resources I found: Making a PPA create deb packages with cargo