XHC-HB04 wireless MPG pendant HAL module

More
31 Aug 2013 15:35 #38295 by f1oat
Hello,
Could you send us what is printed on your terminal ? What is the full error message ?
Frederic.

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

More
31 Aug 2013 18:34 - 31 Aug 2013 19:05 #38301 by chimeno

hello,

this is what I get to do make:
root@albert-desktop:~# cd Descargas/src
root@albert-desktop:~/Descargas/src# ls
Makefile  xhc-hb04.cc   xhc-hb04-layout1.ini  xhc-hb04-world-mode.hal
README    xhc-hb04.hal  xhc-hb04-layout2.ini
root@albert-desktop:~/Descargas/src# make
g++ -I/usr/include/linuxcnc -DVERSION=V05 xhc-hb04.cc -o xhc-hb04 -lusb-1.0 -lm -llinuxcnchal -llinuxcncini
xhc-hb04.cc:34:26: error: linuxcnc/hal.h: No existe el fichero o el directorio
xhc-hb04.cc:35:22: error: inifile.hh: No existe el fichero o el directorio
xhc-hb04.cc:61: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type
xhc-hb04.cc:61: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:62: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type
xhc-hb04.cc:62: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:64: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type
xhc-hb04.cc:64: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:65: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type
xhc-hb04.cc:65: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:67: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type
xhc-hb04.cc:67: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:69: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type
xhc-hb04.cc:69: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:70: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type
xhc-hb04.cc:70: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:71: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type
xhc-hb04.cc:71: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:72: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type
xhc-hb04.cc:72: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:73: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type
xhc-hb04.cc:73: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:74: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type
xhc-hb04.cc:74: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:75: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type
xhc-hb04.cc:75: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:76: error: ISO C++ forbids declaration of ‘hal_s32_t’ with no type
xhc-hb04.cc:76: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:78: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type
xhc-hb04.cc:78: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:79: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type
xhc-hb04.cc:79: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:80: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type
xhc-hb04.cc:80: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:81: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type
xhc-hb04.cc:81: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:82: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type
xhc-hb04.cc:82: error: expected ‘;’ before ‘*’ token
xhc-hb04.cc:93: error: ‘hal_s32_t’ does not name a type
xhc-hb04.cc: In function ‘const char* iniFind(FILE*, const char*, const char*)’:
xhc-hb04.cc:109: error: ‘IniFile’ was not declared in this scope
xhc-hb04.cc:109: error: expected ‘;’ before ‘f’
xhc-hb04.cc:111: error: ‘f’ was not declared in this scope
xhc-hb04.cc: In function ‘void xhc_display_encode(xhc_t*, unsigned char*, int)’:
xhc-hb04.cc:147: error: ‘struct xhc_hal_t’ has no member named ‘a_wc’
xhc-hb04.cc:148: error: ‘struct xhc_hal_t’ has no member named ‘x_wc’
xhc-hb04.cc:149: error: ‘struct xhc_hal_t’ has no member named ‘y_wc’
xhc-hb04.cc:150: error: ‘struct xhc_hal_t’ has no member named ‘z_wc’
xhc-hb04.cc:151: error: ‘struct xhc_hal_t’ has no member named ‘a_mc’
xhc-hb04.cc:152: error: ‘struct xhc_hal_t’ has no member named ‘x_mc’
xhc-hb04.cc:153: error: ‘struct xhc_hal_t’ has no member named ‘y_mc’
xhc-hb04.cc:154: error: ‘struct xhc_hal_t’ has no member named ‘z_mc’
xhc-hb04.cc:155: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’
xhc-hb04.cc:156: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’
xhc-hb04.cc:157: error: ‘struct xhc_hal_t’ has no member named ‘feedrate’
xhc-hb04.cc:158: error: ‘struct xhc_hal_t’ has no member named ‘spindle_rps’
xhc-hb04.cc: In function ‘void linuxcnc_simu(xhc_hal_t*)’:
xhc-hb04.cc:211: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’
xhc-hb04.cc:212: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’
xhc-hb04.cc:212: error: ‘struct xhc_hal_t’ has no member named ‘jog_scale’
xhc-hb04.cc:213: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_x’
xhc-hb04.cc:214: error: ‘struct xhc_hal_t’ has no member named ‘x_mc’
xhc-hb04.cc:215: error: ‘struct xhc_hal_t’ has no member named ‘x_wc’
xhc-hb04.cc:218: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_y’
xhc-hb04.cc:219: error: ‘struct xhc_hal_t’ has no member named ‘y_mc’
xhc-hb04.cc:220: error: ‘struct xhc_hal_t’ has no member named ‘y_wc’
xhc-hb04.cc:223: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_z’
xhc-hb04.cc:224: error: ‘struct xhc_hal_t’ has no member named ‘z_mc’
xhc-hb04.cc:225: error: ‘struct xhc_hal_t’ has no member named ‘z_wc’
xhc-hb04.cc:228: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_a’
xhc-hb04.cc:229: error: ‘struct xhc_hal_t’ has no member named ‘a_mc’
xhc-hb04.cc:230: error: ‘struct xhc_hal_t’ has no member named ‘a_wc’
xhc-hb04.cc:233: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_spindle’
xhc-hb04.cc:234: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’
xhc-hb04.cc:234: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’
xhc-hb04.cc:235: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’
xhc-hb04.cc:235: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’
xhc-hb04.cc:236: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’
xhc-hb04.cc:236: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’
xhc-hb04.cc:237: error: ‘struct xhc_hal_t’ has no member named ‘spindle_rps’
xhc-hb04.cc:237: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’
xhc-hb04.cc:240: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_feedrate’
xhc-hb04.cc:241: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’
xhc-hb04.cc:241: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’
xhc-hb04.cc:242: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’
xhc-hb04.cc:242: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’
xhc-hb04.cc:243: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’
xhc-hb04.cc:243: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’
xhc-hb04.cc:244: error: ‘struct xhc_hal_t’ has no member named ‘feedrate’
xhc-hb04.cc:244: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’
xhc-hb04.cc:247: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’
xhc-hb04.cc: In function ‘void compute_velocity(xhc_t*)’:
xhc-hb04.cc:261: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’
xhc-hb04.cc:261: error: ‘struct xhc_t’ has no member named ‘last_jog_counts’
xhc-hb04.cc:261: error: ‘struct xhc_hal_t’ has no member named ‘jog_scale’
xhc-hb04.cc:262: error: ‘struct xhc_hal_t’ has no member named ‘jog_max_velocity’
xhc-hb04.cc:262: error: ‘struct xhc_hal_t’ has no member named ‘jog_scale’
xhc-hb04.cc:266: error: ‘struct xhc_hal_t’ has no member named ‘jog_velocity’
xhc-hb04.cc:266: error: ‘struct xhc_hal_t’ has no member named ‘jog_velocity’
xhc-hb04.cc:267: error: ‘struct xhc_hal_t’ has no member named ‘jog_increment’
xhc-hb04.cc:268: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_x’
xhc-hb04.cc:268: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_x’
xhc-hb04.cc:269: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_x’
xhc-hb04.cc:269: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_x’
xhc-hb04.cc:270: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_y’
xhc-hb04.cc:270: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_y’
xhc-hb04.cc:271: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_y’
xhc-hb04.cc:271: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_y’
xhc-hb04.cc:272: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_z’
xhc-hb04.cc:272: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_z’
xhc-hb04.cc:273: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_z’
xhc-hb04.cc:273: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_z’
xhc-hb04.cc:274: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_a’
xhc-hb04.cc:274: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_a’
xhc-hb04.cc:275: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_a’
xhc-hb04.cc:275: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_a’
xhc-hb04.cc:276: error: ‘struct xhc_t’ has no member named ‘last_jog_counts’
xhc-hb04.cc:276: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’
xhc-hb04.cc:280: error: ‘struct xhc_hal_t’ has no member named ‘jog_velocity’
xhc-hb04.cc:280: error: ‘struct xhc_hal_t’ has no member named ‘jog_velocity’
xhc-hb04.cc:282: error: ‘struct xhc_hal_t’ has no member named ‘jog_velocity’
xhc-hb04.cc:283: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_x’
xhc-hb04.cc:284: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_x’
xhc-hb04.cc:285: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_y’
xhc-hb04.cc:286: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_y’
xhc-hb04.cc:287: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_z’
xhc-hb04.cc:288: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_z’
xhc-hb04.cc:289: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_a’
xhc-hb04.cc:290: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_a’
xhc-hb04.cc: In function ‘void cb_response_in(libusb_transfer*)’:
xhc-hb04.cc:309: error: ‘struct xhc_hal_t’ has no member named ‘jog_scale’
xhc-hb04.cc:310: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’
xhc-hb04.cc:311: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts_neg’
xhc-hb04.cc:311: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’
xhc-hb04.cc:313: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_x’
xhc-hb04.cc:314: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_y’
xhc-hb04.cc:315: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_z’
xhc-hb04.cc:316: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_a’
xhc-hb04.cc:317: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_feedrate’
xhc-hb04.cc:318: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_spindle’
xhc-hb04.cc:321: error: ‘struct xhc_hal_t’ has no member named ‘button_pin’
xhc-hb04.cc:322: error: ‘struct xhc_hal_t’ has no member named ‘button_pin’
xhc-hb04.cc:323: error: ‘struct xhc_hal_t’ has no member named ‘button_pin’
xhc-hb04.cc: At global scope:
xhc-hb04.cc:349: error: ‘hal_pin_dir_t’ was not declared in this scope
xhc-hb04.cc:349: error: ‘hal_float_t’ was not declared in this scope
xhc-hb04.cc:349: error: ‘data_ptr_addr’ was not declared in this scope
xhc-hb04.cc:349: error: expected primary-expression before ‘int’
xhc-hb04.cc:349: error: expected primary-expression before ‘const’
xhc-hb04.cc:349: error: expected primary-expression before ‘...’ token
xhc-hb04.cc:349: error: initializer expression list treated as compound expression
xhc-hb04.cc:350: error: expected ‘,’ or ‘;’ before ‘{’ token
make: *** [xhc-hb04] Error 1
root@albert-desktop:~/Descargas/src#
Last edit: 31 Aug 2013 19:05 by BigJohnT. Reason: add code tags

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

More
31 Aug 2013 19:04 #38302 by f1oat
Looks like LinuxCNC dev package is missing.
Try "sudo apt-get install linuxcnc-dev"

Frederic.

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

More
01 Sep 2013 17:05 #38355 by chimeno
hello

thank you very much, now I can install


Albert

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

More
01 Oct 2013 04:57 #39423 by rmagnus
Dear Frederic

THANK YOU for this cool way to control our CNC machines!

I have followed all your instructuions

The make and make install did not work so I kept reading the forum.

but got stuck when installing linuxcnc-dev

I get the error

E:couldn´t find package linuxcnc-dev

PLEASE HELP!!!!

THANK YOU

Sincerely

Rodolfo Magnus

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

More
01 Oct 2013 11:11 #39430 by rmagnus
Hello again

At the synaptic package manager I changed the two base emc2.4 for base linuxcnc2.5 and installed linuxcnc-dev

The I managed to run make and make install at the directory where I unpacked your module files.

It ran withour trouble or complaint.

But now I cannot run linuxcnc. It crashes with the following error

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

More
01 Oct 2013 11:12 #39431 by rmagnus
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.3
Machine configuration directory is '/home/probotix/emc2/configs/Comet'
Machine configuration file is 'Comet.ini'
INIFILE=/home/probotix/emc2/configs/Comet/Comet.ini
PARAMETER_FILE=emc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1474
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
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
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
Comet.hal:3: Warning: File contains DOS-style line endings.
No input devices could be opened. This usually indicates a misconfigured
system. Please read the section 'PERMISSIONS AND UDEV' in the hal_input
manpage
Comet.hal:14: hal_input exited without becoming ready
1474
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 35.470172] I-pipe: Domain RTAI registered.
[ 35.470187] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 35.470192] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 35.470311] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 35.470317] PIPELINE layers:
[ 35.470322] f8dc5e20 9ac15d93 RTAI 200
[ 35.470327] c085cb20 0 Linux 100
[ 35.516355] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 35.516879] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 35.516895] RTAI[sched]: hard timer type/freq = APIC/12468620(Hz); default timing: periodic; linear timed lists.
[ 35.516906] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1795410000 hz.
[ 35.516914] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 35.517047] RTAI[usi]: enabled.
[ 35.583565] RTAI[math]: loaded.
[ 35.790415] config string '0x378'
[ 37.386277] RTAI[math]: unloaded.
[ 37.434088] SCHED releases registered named ALIEN RTGLBH
[ 37.497500] RTAI[malloc]: unloaded.
[ 37.596066] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 37.600606] I-pipe: Domain RTAI unregistered.
[ 37.600747] RTAI[hal]: unmounted.

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

More
01 Oct 2013 11:13 #39432 by rmagnus
Now I am panicking! I have work to do and I cannot use my CNC machine!!!!

HELP PLEASE!!!!

THANK YOU!

SIncerely
Rodolfo

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

More
01 Oct 2013 14:00 #39434 by cncbasher
your problem is here

Unrecognized line skipped: POC FMS LEN DIAM COMMENT
Comet.hal:3: Warning: File contains DOS-style line endings.
No input devices could be opened. This usually indicates a misconfigured
system. Please read the section 'PERMISSIONS AND UDEV' in the hal_input
manpage
Comet.hal:14: hal_input exited without becoming ready
1474

have you been editing your hal files etc using windows ?
easy way to solve is open the file in gedit then go to save as , you will find an option to change line endings from windows to Unix/Linux ( bottom right )

this is a common problem with files when editing under windows or transfering from a windows machine using email etc
so always check using gedit and re-save will fix it
The following user(s) said Thank You: rmagnus

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

More
01 Oct 2013 16:30 #39437 by andypugh

Now I am panicking! I have work to do and I cannot use my CNC machine!!!!


A major change between version 2.4 and 2.5 was that there was a name-change from emc2 to linuxcnc.

You need to make sure that you have followed all the steps here:
wiki.linuxcnc.org/cgi-bin/wiki.pl?UpdatingTo2.5

hal_input gives different names to some buttons in 2,5, ( HAL_INPUT - pin name changed eg. input.0.btn.trigger should be renamed to input.0.btn.joystick)
But it doesn't look like you are getting that far.

Thinking about it, I think I have had exactly the the same error and the cause was unexpectedly simple, I had unplugged the joystick to plug in a USB drive
The following user(s) said Thank You: rmagnus

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

Time to create page: 0.106 seconds
Powered by Kunena Forum