Another plasma component...

More
14 Apr 2019 01:01 #130807 by islander261
My old eyes have a hard time with small text in photos. Tommy is right, you have a problem because of using root privileges to do things. You actually didn't build the latest version, make exited with an error. The only way I know of to fix this is to delete your linuxcnc-plasmac directory and everything under it, someone else may know a less drastic way to fix this. Then start over by cloning the plasmac branch and compiling it. Do not use sudo at any step if it isn't explicitly called for in the instructions. Feel free to change directory names to ones you want to use. From a new terminal:
jtknives@plasma:~$ git clone https://github.com/phillc54/linuxcnc-plasmac.git ~/plasmac
jtknives@plasma:~$ cd plasmac
jtknives@plasma:~/plasmac$ git remote add upstream https://github.com/linuxcnc/linuxcnc.git
Ok you should have all the dependencies satisfied from your previous install, if not follow your old instructions.
jtknives@plasma:~$ cd plasmac/src
jtknives@plasma:~/plasmac/src$ ./autogen.sh
jtknives@plasma:~/plasmac/src$ ./configure --with-realtime=uspace
jtknives@plasma:~/plasmac/src$ make
jtknives@plasma:~/plasmac/src$ sudo make setuid
jtknives@plasma:~/plasmac/src$ cd
jtknives@plasma:~$ . plasmac/scripts/rip-environment
jtknives@plasma:~$ linuxcnc

The usual, if you have a problem at any step copy and paste terminal output into a forum message or text file and post.

John

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

More
14 Apr 2019 02:11 #130808 by JTknives
i think im going to try deleting everything and starting over like mentioned above.

when i do just as told i get this and then the linuxcnc screen pops up and plasmac is not in the list.
jtknives@plasma:~$ linuxcnc-plasmac/scripts/rip-environment
This script can be used in one of two ways.

It can be loaded in the context of your shell, by executing
    . linuxcnc-plasmac/scripts/rip-environment
after this, commands like 'linuxcnc', 'halrun' and so on refer to the
version in this directory, instead of to an installed version of
linuxcnc (if any)

Second, it can be used to run a command in this directory without
modifying the environment of the calling shell:
    linuxcnc-plasmac/scripts/rip-environment command...
such as
    linuxcnc-plasmac/scripts/rip-environment halrun foo.hal
    linuxcnc-plasmac/scripts/rip-environment linuxcnc configs/.../foo.ini
jtknives@plasma:~$ linuxcnc
LINUXCNC - 2.7.14
jtknives@plasma:~$ 

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

More
14 Apr 2019 02:26 #130809 by phillc54

JTknives wrote:
jtknives@plasma:~$jtknives@plasma:~$ linuxcnc-plasmac/scripts/rip-environment

To use the rip-environment script you need either a . or the word source preceeding it e.g.
. linuxcnc-plasmac/scripts/rip-environment
or
source linuxcnc-plasmac/scripts/rip-environment

Cheers, Phill.

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

More
14 Apr 2019 02:29 #130810 by islander261
Yep, you forgot that the command is . linuxcnc-plasmac/scripts/rip-environment not linuxcnc-plasmac/scripts/rip-environment.

That is dot space linuxcnc-plasmac/scripts/rip-environment.

You definitely did not modify the environment because it ran 2.7 not 2.8.0~pre

You can always check the environment with the env command.

John

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

More
14 Apr 2019 02:36 #130811 by JTknives
yeah i noticed that. i have brought up the 2.8.0 pre and thats when i see the plasmac under axis and when i click on it and try and run it thats when i get that error.

I just tried to delete the plasmac folder in the home holder and it says i don't have permission. so i named it junk and am compiling again.

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

More
14 Apr 2019 02:41 #130812 by phillc54
Update pushed, fixed height override.

Cheers, Phill.

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

More
14 Apr 2019 03:07 - 14 Apr 2019 03:14 #130813 by JTknives
ok here is how im doing sofar
jtknives@plasma:~$ git clone https://github.com/phillc54/linuxcnc.git ~/plasmac
Cloning into '/home/jtknives/plasmac'...
remote: Enumerating objects: 378, done.
remote: Counting objects: 100% (378/378), done.
remote: Compressing objects: 100% (195/195), done.
remote: Total 212919 (delta 285), reused 260 (delta 183), pack-reused 212541
Receiving objects: 100% (212919/212919), 122.27 MiB | 232.00 KiB/s, done.
Resolving deltas: 100% (162399/162399), done.
jtknives@plasma:~$ cd plasmac
jtknives@plasma:~/plasmac$ git remote add upstream https://github.com/linuxcnc/linuxcnc.git
jtknives@plasma:~/plasmac$ 

after that i did everything else and got this.
jtknives@plasma:~$ . plasmac/scripts/rip-environment
jtknives@plasma:~$ linuxcnc
LINUXCNC - 2.8.0~pre1

When it opens I see my previous saved configurations but no plasmac in the sample configurations. what do I need to do now? sorry i am such a bother, this is such a new environment for me.

edit:
i just selected somthing from the sim list, the qtvcp tab. and everything closed out with this error.
jtknives@plasma:~$ linuxcnc
LINUXCNC - 2.8.0~pre1
Machine configuration directory is '/home/jtknives/plasmac/configs/sim/axis/qtvcp'
Machine configuration file is 'qtvcp_tab.ini'
Starting LinuxCNC...
Found file(LIB): /home/jtknives/plasmac/lib/hallib/basic_sim.tcl
setup_kins: cmd=loadrt trivkins
Note: Using POSIX realtime
link (updating variable file): No such file or directory
note: MAXV     max: 1.200 units/sec 72.000 units/min
note: LJOG     max: 1.200 units/sec 72.000 units/min
note: LJOG default: 0.250 units/sec 15.000 units/min
note: jog_order='XYZ'
note: jog_invert=set([])
Traceback (most recent call last):
  File "/home/jtknives/plasmac/bin/qtvcp", line 9, in <module>
    from PyQt5 import QtWidgets, QtCore
ImportError: No module named PyQt5
<commandline>:0: waitpid failed qtvcp qtvcp_embed
<commandline>:0: qtvcp exited without becoming ready
Embeded tab command "halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x 50332080 cam_align" exited with error: 1
Shutting down and cleaning up LinuxCNC...
task: 1279 cycles, min=0.000023, max=0.005109, avg=0.001070, 0 latency excursions (> 10x expected cycle time of 0.001000s)
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/jtknives/linuxcnc_debug.txt
and
    /home/jtknives/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
jtknives@plasma:~$ 
Last edit: 14 Apr 2019 03:14 by JTknives.

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

More
14 Apr 2019 03:15 #130814 by rodw
Replied by rodw on topic Another plasma component...

tommylight wrote: It looks like you ran the make with sudo the first time, you have twice in the log files "permission denied".
I do not know how to fix that, maybe someone else will chime in.


Yes, thats what I saw too. When I did this, I ended up deleting the complete linuxcnc-dev folder and starting downloading source from scratch. (but in this case its the plasmac folder you need to wipe out).I think you should be able to run su which will log you into the root account and then delete the files and folders so you have the permissions to allow this. YO might need to do some research to find out the command to delete a folder, all of its contents and the folder tree.

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

More
14 Apr 2019 03:21 #130815 by phillc54
If you see the qtvcp sim then everything should be ok, that normally won't run because pyqt5 is not installed. Don't worry about that at the moment.

You should see axis and gmoccapy at the same level as qtvcp, then select either then go down to find plasmac.

Cheers. Phill

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

More
14 Apr 2019 03:25 #130816 by islander261
Ok, in a terminal after setting your RIP environment ( . plasmac/scripts/rip-environment) run the env command and post the output. This is quickly heading towards a linux configuration/permissions problem which is out of my range of comfort. Hopefully one of the linux admins around will chime in. If every step I gave executed without an error then all should work. You are running everything as a user? If you setup your system and login as the root user I have no idea how the file permissions will turn out. The part about not being able to delete a directory in your home user space is troubling while being logged in as the user.

John

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

Time to create page: 0.127 seconds
Powered by Kunena Forum