compiling kinematics

More
11 Jul 2013 03:41 #36531 by ddmotim
Replied by ddmotim on topic compiling kinematics
Thanks guys. I don't know what I was missing earlier, but it just would not compile. I removed LinuxCNC and started over with a fresh install and got everything working. Thanks for the guidance

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

More
29 Jul 2013 19:59 - 29 Jul 2013 20:09 #37216 by ddmotim
Replied by ddmotim on topic compiling kinematics
New issue, but I didn't want to start a new thread...

I got my machine moving, but it seems like the kinematics are way off... Each axis moves as expected, but in world mode the whole system does not. I went back into my genhexkins.h file and modified a few numbers (my initial offsets, etc were just estimates) and when I tried to recompile, I got a big error in the terminal. If anyone could take a look and see what might be my problem I'd really appreciate it.
kinematics file:

File Attachment:

File Name: genhexkins.h
File Size:8 KB
Attachments:
Last edit: 29 Jul 2013 20:09 by ddmotim.

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

More
29 Jul 2013 20:06 #37217 by andypugh
Replied by andypugh on topic compiling kinematics
Can't see the error report

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

More
29 Jul 2013 20:09 - 29 Jul 2013 20:15 #37218 by ddmotim
Replied by ddmotim on topic compiling kinematics
Printout from terminal:


File Attachment:

File Name: errormessage.txt
File Size:10 KB
Attachments:
Last edit: 29 Jul 2013 20:15 by ddmotim.

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

More
29 Jul 2013 20:10 - 29 Jul 2013 20:36 #37219 by ddmotim
Replied by ddmotim on topic compiling kinematics
fixed link
Last edit: 29 Jul 2013 20:36 by ddmotim.

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

More
29 Jul 2013 21:09 - 29 Jul 2013 21:12 #37225 by ArcEye
Replied by ArcEye on topic compiling kinematics
Hi

The error report is littered with spurious charactors, hard to see what some of it is about

This is the first error

/home/minibox/linuxcnc-dev/src/emc/kinematics/genhexkins.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘MINI_TETRA’


Line 35 is

define MINI_TETRA
define NUM_STRUTS 6


MINI_TETRA is not defined as anything and should be

#define MINI_TETRA 1234

same for every altered define in the file, the preceding hash is missing

regards
Last edit: 29 Jul 2013 21:12 by ArcEye.

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

More
29 Jul 2013 21:42 #37228 by ddmotim
Replied by ddmotim on topic compiling kinematics
Looks like those suspicious characters are supposed to be apostrophes ( ' ). I will try your suggestion, but doesn't the hash comment things out? MINI_TETRA is defined toward the bottom of the .h file. If all of those lines have the hash, how will any code be constructed? I removed the hash only on the sections that I was using. I'm leery because those hashes are all as they were when I first set up the machine, and it compiled before.
Thanks

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

More
29 Jul 2013 22:05 #37229 by ArcEye
Replied by ArcEye on topic compiling kinematics

but doesn't the hash comment things out


No it doesn't, you are using C, not a script or python.

The comments for C are either /* ............... */ or //

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

More
29 Jul 2013 22:38 #37230 by ddmotim
Replied by ddmotim on topic compiling kinematics
That was my confusion. Thanks for the help

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

Time to create page: 0.106 seconds
Powered by Kunena Forum