- Posts: 44
- Thank you received: 1
hidconfig lcd problem
- porshe
- Offline
- Senior Member
-
Less
More
6 years 10 months ago #153001
by porshe
Replied by porshe on topic hidconfig lcd problem
Recompiled. In linuxcnc everything works. In the Pathpilot I get an error.
Warning: Spoiler!
/home/operator/hid/hidcomp/release/hidcomp: error while loading shared libraries: libemchal.so.0: cannot open shared object file: No such file or directory
lathe_tn.hal:96: /home/operator/hid/hidcomp/release/hidcomp exited without becoming ready
lathe_tn.hal:96: /home/operator/hid/hidcomp/release/hidcomp exited without becoming ready
Please Log in or Create an account to join the conversation.
- ftkalcevic
- Offline
- Junior Member
-
Less
More
- Posts: 30
- Thank you received: 4
6 years 10 months ago #153012
by ftkalcevic
Replied by ftkalcevic on topic hidconfig lcd problem
Ok, finally some progress...
The issue was the source code for the tormach machines is a fork of the linuxcnc source at about 2.6. They have their own repository (somewhere) where they have been updating some of the core changes from the linuxcnc repository.
So, to get hidcomp to work, you need to build against the tormach source. Luckily, there is an tar file available with tormach version 1.8.2 - forum.linuxcnc.org/pathpilot/29983-notes...ot-1-8-2-source-code
1.8.2 appears to be compatible - my simple lcd test worked with X/Z position, spindle rpm, feed rate.
Use the v2.6 branch of hidcomp.
The issue was the source code for the tormach machines is a fork of the linuxcnc source at about 2.6. They have their own repository (somewhere) where they have been updating some of the core changes from the linuxcnc repository.
So, to get hidcomp to work, you need to build against the tormach source. Luckily, there is an tar file available with tormach version 1.8.2 - forum.linuxcnc.org/pathpilot/29983-notes...ot-1-8-2-source-code
1.8.2 appears to be compatible - my simple lcd test worked with X/Z position, spindle rpm, feed rate.
Use the v2.6 branch of hidcomp.
Please Log in or Create an account to join the conversation.
- porshe
- Offline
- Senior Member
-
Less
More
- Posts: 44
- Thank you received: 1
6 years 10 months ago #153105
by porshe
Replied by porshe on topic hidconfig lcd problem
Tell me how to install, run Path Pilot 1.8.2 source code.
I created ~/pathpilot and put the tar there.
I go to this cd pathpilot folder
Then
make install-dep
make
make install
make python
make resources
make run
I get such a logfile
I created ~/pathpilot and put the tar there.
I go to this cd pathpilot folder
Then
make install-dep
make
make install
make python
make resources
make run
I get such a logfile
Warning: Spoiler!
/home/tormach/operator_login: redirecting stdout/stderr to: /home/tormach/gcode/logfiles/pathpilotlog.txt
sourcing /home/tormach/tmc/scripts/rip-environment.sh /home/tormach/tmc
Setting enviroment to run Tormach LinuxCNC to run-in-place for development
Using command line supplied EMC2_HOME: /home/tormach/tmc
EMC2_HOME = /home/tormach/tmc, absolute path for /home/tormach/tmc
EMC2_HOME: /home/tormach/tmc
new PATH: /home/tormach/tmc/python:/home/tormach/tmc/bin:/home/tormach/tmc/scripts:/home/tormach/tmc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
new LD_LIBRARY_PATH: /home/tormach/tmc/lib
new PYTHONPATH: /home/tormach/tmc/python/scanner:/home/tormach/tmc/python:/home/tormach/tmc/python/config_picker:/home/tormach/tmc/lib/python:/home/tormach/tmc/python/scanner2
Temporary directory for linuxcnc: /tmp/linuxcnc
RIP environment setup complete...
setting touchscreen calibration
No calibration file found: /home/tormach/gcode/pointercal.xinput
starting log rotator
logrotator.sh 3600 /home/tormach/gcode/logfiles/logrotate.conf /home/tormach/gcode/logfiles/logrotate.status
LOGROTATOR_PID: 2582
logrotate /home/tormach/gcode/logfiles/logrotate.conf -s /home/tormach/gcode/logfiles/logrotate.status
Failed to set permissions on /home/tormach/tmc/bin/shifttest
gnome-power-manager already running
/home/tormach/operator_login: line 195: Failed: command not found
/home/tormach/operator_login: line 197: Failed: command not found
HAVE_GNOME: 1
Failed to set permissions on /sbin/shutdown
Failed to set permissions on /home/tormach/tmc/bin/time-admin-wrapper
INI file: ~/tmc/configs/tormach_lathe/lathe_tn.ini
/home/tormach/tmc/configs/tormach_lathe/lathe_tn.ini
[HOSTMOT2] BITFILE0 = ''
[HOSTMOT2] BITFILE0 entry not found in INI file.
Assuming sim config.
linuxcnc ~/tmc/configs/tormach_lathe/lathe_tn.ini
Setting enviroment to run Tormach LinuxCNC to run-in-place for development
Using command line supplied EMC2_HOME: /home/tormach/tmc
EMC2_HOME = /home/tormach/tmc, absolute path for /home/tormach/tmc
PATH: /home/tormach/tmc/python:/home/tormach/tmc/bin:/home/tormach/tmc/scripts:/home/tormach/tmc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
This script only needs to be run once per shell session.
prefix: /home/tormach/tmc
exec_prefix: /home/tormach/tmc
EMC2_BIN_DIR=/home/tormach/tmc/bin
EMC2_RTLIB_DIR=/home/tormach/tmc/rtlib
INIFILE: ~/tmc/configs/tormach_lathe/lathe_tn.ini
~/tmc/configs/tormach_lathe/lathe_tn.ini started with tilde
expanded INIFILE: /home/tormach/tmc/configs/tormach_lathe/lathe_tn.ini
EXTRA_ARGS:
RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/tormach/tmc/bin
LINUXCNC_RTLIB_DIR=/home/tormach/tmc/rtlib
INIVAR=inivar
HALCMD=halcmd
LINUXCNC - 2.6.0~pre
/home/tormach/tmc/scripts/linuxcnc: line 182: fileperms: command not found
failed to set permissions of /dev/hidraw0
inserted into PYTHONPATH: /home/tormach/tmc/configs/tormach_lathe/python
Machine configuration directory is '/home/tormach/tmc/configs/tormach_lathe'
Machine configuration file is 'lathe_tn.ini'
INIFILE=/home/tormach/tmc/configs/tormach_lathe/lathe_tn.ini
PARAMETER_FILE=~/lathe_data/emc.var
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
TASK=milltask
HALUI=halui
DISPLAY=tormach_lathe_ui.py
EMCDISPLAY_FULLPATH: /home/tormach/tmc/python/tormach_lathe_ui.py
EMCDISPLAY_DIR: /home/tormach/tmc/python
inserted into PYTHONPATH: /home/tormach/tmc/python
NML_FILE: /home/tormach/tmc/configs/common/linuxcnc.nml
User's HOME directory: /home/tormach
/home/tormach/tmc/scripts/check_mill_tool_table.py: tool file is /home/tormach/mill_data/tool.tbl
scanning mill tool table
tool table is already up to date
Can not find -sec REDIS -var DISABLE_SERVER -num 1
DISABLE_SERVER=
Can not find -sec REDIS -var SERVER_PATH -num 1
SERVER_PATH=
SERVER_ARGS=--dir ~/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
REDIS_SERVER_ARGS: --dir ~/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
REDIS_SERVER_ARGS: --dir /home/tormach/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
Can not find -sec REDIS -var SERVER_LOG -num 1
SERVER_LOG=
Starting LinuxCNC...
Starting redis server program:
redis server started as: 'redis-server --dir /home/tormach/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000', logging to: /dev/null
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
module helper '/home/tormach/tmc/bin/linuxcnc_module_helper' found.
failed to set permissions of /home/tormach/tmc/bin/linuxcnc_module_helper
have you installed fileperms?
/home/tormach/tmc/scripts/realtime start: Realtime system did not load
Shutting down and cleaning up LinuxCNC...
2640
Killing linuxcncsvr
Killing task linuxcncsvr, PID=2640
PID TTY STAT TIME COMMAND
2639
Killing redis-server
Killing task redis-server, PID=2639
PID TTY STAT TIME COMMAND
2639 pts/0 Sl+ 0:00 redis-server --dir /home/tormach/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
PID TTY STAT TIME COMMAND
Stopping realtime threads
halcmd stop
RTAPI: ERROR: could not open shared memory (errno=2)
/home/tormach/tmc/scripts/linuxcnc: line 520: 2670 Segmentation fault $HALCMD stop
Unloading hal components
halcmd unload all
RTAPI: ERROR: could not open shared memory (errno=2)
/home/tormach/tmc/scripts/linuxcnc: line 520: 2671 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)
Removing HAL_LIB, RTAPI, and Real Time OS modules
/home/tormach/tmc/scripts/realtime stop
module helper '/home/tormach/tmc/bin/linuxcnc_module_helper' found.
failed to set permissions of /home/tormach/tmc/bin/linuxcnc_module_helper
have you installed fileperms?
Removing NML shared memory segments
rm /tmp/linuxcnc.lock
Cleanup done
UI exit code: 255
bad exit code killing SPLASH
killtree.sh 2613 TERM
kill -TERM 2613
sourcing /home/tormach/tmc/scripts/rip-environment.sh /home/tormach/tmc
Setting enviroment to run Tormach LinuxCNC to run-in-place for development
Using command line supplied EMC2_HOME: /home/tormach/tmc
EMC2_HOME = /home/tormach/tmc, absolute path for /home/tormach/tmc
EMC2_HOME: /home/tormach/tmc
new PATH: /home/tormach/tmc/python:/home/tormach/tmc/bin:/home/tormach/tmc/scripts:/home/tormach/tmc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
new LD_LIBRARY_PATH: /home/tormach/tmc/lib
new PYTHONPATH: /home/tormach/tmc/python/scanner:/home/tormach/tmc/python:/home/tormach/tmc/python/config_picker:/home/tormach/tmc/lib/python:/home/tormach/tmc/python/scanner2
Temporary directory for linuxcnc: /tmp/linuxcnc
RIP environment setup complete...
setting touchscreen calibration
No calibration file found: /home/tormach/gcode/pointercal.xinput
starting log rotator
logrotator.sh 3600 /home/tormach/gcode/logfiles/logrotate.conf /home/tormach/gcode/logfiles/logrotate.status
LOGROTATOR_PID: 2582
logrotate /home/tormach/gcode/logfiles/logrotate.conf -s /home/tormach/gcode/logfiles/logrotate.status
Failed to set permissions on /home/tormach/tmc/bin/shifttest
gnome-power-manager already running
/home/tormach/operator_login: line 195: Failed: command not found
/home/tormach/operator_login: line 197: Failed: command not found
HAVE_GNOME: 1
Failed to set permissions on /sbin/shutdown
Failed to set permissions on /home/tormach/tmc/bin/time-admin-wrapper
INI file: ~/tmc/configs/tormach_lathe/lathe_tn.ini
/home/tormach/tmc/configs/tormach_lathe/lathe_tn.ini
[HOSTMOT2] BITFILE0 = ''
[HOSTMOT2] BITFILE0 entry not found in INI file.
Assuming sim config.
linuxcnc ~/tmc/configs/tormach_lathe/lathe_tn.ini
Setting enviroment to run Tormach LinuxCNC to run-in-place for development
Using command line supplied EMC2_HOME: /home/tormach/tmc
EMC2_HOME = /home/tormach/tmc, absolute path for /home/tormach/tmc
PATH: /home/tormach/tmc/python:/home/tormach/tmc/bin:/home/tormach/tmc/scripts:/home/tormach/tmc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
This script only needs to be run once per shell session.
prefix: /home/tormach/tmc
exec_prefix: /home/tormach/tmc
EMC2_BIN_DIR=/home/tormach/tmc/bin
EMC2_RTLIB_DIR=/home/tormach/tmc/rtlib
INIFILE: ~/tmc/configs/tormach_lathe/lathe_tn.ini
~/tmc/configs/tormach_lathe/lathe_tn.ini started with tilde
expanded INIFILE: /home/tormach/tmc/configs/tormach_lathe/lathe_tn.ini
EXTRA_ARGS:
RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/tormach/tmc/bin
LINUXCNC_RTLIB_DIR=/home/tormach/tmc/rtlib
INIVAR=inivar
HALCMD=halcmd
LINUXCNC - 2.6.0~pre
/home/tormach/tmc/scripts/linuxcnc: line 182: fileperms: command not found
failed to set permissions of /dev/hidraw0
inserted into PYTHONPATH: /home/tormach/tmc/configs/tormach_lathe/python
Machine configuration directory is '/home/tormach/tmc/configs/tormach_lathe'
Machine configuration file is 'lathe_tn.ini'
INIFILE=/home/tormach/tmc/configs/tormach_lathe/lathe_tn.ini
PARAMETER_FILE=~/lathe_data/emc.var
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
TASK=milltask
HALUI=halui
DISPLAY=tormach_lathe_ui.py
EMCDISPLAY_FULLPATH: /home/tormach/tmc/python/tormach_lathe_ui.py
EMCDISPLAY_DIR: /home/tormach/tmc/python
inserted into PYTHONPATH: /home/tormach/tmc/python
NML_FILE: /home/tormach/tmc/configs/common/linuxcnc.nml
User's HOME directory: /home/tormach
/home/tormach/tmc/scripts/check_mill_tool_table.py: tool file is /home/tormach/mill_data/tool.tbl
scanning mill tool table
tool table is already up to date
Can not find -sec REDIS -var DISABLE_SERVER -num 1
DISABLE_SERVER=
Can not find -sec REDIS -var SERVER_PATH -num 1
SERVER_PATH=
SERVER_ARGS=--dir ~/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
REDIS_SERVER_ARGS: --dir ~/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
REDIS_SERVER_ARGS: --dir /home/tormach/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
Can not find -sec REDIS -var SERVER_LOG -num 1
SERVER_LOG=
Starting LinuxCNC...
Starting redis server program:
redis server started as: 'redis-server --dir /home/tormach/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000', logging to: /dev/null
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
module helper '/home/tormach/tmc/bin/linuxcnc_module_helper' found.
failed to set permissions of /home/tormach/tmc/bin/linuxcnc_module_helper
have you installed fileperms?
/home/tormach/tmc/scripts/realtime start: Realtime system did not load
Shutting down and cleaning up LinuxCNC...
2640
Killing linuxcncsvr
Killing task linuxcncsvr, PID=2640
PID TTY STAT TIME COMMAND
2639
Killing redis-server
Killing task redis-server, PID=2639
PID TTY STAT TIME COMMAND
2639 pts/0 Sl+ 0:00 redis-server --dir /home/tormach/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
PID TTY STAT TIME COMMAND
Stopping realtime threads
halcmd stop
RTAPI: ERROR: could not open shared memory (errno=2)
/home/tormach/tmc/scripts/linuxcnc: line 520: 2670 Segmentation fault $HALCMD stop
Unloading hal components
halcmd unload all
RTAPI: ERROR: could not open shared memory (errno=2)
/home/tormach/tmc/scripts/linuxcnc: line 520: 2671 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)
Removing HAL_LIB, RTAPI, and Real Time OS modules
/home/tormach/tmc/scripts/realtime stop
module helper '/home/tormach/tmc/bin/linuxcnc_module_helper' found.
failed to set permissions of /home/tormach/tmc/bin/linuxcnc_module_helper
have you installed fileperms?
Removing NML shared memory segments
rm /tmp/linuxcnc.lock
Cleanup done
UI exit code: 255
bad exit code killing SPLASH
killtree.sh 2613 TERM
kill -TERM 2613
Please Log in or Create an account to join the conversation.
- ftkalcevic
- Offline
- Junior Member
-
Less
More
- Posts: 30
- Thank you received: 4
6 years 10 months ago #153137
by ftkalcevic
Replied by ftkalcevic on topic hidconfig lcd problem
You only need to build linuxcnc. To build hidcomp you only need the contents of the lib and include directories that are generated by the build.
cd pathpilot/linuxcnc/src
./autogen.sh
./configure --enable-simulator
make
I built on the pathpilot image so had to install some build packages.
cd pathpilot/linuxcnc/src
./autogen.sh
./configure --enable-simulator
make
I built on the pathpilot image so had to install some build packages.
Please Log in or Create an account to join the conversation.
- porshe
- Offline
- Senior Member
-
Less
More
- Posts: 44
- Thank you received: 1
6 years 10 months ago #153161
by porshe
Replied by porshe on topic hidconfig lcd problem
Well, finally. Yes. Yes. Yes.It works. Thank you very much for your work. I wanted to ask you about the source of Path Pilot 1.8.2 can be put on "ubuntu-10.04-linuxcnc3-i386.iso"?
Please Log in or Create an account to join the conversation.
- ftkalcevic
- Offline
- Junior Member
-
Less
More
- Posts: 30
- Thank you received: 4
6 years 10 months ago #153165
by ftkalcevic
Replied by ftkalcevic on topic hidconfig lcd problem
I do not know. You'll need to ask someone who knows about this. There may also be an issue with redeploying Tormach's code.
Why do you want the code put on the iso?
Why do you want the code put on the iso?
Please Log in or Create an account to join the conversation.
Time to create page: 5.236 seconds