Gscreen - a GTK / Glade / Python based screen

More
03 Jul 2012 07:28 #21513 by cmorley
Here is a sample:
Attachments:

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

More
03 Jul 2012 07:31 #21514 by cmorley
and another. I'm pretty sure I could expose the colors to the Hal_gremlin widget so users could change them
but I'm not sure whether its worth it...
Attachments:

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

More
04 Jul 2012 17:02 - 04 Jul 2012 21:59 #21564 by eto
Nice work! Trying to get it going now.

( This was a post asking for a tutorial, but then I found the Linux CNC git wiki and the fog lifted...)

Edit... And I am back.
Please help me with a detailed guide to setup Gscreen from a fresh live cd ISO image install of LinuxCNC 2.5
(i am listing every step so that it may help other complete noobs too...) please correct where wrong.
$ su

$ sudo apt-get install git-core gitk git-gui
$ git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev


cd to linuxcnc-dev directory
$ git reset --hard remotes/origin/master
$ git pull origin master
$ git pull git://git.mah.priv.at/emc2-dev.git gscreen_master
$ apt-get install libboost-python-dev
$ cd src
$ ./autogen.sh
$ ./configure
$ make
$ make install-menus
$ make setuid
$ . ./scripts/rip-environment
$ linuxcnc

wonderfull, I now have 2.6pre running from the Linuxcnc-dev folders. but if I go to the Applications,CNC LinuxCNC it still launches Linuxcnc2.5
I cannot edit any of the sample configs for 2.6
I ran stepconf from usr/bin, which created a desktop icon(which .ini i changed from AXIS to gscreen for my machine but this does not load 2.6

How do i get this new version to replace and function exactly as the old 2.5 did?

or am I missing a whole lot about how to actually install gscreen...

Thanks
Last edit: 04 Jul 2012 21:59 by eto.
The following user(s) said Thank You: adelhassan14

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

More
04 Jul 2012 22:30 #21588 by eto
OK i need ALOT of help.

Please this is doing my head in...
Much appreciated..

debug.txt
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
3606
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

When Starting up the terminal spits out...

LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/cnc/linuxcnc/configs/Coral_SX2'
Machine configuration file is 'Coral_SX2.ini'
Starting LinuxCNC...
/home/cnc/linuxcnc-dev/scripts/realtime: line 159: /home/cnc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
RTAPI: ERROR: could not open shared memory (errno=2)
/home/cnc/linuxcnc-dev/scripts/linuxcnc: line 435: 4181 Segmentation fault $HALCMD stop
RTAPI: ERROR: could not open shared memory (errno=2)
/home/cnc/linuxcnc-dev/scripts/linuxcnc: line 435: 4182 Segmentation fault $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
/home/cnc/linuxcnc-dev/scripts/realtime: line 192: /home/cnc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cnc/linuxcnc-dev/scripts/realtime: line 192: /home/cnc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cnc/linuxcnc-dev/scripts/realtime: line 192: /home/cnc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cnc/linuxcnc-dev/scripts/realtime: line 192: /home/cnc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cnc/linuxcnc-dev/scripts/realtime: line 192: /home/cnc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cnc/linuxcnc-dev/scripts/realtime: line 192: /home/cnc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cnc/linuxcnc-dev/scripts/realtime: line 192: /home/cnc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/cnc/linuxcnc_debug.txt
and
/home/cnc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

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

More
04 Jul 2012 23:04 #21589 by andypugh
eto wrote:

/home/cnc/linuxcnc-dev/scripts/realtime: line 159: /home/cnc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied


Did you build from source? Did you remember "sudo make setuid"?

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

More
04 Jul 2012 23:14 #21590 by eto
Post no #21564 list exactly what i did step by step. I assume this is build from source. As i did the steps in terminal i wrote it in the post...

My linux skills don't go much beyond reading the wiki and doing the steps...
Thanks

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

More
04 Jul 2012 23:27 #21591 by andypugh
eto wrote:

Post no #21564 list exactly what i did step by step. I assume this is build from source. As i did the steps in terminal i wrote it in the post...


You need to sudo the make setuid step.
(And it appears that you didn't).

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

More
05 Jul 2012 00:51 #21592 by cmorley
sudo make setuid

it will ask for your password.
Do you see a linuxcnc (run-in-place) under Applications/cnc ?

if no then you will always have to run linuxcnc from the terminal and enter . scripts/rip-environment once before running it the first time.

the command make install-menus is supposed to add the run-in-place entries - it didnn't seem to work for me.

Chris

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

More
05 Jul 2012 00:54 #21593 by cmorley
Also note if using the linuxcnc launcher, if you look under sample configurations / sim you will find three gscreen examples that will run with no hardware.

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

More
05 Jul 2012 08:24 #21603 by eto
The make install-menus command does not seem to work.
Also when I run sudo make setuid, the process completes, but if i close the terminal and open a new terminal and type linuxcnc it still launches 2.5, i cannot get it to launch 2.6pre ...
I am stuck.

If I do the rip-environment thing it works and I can get the gscreen sample program to run.

I really want it to run just like the original live cd from the applications menu. How do I accomplish this?

Also is anybody working on a touchscreen pendant control? I was hoping that under jogging mode button you would get an onscreen pendant style jogging controller similar to what Mach3 has...

Thanks for the support.

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

Time to create page: 0.208 seconds
Powered by Kunena Forum