Skip to content

Instantly share code, notes, and snippets.

@maorv
Last active March 23, 2021 19:21
Show Gist options
  • Save maorv/74866262b082e24668103da717de92b5 to your computer and use it in GitHub Desktop.
Save maorv/74866262b082e24668103da717de92b5 to your computer and use it in GitHub Desktop.
Install neovim-qt on ubuntu
#!/bin/sh
echo "Install neovim from ppa"
sudo add-apt-repository -y ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install -y neovim
sudo apt install qt5-default libqt5widgets5
echo "Compile and install neovim-qt"
git clone https://github.com/maorv/neovim-qt.git
cd neovim-qt && mkdir build && cd build
cmake ../
cpack -G DEB -D CPACK_DEBIAN_PACKAGE_NAME=neovim-qt -D CPACK_DEBIAN_PACKAGE_MAINTAINER=`whoami` ../
sudo dpkg -i neovim-qt-*.deb
@mariocesar
Copy link

You could probably need to install this after:
sudo apt install qt5-default libqt5widgets5

@yelled1
Copy link

yelled1 commented Aug 22, 2017

Hi: I get following & clueless to how to resolve it. Thanks much in adv,

$nvim-qt
Unsupported function attribute "method" QVariant(bool, true)
Unsupported function attribute "since" QVariant(qulonglong, 1)
Unknown Neovim function "In
....
Unknown Neovim function "Tabpage window_get_tabpage(Window window)"
Unsupported function attribute "deprecated_since" QVariant(qulonglong, 1)
Unsupported function attribute "method" QVariant(bool, true)
Unsupported function attribute "since" QVariant(qulonglong, 0)
Neovim fatal error "API methods mismatch: Cannot connect to this instance of Neovim, its version is likely too old, or the API has changed"

@Cutuchiqueno
Copy link

the same here

@highpost
Copy link

highpost commented Nov 6, 2017

same experience

@paperbenni
Copy link

same

@ulidtko
Copy link

ulidtko commented Feb 5, 2020

Works fine for me!

Thanks for reminding that CPack exists BTW.

Turns out, I've been using ancient Debian build of neovim-qt together with nightly nvim from neovim-ppa — because the PPA guys didn't bother to also build the Qt shell, thus mine came from the stock repos. That has led to ugly Unicode issues. Works great now!

@VolailleInc
Copy link

cpack -G DEB -D CPACK_DEBIAN_PACKAGE_NAME=neovim-qt -D CPACK_DEBIAN_PACKAGE_MAINTAINER=whoami ../

returns this error message;

CPack Error: Problem running install command: /usr/bin/cmake --build . --target "preinstall"
Please check /home/pan/neovim-qt/build/_CPack_Packages/Linux/DEB/PreinstallOutput.log for errors
CPack Error: Error when generating package: neovim-qt

Can someone help me out? Thank you!

@ulidtko
Copy link

ulidtko commented Jan 28, 2021

@VolailleInc did you check the PreinstallOutput.log as the error message asks?.. It contains a compile error during make preinstall; the bundled msgpack library fails to compile.

... That is, if you follow literally the initial gist create_neovim_qt_deb.sh . Which is almost 5 years old by now. Perhaps you can notice that it instructs you to compile a fork which's been devoid of activity for about the same 5 years. Compare that with the original repo which is obviously breathing and alive.

You should be fine if you just use the original git repo instead of the stale fork.

@VolailleInc
Copy link

VolailleInc commented Jan 30, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment