Browse Source

Removed dep of HIDAPI from ServA

AGP
Evgeny Gagua 2 years ago
parent
commit
e78da49ac5
  1. 26
      Projects/la_serva/la_serva.vpj
  2. 79
      Projects/la_serva/makefile

26
Projects/la_serva/la_serva.vpj

@ -14,7 +14,7 @@
Version="1"
OutputFile="%bdserva_d"
CompilerConfigName="Latest Version"
Defines='"/DDEBUG" "/DUSE_MYSQL" "/D__STDC_CONSTANT_MACROS__" "/D_CLIENT_APPLICATION_" "/D_OPENCV_" "/DRASPI_HARDWARE"'>
Defines='"/DDEBUG" "/DUSE_SERVER_MYSQL" "/D__STDC_CONSTANT_MACROS__" "/D_SERVER_APPLICATION_" "/D_OPENCV_" "/DRASPI_HARDWARE"'>
<Menu>
<Target
Name="Compile"
@ -113,9 +113,6 @@
<Lib File="-lcrypto"/>
<Lib File="-lconfig"/>
<Lib File="-lz"/>
<Lib File="-lv4l1"/>
<Lib File="-lv4l2"/>
<Lib File="-lhidapi-libusb"/>
<Lib File="`pkg-config"/>
<Lib File="libavcodec"/>
<Lib File="libavdevice"/>
@ -131,9 +128,7 @@
<Lib File="--libs"/>
<Lib File="openssl"/>
<Lib File="opencv4"/>
<Lib File="rdkafka++`"/>
<Lib File="-lwiringx"/>
<Lib File="-lliveMedia"/>
<Lib File="rdkafka++`-lliveMedia"/>
<Lib File="-lgroupsock"/>
<Lib File="-lBasicUsageEnvironment"/>
<Lib File="-lUsageEnvironment"/>
@ -146,7 +141,7 @@
Version="1"
OutputFile="%bdserva"
CompilerConfigName="Latest Version"
Defines='"/DUSE_MYSQL" "/DSLIM_KERNEL" "/D_THREAD_SAFE" "/D_BSD_SOURCE" "/D_REENTRANT"'>
Defines='"/DUSE_SERVER_MYSQL" "/D_SERVER_APPLICATION_" "/D_THREAD_SAFE" "/D_BSD_SOURCE" "/D_REENTRANT" "/DRASPI_HARDWARE"'>
<Menu>
<Target
Name="Compile"
@ -172,7 +167,7 @@
RunFromDir="%rw">
<Exec
CmdLine='g++ %xup -O3 -w %~other -o "%o" %objs'
OtherOptions="-lconfig -lpthread -lmysqlclient -lelf -lcurses -lcdk -lcurl `pkg-config --libs rdkafka++` -lwiringx -lsqlite3 -s"/>
OtherOptions="-lconfig -lpthread -lmysqlclient -lelf -lcurses -lcdk -lcurl `pkg-config --libs rdkafka++` -s"/>
</Target>
<Target
Name="Build"
@ -246,7 +241,7 @@
Version="1"
OutputFile="%bdserva_d"
CompilerConfigName="Latest Version"
Defines='"/DDEBUG" "/DUSE_SERVER_MYSQL" "/D__STDC_CONSTANT_MACROS" "/D_CLIENT_APPLICATION_" "/D_OPENCV_"'>
Defines='"/DDEBUG" "/DUSE_SERVER_MYSQL" "/D__STDC_CONSTANT_MACROS" "/D_SERVER_APPLICATION_" "/D_OPENCV_"'>
<Menu>
<Target
Name="Compile"
@ -336,7 +331,6 @@
</List>
<Includes></Includes>
<Libs PreObjects="0">
<Lib File="-lsqlite3"/>
<Lib File="-lpthread"/>
<Lib File="-lmysqlclient"/>
<Lib File="-lssl"/>
@ -345,9 +339,6 @@
<Lib File="-lcrypto"/>
<Lib File="-lconfig"/>
<Lib File="-lz"/>
<Lib File="-lv4l1"/>
<Lib File="-lv4l2"/>
<Lib File="-lhidapi-libusb"/>
<Lib File="`pkg-config"/>
<Lib File="libavcodec"/>
<Lib File="libavdevice"/>
@ -377,7 +368,7 @@
Version="1"
OutputFile="%bdserva"
CompilerConfigName="Latest Version"
Defines='"/DUSE_SERVER_MYSQL" "/D__STDC_CONSTANT_MACROS" "/D_CLIENT_APPLICATION_" "/D_OPENCV_"'>
Defines='"/DUSE_SERVER_MYSQL" "/D__STDC_CONSTANT_MACROS" "/D_SERVER_APPLICATION_" "/D_OPENCV_"'>
<Menu>
<Target
Name="Compile"
@ -467,7 +458,6 @@
</List>
<Includes></Includes>
<Libs PreObjects="0">
<Lib File="-lsqlite3"/>
<Lib File="-lpthread"/>
<Lib File="-lmysqlclient"/>
<Lib File="-lssl"/>
@ -476,9 +466,6 @@
<Lib File="-lcrypto"/>
<Lib File="-lconfig"/>
<Lib File="-lz"/>
<Lib File="-lv4l1"/>
<Lib File="-lv4l2"/>
<Lib File="-lhidapi-libusb"/>
<Lib File="`pkg-config"/>
<Lib File="libavcodec"/>
<Lib File="libavdevice"/>
@ -499,6 +486,7 @@
<Lib File="-lgroupsock"/>
<Lib File="-lBasicUsageEnvironment"/>
<Lib File="-lUsageEnvironment"/>
<Lib File="-s"/>
</Libs>
</Config>
<Files>

79
Projects/la_serva/makefile

@ -22,11 +22,10 @@ OUTDIR=Debug
OUTFILE=$(OUTDIR)/serva_d
CFG_INC=
CFG_LIB=-lsqlite3 -lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto \
-lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec \
libavdevice libavfilter libavformat libavutil libpostproc \
libswresample libswscale --libs` -latomic `pkg-config --libs openssl \
opencv4 rdkafka++` -lwiringx -lliveMedia -lgroupsock \
-lBasicUsageEnvironment -lUsageEnvironment
-lconfig -lz `pkg-config libavcodec libavdevice libavfilter \
libavformat libavutil libpostproc libswresample libswscale --libs` \
-latomic `pkg-config --libs openssl opencv4 rdkafka++`-lliveMedia \
-lgroupsock -lBasicUsageEnvironment -lUsageEnvironment
CFG_OBJ=
COMMON_OBJ=$(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \
$(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \
@ -59,13 +58,13 @@ ALL_OBJ=$(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \
$(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \
$(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \
$(OUTDIR)/Transform.o $(OUTDIR)/utm.o -lsqlite3 -lpthread \
-lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig -lz -lv4l1 -lv4l2 \
-lhidapi-libusb `pkg-config libavcodec libavdevice libavfilter \
libavformat libavutil libpostproc libswresample libswscale --libs` \
-latomic `pkg-config --libs openssl opencv4 rdkafka++` -lwiringx \
-lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment
-lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig -lz `pkg-config \
libavcodec libavdevice libavfilter libavformat libavutil libpostproc \
libswresample libswscale --libs` -latomic `pkg-config --libs openssl \
opencv4 rdkafka++`-lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment
COMPILE=g++ -c -x c++ "-DDEBUG" "-DUSE_MYSQL" "-D__STDC_CONSTANT_MACROS__" "-D_CLIENT_APPLICATION_" "-D_OPENCV_" "-DRASPI_HARDWARE" -O0 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
COMPILE=g++ -c -x c++ "-DDEBUG" "-DUSE_SERVER_MYSQL" "-D__STDC_CONSTANT_MACROS__" "-D_SERVER_APPLICATION_" "-D_OPENCV_" "-DRASPI_HARDWARE" -O0 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
LINK=g++ -O0 -w -o "$(OUTFILE)" $(ALL_OBJ)
# Pattern rules
@ -153,8 +152,8 @@ ALL_OBJ=$(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \
$(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \
$(OUTDIR)/Transform.o $(OUTDIR)/utm.o
COMPILE=g++ -c -x c++ "-DUSE_MYSQL" "-DSLIM_KERNEL" "-D_THREAD_SAFE" "-D_BSD_SOURCE" "-D_REENTRANT" -O3 -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
LINK=g++ -O3 -w -lconfig -lpthread -lmysqlclient -lelf -lcurses -lcdk -lcurl `pkg-config --libs rdkafka++` -lwiringx -lsqlite3 -s -o "$(OUTFILE)" $(ALL_OBJ)
COMPILE=g++ -c -x c++ "-DUSE_SERVER_MYSQL" "-D_SERVER_APPLICATION_" "-D_THREAD_SAFE" "-D_BSD_SOURCE" "-D_REENTRANT" "-DRASPI_HARDWARE" -O3 -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
LINK=g++ -O3 -w -lconfig -lpthread -lmysqlclient -lelf -lcurses -lcdk -lcurl `pkg-config --libs rdkafka++` -s -o "$(OUTFILE)" $(ALL_OBJ)
# Pattern rules
$(OUTDIR)/%.o : ../../lib/components/object/%.cpp
@ -207,12 +206,11 @@ ifeq "$(CFG)" "Debug86"
OUTDIR=Debug86
OUTFILE=$(OUTDIR)/serva_d
CFG_INC=
CFG_LIB=-lsqlite3 -lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto \
-lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec \
libavdevice libavfilter libavformat libavutil libpostproc \
libswresample libswscale --libs` -latomic `pkg-config --libs openssl \
opencv4 rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment
CFG_LIB=-lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig \
-lz `pkg-config libavcodec libavdevice libavfilter libavformat \
libavutil libpostproc libswresample libswscale --libs` -latomic \
`pkg-config --libs openssl opencv4 rdkafka++` -lliveMedia \
-lgroupsock -lBasicUsageEnvironment -lUsageEnvironment
CFG_OBJ=
COMMON_OBJ=$(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \
$(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \
@ -244,14 +242,14 @@ ALL_OBJ=$(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \
$(OUTDIR)/objectMySQLLoggingService.o $(OUTDIR)/servaBackend.o \
$(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \
$(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \
$(OUTDIR)/Transform.o $(OUTDIR)/utm.o -lsqlite3 -lpthread \
-lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig -lz -lv4l1 -lv4l2 \
-lhidapi-libusb `pkg-config libavcodec libavdevice libavfilter \
libavformat libavutil libpostproc libswresample libswscale --libs` \
-latomic `pkg-config --libs openssl opencv4 rdkafka++` -lliveMedia \
-lgroupsock -lBasicUsageEnvironment -lUsageEnvironment
$(OUTDIR)/Transform.o $(OUTDIR)/utm.o -lpthread -lmysqlclient -lssl \
-lcurl -lm -lcrypto -lconfig -lz `pkg-config libavcodec libavdevice \
libavfilter libavformat libavutil libpostproc libswresample \
libswscale --libs` -latomic `pkg-config --libs openssl opencv4 \
rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment
COMPILE=g++ -c -x c++ "-DDEBUG" "-DUSE_SERVER_MYSQL" "-D__STDC_CONSTANT_MACROS" "-D_CLIENT_APPLICATION_" "-D_OPENCV_" -O0 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
COMPILE=g++ -c -x c++ "-DDEBUG" "-DUSE_SERVER_MYSQL" "-D__STDC_CONSTANT_MACROS" "-D_SERVER_APPLICATION_" "-D_OPENCV_" -O0 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
LINK=g++ -O0 -w -o "$(OUTFILE)" $(ALL_OBJ)
# Pattern rules
@ -305,12 +303,11 @@ ifeq "$(CFG)" "Release86"
OUTDIR=Release86
OUTFILE=$(OUTDIR)/serva
CFG_INC=
CFG_LIB=-lsqlite3 -lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto \
-lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec \
libavdevice libavfilter libavformat libavutil libpostproc \
libswresample libswscale --libs` -latomic `pkg-config --libs openssl \
opencv4 rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment
CFG_LIB=-lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig \
-lz `pkg-config libavcodec libavdevice libavfilter libavformat \
libavutil libpostproc libswresample libswscale --libs` -latomic \
`pkg-config --libs openssl opencv4 rdkafka++` -lliveMedia \
-lgroupsock -lBasicUsageEnvironment -lUsageEnvironment -s
CFG_OBJ=
COMMON_OBJ=$(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \
$(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \
@ -342,14 +339,14 @@ ALL_OBJ=$(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \
$(OUTDIR)/objectMySQLLoggingService.o $(OUTDIR)/servaBackend.o \
$(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \
$(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \
$(OUTDIR)/Transform.o $(OUTDIR)/utm.o -lsqlite3 -lpthread \
-lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig -lz -lv4l1 -lv4l2 \
-lhidapi-libusb `pkg-config libavcodec libavdevice libavfilter \
libavformat libavutil libpostproc libswresample libswscale --libs` \
-latomic `pkg-config --libs openssl opencv4 rdkafka++` -lliveMedia \
-lgroupsock -lBasicUsageEnvironment -lUsageEnvironment
COMPILE=g++ -c -x c++ "-DUSE_SERVER_MYSQL" "-D__STDC_CONSTANT_MACROS" "-D_CLIENT_APPLICATION_" "-D_OPENCV_" -O3 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
$(OUTDIR)/Transform.o $(OUTDIR)/utm.o -lpthread -lmysqlclient -lssl \
-lcurl -lm -lcrypto -lconfig -lz `pkg-config libavcodec libavdevice \
libavfilter libavformat libavutil libpostproc libswresample \
libswscale --libs` -latomic `pkg-config --libs openssl opencv4 \
rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment -s
COMPILE=g++ -c -x c++ "-DUSE_SERVER_MYSQL" "-D__STDC_CONSTANT_MACROS" "-D_SERVER_APPLICATION_" "-D_OPENCV_" -O3 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $<
LINK=g++ -O3 -w -o "$(OUTFILE)" $(ALL_OBJ)
# Pattern rules
@ -415,7 +412,7 @@ $(OUTDIR)/basicThread.o: ../../lib/components/base/basicThread.cpp ../../lib/com
$(OUTDIR)/json_reader.o: ../../lib/data/json/json_reader.cpp ../../lib/data/json/json_tool.h
$(OUTDIR)/json_value.o: ../../lib/data/json/json_value.cpp ../../lib/data/json/json_valueiterator.inl
$(OUTDIR)/json_writer.o: ../../lib/data/json/json_writer.cpp ../../lib/data/json/json_tool.h
$(OUTDIR)/kernelPrototype.o: ../../lib/App/common/kernelPrototype.cpp ../../lib/App/common/kernelPrototype.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h
$(OUTDIR)/kernelPrototype.o: ../../lib/App/common/kernelPrototype.cpp ../../lib/App/common/kernelPrototype.h
$(OUTDIR)/lifeMonitoring.o: ../../lib/App/serva/lifeMonitoring.cpp ../../lib/App/serva/lifeMonitoring.h
$(OUTDIR)/md5.o: ../../lib/alg/generic/md5.cpp ../../lib/alg/generic/md5.h
$(OUTDIR)/mysql_class.o: ../../lib/data/mysql/mysql_class.cpp ../../lib/data/mysql/mysql_class.h

Loading…
Cancel
Save