hidconfig lcd problem

More
15 Mar 2015 20:07 #56844 by hal115
hidconfig lcd problem was created by hal115
I am bulding a pendant for linuxcnc-lathe. I am using GenericHid and HidConfig (Franks Workshop) to program a Teensy ++2.
Everything is fine including Lcd output in Hidconfig. In postgui.hal its loaded: loadusr -W hidcomp -ini axis.ini lcd_axis.hid . In EMC section is
NML-FILE = lcd_axis.nml . This includes
P hidcomp emcCommand LOCAL localhost W 0 10.0 0 10
P hidcomp emcStatus LOCAL localhost R 0 10.0 0 10
P hidcomp emcError LOCAL localhost R 0 10.0 0 10
Inifile has : DEBUG = 0x00000040 (NML)

Starting linuxcnc via terminal gives an error -> hidcomp: symbol lookup error: hidcomp: undefined symbol: _ZN7IniFile4FindEPKcS1_i
I grepped the harddisk but i cannot find a file with this in it. Without terminal statrting linuxcnc gives no error but there is no LCD output that is
configured in Hidconfig. Any ideas?
regards

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

More
19 Mar 2015 16:57 #57004 by Jblb
Replied by Jblb on topic hidconfig lcd problem
Hi,
got same problem here on a LinuxCNC 2.6.7 box. Futher investigation show me that nothing works on hal side of hidcomp, no LCD, no input buttons, no output...
I will try to build hidcomp from sources.

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

More
19 Mar 2015 20:03 #57011 by andypugh
Replied by andypugh on topic hidconfig lcd problem
hidcomp isn't directly supported by LinuxCNC, you might have to ask for help at the hidcomp site.

Perhaps raising a bug? sourceforge.net/p/hidcomp/bugs/

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

More
22 Mar 2015 05:36 #57077 by ftkalcevic
Replied by ftkalcevic on topic hidconfig lcd problem
I've replied to the bug report in source forge...

sourceforge.net/p/hidcomp/bugs/2/

This is a loader error. Linux cannot find the library that hidcomp was compiled against. Because the program compiled successfully, all libraries are present. You just need to make sure when you run the program the same library you compiled against can be found.
This is normally a problem where the a package install is clashing with a source install.

You can start by identifying the symbol that the loader couldn't find...

> c++filt -n _ZN15RCS_CMD_CHANNELC1EPFiiPvP3CMSEPKcS6_S6_i
RCS_CMD_CHANNEL::RCS_CMD_CHANNEL(int ()(int, void, CMS), char const, char const, char const, int)

This probably doesn't tell use too much, except it is a linuxcnc NML function that should be in libnml.so

We can check which libnml.so hidcomp wants (put in the full path to hidcomp)...

> ldd hidcomp
linux-gate.so.1 => (0xb77ad000)
libQtGui.so.4 => /usr/lib/i386-linux-gnu/libQtGui.so.4 (0xb68ad000)
liblinuxcnchal.so.0 => /usr/lib/liblinuxcnchal.so.0 (0xb68a2000)
* libnml.so.0 => /usr/lib/libnml.so.0 (0xb685c000)
liblinuxcncini.so.0 => /usr/lib/liblinuxcncini.so.0 (0xb6858000)
libQtXml.so.4 => /usr/lib/i386-linux-gnu/libQtXml.so.4 (0xb6816000)
...

We can check if the symbol is in libnml.so...

> nm /usr/lib/libnml.so | grep _ZN15RCS_CMD_CHANNELC1EPFiiPvP3CMSEPKcS6_S6_i
_ZN15RCS_CMD_CHANNELC1EPFiiPvP3CMSEPKcS6_S6_i

One of the previous commands should have failed if the library isn't in the right place.

Another possibility is you are still running the old hidcomp. If this is the case there are 2 options - 1) put the full path to the new hidcomp in the .hal file. 2) uninstall the old hidcomp package, then build the new hidcomp package (in the hidcomp source in the dpkg directory - run "sudo build.sh" will create a new package leave it a up couple of directory levels) Then you can install the new package.

One thing I forgot to mention is, when building against the source, make sure the version of the source is correct - there is a VERSION file in the root directory that contains linuxcnc's version.

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

More
20 Mar 2016 09:58 #71940 by JANNOVV
Replied by JANNOVV on topic hidconfig lcd problem
building hidconfig on a LinuxCNC give a error at run time:
hidconfig: symbol lookup error: hidconfig: undefined symbol: _ZN9QListData6detachEi
I'm using a image based on the ubuntu-10.04-linuxcnc3-i386.iso. 
install -
sudo apt-get install qt4-qmake libqt4-dev
hidcomp_1.7_i386.deb

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

More
22 Mar 2016 07:54 #72005 by ftkalcevic
Replied by ftkalcevic on topic hidconfig lcd problem
The C++ demangler says the undefined symbol: _ZN9QListData6detachEi is

QListData::detach(int)

This is from the QT libraries.

It could be you have multiple versions of QT installed. Check your PATH, LD_LIBRARY_PATH and QTDIR environment settings.

Are you actually compiling the hidcomp source, or just installing the precompiled binary? No new binaries have been bultt for a while.

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

More
08 Sep 2019 16:42 #144541 by porshe
Replied by porshe on topic hidconfig lcd problem
Maybe someone had a similar problem.
I connected the hidcomp to Linuxcnc, everything works fine. On lcd it shows the movement of axes. On the Pathpilot it works but you need to disable lcd in the hidconfig. With the lcd turned on, the Pathpilot doesn’t respond to button presses and doesn’t show anything. I can not get the lcd to work on the Pathpilot together with the hidcomp.

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

More
08 Sep 2019 23:07 #144551 by ftkalcevic
Replied by ftkalcevic on topic hidconfig lcd problem

I connected the hidcomp to Linuxcnc, everything works fine.


Is your linuxcnc configuration different to your pathpilot configuration? Different files? Different directories?

On the Pathpilot it works but you need to disable lcd in the hidconfig. With the lcd turned on, the Pathpilot doesn’t respond to button presses and doesn’t show anything. I can not get the lcd to work on the Pathpilot together with the hidcomp.


If the LCD isn't working, it is usually the NML configuration. That is described in the first post.

Do you see any errors? They should be logged to linuxcnc_print and linuxcnc_debug in you home directory.

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

More
13 Sep 2019 14:01 #145059 by porshe
Replied by porshe on topic hidconfig lcd problem
I use one NML-FILE file for Linuxcnc and Pathpilot.

Warning: Spoiler!


These parameters are spelled out.
Linuxcnc 10.04. Pathpilot 1.9.8.
I use the simplest example of moving the joystick.

Warning: Spoiler!


Linux works well with LCD.
If you document the last line, it works fine in Pathpilot but without LСD

The pathpilotlog file shows errors.

Warning: Spoiler!

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

More
13 Sep 2019 22:11 #145084 by ftkalcevic
Replied by ftkalcevic on topic hidconfig lcd problem

2019/09/13 08:51:06.445,18034,1,hiddevice.cpp:312,Warning,hidcomp,HIDDevice,Failed to open usb device: -3
2019/09/13 08:51:06.459,18034,1,emcinterface.cpp:98,Error,hidcomp,EmcInterface,Failed to open ini file - 'tormach_lathe.ini'


Two errors. I'd fix the second one first - it can't find the ini file - either no read permission, or wrong path. The ini file is specified on the "loadusr" line.

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

Time to create page: 0.168 seconds
Powered by Kunena Forum