Browse Source

add -g3 flag to get full debug information

pull/7/head
Stéphane Charette 10 months ago
parent
commit
c0dd7679b8
  1. 8
      Projects/la_mojo/la_mojo.vpj
  2. 8
      Projects/la_mojo/makefile

8
Projects/la_mojo/la_mojo.vpj

@ -26,7 +26,7 @@
SaveOption="SaveCurrent" SaveOption="SaveCurrent"
RunFromDir="%rw"> RunFromDir="%rw">
<Exec <Exec
CmdLine='g++ -c %xup -x c++ %defd -O0 -w -Wpointer-arith %~other -o "%bd%n%oe" %i %f'
CmdLine='g++ -c %xup -x c++ %defd -O0 -g3 -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`"/> 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>
<Target <Target
@ -38,7 +38,7 @@
Deletable="0" Deletable="0"
SaveOption="SaveCurrent" SaveOption="SaveCurrent"
RunFromDir="%rw"> RunFromDir="%rw">
<Exec CmdLine='g++ %xup -O0 -w -o "%o" %objs'/>
<Exec CmdLine='g++ %xup -O0 -g3 -w -o "%o" %objs'/>
</Target> </Target>
<Target <Target
Name="Build" Name="Build"
@ -261,7 +261,7 @@
SaveOption="SaveCurrent" SaveOption="SaveCurrent"
RunFromDir="%rw"> RunFromDir="%rw">
<Exec <Exec
CmdLine='g++ -c %xup -x c++ %defd -O0 -w -Wpointer-arith %~other -o "%bd%n%oe" %i %f'
CmdLine='g++ -c %xup -x c++ %defd -O0 -g3 -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`"/> 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>
<Target <Target
@ -273,7 +273,7 @@
Deletable="0" Deletable="0"
SaveOption="SaveCurrent" SaveOption="SaveCurrent"
RunFromDir="%rw"> RunFromDir="%rw">
<Exec CmdLine='g++ %xup -O0 -w -o "%o" %objs'/>
<Exec CmdLine='g++ %xup -O0 -g3 -w -o "%o" %objs'/>
</Target> </Target>
<Target <Target
Name="Build" Name="Build"

8
Projects/la_mojo/makefile

@ -141,8 +141,8 @@ ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \
opencv4 rdkafka++` -L/usr/lib -lrdkafka++ -lrdkafka -lwiringx \ opencv4 rdkafka++` -L/usr/lib -lrdkafka++ -lrdkafka -lwiringx \
-lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment
COMPILE=g++ -c -x c++ "-DDEBUG" "-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) $<
LINK=g++ -O0 -w -o "$(OUTFILE)" $(ALL_OBJ)
COMPILE=g++ -c -x c++ "-DDEBUG" "-D__STDC_CONSTANT_MACROS__" "-D_CLIENT_APPLICATION_" "-D_OPENCV_" "-DRASPI_HARDWARE" -O0 -g3 -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 -g3 -w -o "$(OUTFILE)" $(ALL_OBJ)
# Pattern rules # Pattern rules
$(OUTDIR)/%.o : ../../lib/components/object/%.cpp $(OUTDIR)/%.o : ../../lib/components/object/%.cpp
@ -539,8 +539,8 @@ ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \
opencv4 rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \ opencv4 rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment -lUsageEnvironment
COMPILE=g++ -c -x c++ "-DDEBUG" "-DMEKOROT_PROJECT_" "-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) $<
LINK=g++ -O0 -w -o "$(OUTFILE)" $(ALL_OBJ)
COMPILE=g++ -c -x c++ "-DDEBUG" "-DMEKOROT_PROJECT_" "-D__STDC_CONSTANT_MACROS" "-D_CLIENT_APPLICATION_" "-D_OPENCV_" -O0 -g3 -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 -g3 -w -o "$(OUTFILE)" $(ALL_OBJ)
# Pattern rules # Pattern rules
$(OUTDIR)/%.o : ../../lib/components/object/%.cpp $(OUTDIR)/%.o : ../../lib/components/object/%.cpp

Loading…
Cancel
Save