Update KVM Demo

Update KVM Demo
This commit is contained in:
某杰同学
2024-05-22 01:38:53 -07:00
parent f88933c279
commit e4c87a6db0
3 changed files with 4 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ endif
EXTRA_CFLAGS = $(INCS) $(DEFS)
EXTRA_LDFLAGS = $(LIBS) -lpthread -lm -lini
LIBS += -L$(SDIR)/media_server-1.0.1/libs -lrtsp -lhttp -lflv -lmov -lrtp -lmpeg -lsdk -lavcodec -lavbsf
LIBS += -L$(SDIR)/media_server-1.0.1/libs -L. -lrtsp -lhttp -lflv -lmov -lrtp -lmpeg -lsdk -lavcodec -lavbsf
# IVE_SUPPORT = 1
ifeq ($(IVE_SUPPORT), 1)
@@ -79,7 +79,7 @@ $(SDIR)/%.o: $(SDIR)/%.c
@echo [$(notdir $(CC))] $(notdir $@)
$(TARGET): $(COMM_OBJ) $(OBJS) $(ISP_OBJ) $(MW_LIB)/libvpu.a $(MW_LIB)/libsys.a
@$(CXX) -o $@ -Wl,--start-group $(OBJS) $(COMM_OBJS) -lsys $(MW_LIB)/libsys.a -Wl,--end-group $(ELFFLAGS) $(EXTRA_LDFLAGS)
@$(CXX) -o $@ -Wl,--start-group $(OBJS) $(COMM_OBJS) -lsys $(MW_LIB)/libsys.a -Wl,--end-group -lmaix_mmf $(ELFFLAGS) $(EXTRA_LDFLAGS)
@echo -e $(BLUE)[LINK]$(END)[$(notdir $(CXX))] $(notdir $@)
clean:

View File

@@ -20,7 +20,7 @@
#include "cvi_awb.h"
#include "sample_comm.h"
#include "sophgo_middleware.h"
#include "maix_mmf.h"
// #include "vo_uapi.h"
#include "rtsp-server.h"
#include "fomat.h"
@@ -2958,4 +2958,4 @@ int test_vi_region_venc_h265_rtsp(void)
int test_i2c_oled(void)
{
return _test_i2c_oled();
}
}

View File

@@ -45,7 +45,6 @@ void SAMPLE_VIO_Usage(char *sPrgNm)
printf("\t 11) test multiple vi.\n");
printf("\t 12) test vi venc region h265 rtsp.\n");
printf("\t 13) test i2c oled.\n");
printf("\t 14) test http stream.\n");
}
int main(int argc, char *argv[])
@@ -125,9 +124,6 @@ int main(int argc, char *argv[])
case 13:
s32Ret = test_i2c_oled();
break;
case 14:
s32Ret = test_http_stream();
break;
default:
SAMPLE_PRT("the index %d is invaild!\n", s32Index);
SAMPLE_VIO_Usage(argv[0]);