XScope Ubuntu (and probably mint) HowTo

More
9 years 4 months ago #1164 by JulianStirling
There is some old advice for getting linux working but it is very out of date.
First of all the official linux download is entirely useless. It is a compiled binary which is of no use to anyone. Secondly the official github source cannot compile with the latest version of QT. Instead we need to install from the user ewisuri, who fixed this. Open a terminal and navigate to somewhere you want to dump the source. Assuming you have GIT (if not, install it), run:
Code:
git clone https://github.com/ewisuri/xscopes-qt.git Xscopes
move into this driectory with
Code:
cd Xscopes
make a new directory for the build and move into it
Code:
make build/\r\n/ cd build
ok we will also need some extra packages you may not have, you will need (you may need more, which I overlooked and already had)
Code:
sudo apt-get install build-essential cmake qtbase5-dev libqt5serialport5-dev pkg-config
Now run cmake on the main directory
Code:
cmake ..
hopefully this didn't fail. Now we can run make
Code:
make
This should have made a nice executable you can run called xscope, to test it run
Code:
./xscope
Probably this will open but the traces wont be moving and the terminal will complain that the device wasn't found. Even if it is plugged in. This is because the permissions are not set properly. You can check this by running xscope as root:
Code:
sudo ./xscope
This should work but is an awful solution. Instead we should play with udev rules. A previous post mentioned how to do this, but the rule given has an incorrect file name, and it uses NAME which is no longer valid due to systemd. So let's do it a slightly new way. Make a new udev rule with
Code:
sudo touch /etc/udev/rules.d/64-xscopes.rules
note it is .rules, not .rule!! Let's now edit it:
Code:
sudo nano /etc/udev/rules.d/64-xscopes.rules
in nano enter
Code:
ACTION=="add", SUBSYSTEM=="usb", ATTR{manufacturer}=="Gabotronics", GROUP=="plugdev", MODE="066", SYMLINK+="XScope%n"
Press Ctrl+X to exit. Press Y to save, and enter to keep the file name. This code is simply telling the computer that when a USB device from Gabotronics is plugged in, it should be in the group plugdev, and that users in that group (you) have permission to use it. It also symlinks it to a nice place in /dev to make it easy for you to find, if you so wish. Now we need to make sure the new rules are loaded:
Code:
sudo udevadm control --reload-rules
Unplug the device and plug it back in. Now when you run
Code:
./xscope
everything should work!

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #1179 by jaaxxlinux@gmail.com
This mostly works, just want to add a couple of notes here.
First: "make build' should be "mkdir build"
Second you will also need to install libusb-1.0-0-dev and libudev-dev
Thanks!

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago - 8 years 10 months ago #1208 by plzink
wow i just cannot find the bannana boat - ie
suse leap need root to acess? devices ( NOT CONNECTED )???? what devices and or symlinks are you setting this up with
debien?? root cannot open display? and non root ( user ) not connected
?
respectfully submitted
plzink
ps? thanks
pps?? ok update? --- groupadd? udev and plugdev???? reload rules
probily just group plugdev would work
static binary is good started from konsole?? on suse leap???? ./start_app.sh
?
Last edit: 8 years 10 months ago by plzink. Reason: went back and retraced all steps and found i was in error

Please Log in or Create an account to join the conversation.

Time to create page: 0.591 seconds
Powered by Kunena Forum