Aml_sdk_6.4.4.3 missing linux_sdk folder

Trying to compile the case code for a .onnx file I converted via the scripts, but compilation fails due to missing common.target file, which is apparently in the linux_sdk folder… which is not present in the current download. I would like to compile on Ubuntu Linux, please help or provide a download for a working version.

when running build_vx.sh:

makefile.linux:55: /common.target: No such file or directory
make: *** No rule to make target '/common.target'.  Stop.

@Frank - can you help? Thanks!

@kroscom Please provide complete logs and compilation commands.

Are you compiling your own demo?

Yes, I have already converted my .onnx models and generated the case code by modifying the three scripts from the SDK:

$convert_onnx \
    --onnx-model  ./model/${NAME}.onnx \
    --net-output ${NAME}.json \
    --data-output ${NAME}.data 
$tensorzone \
    --action quantization \
    --dtype float32 \
    --source text \
    --source-file data/${NAME}.txt \
    --model-input ${NAME}.json \
    --model-data ${NAME}.data \
    --model-quantize ${NAME}.quantize \
    --quantized-dtype asymmetric_affine-u8 \
    --quantized-rebuild \
$export_ovxlib \
    --model-input ${NAME}.json \
    --data-input ${NAME}.data \
    --reorder-channel '0 3 1 2' \
    --export-dtype quantized \
    --model-quantize ${NAME}.quantize \
    --optimize VIPNANOQI_PID0X7D  \
    --viv-sdk ${ACUITY_PATH}vcmdtools \
    --pack-nbg-unify  \

Unfortunately, I cannot share all of the info about the model. After running the three scripts, the case code was successfully generated and moved into its own folder. I then cloned the aml_npu_app repo from Khadas GitLab and tried to follow the guide here:
https://docs.khadas.com/linux/vim3/ConvertToUseNPU.html
Rather than replacing individual files and trying to hack in support for the generated model, I copied all the relevant files from the generated case code into the yolo_v3 folder and attempted to compile, resulting in the error from my first post.

I then attempted to compile the yolo_v3 example from stock (undoing all my other changes first) and the same result - common.target not found. Since I’d like to compile for Linux rather than Android, the makefile.linux is trying to look for that file, which is not present in the current SDK.

How do I compile the generated case code for Linux? Alternatively, is there another way to run the generated .nb models on the VIM3 Pro without using this SDK? (must support multi-input models)

My current issue seems to be related to the presence of the $(AQROOT) variable, which is not present in the Ubuntu system nor in any of the files in either the SDK nor the aml_npu_app

update: i re-cloned the aml_npu_app and moved the SDK files to my VIM3 board, and now the demo compiles.

@kroscom In my makefile , it don’t need common.target. Which one makefile you used?

include ./makefile.linux.def
include ./makefile.target_name

INCLUDE += -I$(VIVANTE_SDK_INC)
INCLUDE += -I$(OVXLIB_DIR)/include
INCLUDE += -I./include

CFLAGS += $(INCLUDE) -fpic

################################################################################
LIBS += -L$(VIVANTE_SDK_LIB) -l OpenVX -l OpenVXU -l VSC -lGAL
LIBS += -L$(OVXLIB_DIR)/lib -l ovxlib
LIBS += -lm -ldl


#############################################################################
# Macros.
PROGRAM = 1
DYNAMIC      := 1
CUR_SOURCE = ${wildcard *.c}
#############################################################################
# Objects.
OBJECTS =  ${patsubst %.c, $(OBJ_DIR)/%.o, $(CUR_SOURCE)}

LDFLAGS += -Wall -shared -Wl,-soname,$(TARGET_NAME) -Wl,-z,defs -fpic

# installation directory
INSTALL_DIR := ./
OBJ_DIR = bin_r
################################################################################
# Include the common makefile.

#include $(AQROOT)/common.target

TARGET_OUTPUT = $(OBJ_DIR)/$(TARGET_NAME)

all: $(TARGET_OUTPUT)

clean:
    @rm -rf $(OBJ_DIR)/* $(OBJ_DIR)

install: $(TARGET_OUTPUT)
    @mkdir -p $(INSTALL_DIR)
    @-cp $(TARGET_OUTPUT) $(INSTALL_DIR)

$(TARGET_OUTPUT): $(OBJECTS)
    @$(CC) $(LDFLAGS) $(OBJECTS) -o $(TARGET_OUTPUT) $(LIBS)

$(OBJ_DIR)/%.o: %.c
    @echo "  COMPILE $(abspath $<)"
    @mkdir -p $(OBJ_DIR)
    @$(CC) -c $(CFLAGS) -o $@ $<

I’m also getting same error , did you found any solution???

@Omkar_Shende You can use the latest code and firmware. This problem was solved a long time ago. All demos are compiled locally now, you no longer need linux_sdk