Hello All,
I am new to BACnet stack, I tried to build demo applications in Winodws Pc by running build.bat
I can run demo/bacserv.exe , But when I tried to compile gateway using #make gateway I see errors:
make -B -s -C demo gateway
In file included from ../include/bip.h:32,
from ../include/datalink.h:61,
from ../src/tsm.c:45:
../ports/linux/net.h:33:10: fatal error: netinet/in.h: No such file or directory
<netinet in.h=""> / sockaddr_in{} and other Internet defns /
^~~~~~~~~~~~~~
compilation terminated.
Makefile:200: recipe for target '../src/tsm.o' failed
make[3]: *** [../src/tsm.o] Error 1
Makefile:54: recipe for target '../../lib/libbacnet.a' failed
make[2]: *** [../../lib/libbacnet.a] Error 2
Makefile:79: recipe for target 'gateway' failed
make[1]: *** [gateway] Error 2
Makefile:69: recipe for target 'gateway' failed
make: *** [gateway] Error 2</netinet>
Is it trying to locate Linux here, as I am running on Windows ? Is this correct path ?
../ports/linux/net.h:33:10: fatal error: netinet/in.h: No such file or directory
I see below links talked about it:
https://sourceforge.net/p/bacnet/mailman/message/34818662/
https://sourceforge.net/p/bacnet/mailman/message/30718491/
I see BAC_ROUTING is defined in demo/gateway/Makefile and I tried to add the same macro in main/root Makefile but no effect
Thanks,
Ashok
Anonymous
Problem here is porting path is set to Linux instead of win32, so to make it work run below command and its working on windows.
make BACNET_PORT=win32 gateway
Ticket is closed now
Last edit: Ashok Athukuri 2019-06-25