joyup

joyup

0个粉丝

10

问答

0

专栏

3

资料

joyup  发布于  2016-11-04 14:59:53
采纳率 0%
10个问答
5168

ive 算子 由gcc 变成g++ 之后 编译出现的问题

 
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1255:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1255:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1255:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1271:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1271:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1271:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1288:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1288:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1288:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1304:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1304:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1304:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1321:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1321:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1321:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1338:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1338:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1338:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1354:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1354:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1354:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1370:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1370:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1370:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1386:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1386:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1386:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1402:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1402:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1402:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1418:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1418:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1418:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1434:1: error: invalid conversion from ‘int’ to ‘COMPRESS_MODE_E {aka hiCOMPRESS_MODE_E}’ [-fpermissive]
};
^
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1434:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/ive/../common/sample_comm_vi.c:1434:1: error: invalid conversion from ‘int’ to ‘HI_BOOL’ [-fpermissive]
我来回答
回答7个
时间排序
认可量排序

joyup

0个粉丝

10

问答

0

专栏

3

资料

joyup 2016-11-04 15:00:24
认可0
麻烦大神 帮我看下 这要怎么改才能编译过

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2016-11-04 15:11:59
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40826&ptid=13252]joyup 发表于 2016-11-4 15:00[/url]
麻烦大神 帮我看下 这要怎么改才能编译过[/quote]

makefile 贴上来

joyup

0个粉丝

10

问答

0

专栏

3

资料

joyup 2016-11-04 15:20:48
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40827&ptid=13252]zhuangweiye 发表于 2016-11-4 15:11[/url]
makefile 贴上来[/quote]

[code]makefile_ive
# Hisilicon Hi3516 sample Makefile

include ../Makefile.param
#ifeq ($(SAMPLE_PARAM_FILE), )
#     SAMPLE_PARAM_FILE:=../Makefile.param
#     include $(SAMPLE_PARAM_FILE)
#endif


# target source
INC         := ./sample/      
           
SRC  := $(wildcard *.c)
IVE_SAMPLE_SRC := $(wildcard sample/*.c)
OBJ  := $(SRC:%.c=%.o)
IVE_SAMPLE_OBJ  := $(IVE_SAMPLE_SRC:%.c=%.o)
TARGET := $(OBJ:%.o=%)
.PHONY : clean all

all: $(TARGET)


MPI_LIBS := $(REL_LIB)/libmpi.a
#MPI_LIBS += $(REL_LIB)/libhdmi.a
IVE_LIBS := $(REL_LIB)/libive.a
OPENCV_LIBS :=-L/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/opencv249/lib
$(TARGET):%:%.o $(COMM_OBJ) $(IVE_SAMPLE_OBJ)
        $(CC) $(CFLAGS) -lpthread -lm -ldl -lrt -o $@ $^ -I$(INC) $(MPI_LIBS) $(AUDIO_LIBA) $(SENSOR_LIBS) $(HVD_LIBS) $(IVE_LIBS) $(OPENCV_LIBS)

clean:
        @echo "$(CFLAGS)"
        @echo "$(IVE_SAMPLE_OBJ)"
        @rm -f $(TARGET)
        @echo $(OBJ)
        @rm -f $(OBJ)
        @rm -f $(COMM_OBJ)
        @rm -f $(IVE_SAMPLE_OBJ)
cleanstream:
        @rm -f *.h264
        @rm -f *.jpg
        @rm -f *.mjp
        @rm -f *.mp4
[/code]

joyup

0个粉丝

10

问答

0

专栏

3

资料

joyup 2016-11-04 15:21:24
认可0
本帖最后由 joyup 于 2016-11-4 15:57 编辑

# Hisilicon Hi35xx sample Makefile.param

ifeq ($(PARAM_FILE), )
     PARAM_FILE:=../../../mpp/Makefile.param
     include $(PARAM_FILE)
endif

ifeq ($(WDR),)
WDR :=n
endif


################# select sensor type for your sample ####################

#------demo board use sublvds default----------------
SENSOR_TYPE ?= PANASONIC_MN34220_SUBLVDS_1080P_30FPS
SENSOR_LIBS := $(REL_LIB)/libisp.a


ifeq ($(SENSOR_TYPE), PANASONIC_MN34220_SUBLVDS_1080P_30FPS)
        SENSOR_LIBS += $(REL_LIB)/libsns_mn34220.a
endif
#iniparser
SENSOR_LIBS += $(REL_LIB)/lib_cmoscfg.a
SENSOR_LIBS += $(REL_LIB)/lib_iniparser.a
#########################################################################

COMMON_DIR:=$(PWD)/../common

INC_FLAGS := -I$(COMMON_DIR)
INC_FLAGS += -I$(REL_INC)
INC_FLAGS += -I$(SDK_PATH)/mpp/component/acodec
INC_FLAGS += -I/home/ggj/ggj/nfs-jacoxu/Hi3516A_SDK_V1.0.5.0/package/mpp/sample/opencv249/include

ifeq ($(MPP_BUILD), y)
        INC_FLAGS += -I$(SDK_PATH)/mpp/$(EXTDRV)/tw2865
        INC_FLAGS += -I$(SDK_PATH)/mpp/$(EXTDRV)/tlv320aic31
        INC_FLAGS += -I$(SDK_PATH)/mpp/$(EXTDRV)/ak7756en
else
        INC_FLAGS += -I$(SDK_PATH)/mpp/extdrv/tw2865
        INC_FLAGS += -I$(SDK_PATH)/mpp/$(EXTDRV)/tlv320aic31
        INC_FLAGS += -I$(SDK_PATH)/mpp/$(EXTDRV)/ak7756en
endif

ISP_VERSION := ISP_V2
SENSOR_LIBS += $(REL_LIB)/lib_hiae.a
SENSOR_LIBS += $(REL_LIB)/lib_hiawb.a
SENSOR_LIBS += $(REL_LIB)/lib_hiaf.a

SENSOR_LIBS += $(REL_LIB)/lib_hidefog.a
CFLAGS := -Wall -g $(INC_FLAGS) -D$(HIARCH) -DHICHIP=$(HICHIP) -DSENSOR_TYPE=$(SENSOR_TYPE) -D$(HIDBG) -D$(HI_FPGA) -lpthread -lm -ldl -D$(ISP_VERSION)

ifeq ($(SENSOR_TYPE), PANASONIC_MN34220_SUBLVDS_1080P_30FPS)
        CFLAGS += -DHI_MIPI_ENABLE
endif  

################ select audio codec type for your sample ################
ACODEC_TYPE ?= ACODEC_TYPE_INNER
#external acodec
#ACODEC_TYPE ?= ACODEC_TYPE_AK7756
#ACODEC_TYPE ?= ACODEC_TYPE_TLV320AIC31

ifeq ($(ACODEC_TYPE), ACODEC_TYPE_INNER)
        CFLAGS += -DHI_ACODEC_TYPE_INNER
endif

ifeq ($(ACODEC_TYPE), ACODEC_TYPE_AK7756)
        CFLAGS += -DHI_ACODEC_TYPE_AK7756
endif

ifeq ($(ACODEC_TYPE), ACODEC_TYPE_TLV320AIC31)
        CFLAGS += -DHI_ACODEC_TYPE_TLV320AIC31
endif
#########################################################################

CFLAGS += $(LIBS_CFLAGS)

COMM_SRC := $(wildcard $(COMMON_DIR)/*.c)

#DEL_SRC  := $(COMMON_DIR)/sample_comm_audio.c
#COMM_SRC := $(filter-out $(DEL_SRC), $(COMM_SRC))

COMM_OBJ := $(COMM_SRC:%.c=%.o)

joyup

0个粉丝

10

问答

0

专栏

3

资料

joyup 2016-11-04 15:22:02
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40829&ptid=13252]joyup 发表于 2016-11-4 15:21[/url]
makefile_sample
# Hisilicon Hi35xx sample Makefile.param

[/quote]

[code]makefile_mpp
# Makefile.param
# Only global variable should be defined here.
# All the variables must be used as "export" and "?=".
# Otherwise, there will be some errors, when Makefile.param is nested.

# Use this file as the following sample
# ifeq ($(PARAM_FILE), )
#     PARAM_FILE:=../Makefile.param
#     include $(PARAM_FILE)
# endif

# Define the default OS link directory.
export HIWORK_PATH?=/hiwork

export ARCH=arm
export MPP_BUILD=n

#Change ISP parameter config mode
#Default "y" is ini config mode, else "n" source code config mode
export ISP_INI_CONFIG=n

# use HIARCH indicate chip, use libc to choose cross compiler.
export HIARCH?=hi3516a
export LIBC?=uclibc

# Whether support the debug information. HI_DEBUG or HI_RELEASE
export HIDBG?=HI_RELEASE

# cpu type single/big-little
ifeq ($(HIARCH),hi3519)
export CPU_TYPE?=
else
export CPU_TYPE?=
endif

# Whether open -g
#export HIGDB?=y
export HIGDB?=n

# FPGA board or not
export FPGA?=n

ifeq ($(HIARCH), )
$(error HIARCH not defined! Please check!)
endif

ifeq ($(LIBC), )
$(error LIBC not defined! Please check!)
endif

ifeq ($(HIARCH),hi3516a)
        export HICHIP?=0x3516A100
        export ARCH_DIR?=hi3516a
endif

ifeq ($(HIARCH),hi3519)
        export HICHIP?=0x3519100
        export ARCH_DIR?=hi3519
endif

ifeq ($(HIARCH),hi3518e)
        export HICHIP?=0x3518E200
        export ARCH_DIR?=hi3518e
endif

ifeq ($(HIDBG),HI_DEBUG)
        DBG_FLAG=0
else
        DBG_FLAG=0
endif


ifeq ($(HIARCH),hi3536)
        export PRODUCT?=NVRDVR
else
        export PRODUCT?=IPC
endif

# use C01 to indicate uclibc, C02 to  indicate glibc, C00 to indicate FPGA.
ifeq ($(LIBC),glibc)
    ifeq ($(FPGA), y)
        export CVER?=.C$(DBG_FLAG)3
    else
        export CVER?=.C$(DBG_FLAG)2
    endif
else ifeq ($(FPGA), y)
        export CVER?=.C$(DBG_FLAG)0
else
        export CVER?=.C$(DBG_FLAG)1
endif

ifeq ($(FPGA),y)
        export HI_FPGA:=HI_FPGA
        export EXTDRV:=extdrv/$(HIARCH)_fpga
else
        export HI_FPGA:=HI_XXXX
        export EXTDRV:=extdrv/$(HIARCH)
endif

# Get the local SDK_ROOT path or RELEASE_ROOT path by PARAM_FILE.
# PARAM_FILE is configed at Makefile before include this file
export PARAM_FILE
export SDK_PATH?=$(shell cd $(shell pwd)/`dirname $(PARAM_FILE)`/..; pwd)
export MPP_PATH?=$(shell cd $(shell pwd)/`dirname $(PARAM_FILE)`; pwd)
export SHELF_ROOT?=$(MPP_PATH)/code/shelf
export DRV_ROOT?=$(SDK_PATH)/drv

##############################################################################
export KERNEL_NAME="linux-3.4.y"

ifeq ($(HIARCH), hi3519)
        export KERNEL_NAME="linux-3.18.y"
endif

# Allocated the linux position
ifneq ($(shell ls $(HIWORK_PATH)/osdrv$(HIARCH)$(CVER)), )
        ifeq ($(HIARCH),hi3519)
                export LINUX_ROOT?=$(HIWORK_PATH)/osdrv$(HIARCH)$(CVER)/$(CPU_TYPE)/opensource/kernel/$(KERNEL_NAME)               
        else
                export LINUX_ROOT?=$(HIWORK_PATH)/osdrv$(HIARCH)$(CVER)/opensource/kernel/$(KERNEL_NAME)
        endif       
else
        export LINUX_ROOT?=$(SDK_PATH)/osdrv/opensource/kernel/$(KERNEL_NAME)
endif

##############################################################################

# Define cross compiler
ifeq ($(HIARCH), hi3519)
        ifeq ($(LIBC),glibc)
                export CROSS_COMPILE?= arm-hisiv600-linux-
                export CROSS?= arm-hisiv600-linux-
        else
                export CROSS_COMPILE?=arm-hisiv500-linux-
                export CROSS?=arm-hisiv500-linux-
        endif
else
        ifeq ($(LIBC),glibc)
                export CROSS_COMPILE?= arm-hisiv400-linux-
                export CROSS?= arm-hisiv400-linux-
        else
                export CROSS_COMPILE?=arm-hisiv300-linux-
                export CROSS?=arm-hisiv300-linux-
        endif
endif

export CC:=$(CROSS)g++
export AR:=$(CROSS)ar


ifeq ($(HIARCH), hi3519)
export MPP_CFLAGS:= -Wall -Wno-date-time -Wno-error=implicit-function-declaration
export DRV_CFLAGS:= -Wno-error=date-time -Wno-error=implicit-function-declaration
else
export MPP_CFLAGS:= -Wall
export DRV_CFLAGS:=
endif

ifeq ($(HIGDB), y)
        MPP_CFLAGS += -g
endif

# Define the object output directory
ifeq ($(MPP_BUILD), y)

ifeq ($(HIARCH),hi3519)
        REL_DIR=$(SDK_PATH)/mpp/release/$(HIARCH)/$(CPU_TYPE)
else
        REL_DIR=$(SDK_PATH)/mpp/release/$(HIARCH)
endif
        SAMPLE_DIR=$(SDK_PATH)/mpp/sample/$(HIARCH)

else
#### MPP_BUILD=n ######

ifeq ($(HIARCH),hi3519)
        # hi3519 config
        REL_DIR=$(SDK_PATH)/mpp_$(CPU_TYPE)
else
        REL_DIR=$(SDK_PATH)/mpp
endif
       
        EXTDRV=extdrv
        SAMPLE_DIR=$(REL_DIR)/sample
endif

export REL_INC := $(REL_DIR)/include
export REL_LIB := $(REL_DIR)/lib
export REL_KO  := $(REL_DIR)/ko

# Define the param of audio
export AUDIO_PATH?=$(SDK_PATH)/mpp/component/audio/lib/$(CROSS)

export AUDIO_LIBA ?= $(REL_LIB)/libVoiceEngine.a\
                     $(REL_LIB)/libupvqe.a\
                                 $(REL_LIB)/libdnvqe.a

export AUDIO_LIBS ?= $(REL_LIB)/libVoiceEngine.so\
                     $(REL_LIB)/libupvqe.so\
                                 $(REL_LIB)/libdnvqe.so

# include the audio config file of platform


# Define the lib of jpeg codec
export JPEGD_PATH?=$(SDK_PATH)/mpp/component/jpegd
export JPEGD_LIBA:=$(REL_LIB)/libjpeg.a

export HIMEM_LIBA := $(REL_LIB)/libmem.a

###############################################################################
# LIB GLOBAL CFLAGS
ifeq ($(HIARCH),hi3516a)
        export LIBS_CFLAGS    = -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -ffunction-sections

        export LIBS_LD_CFLAGS = -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4
endif

ifeq ($(HIARCH),hi3518e)
        export LIBS_CFLAGS    =
       
        export LIBS_LD_CFLAGS =
endif

ifeq ($(HIARCH),hi3519)
        export LIBS_CFLAGS    =
       
        export LIBS_LD_CFLAGS =
endif

# common CFLAGS
LIBS_CFLAGS +=  -mno-unaligned-access -fno-aggressive-loop-optimizations -ldl
LIBS_LD_CFLAGS += -mno-unaligned-access -fno-aggressive-loop-optimizations -ldl

###############################################################################

#********************* Macro for version management*****************************
VER_X ?= 1
VER_Y ?= 0
VER_Z ?= 0
VER_P ?= 0
VER_B ?= 10
MPP_CFLAGS += -DVER_X=$(VER_X) -DVER_Y=$(VER_Y) -DVER_Z=$(VER_Z) -DVER_P=$(VER_P) -DVER_B=$(VER_B)
#*******************************************************************************

# include the config file of platform
-include $(SDK_PATH)/mpp/configs/config.mk

ifeq ($(CONFIG_JPEGEDCF), y)
        MPP_CFLAGS += -D ENABLE_JPEGEDCF
endif       

ifeq ($(CONFIG_LOWDELAY), y)
         MPP_CFLAGS += -DENABLE_LOWDELAY
endif



# End!!
[/code]

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2016-11-04 15:57:08
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40830&ptid=13252]joyup 发表于 2016-11-4 15:22[/url]
[/quote]

改源文件 mpp/sample/common/sample_comm_vi.c

把所有的初始化中的
    /*bMirr  bFlip   bChromaResample*/
    0,      0,      0,

改成
COMPRESS_MODE_NONE, HI_FALSE, HI_FALSE,

试试

抱歉,没有仔细看代码, 就让楼主贴makefile了

joyup

0个粉丝

10

问答

0

专栏

3

资料

joyup 2016-11-04 15:59:06
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=40834&ptid=13252]zhuangweiye 发表于 2016-11-4 15:57[/url]
改源文件 mpp/sample/common/sample_comm_vi.c

把所有的初始化中的
[/quote]

你好客气 你能回答我的帖子都是对我最大的帮助了。
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区