Browse Source

Added Ld config for MySQLclient lib (for compat. purposes)

AGP
root 4 years ago
parent
commit
4a97641e39
  1. 3
      Projects/la_mojo/la_mojo.vpj
  2. 20
      Projects/la_mojo/makefile

3
Projects/la_mojo/la_mojo.vpj

@ -106,6 +106,7 @@
<Libs PreObjects="0">
<Lib File="-lsqlite3"/>
<Lib File="-lpthread"/>
<Lib File="-lmysqlclient"/>
<Lib File="-lssl"/>
<Lib File="-lcurl"/>
<Lib File="-lm"/>
@ -171,7 +172,7 @@
RunFromDir="%rw">
<Exec
CmdLine='g++ %xup -O3 -w %~other -o "%o" %objs'
OtherOptions="-lconfig -lpthread -lelf -lcurses -lcdk -lcurl `pkg-config --libs rdkafka++` -lwiringx -lsqlite3 -s"/>
OtherOptions="-lconfig -lpthread -lmysqlclient -lelf -lcurses -lcdk -lcurl `pkg-config --libs rdkafka++` -lwiringx -lsqlite3 -s"/>
</Target>
<Target
Name="Build"

20
Projects/la_mojo/makefile

@ -21,12 +21,12 @@ ifeq "$(CFG)" "Debug"
OUTDIR=Debug
OUTFILE=$(OUTDIR)/mojo_d
CFG_INC=
CFG_LIB=-lsqlite3 -lpthread -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
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
CFG_OBJ=
COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \
$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \
@ -120,9 +120,9 @@ ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \
$(OUTDIR)/Transform.o $(OUTDIR)/transportSerial.o \
$(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o \
$(OUTDIR)/videoAVLIBSource.o $(OUTDIR)/videoLive555AVLibSource.o \
$(OUTDIR)/xmlParser.o -lsqlite3 -lpthread -lssl -lcurl -lm -lcrypto \
-lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec \
libavdevice libavfilter libavformat libavutil libpostproc \
$(OUTDIR)/xmlParser.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
@ -308,7 +308,7 @@ ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \
$(OUTDIR)/xmlParser.o
COMPILE=g++ -c -x c++ "-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 -lelf -lcurses -lcdk -lcurl `pkg-config --libs rdkafka++` -lwiringx -lsqlite3 -s -o "$(OUTFILE)" $(ALL_OBJ)
LINK=g++ -O3 -w -lconfig -lpthread -lmysqlclient -lelf -lcurses -lcdk -lcurl `pkg-config --libs rdkafka++` -lwiringx -lsqlite3 -s -o "$(OUTFILE)" $(ALL_OBJ)
# Pattern rules
$(OUTDIR)/%.o : ../../lib/components/object/%.cpp

Loading…
Cancel
Save