Welcome! Log In Create A New Profile

Advanced

Marlin doesn't compile

Posted by Ohmarinus 
Marlin doesn't compile
November 06, 2019 03:43PM
I'm using the latest Marlin bugfix 2.0.x with the DELTA config preset as advertised in the default config file.

Here is the complete error description:
In file included from Marlin/src/module/../inc/MarlinConfig.h:35,
                 from Marlin/src/module/configuration_store.h:24,
                 from Marlin/src/module/configuration_store.cpp:47:
Marlin/src/module/configuration_store.cpp: In static member function 'static void MarlinSettings::reset()':
Marlin/src/module/../inc/Conditionals_post.h:1478:75: error: 'nozzle_to_probe_offset' was not declared in this scope
       #define DELTA_CALIBRATION_RADIUS (DELTA_PRINTABLE_RADIUS - _MAhot smileyABS(nozzle_to_probe_offset.x), ABS(nozzle_to_probe_offset.y), ABS(MIN_PROBE_EDG
E)))
                                                                           ^~~~~~~~~~~~~~~~~~~~~~
Marlin/src/module/configuration_store.cpp:2350:32: note: in expansion of macro 'DELTA_CALIBRATION_RADIUS'
     delta_calibration_radius = DELTA_CALIBRATION_RADIUS;
                                ^~~~~~~~~~~~~~~~~~~~~~~~
Marlin/src/module/../inc/Conditionals_post.h:1478:75: note: suggested alternative: 'probe_offset'
       #define DELTA_CALIBRATION_RADIUS (DELTA_PRINTABLE_RADIUS - _MAhot smileyABS(nozzle_to_probe_offset.x), ABS(nozzle_to_probe_offset.y), ABS(MIN_PROBE_EDG
E)))
                                                                           ^~~~~~~~~~~~~~~~~~~~~~
Marlin/src/module/configuration_store.cpp:2350:32: note: in expansion of macro 'DELTA_CALIBRATION_RADIUS'
     delta_calibration_radius = DELTA_CALIBRATION_RADIUS;
                                ^~~~~~~~~~~~~~~~~~~~~~~~
Compiling .pio/build/LPC1768/src/src/module/printcounter.cpp.o
Compiling .pio/build/LPC1768/src/src/module/probe.cpp.o
*** [.pio/build/LPC1768/src/src/module/configuration_store.cpp.o] Error 1

Anyone knows what's going wrong?
I think it stops because of the error with configuration_store.cpp ??

Edited 3 time(s). Last edit at 11/06/2019 04:20PM by Ohmarinus.


http://www.marinusdebeer.nl/
VDX
Re: Marlin doesn't compile
November 06, 2019 06:45PM
... look at - "Conditionals_post.h:1478:75: error: 'nozzle_to_probe_offset' was not declared in this scope"


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Re: Marlin doesn't compile
November 06, 2019 07:23PM
From the config files you posted in issue

You don't seem to have any probe type defined. But you do have NOZZLE_TO_PROBE_OFFSET defined.. this is causing the issue

Should conditional detect this error?, probably...

In probe.h nozzle_to_probe_offset is only created if HAS_BED_PROBE has been defined in Conditionals_LCD.h
HAS_BED_PROBE is only set if one of the many probe types is set in configuration.h

Edited 2 time(s). Last edit at 11/06/2019 07:36PM by Dust.
Re: Marlin doesn't compile
November 07, 2019 02:53AM
Then the issue is that in the example Delta files the nozzle offset is drclared by default. It should be disabled, right?


http://www.marinusdebeer.nl/
Re: Marlin doesn't compile
November 07, 2019 04:37AM
Sadly if you don't #define NOZZLE_TO_PROBE_OFFSET in configuration.h, it still errors as it gets set to 0 elsewhere

#ifndef NOZZLE_TO_PROBE_OFFSET
#define NOZZLE_TO_PROBE_OFFSET { 0, 0, 0 }
#endif

I'm presuming you don't have a probe?
Re: Marlin doesn't compile
November 07, 2019 05:03AM
If you don't have a probe give this a go In Conditionals_post.h

find
#if ENABLED(DELTA)
  /**
   * Delta radius/rod trimmers/angle trimmers
   */
  #define _PROBE_RADIUS (DELTA_PRINTABLE_RADIUS - (MIN_PROBE_EDGE))
  #ifndef DELTA_CALIBRATION_RADIUS
    #ifdef NOZZLE_TO_PROBE_OFFSET
      #define DELTA_CALIBRATION_RADIUS (DELTA_PRINTABLE_RADIUS - _MAX ( ABS(nozzle_to_probe_offset.x), ABS(nozzle_to_probe_offset.y), ABS(MIN_PROBE_EDGE)))
    #else
      #define DELTA_CALIBRATION_RADIUS _PROBE_RADIUS
    #endif
  #endif
with
#if ENABLED(DELTA)
  /**
   * Delta radius/rod trimmers/angle trimmers
   */
  #define _PROBE_RADIUS (DELTA_PRINTABLE_RADIUS - (MIN_PROBE_EDGE))
  #ifndef DELTA_CALIBRATION_RADIUS
    #if HAS_BED_PROBE
        #ifdef NOZZLE_TO_PROBE_OFFSET
          #define DELTA_CALIBRATION_RADIUS (DELTA_PRINTABLE_RADIUS - _MAX ( ABS(nozzle_to_probe_offset.x), ABS(nozzle_to_probe_offset.y), ABS(MIN_PROBE_EDGE)))
        #endif 
    #else
        #define DELTA_CALIBRATION_RADIUS _PROBE_RADIUS
    #endif
  #endif

Edited 1 time(s). Last edit at 11/07/2019 05:10AM by Dust.
Sorry, only registered users may post in this forum.

Click here to login