SMAspot_SRC_241_Linux_Win32.tar.gz not compilling

Mar 17, 2014 at 4:52 AM
make release
test -d bin/Release || mkdir -p bin/Release
test -d obj/Release || mkdir -p obj/Release
g++ -Wall -O2 -c Bluetooth.cpp -o obj/Release/Bluetooth.o
Bluetooth.cpp: In function ‘int bthSend(unsigned char*)’:
Bluetooth.cpp:321:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
if (DEBUG_NORMAL) printf("%d Bytes sent\n", bytes_sent);
                                                    ^
g++ -Wall -O2 -c Ethernet.cpp -o obj/Release/Ethernet.o
Ethernet.cpp: In function ‘int ethSend(unsigned char*, const char*)’:
Ethernet.cpp:146:97: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
if (DEBUG_NORMAL) printf("%d Bytes sent to IP [%s]\n", bytes_sent, inet_ntoa(addr_out.sin_addr));
                                                                                             ^
g++ -Wall -O2 -c TagDefs.cpp -o obj/Release/TagDefs.o
In file included from SMAspot.h:44:0,
             from TagDefs.cpp:34:
boost_ext.h:39:53: fatal error: boost/date_time/posix_time/posix_time.hpp: No such file or directory
#include "boost/date_time/posix_time/posix_time.hpp"
                                                 ^
compilation terminated.
make: *** [obj/Release/TagDefs.o] Error 1
Mar 17, 2014 at 4:57 AM
Just a side note SMAspot_SRC_2211_Linux_Win32.tar.gz will compile

root@Ideapad-S10-3t:/home/denglish/SMAspot-2211# make clean_release
rm -f obj/Release/Bluetooth.o obj/Release/Ethernet.o obj/Release/SMANet.o obj/Release/SMAspot.o obj/Release/misc.o obj/Release/strptime.o obj/Release/sunrise_sunset.o obj/Release/CSVexport.o obj/Release/PVOutput.o bin/Release/SMAspot
rm -rf bin/Release
rm -rf obj/Release
root@Ideapad-S10-3t:/home/denglish/SMAspot-2211# make release
test -d bin/Release || mkdir -p bin/Release
test -d obj/Release || mkdir -p obj/Release
g++ -Wall -O2 -c Bluetooth.cpp -o obj/Release/Bluetooth.o
Bluetooth.cpp: In function ‘int bthSend(unsigned char*)’:
Bluetooth.cpp:318:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
if (DEBUG_NORMAL) printf("%d Bytes sent\n", bytes_sent);
                                                    ^
g++ -Wall -O2 -c Ethernet.cpp -o obj/Release/Ethernet.o
Ethernet.cpp: In function ‘int ethSend(unsigned char*, const char*)’:
Ethernet.cpp:146:97: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
if (DEBUG_NORMAL) printf("%d Bytes sent to IP [%s]\n", bytes_sent, inet_ntoa(addr_out.sin_addr));
                                                                                             ^
g++ -Wall -O2 -c SMANet.cpp -o obj/Release/SMANet.o
g++ -Wall -O2 -c SMAspot.cpp -o obj/Release/SMAspot.o
SMAspot.cpp: In function ‘void SayHello(int)’:
SMAspot.cpp:2021:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
 printf("Compiled for Linux %d bit\n\n", sizeof(long) * 8);
                                                         ^
g++ -Wall -O2 -c misc.cpp -o obj/Release/misc.o
g++ -Wall -O2 -c strptime.cpp -o obj/Release/strptime.o
g++ -Wall -O2 -c sunrise_sunset.cpp -o obj/Release/sunrise_sunset.o
g++ -Wall -O2 -c CSVexport.cpp -o obj/Release/CSVexport.o
g++ -Wall -O2 -c PVOutput.cpp -o obj/Release/PVOutput.o
g++ -s obj/Release/Bluetooth.o obj/Release/Ethernet.o obj/Release/SMANet.o obj/Release/SMAspot.o obj/Release/misc.o obj/Release/strptime.o obj/Release/sunrise_sunset.o obj/Release/CSVexport.o obj/Release/PVOutput.o -lbluetooth -lcurl -o bin/Release/SMAspot
root@Ideapad-S10-3t:/home/denglish/SMAspot-2211# ls -la ./
bin/ CSVexport.h misc.cpp osselect.h SMANet.cpp SMAspot.cpp sunrise_sunset.cpp
Bluetooth.cpp Ethernet.cpp misc.h oswindows.h SMANet.h SMAspot.h sunrise_sunset.h
bluetooth.h Ethernet.h obj/ PVOutput.cpp SMAspot.cbp SMAspot.vcxproj
CSVexport.cpp makefile oslinux.h PVOutput.h SMAspot.cfg strptime.cpp
root@Ideapad-S10-3t:/home/denglish/SMAspot-2211# ls -la ./bin/Release/
total 108
drwxr-xr-x 2 root root 4096 Mar 17 14:55 .
drwxrwxr-x 3 denglish denglish 4096 Mar 17 14:54 ..
-rwxr-xr-x 1 root root 101552 Mar 17 14:55 SMAspot
root@Ideapad-S10-3t:/home/denglish/SMAspot-2211#
Marked as answer by SBF on 9/16/2014 at 2:07 PM