vikoadi / indicator-kdeconnect

AppIndicator for KDE Connect
http://vikoadi.blogspot.com/
Other
117 stars 55 forks source link

PLEASE tell people how to set the CXX environment variable #44

Open jlnxr opened 8 years ago

jlnxr commented 8 years ago

As a non programmer this took me forever to figure out on Debian stable. Unless the CXX environment variable is already set to gcc-4.9 then simply installing all the dependencies listed in debian/controls and then following the INSTALL instructions will not work. Debian users will need to install gcc-4.9 and then set it as the environment variable CXX using 'CXX=/path/to/gcc-4.9' and then 'export CXX'. Only then does cmake actually work. This is on a fresh installation of Debian stable.

This is an absolutely terrific application but its documentation is completely inadequate, especially to non-programmers- which is a problem seeing as outside of the AUR and a Ubuntu PPA most people have to compile it from source. Installation instructions should be in the main README and be exact about how to compile and install the application.

Here's the actual steps required to install indicator-kdeconnect on Debian Jessie:

  1. Install dependencies. The actual list of dependencies for debian is kdeconnect, cmake, debhelper, libgtk-3-dev, libappindicator3-dev, pkg-config, valac, gcc-4.9.
  2. Clone or download extract the source, then cd into indicator-kdeconnect-master
  3. Set the CXX variable, compile and install. mkdir build cd build CXX=/path/to/gcc-4.9 (the path is probably /usr/bin/gcc.4.9) export CXX cmake .. -DCMAKE_INSTALL_PREFIX=/usr make su -c 'make install'

That should be in the main README.