Menu

How to Use BACnet Protocol Source Code Stack

Anas Zyoud
2016-06-05
2016-06-05
  • Anas Zyoud

    Anas Zyoud - 2016-06-05

    Hi All,

    I just want to know How to use the BACnet Protocol Source Code Stack?

    I donloaded the stack and tried to compile it in GCC MINGW but I always receive an errors like:
    undefined winmain@16
    Fatal error: bactext.h : no such file or directory

    My goal is to use this stack in developing kit like Odriod C2 or Raspberry Pi

    but first I want to know how it is working like what, I'm sorry if I'm not clear enough but it will be very help full if there is a video or thread explain step by step how to compile and creat simple project using BACnet Code Stack.

     
  • Steve Karg

    Steve Karg - 2016-06-05

    For building under Windows with MinGW, use build.bat script.

    For building hosted on Raspberry Pi, use "make clean all".

    For building crosscompiled for Raspberry Pi, set the environment in bat file before using make something like (accounting for where your cross compiler is located):

    @echo off
    echo Build with ARM-ICCI-Linux-GNU-EABI
    set PATH=%PATH%;C:\arm-icii-linux-gnueabi\bin;C:\arm-icii-linux-gnueabi\arm-icii-linux-gnueabi\bin;C:\MinGW\msys\1.0\bin;C:\MinGW\bin
    rem assumes rm, cp, size are already in path
    set PREFIX=arm-icii-linux-gnueabi-
    set CC=%PREFIX%gcc
    set AR=%PREFIX%ar
    set MAKE=make
    

    Building only builds the example (aka DEMO) applications and library. The demos are described in bin/readme.txt file. You could run bacserv on the Raspberry Pi, and use the PC with the other demos to query the Raspberry Pi.

     

Log in to post a comment.