2 Replies Latest reply on Jan 13, 2018 9:57 PM by jhooda RSS
    jhooda Newbie

    Will ThingWorx C SDK run on IRIX and Windows NT OS?

    I am developing a Agent in Thingworx C SDK for CT Scan and MRI Machine which works on IRIX and Windows respectively. Whether Thingworx C SDK will going to support these OS? Also what about Solaris 2.7?

      • Re: Will ThingWorx C SDK run on IRIX and Windows NT OS?
        kmoon Apprentice

        The C SDK is designed for portability and can be ported to most any OS, RTOS, or even simple taskers. So, basically if you set your makefile correctly for your OS and use right libraries for it, it should work.

        In your Makefile you must specify what OS you will be using. You do this by defining TW_OS_INCLUDEto point to the required include file for your OS, as shown here for an example to run on Linux:


        • Re: Will ThingWorx C SDK run on IRIX and Windows NT OS?
          jcanosa Explorer

          You *should* be able to compile it for NT without a problem.  If there are compilation problems they will almost certainly be in src/porting/twWindows.c or /src/porting/twWin32Threads.c. 


          You will run into some issues with IRIX  assuming you are running on old SGI hardware with a MIPS processor.  But if you start using the OSX build  (gcc-osx-x86-64) files in build/platform that should take care of POSIX & BSD sockets issues leaving you with having to only tweak the compiler flags.  If you are doing a native compile that may not be a big deal, might only need to change the CC_OPTS and LIBOPTS flags.  You also may run into endian issues (the default build is for little endian) but if you put -DBIG_ENDIAN_CPU in your compiler options, that should take care of that.


          Feel free to contact me directly if you need some help.