Browse Source

Fixing getSiteData

pull/7/head
Evgeny Gagua 10 months ago
parent
commit
c27a896e3d
  1. 4
      Projects/la_mojo/build
  2. 6
      Projects/la_mojo/la_mojo.vpj
  3. 4
      Projects/la_mojo/makefile
  4. 4
      lib/App/mojo/mojoKernel.cpp

4
Projects/la_mojo/build

@ -6,9 +6,9 @@
make clean -e "CFG=Debug86"
make -e "CFG=Debug86" -j$(nproc)
cd Debug86
#cd Debug86
#strip ./mojo_d
cd ..
#cd ..
#make clean -e "CFG=Release86"
#make -e "CFG=Release86" -j$(nproc)

6
Projects/la_mojo/la_mojo.vpj

@ -380,7 +380,7 @@
Version="1"
OutputFile="%bdmojo"
CompilerConfigName="Latest Version"
Defines='"/DDEBUG" "/D__STDC_CONSTANT_MACROS" "/D_CLIENT_APPLICATION_" "/D_OPENCV_"'>
Defines='"/D__STDC_CONSTANT_MACROS" "/D_CLIENT_APPLICATION_" "/D_OPENCV_"'>
<Menu>
<Target
Name="Compile"
@ -392,7 +392,7 @@
SaveOption="SaveCurrent"
RunFromDir="%rw">
<Exec
CmdLine='g++ -c %xup -x c++ %defd -O3 -w -Wpointer-arith %~other -o "%bd%n%oe" %i %f'
CmdLine='g++ -c %xup -x c++ %defd -O3 -g -ggdb -w -Wpointer-arith %~other -o "%bd%n%oe" %i %f'
OtherOptions="-std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags`"/>
</Target>
<Target
@ -404,7 +404,7 @@
Deletable="0"
SaveOption="SaveCurrent"
RunFromDir="%rw">
<Exec CmdLine='g++ %xup -O3 -w -o "%o" %objs'/>
<Exec CmdLine='g++ %xup -O3 -g -ggdb -w -o "%o" %objs'/>
</Target>
<Target
Name="Build"

4
Projects/la_mojo/makefile

@ -743,8 +743,8 @@ ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \
opencv4 rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment
COMPILE=g++ -c -x c++ "-DDEBUG" "-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) $<
LINK=g++ -O3 -w -o "$(OUTFILE)" $(ALL_OBJ)
COMPILE=g++ -c -x c++ "-D__STDC_CONSTANT_MACROS" "-D_CLIENT_APPLICATION_" "-D_OPENCV_" -O3 -g -ggdb -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 -g -ggdb -w -o "$(OUTFILE)" $(ALL_OBJ)
# Pattern rules
$(OUTDIR)/%.o : ../../lib/components/object/%.cpp

4
lib/App/mojo/mojoKernel.cpp

@ -1375,9 +1375,9 @@ bool mojoKernel::validateReports( void ){
if( tSiteData ) {
// Check if settings has been changed in DB
if ( tSiteData->report_cleanup != m_sSiteData.report_cleanup || tSiteData->preserve_empty != m_sSiteData.preserve_empty ) {
memcpy( &m_sSiteData, tSiteData, sizeof( DBC_SITE_DATA ));
free( tSiteData );
memcpy( &m_sSiteData, tSiteData, sizeof( DBC_SITE_DATA ));
};
free( tSiteData );
} else {
LOG_ERROR("Error Loading Site DATA!");
return false;

Loading…
Cancel
Save