zeeshanejaz / smarthomesdk Goto Github PK
View Code? Open in Web Editor NEWC++ SDK for the smart home simulator project for teaching C++ / OOP and UML to beginners
License: MIT License
C++ SDK for the smart home simulator project for teaching C++ / OOP and UML to beginners
License: MIT License
Its not clear how to build this.
So on windows how do you build it. Are you using cygwin?
On linux the make file seems incompatible:
First I got the following build error:
$ make
CXX src/Socket.cpp
CXX src/Utility.cpp
CXX src/EnumParser.cpp
CXX src/ProtocolPacket.cpp
CXX src/CommClient.cpp
src/CommClient.cpp: In member function ‘ProtocolPacket* CommClient::GetResponse(ProtocolPacket*)’:
src/CommClient.cpp:74:24: error: ‘gettimeofday’ was not declared in this scope
gettimeofday(&tp, NULL);
^
Makefile:30: recipe for target 'build/CommClient.o' failed
make: *** [build/CommClient.o] Error 1
I fixed that by adding #include <sys/time.h> in CommClient.h.
Than I got he following error:
$ make
CXX src/CommClient.cpp
CXX src/ProtocolManager.cpp
CXX src/ModelController.cpp
CXX src/SmartHomeSDK.cpp
Linking...
g++: error: unrecognized command line option ‘-Wl’
Makefile:25: recipe for target 'release/SmartHomeSDK.dll' failed
make: *** [release/SmartHomeSDK.dll] Error 1
I am seeing .dll as an output so it seems to be more windows specific.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.