Hey Schooner,

So I changed the includes in /usr/share/linuxcnc/interp_base.hh which is 
what is causing the bug that is keeping this from compiling on machinekit. 
I changed #include <emcpos.h> and #include <modal_state.hh> to #include 
"emcpos.h" and #include "modal_state.hh" and that fixed the include errors. 
I don't understand why these include errors are happening because they CC 
flags have -I/usr/share/linuxcnc which should allow <> to work...

Now I try to compile again and I get a bunch of errors about hal_(s32, bit, 
u32, etc)_t all missing and these are missing in context to motion.h. So I 
find that hal_types.h contains these typedefs. I add #include "hal_types.h" 
to motion.h and that takes care of these errors...

Now any ideas about the following?

Compiling CXX: src/linuxcnc.cpp -> build/release/linuxcnc.o
In file included from /usr/include/linuxcnc/hal_types.h:4:0,
                 from /usr/include/linuxcnc/motion.h:80,
                 from src/linuxcnc.cpp:21:
/usr/include/linuxcnc/rtapi.h:70:2: error: #error "Please define either 
RTAPI or ULAPI!"
 #error "Please define either RTAPI or ULAPI!"
  ^
In file included from /usr/include/linuxcnc/hal_types.h:4:0,
                 from /usr/include/linuxcnc/motion.h:80,
                 from src/linuxcnc.cpp:21:
/usr/include/linuxcnc/rtapi.h:97:25: fatal error: rtapi_errno.h: No such 
file or directory
 #include <rtapi_errno.h>
                         ^
compilation terminated.
Makefile:270: recipe for target 'build/release/linuxcnc.o' failed
make[1]: *** [build/release/linuxcnc.o] Error 1
Makefile:181: recipe for target 'release' failed
make: *** [release] Error 2

Thanks,
Travis




On Thursday, October 18, 2018 at 1:56:59 AM UTC-4, Schooner wrote:
>
> The <> brackets make assumptions about the path
>
> Just replace them with "" and the header in the same dir will be found
>
> On 10/17/2018 10:12 PM, Aurelien wrote:
>
> The file exist in the /usr/include/linuxcnc directory 
>
>
> /********************************************************************
> * Description: emcpos.h
> *
> *   Derived from a work by Fred Proctor & Will Shackleford
> *
> * Author:
> * License: GPL Version 2
> * System: Linux
> *    
> * Copyright (c) 2004 All rights reserved.
> *
> * Last change:
> ********************************************************************/
> #ifndef EMCPOS_H
> #define EMCPOS_H
>
> #include "posemath.h" /* PmCartesian */
>
> typedef struct EmcPose {
>     PmCartesian tran;
>     double a, b, c;
>     double u, v, w;
> } EmcPose;
>
> #define ZERO_EMC_POSE(pos) do { \
> pos.tran.x = 0.0;               \
> pos.tran.y = 0.0;               \
> pos.tran.z = 0.0;               \
> pos.a = 0.0;                    \
> pos.b = 0.0;                    \
> pos.c = 0.0;                    \
> pos.u = 0.0;                    \
> pos.v = 0.0;                    \
> pos.w = 0.0; } while(0)
>
> #endif
>
> -- 
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
> https://github.com/machinekit
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to machinekit+...@googlegroups.com <javascript:>.
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to