Code Monkey home page Code Monkey logo

Comments (9)

end2endzone avatar end2endzone commented on June 24, 2024

That's a good idea and I had this planned for a long time. I am locally working on porting all scripts from /ci/appveyor to /ci/ant to have cross-Platform scripts. However, I do not have much experience programming in Linux (I do own a Raspberry Pi & a Ubuntu partition).

I do not know how many sections of the library would be impacted by the change but I think it would be possible without too much work. Nothing that a google search can't fix.

from win32arduino.

end2endzone avatar end2endzone commented on June 24, 2024

I think it would be a matter of wrapping each function implementation with #ifdef statements. See stackoverflow for details.

from win32arduino.

end2endzone avatar end2endzone commented on June 24, 2024

I would be glad if you give me a hand on this and help me porting the code to linux. Feel free to send me a pull request.

from win32arduino.

sidey79 avatar sidey79 commented on June 24, 2024

I am not so familiar with all the win32 libs.

I think, there are std cpp libs which are available crossplattform.

But win32arduino usues win32 specific libs.

There are some very easy to fix T
things.

from win32arduino.

end2endzone avatar end2endzone commented on June 24, 2024

@sidey79 I would appreciate your help for issue #17.

from win32arduino.

end2endzone avatar end2endzone commented on June 24, 2024

@sidey79 The code is now able to compile without errors on the Raspberry Pi. However, I am not able to compile on Travis CI.

The following error is displayed in the Travis CI build log:

     [exec] /home/travis/build/end2endzone/win32Arduino/src/win32Arduino/arduino.cpp: In function ‘void randomSeed(int16_t)’:
     [exec] /home/travis/build/end2endzone/win32Arduino/src/win32Arduino/arduino.cpp:926:3: error: ‘::srand’ has not been declared
     [exec]    ::srand(value);

I do not have enough experience for fixing the issue. Does it mean that srand() definition is located elsewhere? Can you take a look at it?

from win32arduino.

sidey79 avatar sidey79 commented on June 24, 2024

@end2endzone
You are fast..

I haven't tested it, but the function you try to call, seems not to exist:

Not sure, what the compiler does with this style of coding, but srand and rand should be located in
stdlib:
http://www.cplusplus.com/reference/cstdlib/srand/
http://www.cplusplus.com/reference/cstdlib/rand/

from win32arduino.

sidey79 avatar sidey79 commented on June 24, 2024

Fixes are here:
#18

from win32arduino.

end2endzone avatar end2endzone commented on June 24, 2024

Fixed in 623f317

from win32arduino.

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.