Git Product home page Git Product logo

smarthomesdk's People

Contributors

zeeshanejaz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ahmad-luqman

smarthomesdk's Issues

How can I build this?

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.

Suggestions:

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.