Code Monkey home page Code Monkey logo

Comments (8)

tbeu avatar tbeu commented on July 25, 2024

Should be fixed: Welcome OpenModelica (on Win)!

What is left is

  • adaption of the cmake scripts to also consider Mingw/Cygwin
  • adaption of the cmake scripts to consider the new test for serial port communication
  • add Library={winmm} to keyboard and joystick functions

@bernhard-thiele Are you willing to do this? If not, just close this issue. Thank you!

from modelica_devicedrivers.

bernhard-thiele avatar bernhard-thiele commented on July 25, 2024

Yes, I will do this. It is on my list. It just has low-priority as long as the communication/packaging blocks don't work in OM. Getting them to work means changing some parts of the compiler. I might work on that if I have some spare time for it, but maybe someone else will fix it for OM.

from modelica_devicedrivers.

tbeu avatar tbeu commented on July 25, 2024

You could start with input devices (that are independent of packager).

from modelica_devicedrivers.

tbeu avatar tbeu commented on July 25, 2024
  • adaption of the cmake scripts to consider the new test for serial port communication is done by 4a98e21

from modelica_devicedrivers.

VanessaSingh avatar VanessaSingh commented on July 25, 2024

Could you please list out the steps on how to compile the Blink example in Embedded Targets(in Serial Communication) on windows as it is giving 'unrecognized command line option "-std=c11"'
on both MinGW and MSVC.
The command was:

avr-gcc -Os -std=c11 -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000UL -Wl,--gc-sections Blink_main.c -o Blink -I D:/Modelica_DeviceDrivers/Resources/Include -I /usr/include/omc/c

cc1.exe: error: unrecognized command line option "-std=c11"

from modelica_devicedrivers.

sjoelund avatar sjoelund commented on July 25, 2024

Which gcc version is in your avr-gcc? The latest Windows release of 8-bit avr-gcc contains gcc 4.9, which does support c11. If you installed the 32-bit avr-gcc, it seems that uses gcc 4.4 which was released in 2009 and indeed does not support c11.

from modelica_devicedrivers.

VanessaSingh avatar VanessaSingh commented on July 25, 2024

Yeah, that was the issue as it works fine with gcc 4.9. Thanks for the help!

from modelica_devicedrivers.

tbeu avatar tbeu commented on July 25, 2024

All done.

from modelica_devicedrivers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.