Comments (9)
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.
I think it would be a matter of wrapping each function implementation with #ifdef
statements. See stackoverflow for details.
from win32arduino.
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.
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.
@sidey79 I would appreciate your help for issue #17.
from win32arduino.
@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.
@end2endzone
You are fast..
I haven't tested it, but the function you try to call, seems not to exist:
win32Arduino/src/win32Arduino/arduino.cpp
Line 926 in fce016a
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.
Fixes are here:
#18
from win32arduino.
Fixed in 623f317
from win32arduino.
Related Issues (20)
- Find a new name for library HOT 4
- ATOMIC_BLOCK macro
- Update all documentation for Linux users
- /ci/ant/setupenv.bat is missing HOT 21
- Replace downloaded googletest third party library by a git submodule HOT 1
- Update documentation files in preparation of release v2.1.0 HOT 1
- Circle CI integration HOT 1
- Use RapidAssist as a git submodule
- Pin registers and port mapping functions
- License header in all files HOT 1
- Implement 'make install' command support HOT 1
- Define if `Arduino.h` or `arduino.h` HOT 4
- Missing build step in v2.2.1 HOT 1
- Tag for version 2.2.1 builds as 2.3.0 HOT 1
- rapidassist outside of win32arduino? HOT 6
- wrong syntax for variables on windows HOT 14
- cmake doesn't find GTEST via find_package HOT 13
- Crash on calling millis() before entering main()
- Logging should be in memory until a test completes
- Change api functions to match officials signatures of Arduino.h
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from win32arduino.