piif / EmuArdu

Arduino emulator in C++
GNU General Public License v2.0
0 stars 1 forks source link

Windows & Mac : help wanted #2

Open piif opened 9 years ago

piif commented 9 years ago

Don't know how to install/refer to gd, glut & other nor refer to g++ on Windows and Mac platforms

brakdag commented 7 years ago

for windows you have to install MinGW and add binary to %path% install gd from http://gnuwin32.sourceforge.net/packages/gd.htm in minGW directory copy developers files install glut in gl directory copy the files http://freeglut.sourceforge.net/index.php#download

anyway time.cpp have error incompatible functions in windows.

clock_gettime function returns differente values in windows and error next

Arduino:1.6.13 (Windows 10), Tarjeta:"Arduino Uno Emulation"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Norma\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Norma\Documents\Arduino\libraries -fqbn=piif:emuardu:uno -ide-version=10613 -build-path C:\Users\Norma\AppData\Local\Temp\arduino_build_339581 -warnings=none -prefs=build.warn_data_percentage=75 -verbose C:\Users\Norma\Desktop\EmuArdu\EmuArduExample\EmuArduExample.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Norma\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Norma\Documents\Arduino\libraries -fqbn=piif:emuardu:uno -ide-version=10613 -build-path C:\Users\Norma\AppData\Local\Temp\arduino_build_339581 -warnings=none -prefs=build.warn_data_percentage=75 -verbose C:\Users\Norma\Desktop\EmuArdu\EmuArduExample\EmuArduExample.ino
Using board 'uno' from platform in folder: C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu
Using core 'arduino' from platform in folder: C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu
Warning: Board breadboard:avr:atmega328bb doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA328BB
Atención: platform.txt del núcleo 'piif' contiene recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" desfasada, automáticamente convertida a recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Considera el actualizar este núcleo.
Detecting libraries used...
"g++" -c -g -Os -w -ffunction-sections -fdata-sections -fPIC  -w -x c++ -E -CC -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_EMUARDU   "-IC:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino" "-IC:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\variants\standard" "C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\sketch\EmuArduExample.ino.cpp" -o "nul"
Generating function prototypes...
"g++" -c -g -Os -w -ffunction-sections -fdata-sections -fPIC  -w -x c++ -E -CC -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_EMUARDU   "-IC:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino" "-IC:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\variants\standard" "C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\sketch\EmuArduExample.ino.cpp" -o "C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\preproc\ctags_target_for_gcc_minus_e.cpp"
Compilando programa...
"g++" -c -g -Os -w -ffunction-sections -fdata-sections -fPIC -MMD -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_EMUARDU   "-IC:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino" "-IC:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\variants\standard" "C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\sketch\EmuArduExample.ino.cpp" -o "C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\sketch\EmuArduExample.ino.cpp.o"
Compiling libraries...
Compiling core...
Utilizando archivo previamente compilado: C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\core\HardwareSerial.cpp.o
Utilizando archivo previamente compilado: C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\core\Print.cpp.o
Utilizando archivo previamente compilado: C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\core\Stream.cpp.o
Utilizando archivo previamente compilado: C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\core\WMath.cpp.o
Utilizando archivo previamente compilado: C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\core\WString.cpp.o
Utilizando archivo previamente compilado: C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\core\main.cpp.o
Utilizando archivo previamente compilado: C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\core\new.cpp.o
Utilizando archivo previamente compilado: C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\core\emulator\emulator.cpp.o
Utilizando archivo previamente compilado: C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\core\emulator\inout.cpp.o
"g++" -c -g -Os -w -ffunction-sections -fdata-sections -fPIC -MMD -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_EMUARDU   "-IC:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino" "-IC:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\variants\standard" "C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp" -o "C:\Users\Norma\AppData\Local\Temp\arduino_build_339581\core\emulator\timer.cpp.o"
C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp: In function 'long unsigned int now()':

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp:9:18: error: aggregate 'now()::timespec now' has incomplete type and cannot be defined

  struct timespec now;

                  ^

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp:10:16: error: 'CLOCK_REALTIME' was not declared in this scope

  clock_gettime(CLOCK_REALTIME, &now);

                ^

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp:10:36: error: 'clock_gettime' was not declared in this scope

  clock_gettime(CLOCK_REALTIME, &now);

                                    ^

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp: In function 'void delay(long unsigned int)':

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp:27:18: error: aggregate 'delay(long unsigned int)::timespec duration' has incomplete type and cannot be defined

  struct timespec duration;

                  ^

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp:30:18: error: 'CLOCK_REALTIME' was not declared in this scope

  clock_nanosleep(CLOCK_REALTIME, 0, &duration, NULL);

                  ^

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp:30:52: error: 'clock_nanosleep' was not declared in this scope

  clock_nanosleep(CLOCK_REALTIME, 0, &duration, NULL);

                                                    ^

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp: In function 'void delayMicroseconds(unsigned int)':

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp:34:18: error: aggregate 'delayMicroseconds(unsigned int)::timespec duration' has incomplete type and cannot be defined

  struct timespec duration;

                  ^

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp:37:18: error: 'CLOCK_REALTIME' was not declared in this scope

  clock_nanosleep(CLOCK_REALTIME, 0, &duration, NULL);

                  ^

C:\Users\Norma\Documents\Arduino\hardware\piif\emuardu\cores\arduino\emulator\timer.cpp:37:52: error: 'clock_nanosleep' was not declared in this scope

  clock_nanosleep(CLOCK_REALTIME, 0, &duration, NULL);

                                                    ^

exit status 1
Error compilación en tarjeta Arduino Uno Emulation.
piif commented 7 years ago

Hello brakdag , I'm really sorry if you spent time on this, but this project was aborted just after it was born, more than 2 years ago. In fact, I don't even remembered it before you post this comment.

Of course, feel free too fork it if you want too make it work, but I can't spend time on it currently.