Opened 4 years ago

Closed 4 years ago

#6119 closed defect (invalid)

Error while compiling arduino model

Reported by: sathyapollan@… Owned by: somebody
Priority: high Milestone: Future
Component: Third-Party Libraries Version:
Keywords: Cc:

Description

I am getting error while compiling arduino based model. I am getting below mentioned compilation error:
C:/PROGRA~1/OpenModelica1.14.1-64bit/tools/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lModelicaArduino
collect2.exe: error: ld returned 1 exit status
third2.makefile:32: recipe for target 'omc_main_target' failed
mingw32-make: * [omc_main_target] Error 1
mingw32-make: Leaving directory 'C:/Users/sathy/AppData/Local/Temp/OpenModelica/OMEdit/third2'
Compilation process failed. Exited with code 2.

Change History (1)

comment:1 by Martin Sjölund, 4 years ago

Component: *unknown*Third-Party Libraries
Resolution: invalid
Status: newclosed

https://github.com/CATIA-Systems/Modelica-Arduino#how-does-it-work

It uses Dymola-specific extensions to compile this library at translation time.
You can either manually run the corresponding code to create the dll. Or try to use Modelica_DeviceDrivers if you want an approach that compiles AVR code directly.

Note: See TracTickets for help on using tickets.