fix build error
This commit is contained in:
0
.devcontainer/Dockerfile
Normal file → Executable file
0
.devcontainer/Dockerfile
Normal file → Executable file
0
.devcontainer/devcontainer.json
Normal file → Executable file
0
.devcontainer/devcontainer.json
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
16
CCPP.nix
16
CCPP.nix
@@ -19,14 +19,14 @@
|
|||||||
|
|
||||||
# Enable languages support
|
# Enable languages support
|
||||||
# languages.cplusplus.enable = true;
|
# languages.cplusplus.enable = true;
|
||||||
env = {
|
# env = {
|
||||||
NIX_LD_LIBRARY_PATH = with pkgs;
|
# NIX_LD_LIBRARY_PATH = with pkgs;
|
||||||
lib.makeLibraryPath [
|
# lib.makeLibraryPath [
|
||||||
# stdenv_32bit.cc.cc
|
# stdenv_32bit.cc.cc
|
||||||
glibc_multi
|
# glibc_multi
|
||||||
];
|
# ];
|
||||||
NIX_LD = with pkgs; lib.fileContents "${stdenv_32bit.cc}/nix-support/dynamic-linker";
|
# NIX_LD = with pkgs; lib.fileContents "${stdenv_32bit.cc}/nix-support/dynamic-linker";
|
||||||
};
|
# };
|
||||||
|
|
||||||
# When enter shell, exec ...
|
# When enter shell, exec ...
|
||||||
enterShell = ''
|
enterShell = ''
|
||||||
|
|||||||
0
Hi3516_SDK.lua
Normal file → Executable file
0
Hi3516_SDK.lua
Normal file → Executable file
0
src/isp/eb3516_video.c
Normal file → Executable file
0
src/isp/eb3516_video.c
Normal file → Executable file
0
src/isp/eb3516_video.h
Normal file → Executable file
0
src/isp/eb3516_video.h
Normal file → Executable file
0
src/log.conf
Normal file → Executable file
0
src/log.conf
Normal file → Executable file
8
src/main.cpp
Normal file → Executable file
8
src/main.cpp
Normal file → Executable file
@@ -36,10 +36,10 @@ int main(int argc, char** argv) {
|
|||||||
zlog_warn(log, "Can't Create log dir FOR %s", file_error.message().c_str());
|
zlog_warn(log, "Can't Create log dir FOR %s", file_error.message().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
eb3516VideoInit();
|
// eb3516VideoInit();
|
||||||
eb3516VideoStart();
|
// eb3516VideoStart();
|
||||||
// eb3516Yolov3Init("./coco_yolov3_detect.wk", "./dog_bike_car_416x416.bgr");
|
eb3516Yolov3Init("./coco_yolov3_detect.wk", "./dog_bike_car_416x416.bgr");
|
||||||
// eb3516Yolov3Exit();
|
eb3516Yolov3Exit();
|
||||||
|
|
||||||
zlog_fini();
|
zlog_fini();
|
||||||
|
|
||||||
|
|||||||
0
src/my_common.h
Normal file → Executable file
0
src/my_common.h
Normal file → Executable file
0
src/nnie/eb3516_nnie.c
Normal file → Executable file
0
src/nnie/eb3516_nnie.c
Normal file → Executable file
0
src/nnie/eb3516_nnie.h
Normal file → Executable file
0
src/nnie/eb3516_nnie.h
Normal file → Executable file
0
src/nnie/sample_svp_nnie_software.c
Normal file → Executable file
0
src/nnie/sample_svp_nnie_software.c
Normal file → Executable file
0
src/nnie/sample_svp_nnie_software.h
Normal file → Executable file
0
src/nnie/sample_svp_nnie_software.h
Normal file → Executable file
19
xmake.lua
Normal file → Executable file
19
xmake.lua
Normal file → Executable file
@@ -1,18 +1,21 @@
|
|||||||
add_rules("mode.debug", "mode.release")
|
add_rules("mode.debug", "mode.release")
|
||||||
includes("Hi3516_SDK.lua")
|
includes("Hi3516_SDK.lua")
|
||||||
|
|
||||||
|
--- Add Cross Compile Toolchain
|
||||||
|
toolchain("arm-himix200-linux")
|
||||||
|
set_kind("standalone")
|
||||||
|
|
||||||
|
set_sdkdir("/home/sikongjueluo/Projects/CatFeeder/arm-himix200-linux")
|
||||||
|
toolchain_end()
|
||||||
|
|
||||||
--- Set toolchain and C/C++ standard
|
--- Set toolchain and C/C++ standard
|
||||||
-- set_config("sdk", "$(projectdir)/arm-himix200-linux")
|
-- set_config("sdk", "/opt/hisi-linux/x86-arm/arm-himix200-linux/")
|
||||||
-- set_config("bin", "$(projectdir)/arm-himix200-linux/bin")
|
set_toolchains("arm-himix200-linux")
|
||||||
-- set_config("cross", "arm-himix200-linux-")
|
set_plat("cross")
|
||||||
-- set_config("linkdirs", "$(projectdir)/arm-himix200-linux/arm-linux-gnueabi/lib")
|
|
||||||
-- set_config("includedirs", "$(projectdir)/arm-himix200-linux/arm-linux-gnueabi/include")
|
|
||||||
set_config("sdk", "/opt/hisi-linux/x86-arm/arm-himix200-linux/")
|
|
||||||
set_config("plat", "cross")
|
|
||||||
set_languages("c11", "c++14")
|
set_languages("c11", "c++14")
|
||||||
|
|
||||||
--- Add requires and dependencies
|
--- Add requires and dependencies
|
||||||
add_requires("zlog 1.2.17")
|
add_requires("zlog 1.2.17", {system = false})
|
||||||
|
|
||||||
target("ISP")
|
target("ISP")
|
||||||
set_kind("static")
|
set_kind("static")
|
||||||
|
|||||||
Reference in New Issue
Block a user