grbl / grbl-sim

Compiles Grbl into an executable for your computer.
GNU General Public License v3.0
89 stars 76 forks source link

Compile failure with Error 1 #27

Open nickm324 opened 4 years ago

nickm324 commented 4 years ago

Compiling on a Raspberry Pi 3B. When I run make new I get the following error. Is there some dependencies or something I need to install before trying to compile?

cc -Wall -g -O3 -DF_CPU=16000000 -include config.h -I. -DPLAT_LINUX -o grbl_sim.exe grbl_interface.o ../protocol.o ../planner.o ../settings.o ../print.o ../nuts_bolts.o ../stepper.o ../gcode.o ../spindle_control.o ../motion_control.o ../limits.o ../coolant_control.o ../probe.o ../system.o ../jog.o ../main.o ../serial.o ../report.o main.o simulator.o serial.o util/delay.o util/floatunsisf.o platform_LINUX.o system_declares.o avr/interrupt.o avr/pgmspace.o avr/io.o avr/eeprom.o grbl_eeprom_extensions.o -lm -lrt -pthread /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/libgcc.a(_arm_addsubsf3.o): in function __aeabi_ui2f': (.text+0x19c): multiple definition of__floatunsisf'; util/floatunsisf.o:/home/pi/grbl/grbl/grbl-sim/util/floatunsisf.c:3: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:56: main] Error 1

IcebergM commented 3 years ago

I compiling on Windows。When I run ---mingw32-make

-Wall -g -O3 -DF_CPU=16000000 -include config.h -I. -DPLAT_WINDOWS -c grbl_interface.c -o grbl_interface.o process_begin: CreateProcess(NULL, cc -Wall -g -O3 -DF_CPU=16000000 -include config.h -I. -DPLAT_WINDOWS -c grbl_interface.c -o grbl_interface.o, ...) failed. make (e=2): 系统找不到指定的文件。 Makefile:64: recipe for target 'grbl_interface.o' failed mingw32-make: *** [grbl_interface.o] Error 2