Java UI for linuxcnc

More
09 Jul 2021 09:30 #214071 by vmihalca
Replied by vmihalca on topic Java UI for linuxcnc
Nope it wasn't that, switched to linuxcnc master, rebuild linuxcnc, rebuilt JCNCScreen.. again, same error :/

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

More
09 Jul 2021 13:29 #214099 by Reinhard
Replied by Reinhard on topic Java UI for linuxcnc
Hi,

I use linuxcnc github master as rip-installation (which is the only installation type, that works for me).

The error you get is unresolved constructor of NML class.
The only part, where I use NML is in ErrorReader.cc - and if that constructor would fail, I would not receive any error message from linuxcnc backend.
But I do get error messages from linuxcnc backend.

Therefore I stated, I don't know, what goes wrong, but I can't see any bug in my code or makefile.

Any help is appreciated a lot!

As I already wrote, I use debian stable, and for so, I use openjdk version 11 and openjdk-runtime. gcc is version 8.3.0 - don't know, what else could matter ...

When you issue
ldd libLinuxCNC.so
in native directory, every lib should be printed with absolute path. Important are the libs from linuxcnc:
  • liblinuxcncini.so.0
  • liblinuxcnchal.so.0
  • libnml.so.0
  • libtooldata

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

More
11 Jul 2021 06:26 #214231 by Reinhard
Replied by Reinhard on topic Java UI for linuxcnc
Hi,

I just solved my problem with native layer.
May be you like to try again, whether it works for you too.
The following user(s) said Thank You: rodw

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

More
13 Jul 2021 10:22 #214532 by vmihalca
Replied by vmihalca on topic Java UI for linuxcnc
I've made a git pull on branch master of linuxcnc, then ran "make" and "sudo make setuid"
I've made a git pull on your repos, ran ant dist on the export handler and on the jcnc screen
Then I tried to run the ldd command, and the results are not like yours. 
From what I can see by inspecting the make file, is that the paths that I have under my lc folder, are not matching the ones specified in the makefile. 
This leads me to conclusion that we're not using the same version of linuxcnc? How come we can have different folder structures if we're both on linuxcnc master?
See attached a screenshot with the relevant informations: 
The tree structure in lc folder, a comment in the make file with the paths that are not correct for me, the embedded ide terminal with the result of ldd command, and the external terminal that shows on which branch I am with linuxcnc.

Please let me know your thoughts on the different lc folder structure.
Attachments:

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

More
13 Jul 2021 13:36 - 13 Jul 2021 13:37 #214582 by Reinhard
Replied by Reinhard on topic Java UI for linuxcnc
Hi,

if you place a softlink into native directory, called lc pointing to root of linuxcnc, then everything is fine, even if the absolute paths are different.
Last edit: 13 Jul 2021 13:37 by Reinhard.

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

More
13 Jul 2021 13:52 #214585 by Reinhard
Replied by Reinhard on topic Java UI for linuxcnc
Currently I have problems with internet - so I wrote from mobile phone without looking at your picture.

Your right of cause! The include paths are wrong.
I have no idea, why it compiled without problems.
Anyway - change your Makefile and I push a changed variant as soon as I can connect to github.

Thank you for your feedback!

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

More
13 Jul 2021 15:47 #214603 by vmihalca
Replied by vmihalca on topic Java UI for linuxcnc
I have that softlink.

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

More
13 Jul 2021 16:25 #214608 by Reinhard
Replied by Reinhard on topic Java UI for linuxcnc
OK, fixed Makefile is uploaded

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

More
13 Jul 2021 17:33 #214626 by vmihalca
Replied by vmihalca on topic Java UI for linuxcnc
Are you sure that your code really gets compiled? I think you may have a cache or smth.
If I move to native folder and I try to run a make command, I get the following error.
The signature from the header file does not match the signature in the c file.
Attachments:

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

More
13 Jul 2021 17:41 #214628 by vmihalca
Replied by vmihalca on topic Java UI for linuxcnc
Changed the signature in the header file, then ran an ant dist.
After that I checked the ldd command but still no linuxcnc libs....
The softlink is there..no idea what I'm missing :/
Attachments:

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

Time to create page: 0.191 seconds
Powered by Kunena Forum