Coder Social home page Coder Social logo

goio_sdk's People

Contributors

elliotl avatar garthskidstuff avatar minorgal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

goio_sdk's Issues

Does not compile - ARM Debian Stretch

Hi, there are a number of naked "signed" in GSEnsorDDSMem.h. Newer g++ compilers take 'signed' as indeterminant whether it is signed or unsigned. Your code is assuming signed, which is actually not correct C ( although idomatic in the 90's ). Newer compilers complain. Changing all the naked chars to signed chars create any number of other compile errors.

This is g++ 6.3.0.

Errors:
then mv -f ".deps/NonSmartSensorDDSRecs.Tpo" ".deps/NonSmartSensorDDSRecs.Plo"; else rm -f ".deps/NonSmartSensorDDSRecs.Tpo"; exit 1; fi libtool: compile: g++ -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DPACKAGE="GoIO" -DVERSION="2.53.0" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I. -I.. -I../GoIO_cpp/ -I../GoIO_cpp/Linux/ -I../GoIO_DLL/ -fvisibility=hidden -fvisibility-inlines-hidden -DTARGET_OS_LINUX -DLIB_NAMESPACE=GoIO -DUSE_LIB_USB -g -O2 -MT NonSmartSensorDDSRecs.lo -MD -MP -MF .deps/NonSmartSensorDDSRecs.Tpo -c NonSmartSensorDDSRecs.cpp -fPIC -DPIC -o .libs/NonSmartSensorDDSRecs.o NonSmartSensorDDSRecs.cpp:115:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] }; ^ NonSmartSensorDDSRecs.cpp:148:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] }; ^ NonSmartSensorDDSRecs.cpp:181:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] }; ^ NonSmartSensorDDSRecs.cpp:214:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] }; ^ NonSmartSensorDDSRecs.cpp:214:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] NonSmartSensorDDSRecs.cpp:247:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] }; ^ NonSmartSensorDDSRecs.cpp:280:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing]

I tried converting the 'char' to 'signed char' but then other cast errors cropped up. I'll keep hacking, but I thought you'd want this library to compile with modern rasperry pi, it's a pretty popular platform.

I got this by just cloning your library on a raspberry pi and attempting to build it, with current Raspberry Pi debian ( which is stretch ). For the slim cost of an RPI you should be able to fix this.

Thanks

NuGet package for GoIO

What do you think about creating a NuGet package for distributing the .NET binaries from the GoIO SDK? I'm happy to create and publish the package, but want to get your blessing first.

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.