diff --git a/README.md b/README.md index 05d50bf..231106c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,19 @@ # DSRemote Operate your Rigol oscilloscope from your Linux desktop. + +How to compile: +=============== + +Install the Qt4 development package. +For example, on openSuse, start Yast and install the package "libqt4-devel". +On Ubuntu, open a console and enter: sudo apt-get install libqt4-dev libqt4-core g++ + +Now, open a terminal (console) and cd to the directory that contains the source files and +enter the following commands: + +qmake +make -j16 +sudo make install + +Now you can run the program by typing: dsremote + diff --git a/dsremote.pro b/dsremote.pro index 3621baa..31befcf 100644 --- a/dsremote.pro +++ b/dsremote.pro @@ -40,6 +40,30 @@ SOURCES += signalcurve.cpp RESOURCES = images.qrc +target.path = /usr/bin +target.files = dsremote +INSTALLS += target + +icon_a.path = /usr/share/icons +icon_a.files = images/r.png +INSTALLS += icon_a + +icon_b.path += /usr/share/pixmaps +icon_b.files = images/r.png +INSTALLS += icon_b + +icon_c.path += /usr/share/icons/hicolor/48x48/apps +icon_c.files = images/r.png +INSTALLS += icon_c + +icon_d.path += /usr/share/icons/hicolor/48x48/mimetypes +icon_d.files = images/r.png +INSTALLS += icon_d + +desktop_link.path += /usr/share/applications +desktop_link.files += install/dsremote.desktop +INSTALLS += desktop_link + diff --git a/install/dsremote.desktop b/install/dsremote.desktop new file mode 100644 index 0000000..981f378 --- /dev/null +++ b/install/dsremote.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Name=DSRemote +GenericName=Oscilloscope +Comment=Operate your Rigol oscilloscope from your Linux desktop. +Icon=r +Exec=dsremote +Terminal=false +Categories=Science;Application; +MimeType= +InitialPreference=9