commit 1df41ab602ef606a912ea60190a812f1a2abd5e5 Author: gb <741021719@qq.com> Date: Sat Apr 8 08:56:20 2023 +0800 import from gxx-linux diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/cache/config b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/config new file mode 100644 index 0000000..08c0ded --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/config @@ -0,0 +1,20 @@ +{ + mtimes = { + ["regs/xmake.lua"] = 1668149940, + ["motorboard/xmake.lua"] = 1668149940, + ["scanner/xmake.lua"] = 1668149940, + ["capimage/xmake.lua"] = 1668149940, + ["service/xmake.lua"] = 1668149940, + ["imgproc/xmake.lua"] = 1667459667, + ["deviceio/xmake.lua"] = 1668149940, + ["applog/xmake.lua"] = 1668149940, + ["usb/xmake.lua"] = 1668149940, + ["xmake.lua"] = 1668153855, + ["scanservice/xmake.lua"] = 1668149940, + ["fpgaupdate/xmake.lua"] = 1668149940 + }, + recheck = false, + options = { + mode = "release" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/cache/detect b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/detect new file mode 100644 index 0000000..e387032 --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/detect @@ -0,0 +1,281 @@ +{ + ["find_program_gcc_arch_arm64-v8a_plat_linux_checktoolcxx"] = { + gcc = "/usr/bin/gcc" + }, + ["find_program_gcc_arch_arm64-v8a_plat_linux_checktoolar"] = { + ar = "/usr/bin/ar" + }, + ["lib.detect.has_flags"] = { + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cc_cxflags__-DNDEBUG"] = true, + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cxx_cxflags__-DNDEBUG"] = true, + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cxx_cxflags__-fdiagnostics-color=always"] = true, + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cc_cxflags__-fdiagnostics-color=always"] = true, + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cc_cxflags__-fPIC"] = true, + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cxx_cxflags__-fvisibility-inlines-hidden"] = true, + ["linux_arm64-v8a_/usr/bin/g++_10.2.1-6_ld_cxflags__-fPIC"] = true, + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cc_cxflags__-MMD -MF"] = true, + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cxx___-O3"] = true, + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cc___-O3"] = true, + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cxx_cxflags__-fPIC"] = true, + ["linux_arm64-v8a_/usr/bin/gcc_10.2.1-6_cxx_cxflags__-MMD -MF"] = true + }, + ["detect.tools.gcc.has_ldflags"] = { + ["/usr/bin/g++_10.2.1-6"] = { + ["-fini"] = true, + ["--dependency-file"] = true, + ["-R"] = true, + ["--no-dynamic-linker"] = true, + ["--defsym"] = true, + ["--help"] = true, + ["--no-relax"] = true, + ["--require-defined"] = true, + ["--no-gc-sections"] = true, + ["--library-path"] = true, + ["--no-whole-archive"] = true, + ["--print-map"] = true, + ["--print-sysroot"] = true, + ["--map-whole-files"] = true, + ["--print-gc-sections"] = true, + ["--oformat"] = true, + ["--trace-symbol"] = true, + ["--dynamic-list"] = true, + ["--start-group"] = true, + ["--mri-script"] = true, + ["-rpath-link"] = true, + ["--default-script"] = true, + ["--dynamic-linker"] = true, + ["-dT"] = true, + ["-c"] = true, + ["--ignore-unresolved-symbol"] = true, + ["--no-undefined"] = true, + ["--architecture"] = true, + ["-flto"] = true, + ["--filter"] = true, + ["--export-dynamic"] = true, + ["--relax"] = true, + ["--warn-section-align"] = true, + ["--force-exe-suffix"] = true, + ["--emit-relocs"] = true, + ["--warn-unresolved-symbols"] = true, + ["--split-by-file"] = true, + ["--fatal-warnings"] = true, + ["--end-group"] = true, + ["--no-warn-mismatch"] = true, + ["--no-map-whole-files"] = true, + ["-L"] = true, + ["-u"] = true, + ["--unique"] = true, + ["-m"] = true, + ["--force-group-allocation"] = true, + ["--copy-dt-needed-entries"] = true, + ["--demangle"] = true, + ["--whole-archive"] = true, + ["--warn-common"] = true, + ["--just-symbols"] = true, + ["--no-apply-dynamic-relocs"] = true, + ["--no-wchar-size-warning"] = true, + ["-A"] = true, + ["--no-as-needed"] = true, + ["-I"] = true, + ["-e"] = true, + ["--print-map-discarded"] = true, + ["--warn-textrel"] = true, + ["-dp"] = true, + ["-init"] = true, + ["--long-plt"] = true, + ["--relocatable"] = true, + ["-Ttext-segment"] = true, + ["--trace"] = true, + ["--strip-all"] = true, + ["--allow-shlib-undefined"] = true, + ["--spare-dynamic-tags"] = true, + ["--gc-keep-exported"] = true, + ["--target1-rel"] = true, + ["--no-omagic"] = true, + ["--print-memory-usage"] = true, + ["--cmse-implib"] = true, + ["--wrap"] = true, + ["-Bshareable"] = true, + ["--print-output-format"] = true, + ["-f"] = true, + ["--default-symver"] = true, + ["--auxiliary"] = true, + ["-plugin"] = true, + ["--script"] = true, + ["-o"] = true, + ["--discard-none"] = true, + ["-static"] = true, + ["--as-needed"] = true, + ["--pic-veneer"] = true, + ["--format"] = true, + ["--discard-all"] = true, + ["-Bgroup"] = true, + ["--no-define-common"] = true, + ["--default-imported-symver"] = true, + ["--no-copy-dt-needed-entries"] = true, + ["--no-warn-search-mismatch"] = true, + ["--check-sections"] = true, + ["--no-check-sections"] = true, + ["-Ur"] = true, + ["--gpsize"] = true, + ["--enable-non-contiguous-regions"] = true, + ["--undefined"] = true, + ["-Bsymbolic"] = true, + ["-soname"] = true, + ["--library"] = true, + ["-Bsymbolic-functions"] = true, + ["--omagic"] = true, + ["--no-merge-exidx-entries"] = true, + ["--disable-new-dtags"] = true, + ["--strip-discarded"] = true, + ["-g"] = true, + ["--be8"] = true, + ["-assert"] = true, + ["-rpath"] = true, + ["-b"] = true, + ["--retain-symbols-file"] = true, + ["--accept-unknown-input-arch"] = true, + ["--disable-multiple-abs-defs"] = true, + ["-plugin-opt"] = true, + ["--allow-multiple-definition"] = true, + ["--no-strip-discarded"] = true, + ["--warn-alternate-em"] = true, + ["-l"] = true, + ["--dynamic-list-cpp-new"] = true, + ["-G"] = true, + ["--export-dynamic-symbol"] = true, + ["--out-implib"] = true, + ["-EL"] = true, + ["--no-enum-size-warning"] = true, + ["-O"] = true, + ["--version-exports-section"] = true, + ["-V"] = true, + ["-EB"] = true, + ["-nostdlib"] = true, + ["--sort-section"] = true, + ["-T"] = true, + ["-Ttext"] = true, + ["-Tdata"] = true, + ["--discard-locals"] = true, + ["-y"] = true, + ["-qmagic"] = true, + ["--no-print-gc-sections"] = true, + ["--no-accept-unknown-input-arch"] = true, + ["--warn-multiple-gp"] = true, + ["-P"] = true, + ["--verbose"] = true, + ["--no-undefined-version"] = true, + ["-Map"] = true, + ["--output"] = true, + ["--strip-debug"] = true, + ["--orphan-handling"] = true, + ["-F"] = true, + ["-h"] = true, + ["--no-export-dynamic"] = true, + ["--warn-once"] = true, + ["--pic-executable"] = true, + ["--fix-stm32l4xx-629360"] = true, + ["--reduce-memory-overheads"] = true, + ["--enable-non-contiguous-regions-warnings"] = true, + ["--sort-common"] = true, + ["--split-by-reloc"] = true, + ["-Tldata-segment"] = true, + ["--pop-state"] = true, + ["--task-link"] = true, + ["--vfp11-denorm-fix"] = true, + ["--traditional-format"] = true, + ["--dynamic-list-cpp-typeinfo"] = true, + ["--target1-abs"] = true, + ["--use-blx"] = true, + ["--no-allow-shlib-undefined"] = true, + ["--in-implib"] = true, + ["--no-keep-memory"] = true, + ["--export-dynamic-symbol-list"] = true, + ["--nmagic"] = true, + ["--section-start"] = true, + ["--entry"] = true, + ["--fix-v4bx"] = true, + ["--no-demangle"] = true, + ["--cref"] = true, + ["-Y"] = true, + ["--warn-constructors"] = true, + ["-a"] = true, + ["-debug"] = true, + ["--stats"] = true, + ["--version-script"] = true, + ["--fix-v4bx-interworking"] = true, + ["-Qy"] = true, + ["-Trodata-segment"] = true, + ["--enable-new-dtags"] = true, + ["--fix-cortex-a53-835769"] = true, + ["--no-eh-frame-hdr"] = true, + ["--eh-frame-hdr"] = true, + ["--version"] = true, + ["--dynamic-list-data"] = true, + ["-z"] = true, + ["--no-print-map-discarded"] = true, + ["-Tbss"] = true, + ["--no-fatal-warnings"] = true, + ["--gc-sections"] = true, + ["--target-help"] = true, + ["--push-state"] = true, + ["--error-unresolved-symbols"] = true + } + }, + ["find_program_gcc_arch_arm64-v8a_plat_linux_checktoolcc"] = { + gcc = "/usr/bin/gcc" + }, + find_programver = { + ["/usr/bin/gcc"] = "10.2.1-6", + ["/usr/bin/g++"] = "10.2.1-6" + }, + ["find_program_gcc_arch_arm64-v8a_plat_linux_checktoolld"] = { + ["g++"] = "/usr/bin/g++" + }, + find_program = { + ldc2 = false, + zig = false, + gdc = false, + gcc = "/usr/bin/gcc", + ["/usr/bin/gcc"] = "/usr/bin/gcc", + dmd = false, + git = "/usr/bin/git", + ["/usr/bin/g++"] = "/usr/bin/g++" + }, + ["detect.tools.gcc.has_cflags"] = { + ["/usr/bin/gcc_10.2.1-6"] = { + ["-x"] = true, + ["-v"] = true, + ["-print-multi-directory"] = true, + ["-time"] = true, + ["-no-canonical-prefixes"] = true, + ["-dumpspecs"] = true, + ["-dumpversion"] = true, + ["-S"] = true, + ["--help"] = true, + ["-print-libgcc-file-name"] = true, + ["-o"] = true, + ["-print-multiarch"] = true, + ["-c"] = true, + ["--target-help"] = true, + ["-E"] = true, + ["-print-search-dirs"] = true, + ["--version"] = true, + ["-print-multi-os-directory"] = true, + ["-save-temps"] = true, + ["-dumpmachine"] = true, + ["-Xlinker"] = true, + ["-print-sysroot"] = true, + ["-Xassembler"] = true, + ["-pass-exit-codes"] = true, + ["-pipe"] = true, + ["--param"] = true, + ["-pie"] = true, + ["-B"] = true, + ["-Xpreprocessor"] = true, + ["-print-sysroot-headers-suffix"] = true, + ["-shared"] = true, + ["-print-multi-lib"] = true + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/cache/history b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/history new file mode 100644 index 0000000..213355f --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/history @@ -0,0 +1,69 @@ +{ + cmdlines = { + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root", + "xmake --root" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/cache/option b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/option new file mode 100644 index 0000000..3ee3364 --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/option @@ -0,0 +1,162 @@ +{ + common = { + __sourceinfo_cxxincludes = { + ["BlockingQueue.h"] = { + file = "./packages/common.pkg/xmake.lua", + line = 13 + } + }, + showmenu = true, + __sourceinfo_includedirs = { + include = { + file = "./packages/common.pkg/xmake.lua", + line = 16 + } + }, + __sourceinfo_showmenu = { }, + description = "The common package", + __scriptdir = "/home/linaro/practice/gxx-linux/packages/common.pkg", + __sourceinfo_description = { + ["The common package"] = { + file = "./packages/common.pkg/xmake.lua", + line = 10 + } + }, + includedirs = { + "packages/common.pkg/include" + }, + cxxincludes = "BlockingQueue.h" + }, + testfpga = { + configvar = { + TEST_FPGA = "ON" + }, + __sourceinfo_default = { }, + showmenu = true, + category = "regs test", + __sourceinfo_showmenu = { }, + ["configvar.TEST_FPGA"] = "ON", + __sourceinfo_configvar = { + TEST_FPGA = { + file = "./xmake.lua", + line = 34 + }, + ON = { + file = "./xmake.lua", + line = 34 + } + }, + __sourceinfo_category = { + ["regs test"] = { + file = "./xmake.lua", + line = 33 + } + }, + __scriptdir = "/home/linaro/practice/gxx-linux", + default = true + }, + chip = { + values = { + "rk3288", + "rk3399" + }, + showmenu = true, + category = "chip", + __sourceinfo_showmenu = { }, + __scriptdir = "/home/linaro/practice/gxx-linux", + default = "rk3399", + __sourceinfo_category = { + chip = { + file = "./xmake.lua", + line = 15 + } + }, + __sourceinfo_default = { + rk3399 = { + file = "./xmake.lua", + line = 13 + } + }, + __sourceinfo_values = { + rk3399 = { + file = "./xmake.lua", + line = 14 + }, + rk3288 = { + file = "./xmake.lua", + line = 14 + } + } + }, + testdemo = { + default = true, + __scriptdir = "/home/linaro/practice/gxx-linux", + __sourceinfo_category = { + testdemo = { + file = "./xmake.lua", + line = 27 + } + }, + __sourceinfo_default = { }, + showmenu = true, + category = "testdemo", + __sourceinfo_showmenu = { } + }, + isp1 = { + default = true, + __scriptdir = "/home/linaro/practice/gxx-linux", + __sourceinfo_category = { + isp = { + file = "./xmake.lua", + line = 21 + } + }, + __sourceinfo_default = { }, + showmenu = true, + category = "isp", + __sourceinfo_showmenu = { } + }, + device = { + values = { + "g100", + "g200", + "g300", + "g400" + }, + showmenu = true, + category = "device", + __sourceinfo_showmenu = { }, + __scriptdir = "/home/linaro/practice/gxx-linux", + default = "g100", + __sourceinfo_category = { + device = { + file = "./xmake.lua", + line = 8 + } + }, + __sourceinfo_default = { + g100 = { + file = "./xmake.lua", + line = 6 + } + }, + __sourceinfo_values = { + g200 = { + file = "./xmake.lua", + line = 7 + }, + g100 = { + file = "./xmake.lua", + line = 7 + }, + g400 = { + file = "./xmake.lua", + line = 7 + }, + g300 = { + file = "./xmake.lua", + line = 7 + } + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/cache/package b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/package new file mode 100644 index 0000000..6f31cf5 --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/package @@ -0,0 +1 @@ +{ } \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/cache/toolchain b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/toolchain new file mode 100644 index 0000000..9ad722c --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/cache/toolchain @@ -0,0 +1,362 @@ +{ + ["tool_target_gscanner_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_gimgproc_linux_arm64-v8a_ar"] = { + toolname = "ar", + program = "/usr/bin/ar", + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + } + }, + ["tool_target_testregs_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_gusb_linux_arm64-v8a_ar"] = { + toolname = "ar", + program = "/usr/bin/ar", + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + } + }, + ["tool_target_gscanner_linux_arm64-v8a_ar"] = { + toolname = "ar", + program = "/usr/bin/ar", + toolchain_info = { + name = "gcc", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + plat = "linux", + arch = "arm64-v8a" + } + }, + ["tool_target_testcapimage_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_testimgproc_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_applog_linux_arm64-v8a_ar"] = { + toolname = "ar", + program = "/usr/bin/ar", + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + } + }, + ["tool_target_applog_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_gimgproc_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_gservice_linux_arm64-v8a_ld"] = { + toolname = "gxx", + program = "/usr/bin/g++", + toolchain_info = { + name = "gcc", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + plat = "linux", + arch = "arm64-v8a" + } + }, + ["tool_target_testcapimage_linux_arm64-v8a_ld"] = { + toolname = "gxx", + program = "/usr/bin/g++", + toolchain_info = { + name = "gcc", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + plat = "linux", + arch = "arm64-v8a" + } + }, + ["tool_target_gusb_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_regs_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_regs_linux_arm64-v8a_ar"] = { + toolname = "ar", + program = "/usr/bin/ar", + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + } + }, + ["tool_target_fpgaupdate_linux_arm64-v8a_ar"] = { + toolname = "ar", + program = "/usr/bin/ar", + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + } + }, + ["tool_target_testscanner_linux_arm64-v8a_ld"] = { + toolname = "gxx", + program = "/usr/bin/g++", + toolchain_info = { + name = "gcc", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + plat = "linux", + arch = "arm64-v8a" + } + }, + ["tool_target_testmotorboard_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_fpgaupdate_linux_arm64-v8a_cc"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_gservice_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_testimgproc_linux_arm64-v8a_ld"] = { + toolname = "gxx", + program = "/usr/bin/g++", + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + } + }, + ["tool_target_capimage_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_testregs_linux_arm64-v8a_ld"] = { + toolname = "gxx", + program = "/usr/bin/g++", + toolchain_info = { + name = "gcc", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + plat = "linux", + arch = "arm64-v8a" + } + }, + ["tool_target_testusb_linux_arm64-v8a_ld"] = { + toolname = "gxx", + program = "/usr/bin/g++", + toolchain_info = { + name = "gcc", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + plat = "linux", + arch = "arm64-v8a" + } + }, + ["tool_target_motorboard_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_platform_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_testmotorboard_linux_arm64-v8a_ld"] = { + toolname = "gxx", + program = "/usr/bin/g++", + toolchain_info = { + name = "gcc", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + plat = "linux", + arch = "arm64-v8a" + } + }, + ["tool_target_deviceio_linux_arm64-v8a_ar"] = { + toolname = "ar", + program = "/usr/bin/ar", + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + } + }, + ["tool_target_scanservice_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_testusb_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_motorboard_linux_arm64-v8a_ar"] = { + toolname = "ar", + program = "/usr/bin/ar", + toolchain_info = { + name = "gcc", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + plat = "linux", + arch = "arm64-v8a" + } + }, + ["tool_target_scanservice_linux_arm64-v8a_ld"] = { + toolname = "gxx", + program = "/usr/bin/g++", + toolchain_info = { + name = "gcc", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + plat = "linux", + arch = "arm64-v8a" + } + }, + ["tool_target_capimage_linux_arm64-v8a_ar"] = { + toolname = "ar", + program = "/usr/bin/ar", + toolchain_info = { + name = "gcc", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + plat = "linux", + arch = "arm64-v8a" + } + }, + ["tool_target_deviceio_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_testscanner_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + }, + ["tool_target_fpgaupdate_linux_arm64-v8a_cxx"] = { + toolchain_info = { + plat = "linux", + cachekey = "gcc_arch_arm64-v8a_plat_linux", + name = "gcc", + arch = "arm64-v8a" + }, + program = "/usr/bin/gcc", + toolname = "gcc" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/project.lock b/device/gxx-linux/.xmake/linux/arm64-v8a/project.lock new file mode 100644 index 0000000..e69de29 diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221111/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221111/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221111/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221114/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221114/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221114/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221115/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221115/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221115/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221118/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221118/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221118/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221119/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221119/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221119/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221121/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221121/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/221121/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230211/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230211/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230211/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230213/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230213/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230213/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230216/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230216/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230216/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230217/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230217/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230217/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230220/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230220/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230220/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230224/_420D0262A6FE46DEA174CAD1240769C5 b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230224/_420D0262A6FE46DEA174CAD1240769C5 new file mode 100644 index 0000000..fbe358e --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/tmp/230224/_420D0262A6FE46DEA174CAD1240769C5 @@ -0,0 +1,5 @@ +{ + files = { + "config.h.in" + } +} \ No newline at end of file diff --git a/device/gxx-linux/.xmake/linux/arm64-v8a/xmake.conf b/device/gxx-linux/.xmake/linux/arm64-v8a/xmake.conf new file mode 100644 index 0000000..87a6470 --- /dev/null +++ b/device/gxx-linux/.xmake/linux/arm64-v8a/xmake.conf @@ -0,0 +1,32 @@ +{ + ["__toolchains_linux_arm64-v8a"] = { + "envs", + "gcc", + "yasm", + "nasm", + "fasm", + "cuda", + "go", + "rust", + "swift", + "gfortran", + "fpc", + "nim" + }, + arch = "arm64-v8a", + buildir = "build", + ccache = true, + chip = "rk3399", + common = true, + device = "g100", + host = "linux", + isp1 = true, + kind = "static", + loopdebug = false, + mode = "release", + ndk_stdcxx = true, + plat = "linux", + testdemo = true, + testfpga = true, + unfixed = false +} \ No newline at end of file diff --git a/device/gxx-linux/applog/applog.cpp b/device/gxx-linux/applog/applog.cpp new file mode 100644 index 0000000..08fa38e --- /dev/null +++ b/device/gxx-linux/applog/applog.cpp @@ -0,0 +1,121 @@ +#include "applog.h" +#include +#include +#include +#include +#include "stringex.hpp" +#include +#include + +inline std::string string_toupper(const std::string& str) +{ + std::string s = str; + transform(s.begin(), s.end(), s.begin(), toupper); + return s; +} + +void log_init(const std::string& name, bool benv) +{ + if(spdlog::get(name)) + return; + + const auto max_size = 1048576 * 5; + const auto max_files = 3; + + auto console_sink = std::make_shared(); + char *pathvar = getenv(("APP_" + string_toupper(name) + "_CONSOLE_LOG").c_str()); + console_sink->set_level(pathvar ? std::min(spdlog::level::from_str(pathvar), spdlog::level::off) : spdlog::level::off); + auto file_sink = std::make_shared("app.log", max_size, max_files); + pathvar = getenv(("APP_" + string_toupper(name) + "_FILE_LOG").c_str()); + file_sink->set_level(pathvar ? std::min(spdlog::level::from_str(pathvar), spdlog::level::off) : spdlog::level::off); + auto logger = std::shared_ptr(new spdlog::logger(name, {console_sink, file_sink})); + pathvar = getenv(("APP_" + string_toupper(name) + "_LOG").c_str()); + logger->set_level(pathvar ? std::min(spdlog::level::from_str(pathvar), spdlog::level::off) : spdlog::level::off); + spdlog::register_logger(logger); +} + +void log_info(const std::string& name, const std::string& msg) +{ + if(auto log = spdlog::get(name)) + { + log->info(msg); + log->flush(); + } +} + +void log_warn(const std::string& name, const std::string& msg) +{ + if (auto log = spdlog::get(name)) + { + log->warn(msg); + log->flush(); + } +} + +void log_trace(const std::string& name, const std::string& msg) +{ + if (auto log = spdlog::get(name)) + { + log->trace(msg); + log->flush(); + } +} + +void log_debug(const std::string& name, const std::string& msg) +{ + if (auto log = spdlog::get(name)) + { + log->debug(msg); + log->flush(); + } +} + +void log_error(const std::string& name, const std::string& msg) +{ + if (auto log = spdlog::get(name)) + { + log->error(msg); + log->flush(); + } +} + + +void log_critical(const std::string name, const std::string& msg) +{ + if (auto log = spdlog::get(name)) + { + log->critical(msg); + log->flush(); + } +} + +bool log_set_level(const std::string& name, int type ,int level) +{ + if (auto log = spdlog::get(name)) + { + spdlog::level::level_enum actLevel = (spdlog::level::level_enum)std::min(std::max((int)spdlog::level::trace, level), (int)spdlog::level::off); + if(type < log->sinks().size()) + log->sinks()[type]->set_level(actLevel); + else + log->set_level(actLevel); + + return true; + } + + return false; +} + +bool log_get_level(const std::string& name, int type ,int& level) +{ + if (auto log = spdlog::get(name)) + { + if(type < log->sinks().size()) + level = log->sinks()[type]->level(); + else + level = log->level(); + + return true; + } + + return false; +} \ No newline at end of file diff --git a/device/gxx-linux/applog/applog.h b/device/gxx-linux/applog/applog.h new file mode 100644 index 0000000..56c4526 --- /dev/null +++ b/device/gxx-linux/applog/applog.h @@ -0,0 +1,20 @@ +#pragma once +#include +#define LOG_INIT() log_init(loggername, true) +#define LOG_INITX() log_init(loggername, false) +#define LOG_INFO(X) log_info(loggername, X) +#define LOG_WARN(X) log_warn(loggername, X) +#define LOG_TRACE(X) log_trace(loggername, X) +#define LOG_DEBUG(X) log_debug(loggername, X) +#define LOG_ERROR(X) log_error(loggername, X) +#define LOG_CRITICAL(X) log_critical(loggername, X) + +void log_init(const std::string& name, bool benv); +void log_info(const std::string& name, const std::string& msg); +void log_warn(const std::string& name, const std::string& msg); +void log_trace(const std::string& name, const std::string& msg); +void log_debug(const std::string& name, const std::string& msg); +void log_error(const std::string& name, const std::string& msg); +void log_critical(const std::string& name, const std::string& msg); +bool log_set_level(const std::string& name, int type ,int level); +bool log_get_level(const std::string& name, int type ,int& level); diff --git a/device/gxx-linux/applog/xmake.lua b/device/gxx-linux/applog/xmake.lua new file mode 100644 index 0000000..f859dba --- /dev/null +++ b/device/gxx-linux/applog/xmake.lua @@ -0,0 +1,7 @@ +add_rules("mode.debug", "mode.release") + +target("applog") + set_kind("static") + add_files("*.cpp") + add_packages("common") + add_includedirs(".", { public = true}) \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/02/029ead79202ab2bbbf63612738cc9c5b b/device/gxx-linux/build/.build_cache/02/029ead79202ab2bbbf63612738cc9c5b new file mode 100644 index 0000000..65199fc Binary files /dev/null and b/device/gxx-linux/build/.build_cache/02/029ead79202ab2bbbf63612738cc9c5b differ diff --git a/device/gxx-linux/build/.build_cache/02/029ead79202ab2bbbf63612738cc9c5b.txt b/device/gxx-linux/build/.build_cache/02/029ead79202ab2bbbf63612738cc9c5b.txt new file mode 100644 index 0000000..809a37f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/02/029ead79202ab2bbbf63612738cc9c5b.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:361:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 361 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:408:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 408 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:409:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 409 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/02/02a1823dc938158636e09081585c9e05 b/device/gxx-linux/build/.build_cache/02/02a1823dc938158636e09081585c9e05 new file mode 100644 index 0000000..2ce99c8 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/02/02a1823dc938158636e09081585c9e05 differ diff --git a/device/gxx-linux/build/.build_cache/02/02a1823dc938158636e09081585c9e05.txt b/device/gxx-linux/build/.build_cache/02/02a1823dc938158636e09081585c9e05.txt new file mode 100644 index 0000000..14aae14 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/02/02a1823dc938158636e09081585c9e05.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:338:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 338 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:358:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 358 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:406:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 406 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/03/03630e968bd6e50af85b6f6f713ee428 b/device/gxx-linux/build/.build_cache/03/03630e968bd6e50af85b6f6f713ee428 new file mode 100644 index 0000000..fce94d4 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/03/03630e968bd6e50af85b6f6f713ee428 differ diff --git a/device/gxx-linux/build/.build_cache/04/048c5918df955d9abcc86cdc861783f8 b/device/gxx-linux/build/.build_cache/04/048c5918df955d9abcc86cdc861783f8 new file mode 100644 index 0000000..b140a30 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/04/048c5918df955d9abcc86cdc861783f8 differ diff --git a/device/gxx-linux/build/.build_cache/04/04f5730c034c0d67a0fb752fbc78db92 b/device/gxx-linux/build/.build_cache/04/04f5730c034c0d67a0fb752fbc78db92 new file mode 100644 index 0000000..1e027cc Binary files /dev/null and b/device/gxx-linux/build/.build_cache/04/04f5730c034c0d67a0fb752fbc78db92 differ diff --git a/device/gxx-linux/build/.build_cache/04/04f5730c034c0d67a0fb752fbc78db92.txt b/device/gxx-linux/build/.build_cache/04/04f5730c034c0d67a0fb752fbc78db92.txt new file mode 100644 index 0000000..bc3d21b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/04/04f5730c034c0d67a0fb752fbc78db92.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:335:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 335 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:355:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 355 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:402:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 402 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:403:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 403 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/05/057d2459d7bf58a414bb8833b5eba5bf b/device/gxx-linux/build/.build_cache/05/057d2459d7bf58a414bb8833b5eba5bf new file mode 100644 index 0000000..7b4accd Binary files /dev/null and b/device/gxx-linux/build/.build_cache/05/057d2459d7bf58a414bb8833b5eba5bf differ diff --git a/device/gxx-linux/build/.build_cache/06/065e9d98687290287ff3e14106aaeeca b/device/gxx-linux/build/.build_cache/06/065e9d98687290287ff3e14106aaeeca new file mode 100644 index 0000000..a2b4f24 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/06/065e9d98687290287ff3e14106aaeeca differ diff --git a/device/gxx-linux/build/.build_cache/06/065e9d98687290287ff3e14106aaeeca.txt b/device/gxx-linux/build/.build_cache/06/065e9d98687290287ff3e14106aaeeca.txt new file mode 100644 index 0000000..2acf695 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/06/065e9d98687290287ff3e14106aaeeca.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:336:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 336 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:356:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 356 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:402:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 402 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:403:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 403 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/06/06b65ed90c5728ebd6e3f5e583efc1ba b/device/gxx-linux/build/.build_cache/06/06b65ed90c5728ebd6e3f5e583efc1ba new file mode 100644 index 0000000..bbbb518 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/06/06b65ed90c5728ebd6e3f5e583efc1ba differ diff --git a/device/gxx-linux/build/.build_cache/06/06fc6dc3489fa496bd1b96861343ecfe b/device/gxx-linux/build/.build_cache/06/06fc6dc3489fa496bd1b96861343ecfe new file mode 100644 index 0000000..9f6cda3 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/06/06fc6dc3489fa496bd1b96861343ecfe differ diff --git a/device/gxx-linux/build/.build_cache/06/06fc6dc3489fa496bd1b96861343ecfe.txt b/device/gxx-linux/build/.build_cache/06/06fc6dc3489fa496bd1b96861343ecfe.txt new file mode 100644 index 0000000..14aae14 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/06/06fc6dc3489fa496bd1b96861343ecfe.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:338:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 338 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:358:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 358 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:406:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 406 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/07/07a636f477156241bae2ce8eb8b1f11e b/device/gxx-linux/build/.build_cache/07/07a636f477156241bae2ce8eb8b1f11e new file mode 100644 index 0000000..f56b680 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/07/07a636f477156241bae2ce8eb8b1f11e differ diff --git a/device/gxx-linux/build/.build_cache/07/07a636f477156241bae2ce8eb8b1f11e.txt b/device/gxx-linux/build/.build_cache/07/07a636f477156241bae2ce8eb8b1f11e.txt new file mode 100644 index 0000000..a62c456 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/07/07a636f477156241bae2ce8eb8b1f11e.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:338:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 338 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:358:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 358 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/08/080b776b7e4160e7948fb828e9615d1d b/device/gxx-linux/build/.build_cache/08/080b776b7e4160e7948fb828e9615d1d new file mode 100644 index 0000000..eda30e9 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/08/080b776b7e4160e7948fb828e9615d1d differ diff --git a/device/gxx-linux/build/.build_cache/08/080b776b7e4160e7948fb828e9615d1d.txt b/device/gxx-linux/build/.build_cache/08/080b776b7e4160e7948fb828e9615d1d.txt new file mode 100644 index 0000000..0e6de92 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/08/080b776b7e4160e7948fb828e9615d1d.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestcapimage/main.cpp:5\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : u32\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestcapimage/main.cpp:5\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/0a/0aad79fad7ce19ff04a6aaa5a77ffcb5 b/device/gxx-linux/build/.build_cache/0a/0aad79fad7ce19ff04a6aaa5a77ffcb5 new file mode 100644 index 0000000..a0161da Binary files /dev/null and b/device/gxx-linux/build/.build_cache/0a/0aad79fad7ce19ff04a6aaa5a77ffcb5 differ diff --git a/device/gxx-linux/build/.build_cache/0a/0aad79fad7ce19ff04a6aaa5a77ffcb5.txt b/device/gxx-linux/build/.build_cache/0a/0aad79fad7ce19ff04a6aaa5a77ffcb5.txt new file mode 100644 index 0000000..1f5d164 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/0a/0aad79fad7ce19ff04a6aaa5a77ffcb5.txt @@ -0,0 +1,21 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/iimagehandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imagesavehandler.h:4\27[m\27[K,\ + from \27[01m\27[Kscanner/imagesavehandler.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/iimagehandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imagesavehandler.h:4\27[m\27[K,\ + from \27[01m\27[Kscanner/imagesavehandler.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/0b/0b8511000ad2971521430e4304c098c0 b/device/gxx-linux/build/.build_cache/0b/0b8511000ad2971521430e4304c098c0 new file mode 100644 index 0000000..b035303 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/0b/0b8511000ad2971521430e4304c098c0 differ diff --git a/device/gxx-linux/build/.build_cache/0c/0c71198f87ba939e72d0b91a895ff830 b/device/gxx-linux/build/.build_cache/0c/0c71198f87ba939e72d0b91a895ff830 new file mode 100644 index 0000000..1876668 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/0c/0c71198f87ba939e72d0b91a895ff830 differ diff --git a/device/gxx-linux/build/.build_cache/0c/0c71198f87ba939e72d0b91a895ff830.txt b/device/gxx-linux/build/.build_cache/0c/0c71198f87ba939e72d0b91a895ff830.txt new file mode 100644 index 0000000..84079e8 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/0c/0c71198f87ba939e72d0b91a895ff830.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:337:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 337 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:357:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 357 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/0c/0c931c1f0c1dfa332858c76d380cdfce b/device/gxx-linux/build/.build_cache/0c/0c931c1f0c1dfa332858c76d380cdfce new file mode 100644 index 0000000..1da743e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/0c/0c931c1f0c1dfa332858c76d380cdfce differ diff --git a/device/gxx-linux/build/.build_cache/0c/0ca9aaaa1c0e43f7249b61eb93777a29 b/device/gxx-linux/build/.build_cache/0c/0ca9aaaa1c0e43f7249b61eb93777a29 new file mode 100644 index 0000000..274cf32 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/0c/0ca9aaaa1c0e43f7249b61eb93777a29 differ diff --git a/device/gxx-linux/build/.build_cache/0c/0cb66079efbc4e057bec5f54f5909c2d b/device/gxx-linux/build/.build_cache/0c/0cb66079efbc4e057bec5f54f5909c2d new file mode 100644 index 0000000..db97b2d Binary files /dev/null and b/device/gxx-linux/build/.build_cache/0c/0cb66079efbc4e057bec5f54f5909c2d differ diff --git a/device/gxx-linux/build/.build_cache/0c/0cb66079efbc4e057bec5f54f5909c2d.txt b/device/gxx-linux/build/.build_cache/0c/0cb66079efbc4e057bec5f54f5909c2d.txt new file mode 100644 index 0000000..0863bdb --- /dev/null +++ b/device/gxx-linux/build/.build_cache/0c/0cb66079efbc4e057bec5f54f5909c2d.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:324:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 324 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:340:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 340 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:384:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 384 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/0f/0f7617043041858d8cbc0ee6d84cf99d b/device/gxx-linux/build/.build_cache/0f/0f7617043041858d8cbc0ee6d84cf99d new file mode 100644 index 0000000..009a4a1 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/0f/0f7617043041858d8cbc0ee6d84cf99d differ diff --git a/device/gxx-linux/build/.build_cache/0f/0fddf291a9793a7b4ecba4cb8701f459 b/device/gxx-linux/build/.build_cache/0f/0fddf291a9793a7b4ecba4cb8701f459 new file mode 100644 index 0000000..9fd08b1 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/0f/0fddf291a9793a7b4ecba4cb8701f459 differ diff --git a/device/gxx-linux/build/.build_cache/0f/0fddf291a9793a7b4ecba4cb8701f459.txt b/device/gxx-linux/build/.build_cache/0f/0fddf291a9793a7b4ecba4cb8701f459.txt new file mode 100644 index 0000000..336123a --- /dev/null +++ b/device/gxx-linux/build/.build_cache/0f/0fddf291a9793a7b4ecba4cb8701f459.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kimgproc/CSizedetect.h:4\27[m\27[K,\ + from \27[01m\27[Kimgproc/CSizedetect.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kimgproc/CSizedetect.h:4\27[m\27[K,\ + from \27[01m\27[Kimgproc/CSizedetect.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/11/11758ae9abbfa7002f9fbb65069f6688 b/device/gxx-linux/build/.build_cache/11/11758ae9abbfa7002f9fbb65069f6688 new file mode 100644 index 0000000..d745f52 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/11/11758ae9abbfa7002f9fbb65069f6688 differ diff --git a/device/gxx-linux/build/.build_cache/11/119a5a50b03cbfbd0746d5d72679ce68 b/device/gxx-linux/build/.build_cache/11/119a5a50b03cbfbd0746d5d72679ce68 new file mode 100644 index 0000000..21cc7f0 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/11/119a5a50b03cbfbd0746d5d72679ce68 differ diff --git a/device/gxx-linux/build/.build_cache/11/119a5a50b03cbfbd0746d5d72679ce68.txt b/device/gxx-linux/build/.build_cache/11/119a5a50b03cbfbd0746d5d72679ce68.txt new file mode 100644 index 0000000..6774bb7 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/11/119a5a50b03cbfbd0746d5d72679ce68.txt @@ -0,0 +1,21 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/iimagehandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imageusbhandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imageusbhandler.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/iimagehandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imageusbhandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imageusbhandler.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/11/11fb401b39d0c13c2a9a1d5546edca34 b/device/gxx-linux/build/.build_cache/11/11fb401b39d0c13c2a9a1d5546edca34 new file mode 100644 index 0000000..682159c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/11/11fb401b39d0c13c2a9a1d5546edca34 differ diff --git a/device/gxx-linux/build/.build_cache/12/122dd9c06b7cae029577d08c1a6ca207 b/device/gxx-linux/build/.build_cache/12/122dd9c06b7cae029577d08c1a6ca207 new file mode 100644 index 0000000..d11b67f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/12/122dd9c06b7cae029577d08c1a6ca207 differ diff --git a/device/gxx-linux/build/.build_cache/13/13135c3238a32421f76e1067fce4230f b/device/gxx-linux/build/.build_cache/13/13135c3238a32421f76e1067fce4230f new file mode 100644 index 0000000..f974d9c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/13/13135c3238a32421f76e1067fce4230f differ diff --git a/device/gxx-linux/build/.build_cache/13/1316b7c6c28549552c31945fd7928e16 b/device/gxx-linux/build/.build_cache/13/1316b7c6c28549552c31945fd7928e16 new file mode 100644 index 0000000..7119010 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/13/1316b7c6c28549552c31945fd7928e16 differ diff --git a/device/gxx-linux/build/.build_cache/13/1316b7c6c28549552c31945fd7928e16.txt b/device/gxx-linux/build/.build_cache/13/1316b7c6c28549552c31945fd7928e16.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/13/1316b7c6c28549552c31945fd7928e16.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/15/15ec7fa2d435dab038d6a7de9649360d b/device/gxx-linux/build/.build_cache/15/15ec7fa2d435dab038d6a7de9649360d new file mode 100644 index 0000000..77600fe Binary files /dev/null and b/device/gxx-linux/build/.build_cache/15/15ec7fa2d435dab038d6a7de9649360d differ diff --git a/device/gxx-linux/build/.build_cache/15/15ec7fa2d435dab038d6a7de9649360d.txt b/device/gxx-linux/build/.build_cache/15/15ec7fa2d435dab038d6a7de9649360d.txt new file mode 100644 index 0000000..c3d1bee --- /dev/null +++ b/device/gxx-linux/build/.build_cache/15/15ec7fa2d435dab038d6a7de9649360d.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:323:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 323 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:331:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 331 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:656:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 656 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/18/18438b90333cb743e58ec9ea5c8a93ea b/device/gxx-linux/build/.build_cache/18/18438b90333cb743e58ec9ea5c8a93ea new file mode 100644 index 0000000..65b422c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/18/18438b90333cb743e58ec9ea5c8a93ea differ diff --git a/device/gxx-linux/build/.build_cache/18/18578cebff897f0c528baf47418b1fb3 b/device/gxx-linux/build/.build_cache/18/18578cebff897f0c528baf47418b1fb3 new file mode 100644 index 0000000..12ee88e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/18/18578cebff897f0c528baf47418b1fb3 differ diff --git a/device/gxx-linux/build/.build_cache/18/18578cebff897f0c528baf47418b1fb3.txt b/device/gxx-linux/build/.build_cache/18/18578cebff897f0c528baf47418b1fb3.txt new file mode 100644 index 0000000..6173532 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/18/18578cebff897f0c528baf47418b1fb3.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:327:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 327 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:343:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 343 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:387:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 387 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:388:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 388 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/19/198c550f517c537c44a165f0a709f1de b/device/gxx-linux/build/.build_cache/19/198c550f517c537c44a165f0a709f1de new file mode 100644 index 0000000..fb9772f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/19/198c550f517c537c44a165f0a709f1de differ diff --git a/device/gxx-linux/build/.build_cache/1a/1ac871e886a06d3fe1c0f696805d5803 b/device/gxx-linux/build/.build_cache/1a/1ac871e886a06d3fe1c0f696805d5803 new file mode 100644 index 0000000..c4f9efc Binary files /dev/null and b/device/gxx-linux/build/.build_cache/1a/1ac871e886a06d3fe1c0f696805d5803 differ diff --git a/device/gxx-linux/build/.build_cache/1a/1ac871e886a06d3fe1c0f696805d5803.txt b/device/gxx-linux/build/.build_cache/1a/1ac871e886a06d3fe1c0f696805d5803.txt new file mode 100644 index 0000000..a077284 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/1a/1ac871e886a06d3fe1c0f696805d5803.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:336:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 336 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:352:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 352 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:398:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 398 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:399:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 399 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/1a/1ad25913d3caf6001c20cec22968eab2 b/device/gxx-linux/build/.build_cache/1a/1ad25913d3caf6001c20cec22968eab2 new file mode 100644 index 0000000..b8a2b96 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/1a/1ad25913d3caf6001c20cec22968eab2 differ diff --git a/device/gxx-linux/build/.build_cache/1a/1ad25913d3caf6001c20cec22968eab2.txt b/device/gxx-linux/build/.build_cache/1a/1ad25913d3caf6001c20cec22968eab2.txt new file mode 100644 index 0000000..0863bdb --- /dev/null +++ b/device/gxx-linux/build/.build_cache/1a/1ad25913d3caf6001c20cec22968eab2.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:324:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 324 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:340:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 340 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:384:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 384 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/1b/1bfacfc972fc19a505e187145c4b9aa0 b/device/gxx-linux/build/.build_cache/1b/1bfacfc972fc19a505e187145c4b9aa0 new file mode 100644 index 0000000..5124ec9 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/1b/1bfacfc972fc19a505e187145c4b9aa0 differ diff --git a/device/gxx-linux/build/.build_cache/1c/1c372c4b9e724bd8b7c6f91267eeeece b/device/gxx-linux/build/.build_cache/1c/1c372c4b9e724bd8b7c6f91267eeeece new file mode 100644 index 0000000..d696491 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/1c/1c372c4b9e724bd8b7c6f91267eeeece differ diff --git a/device/gxx-linux/build/.build_cache/1c/1cd5562672c5bd68bddf315cf723a99a b/device/gxx-linux/build/.build_cache/1c/1cd5562672c5bd68bddf315cf723a99a new file mode 100644 index 0000000..8da8dac Binary files /dev/null and b/device/gxx-linux/build/.build_cache/1c/1cd5562672c5bd68bddf315cf723a99a differ diff --git a/device/gxx-linux/build/.build_cache/1d/1d412b1660cdbd75b597818e3bbc81ac b/device/gxx-linux/build/.build_cache/1d/1d412b1660cdbd75b597818e3bbc81ac new file mode 100644 index 0000000..37ce5dc Binary files /dev/null and b/device/gxx-linux/build/.build_cache/1d/1d412b1660cdbd75b597818e3bbc81ac differ diff --git a/device/gxx-linux/build/.build_cache/1d/1db3ef1e2a81d8dc8c4408b51ec64671 b/device/gxx-linux/build/.build_cache/1d/1db3ef1e2a81d8dc8c4408b51ec64671 new file mode 100644 index 0000000..f476589 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/1d/1db3ef1e2a81d8dc8c4408b51ec64671 differ diff --git a/device/gxx-linux/build/.build_cache/1d/1db3ef1e2a81d8dc8c4408b51ec64671.txt b/device/gxx-linux/build/.build_cache/1d/1db3ef1e2a81d8dc8c4408b51ec64671.txt new file mode 100644 index 0000000..4aa7a44 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/1d/1db3ef1e2a81d8dc8c4408b51ec64671.txt @@ -0,0 +1,45 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:85:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcode\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 85 | HGIntInfo errType = {.From = MtBoard, .Code = \27[01;35m\27[Kcode\27[m\27[K};\ + | \27[01;35m\27[K^~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:158:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcap_call_code\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = \27[01;35m\27[Kcap_call_code\27[m\27[K, .Img_Index = s_info.length()};\ + | \27[01;35m\27[K^~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:158:91:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Ks_info.std::__cxx11::basic_string::length()\27[m\27[K’ from ‘\27[01m\27[Kstd::__cxx11::basic_string::size_type\27[m\27[K’ {aka ‘\27[01m\27[Klong unsigned int\27[m\27[K’} to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = cap_call_code, .Img_Index = \27[01;35m\27[Ks_info.length()\27[m\27[K};\ + | \27[01;35m\27[K~~~~~~~~~~~~~^~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvoid Scanner::try_scan(std::string)\27[m\27[K’:\ +\27[01m\27[Kscanner/scanner.cpp:211:43:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kint AES_set_decrypt_key(const unsigned char*, int, AES_KEY*)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 211 | if(AES_set_decrypt_key(key,128,&aes_key\27[01;35m\27[K)\27[m\27[K< 0)\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:54:5:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 54 | int \27[01;36m\27[KAES_set_decrypt_key\27[m\27[K(const unsigned char *userKey, const int bits,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:222:53:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kvoid AES_ecb_encrypt(const unsigned char*, unsigned char*, const AES_KEY*, int)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 222 | AES_ecb_encrypt(cipher,decode,&aes_key,AES_DECRYP\27[01;35m\27[KT\27[m\27[K);\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:63:6:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 63 | void \27[01;36m\27[KAES_ecb_encrypt\27[m\27[K(const unsigned char *in, unsigned char *out,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/1e/1e72999c46c515bdde5c926a7ac00ea9 b/device/gxx-linux/build/.build_cache/1e/1e72999c46c515bdde5c926a7ac00ea9 new file mode 100644 index 0000000..85ed428 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/1e/1e72999c46c515bdde5c926a7ac00ea9 differ diff --git a/device/gxx-linux/build/.build_cache/1f/1ff201f949020afe2099e2f4ff622c23 b/device/gxx-linux/build/.build_cache/1f/1ff201f949020afe2099e2f4ff622c23 new file mode 100644 index 0000000..4228f37 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/1f/1ff201f949020afe2099e2f4ff622c23 differ diff --git a/device/gxx-linux/build/.build_cache/20/20377e29e8b339b48c1c6d4065a1822b b/device/gxx-linux/build/.build_cache/20/20377e29e8b339b48c1c6d4065a1822b new file mode 100644 index 0000000..7f86950 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/20/20377e29e8b339b48c1c6d4065a1822b differ diff --git a/device/gxx-linux/build/.build_cache/26/265b6fa4404c7d3f4bfc9d533e567e82 b/device/gxx-linux/build/.build_cache/26/265b6fa4404c7d3f4bfc9d533e567e82 new file mode 100644 index 0000000..b8a2b96 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/26/265b6fa4404c7d3f4bfc9d533e567e82 differ diff --git a/device/gxx-linux/build/.build_cache/26/265b6fa4404c7d3f4bfc9d533e567e82.txt b/device/gxx-linux/build/.build_cache/26/265b6fa4404c7d3f4bfc9d533e567e82.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/26/265b6fa4404c7d3f4bfc9d533e567e82.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/27/2760c363e6d562dab4ab95c9c6c92e3d b/device/gxx-linux/build/.build_cache/27/2760c363e6d562dab4ab95c9c6c92e3d new file mode 100644 index 0000000..532d3c4 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/27/2760c363e6d562dab4ab95c9c6c92e3d differ diff --git a/device/gxx-linux/build/.build_cache/27/2760c363e6d562dab4ab95c9c6c92e3d.txt b/device/gxx-linux/build/.build_cache/27/2760c363e6d562dab4ab95c9c6c92e3d.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/27/2760c363e6d562dab4ab95c9c6c92e3d.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/27/27e58f49b32bea15fc0740f49ffd3a71 b/device/gxx-linux/build/.build_cache/27/27e58f49b32bea15fc0740f49ffd3a71 new file mode 100644 index 0000000..d4e919f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/27/27e58f49b32bea15fc0740f49ffd3a71 differ diff --git a/device/gxx-linux/build/.build_cache/27/27e58f49b32bea15fc0740f49ffd3a71.txt b/device/gxx-linux/build/.build_cache/27/27e58f49b32bea15fc0740f49ffd3a71.txt new file mode 100644 index 0000000..14aae14 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/27/27e58f49b32bea15fc0740f49ffd3a71.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:338:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 338 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:358:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 358 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:406:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 406 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/28/28950270fef44ec9e7f1298b04f99432 b/device/gxx-linux/build/.build_cache/28/28950270fef44ec9e7f1298b04f99432 new file mode 100644 index 0000000..a0161da Binary files /dev/null and b/device/gxx-linux/build/.build_cache/28/28950270fef44ec9e7f1298b04f99432 differ diff --git a/device/gxx-linux/build/.build_cache/28/28950270fef44ec9e7f1298b04f99432.txt b/device/gxx-linux/build/.build_cache/28/28950270fef44ec9e7f1298b04f99432.txt new file mode 100644 index 0000000..2e5fc99 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/28/28950270fef44ec9e7f1298b04f99432.txt @@ -0,0 +1,21 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/iimagehandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imagesavehandler.h:4\27[m\27[K,\ + from \27[01m\27[Kscanner/imagesavehandler.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/iimagehandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imagesavehandler.h:4\27[m\27[K,\ + from \27[01m\27[Kscanner/imagesavehandler.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/28/28a0d1e574898f1156dffd7994a4689a b/device/gxx-linux/build/.build_cache/28/28a0d1e574898f1156dffd7994a4689a new file mode 100644 index 0000000..ef677d6 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/28/28a0d1e574898f1156dffd7994a4689a differ diff --git a/device/gxx-linux/build/.build_cache/2a/2a98fd5bb4ce7fdb8798e4f44d1e6680 b/device/gxx-linux/build/.build_cache/2a/2a98fd5bb4ce7fdb8798e4f44d1e6680 new file mode 100644 index 0000000..834831c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/2a/2a98fd5bb4ce7fdb8798e4f44d1e6680 differ diff --git a/device/gxx-linux/build/.build_cache/2a/2a98fd5bb4ce7fdb8798e4f44d1e6680.txt b/device/gxx-linux/build/.build_cache/2a/2a98fd5bb4ce7fdb8798e4f44d1e6680.txt new file mode 100644 index 0000000..fb23a7a --- /dev/null +++ b/device/gxx-linux/build/.build_cache/2a/2a98fd5bb4ce7fdb8798e4f44d1e6680.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/2e/2e0b6f923cd53d88ff1f9138c53d0ff8 b/device/gxx-linux/build/.build_cache/2e/2e0b6f923cd53d88ff1f9138c53d0ff8 new file mode 100644 index 0000000..d00f0c7 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/2e/2e0b6f923cd53d88ff1f9138c53d0ff8 differ diff --git a/device/gxx-linux/build/.build_cache/2e/2e0b6f923cd53d88ff1f9138c53d0ff8.txt b/device/gxx-linux/build/.build_cache/2e/2e0b6f923cd53d88ff1f9138c53d0ff8.txt new file mode 100644 index 0000000..d990063 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/2e/2e0b6f923cd53d88ff1f9138c53d0ff8.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Kscanservice/main.cpp:16\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Kscanservice/main.cpp:16\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/2e/2e9ff3b45cdd5f3bb7396a0bf46e6006 b/device/gxx-linux/build/.build_cache/2e/2e9ff3b45cdd5f3bb7396a0bf46e6006 new file mode 100644 index 0000000..98b4304 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/2e/2e9ff3b45cdd5f3bb7396a0bf46e6006 differ diff --git a/device/gxx-linux/build/.build_cache/2e/2e9ff3b45cdd5f3bb7396a0bf46e6006.txt b/device/gxx-linux/build/.build_cache/2e/2e9ff3b45cdd5f3bb7396a0bf46e6006.txt new file mode 100644 index 0000000..3fb5847 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/2e/2e9ff3b45cdd5f3bb7396a0bf46e6006.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:344:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 344 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:364:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 364 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:411:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 411 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:412:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 412 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/2e/2eb90885e4d5786df31dc262581cb4de b/device/gxx-linux/build/.build_cache/2e/2eb90885e4d5786df31dc262581cb4de new file mode 100644 index 0000000..4a3056e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/2e/2eb90885e4d5786df31dc262581cb4de differ diff --git a/device/gxx-linux/build/.build_cache/2e/2eb90885e4d5786df31dc262581cb4de.txt b/device/gxx-linux/build/.build_cache/2e/2eb90885e4d5786df31dc262581cb4de.txt new file mode 100644 index 0000000..84079e8 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/2e/2eb90885e4d5786df31dc262581cb4de.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:337:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 337 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:357:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 357 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/2f/2f085584feebcb078c6f1f1ce667ea72 b/device/gxx-linux/build/.build_cache/2f/2f085584feebcb078c6f1f1ce667ea72 new file mode 100644 index 0000000..7d3abbf Binary files /dev/null and b/device/gxx-linux/build/.build_cache/2f/2f085584feebcb078c6f1f1ce667ea72 differ diff --git a/device/gxx-linux/build/.build_cache/2f/2f085584feebcb078c6f1f1ce667ea72.txt b/device/gxx-linux/build/.build_cache/2f/2f085584feebcb078c6f1f1ce667ea72.txt new file mode 100644 index 0000000..0863bdb --- /dev/null +++ b/device/gxx-linux/build/.build_cache/2f/2f085584feebcb078c6f1f1ce667ea72.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:324:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 324 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:340:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 340 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:384:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 384 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/2f/2f527a659acc17e38a8d1ee3c8ea3e6a b/device/gxx-linux/build/.build_cache/2f/2f527a659acc17e38a8d1ee3c8ea3e6a new file mode 100644 index 0000000..0a6a19e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/2f/2f527a659acc17e38a8d1ee3c8ea3e6a differ diff --git a/device/gxx-linux/build/.build_cache/2f/2f527a659acc17e38a8d1ee3c8ea3e6a.txt b/device/gxx-linux/build/.build_cache/2f/2f527a659acc17e38a8d1ee3c8ea3e6a.txt new file mode 100644 index 0000000..84079e8 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/2f/2f527a659acc17e38a8d1ee3c8ea3e6a.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:337:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 337 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:357:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 357 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/2f/2f7088678c288a917e6be274593c8de8 b/device/gxx-linux/build/.build_cache/2f/2f7088678c288a917e6be274593c8de8 new file mode 100644 index 0000000..bac26b7 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/2f/2f7088678c288a917e6be274593c8de8 differ diff --git a/device/gxx-linux/build/.build_cache/2f/2f9e2f4a463611d21ea1564c3c54a950 b/device/gxx-linux/build/.build_cache/2f/2f9e2f4a463611d21ea1564c3c54a950 new file mode 100644 index 0000000..665cab0 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/2f/2f9e2f4a463611d21ea1564c3c54a950 differ diff --git a/device/gxx-linux/build/.build_cache/2f/2f9e2f4a463611d21ea1564c3c54a950.txt b/device/gxx-linux/build/.build_cache/2f/2f9e2f4a463611d21ea1564c3c54a950.txt new file mode 100644 index 0000000..bc3d21b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/2f/2f9e2f4a463611d21ea1564c3c54a950.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:335:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 335 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:355:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 355 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:402:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 402 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:403:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 403 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/30/30184f077f9c3219d57e5b288d182d86 b/device/gxx-linux/build/.build_cache/30/30184f077f9c3219d57e5b288d182d86 new file mode 100644 index 0000000..fa95c12 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/30/30184f077f9c3219d57e5b288d182d86 differ diff --git a/device/gxx-linux/build/.build_cache/30/30184f077f9c3219d57e5b288d182d86.txt b/device/gxx-linux/build/.build_cache/30/30184f077f9c3219d57e5b288d182d86.txt new file mode 100644 index 0000000..ddb56be --- /dev/null +++ b/device/gxx-linux/build/.build_cache/30/30184f077f9c3219d57e5b288d182d86.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:329:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 329 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:345:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 345 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:389:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 389 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:390:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 390 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/30/3061f58840002c7105b4300721bc09f7 b/device/gxx-linux/build/.build_cache/30/3061f58840002c7105b4300721bc09f7 new file mode 100644 index 0000000..fb0bc0a Binary files /dev/null and b/device/gxx-linux/build/.build_cache/30/3061f58840002c7105b4300721bc09f7 differ diff --git a/device/gxx-linux/build/.build_cache/30/3061f58840002c7105b4300721bc09f7.txt b/device/gxx-linux/build/.build_cache/30/3061f58840002c7105b4300721bc09f7.txt new file mode 100644 index 0000000..7905b4c --- /dev/null +++ b/device/gxx-linux/build/.build_cache/30/3061f58840002c7105b4300721bc09f7.txt @@ -0,0 +1,23 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/iimagehandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imageusbhandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imageusbtesthandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imageusbtesthandler.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/iimagehandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imageusbhandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imageusbtesthandler.h:2\27[m\27[K,\ + from \27[01m\27[Kscanner/imageusbtesthandler.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/30/308028e6abbe152465f042994391fd13 b/device/gxx-linux/build/.build_cache/30/308028e6abbe152465f042994391fd13 new file mode 100644 index 0000000..5e61aa0 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/30/308028e6abbe152465f042994391fd13 differ diff --git a/device/gxx-linux/build/.build_cache/30/308028e6abbe152465f042994391fd13.txt b/device/gxx-linux/build/.build_cache/30/308028e6abbe152465f042994391fd13.txt new file mode 100644 index 0000000..6173532 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/30/308028e6abbe152465f042994391fd13.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:327:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 327 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:343:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 343 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:387:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 387 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:388:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 388 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/31/31fc41a863d00bc209b7f78a0caf3d1b b/device/gxx-linux/build/.build_cache/31/31fc41a863d00bc209b7f78a0caf3d1b new file mode 100644 index 0000000..834831c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/31/31fc41a863d00bc209b7f78a0caf3d1b differ diff --git a/device/gxx-linux/build/.build_cache/31/31fc41a863d00bc209b7f78a0caf3d1b.txt b/device/gxx-linux/build/.build_cache/31/31fc41a863d00bc209b7f78a0caf3d1b.txt new file mode 100644 index 0000000..a6cf79c --- /dev/null +++ b/device/gxx-linux/build/.build_cache/31/31fc41a863d00bc209b7f78a0caf3d1b.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : u32\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/33/33ac11661bca720ff5d2c313488332e2 b/device/gxx-linux/build/.build_cache/33/33ac11661bca720ff5d2c313488332e2 new file mode 100644 index 0000000..222b586 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/33/33ac11661bca720ff5d2c313488332e2 differ diff --git a/device/gxx-linux/build/.build_cache/33/33ac11661bca720ff5d2c313488332e2.txt b/device/gxx-linux/build/.build_cache/33/33ac11661bca720ff5d2c313488332e2.txt new file mode 100644 index 0000000..4aa7a44 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/33/33ac11661bca720ff5d2c313488332e2.txt @@ -0,0 +1,45 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:85:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcode\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 85 | HGIntInfo errType = {.From = MtBoard, .Code = \27[01;35m\27[Kcode\27[m\27[K};\ + | \27[01;35m\27[K^~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:158:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcap_call_code\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = \27[01;35m\27[Kcap_call_code\27[m\27[K, .Img_Index = s_info.length()};\ + | \27[01;35m\27[K^~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:158:91:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Ks_info.std::__cxx11::basic_string::length()\27[m\27[K’ from ‘\27[01m\27[Kstd::__cxx11::basic_string::size_type\27[m\27[K’ {aka ‘\27[01m\27[Klong unsigned int\27[m\27[K’} to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = cap_call_code, .Img_Index = \27[01;35m\27[Ks_info.length()\27[m\27[K};\ + | \27[01;35m\27[K~~~~~~~~~~~~~^~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvoid Scanner::try_scan(std::string)\27[m\27[K’:\ +\27[01m\27[Kscanner/scanner.cpp:211:43:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kint AES_set_decrypt_key(const unsigned char*, int, AES_KEY*)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 211 | if(AES_set_decrypt_key(key,128,&aes_key\27[01;35m\27[K)\27[m\27[K< 0)\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:54:5:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 54 | int \27[01;36m\27[KAES_set_decrypt_key\27[m\27[K(const unsigned char *userKey, const int bits,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:222:53:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kvoid AES_ecb_encrypt(const unsigned char*, unsigned char*, const AES_KEY*, int)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 222 | AES_ecb_encrypt(cipher,decode,&aes_key,AES_DECRYP\27[01;35m\27[KT\27[m\27[K);\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:63:6:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 63 | void \27[01;36m\27[KAES_ecb_encrypt\27[m\27[K(const unsigned char *in, unsigned char *out,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/34/341006b358cfb02c0a054a966a36227b b/device/gxx-linux/build/.build_cache/34/341006b358cfb02c0a054a966a36227b new file mode 100644 index 0000000..8fd3008 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/34/341006b358cfb02c0a054a966a36227b differ diff --git a/device/gxx-linux/build/.build_cache/34/341006b358cfb02c0a054a966a36227b.txt b/device/gxx-linux/build/.build_cache/34/341006b358cfb02c0a054a966a36227b.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/34/341006b358cfb02c0a054a966a36227b.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/34/3461a53f746925ef14220e3e31180ec8 b/device/gxx-linux/build/.build_cache/34/3461a53f746925ef14220e3e31180ec8 new file mode 100644 index 0000000..6d5d03f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/34/3461a53f746925ef14220e3e31180ec8 differ diff --git a/device/gxx-linux/build/.build_cache/34/34d4cc94aa60f269eba0da5da04700a8 b/device/gxx-linux/build/.build_cache/34/34d4cc94aa60f269eba0da5da04700a8 new file mode 100644 index 0000000..c4e2df4 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/34/34d4cc94aa60f269eba0da5da04700a8 differ diff --git a/device/gxx-linux/build/.build_cache/35/352ecad8879a5e0d1363dbcfc8893825 b/device/gxx-linux/build/.build_cache/35/352ecad8879a5e0d1363dbcfc8893825 new file mode 100644 index 0000000..b035303 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/35/352ecad8879a5e0d1363dbcfc8893825 differ diff --git a/device/gxx-linux/build/.build_cache/37/373bb8ac5646e04bd60f4a3272b426b8 b/device/gxx-linux/build/.build_cache/37/373bb8ac5646e04bd60f4a3272b426b8 new file mode 100644 index 0000000..9c3ed06 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/37/373bb8ac5646e04bd60f4a3272b426b8 differ diff --git a/device/gxx-linux/build/.build_cache/37/3774ebc354f97c66883f4c99d65bfdf3 b/device/gxx-linux/build/.build_cache/37/3774ebc354f97c66883f4c99d65bfdf3 new file mode 100644 index 0000000..117017f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/37/3774ebc354f97c66883f4c99d65bfdf3 differ diff --git a/device/gxx-linux/build/.build_cache/3a/3a89691c6183ca3d0841fc0b5d163093 b/device/gxx-linux/build/.build_cache/3a/3a89691c6183ca3d0841fc0b5d163093 new file mode 100644 index 0000000..728f9cb Binary files /dev/null and b/device/gxx-linux/build/.build_cache/3a/3a89691c6183ca3d0841fc0b5d163093 differ diff --git a/device/gxx-linux/build/.build_cache/3a/3afd59849fa5af56c8fecc3f7cf69cf6 b/device/gxx-linux/build/.build_cache/3a/3afd59849fa5af56c8fecc3f7cf69cf6 new file mode 100644 index 0000000..51c12f6 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/3a/3afd59849fa5af56c8fecc3f7cf69cf6 differ diff --git a/device/gxx-linux/build/.build_cache/3a/3afd59849fa5af56c8fecc3f7cf69cf6.txt b/device/gxx-linux/build/.build_cache/3a/3afd59849fa5af56c8fecc3f7cf69cf6.txt new file mode 100644 index 0000000..3ab8d62 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/3a/3afd59849fa5af56c8fecc3f7cf69cf6.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Ktestmotorboard/main.cpp:6\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Ktestmotorboard/main.cpp:6\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/3b/3bfa52e421bc885ef8e79c572044755d b/device/gxx-linux/build/.build_cache/3b/3bfa52e421bc885ef8e79c572044755d new file mode 100644 index 0000000..664415a Binary files /dev/null and b/device/gxx-linux/build/.build_cache/3b/3bfa52e421bc885ef8e79c572044755d differ diff --git a/device/gxx-linux/build/.build_cache/3b/3bfa52e421bc885ef8e79c572044755d.txt b/device/gxx-linux/build/.build_cache/3b/3bfa52e421bc885ef8e79c572044755d.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/3b/3bfa52e421bc885ef8e79c572044755d.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/3c/3c254654db1baddfaf5845952bb7986f b/device/gxx-linux/build/.build_cache/3c/3c254654db1baddfaf5845952bb7986f new file mode 100644 index 0000000..ed77a22 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/3c/3c254654db1baddfaf5845952bb7986f differ diff --git a/device/gxx-linux/build/.build_cache/3c/3c254654db1baddfaf5845952bb7986f.txt b/device/gxx-linux/build/.build_cache/3c/3c254654db1baddfaf5845952bb7986f.txt new file mode 100644 index 0000000..325a845 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/3c/3c254654db1baddfaf5845952bb7986f.txt @@ -0,0 +1,21 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : u32\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/3c/3cceef6e4a34838b80a2ee4434fae84b b/device/gxx-linux/build/.build_cache/3c/3cceef6e4a34838b80a2ee4434fae84b new file mode 100644 index 0000000..ff11f60 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/3c/3cceef6e4a34838b80a2ee4434fae84b differ diff --git a/device/gxx-linux/build/.build_cache/3c/3cceef6e4a34838b80a2ee4434fae84b.txt b/device/gxx-linux/build/.build_cache/3c/3cceef6e4a34838b80a2ee4434fae84b.txt new file mode 100644 index 0000000..4aa7a44 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/3c/3cceef6e4a34838b80a2ee4434fae84b.txt @@ -0,0 +1,45 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:85:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcode\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 85 | HGIntInfo errType = {.From = MtBoard, .Code = \27[01;35m\27[Kcode\27[m\27[K};\ + | \27[01;35m\27[K^~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:158:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcap_call_code\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = \27[01;35m\27[Kcap_call_code\27[m\27[K, .Img_Index = s_info.length()};\ + | \27[01;35m\27[K^~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:158:91:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Ks_info.std::__cxx11::basic_string::length()\27[m\27[K’ from ‘\27[01m\27[Kstd::__cxx11::basic_string::size_type\27[m\27[K’ {aka ‘\27[01m\27[Klong unsigned int\27[m\27[K’} to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = cap_call_code, .Img_Index = \27[01;35m\27[Ks_info.length()\27[m\27[K};\ + | \27[01;35m\27[K~~~~~~~~~~~~~^~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvoid Scanner::try_scan(std::string)\27[m\27[K’:\ +\27[01m\27[Kscanner/scanner.cpp:211:43:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kint AES_set_decrypt_key(const unsigned char*, int, AES_KEY*)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 211 | if(AES_set_decrypt_key(key,128,&aes_key\27[01;35m\27[K)\27[m\27[K< 0)\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:54:5:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 54 | int \27[01;36m\27[KAES_set_decrypt_key\27[m\27[K(const unsigned char *userKey, const int bits,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:222:53:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kvoid AES_ecb_encrypt(const unsigned char*, unsigned char*, const AES_KEY*, int)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 222 | AES_ecb_encrypt(cipher,decode,&aes_key,AES_DECRYP\27[01;35m\27[KT\27[m\27[K);\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:63:6:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 63 | void \27[01;36m\27[KAES_ecb_encrypt\27[m\27[K(const unsigned char *in, unsigned char *out,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/3d/3dce259e00613b78293ee72fb1d2a21d b/device/gxx-linux/build/.build_cache/3d/3dce259e00613b78293ee72fb1d2a21d new file mode 100644 index 0000000..7ef328e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/3d/3dce259e00613b78293ee72fb1d2a21d differ diff --git a/device/gxx-linux/build/.build_cache/3e/3ef0eae6984b734a162dbb197779bdaa b/device/gxx-linux/build/.build_cache/3e/3ef0eae6984b734a162dbb197779bdaa new file mode 100644 index 0000000..df0b73c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/3e/3ef0eae6984b734a162dbb197779bdaa differ diff --git a/device/gxx-linux/build/.build_cache/3f/3fde50726a3a6593d245f8fd4d8a0322 b/device/gxx-linux/build/.build_cache/3f/3fde50726a3a6593d245f8fd4d8a0322 new file mode 100644 index 0000000..df3412c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/3f/3fde50726a3a6593d245f8fd4d8a0322 differ diff --git a/device/gxx-linux/build/.build_cache/41/4131eb0101608388d94db21b6ef3cdd2 b/device/gxx-linux/build/.build_cache/41/4131eb0101608388d94db21b6ef3cdd2 new file mode 100644 index 0000000..68dfe35 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/41/4131eb0101608388d94db21b6ef3cdd2 differ diff --git a/device/gxx-linux/build/.build_cache/42/422a782ea05211327f2bd744e6f7f647 b/device/gxx-linux/build/.build_cache/42/422a782ea05211327f2bd744e6f7f647 new file mode 100644 index 0000000..12e32c1 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/42/422a782ea05211327f2bd744e6f7f647 differ diff --git a/device/gxx-linux/build/.build_cache/42/42d5da9d76279693da5d098d2879bcff b/device/gxx-linux/build/.build_cache/42/42d5da9d76279693da5d098d2879bcff new file mode 100644 index 0000000..0e93f28 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/42/42d5da9d76279693da5d098d2879bcff differ diff --git a/device/gxx-linux/build/.build_cache/42/42d5da9d76279693da5d098d2879bcff.txt b/device/gxx-linux/build/.build_cache/42/42d5da9d76279693da5d098d2879bcff.txt new file mode 100644 index 0000000..bc3d21b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/42/42d5da9d76279693da5d098d2879bcff.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:335:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 335 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:355:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 355 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:402:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 402 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:403:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 403 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/43/43b3d843c27712cda49908a678bfe446 b/device/gxx-linux/build/.build_cache/43/43b3d843c27712cda49908a678bfe446 new file mode 100644 index 0000000..84248a9 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/43/43b3d843c27712cda49908a678bfe446 differ diff --git a/device/gxx-linux/build/.build_cache/43/43b3d843c27712cda49908a678bfe446.txt b/device/gxx-linux/build/.build_cache/43/43b3d843c27712cda49908a678bfe446.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/43/43b3d843c27712cda49908a678bfe446.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/44/441bcd493f6235dbd765dc8b2f7112aa b/device/gxx-linux/build/.build_cache/44/441bcd493f6235dbd765dc8b2f7112aa new file mode 100644 index 0000000..2f749bf Binary files /dev/null and b/device/gxx-linux/build/.build_cache/44/441bcd493f6235dbd765dc8b2f7112aa differ diff --git a/device/gxx-linux/build/.build_cache/45/4555c90abadcc0d7d141aae7ab23cdf5 b/device/gxx-linux/build/.build_cache/45/4555c90abadcc0d7d141aae7ab23cdf5 new file mode 100644 index 0000000..e6c3dd3 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/45/4555c90abadcc0d7d141aae7ab23cdf5 differ diff --git a/device/gxx-linux/build/.build_cache/45/4555c90abadcc0d7d141aae7ab23cdf5.txt b/device/gxx-linux/build/.build_cache/45/4555c90abadcc0d7d141aae7ab23cdf5.txt new file mode 100644 index 0000000..e2809ea --- /dev/null +++ b/device/gxx-linux/build/.build_cache/45/4555c90abadcc0d7d141aae7ab23cdf5.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Ktestscanner/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : u32\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Ktestscanner/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/45/45682dcd94c893a61bab9bf19f3abbbb b/device/gxx-linux/build/.build_cache/45/45682dcd94c893a61bab9bf19f3abbbb new file mode 100644 index 0000000..cf96787 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/45/45682dcd94c893a61bab9bf19f3abbbb differ diff --git a/device/gxx-linux/build/.build_cache/46/46103c7c009e8c5e2f8e6ef52b66e308 b/device/gxx-linux/build/.build_cache/46/46103c7c009e8c5e2f8e6ef52b66e308 new file mode 100644 index 0000000..e6c3dd3 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/46/46103c7c009e8c5e2f8e6ef52b66e308 differ diff --git a/device/gxx-linux/build/.build_cache/46/46103c7c009e8c5e2f8e6ef52b66e308.txt b/device/gxx-linux/build/.build_cache/46/46103c7c009e8c5e2f8e6ef52b66e308.txt new file mode 100644 index 0000000..69f773b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/46/46103c7c009e8c5e2f8e6ef52b66e308.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Ktestscanner/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Ktestscanner/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/46/4690904fabe209aefc028568a6d41829 b/device/gxx-linux/build/.build_cache/46/4690904fabe209aefc028568a6d41829 new file mode 100644 index 0000000..fea7af5 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/46/4690904fabe209aefc028568a6d41829 differ diff --git a/device/gxx-linux/build/.build_cache/46/46eb6072c45598d6658a56c8b4616b24 b/device/gxx-linux/build/.build_cache/46/46eb6072c45598d6658a56c8b4616b24 new file mode 100644 index 0000000..658ef20 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/46/46eb6072c45598d6658a56c8b4616b24 differ diff --git a/device/gxx-linux/build/.build_cache/46/46eb6072c45598d6658a56c8b4616b24.txt b/device/gxx-linux/build/.build_cache/46/46eb6072c45598d6658a56c8b4616b24.txt new file mode 100644 index 0000000..bcb1ddb --- /dev/null +++ b/device/gxx-linux/build/.build_cache/46/46eb6072c45598d6658a56c8b4616b24.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/fsmstate.cpp:2\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/fsmstate.cpp:2\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/47/47b75435e2fe59e64a1d8a72a34ff634 b/device/gxx-linux/build/.build_cache/47/47b75435e2fe59e64a1d8a72a34ff634 new file mode 100644 index 0000000..9af100f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/47/47b75435e2fe59e64a1d8a72a34ff634 differ diff --git a/device/gxx-linux/build/.build_cache/47/47d2382c60d0a94ec0586be9edfad539 b/device/gxx-linux/build/.build_cache/47/47d2382c60d0a94ec0586be9edfad539 new file mode 100644 index 0000000..daaa3b1 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/47/47d2382c60d0a94ec0586be9edfad539 differ diff --git a/device/gxx-linux/build/.build_cache/49/49e46efad0c387a63d32ad43a943d992 b/device/gxx-linux/build/.build_cache/49/49e46efad0c387a63d32ad43a943d992 new file mode 100644 index 0000000..c5880df Binary files /dev/null and b/device/gxx-linux/build/.build_cache/49/49e46efad0c387a63d32ad43a943d992 differ diff --git a/device/gxx-linux/build/.build_cache/4a/4a74a32a0ef00efdbca423713143f795 b/device/gxx-linux/build/.build_cache/4a/4a74a32a0ef00efdbca423713143f795 new file mode 100644 index 0000000..d0c876e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/4a/4a74a32a0ef00efdbca423713143f795 differ diff --git a/device/gxx-linux/build/.build_cache/4a/4a74a32a0ef00efdbca423713143f795.txt b/device/gxx-linux/build/.build_cache/4a/4a74a32a0ef00efdbca423713143f795.txt new file mode 100644 index 0000000..14aae14 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/4a/4a74a32a0ef00efdbca423713143f795.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:338:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 338 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:358:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 358 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:406:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 406 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/4b/4b19fe65215cb6a060dc1572ae434e25 b/device/gxx-linux/build/.build_cache/4b/4b19fe65215cb6a060dc1572ae434e25 new file mode 100644 index 0000000..d00f0c7 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/4b/4b19fe65215cb6a060dc1572ae434e25 differ diff --git a/device/gxx-linux/build/.build_cache/4b/4b19fe65215cb6a060dc1572ae434e25.txt b/device/gxx-linux/build/.build_cache/4b/4b19fe65215cb6a060dc1572ae434e25.txt new file mode 100644 index 0000000..5c9c7e3 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/4b/4b19fe65215cb6a060dc1572ae434e25.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Kscanservice/main.cpp:16\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : u32\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Kscanservice/main.cpp:16\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/4b/4bfe3d83f3ecb00205810e7da01884ec b/device/gxx-linux/build/.build_cache/4b/4bfe3d83f3ecb00205810e7da01884ec new file mode 100644 index 0000000..cac0771 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/4b/4bfe3d83f3ecb00205810e7da01884ec differ diff --git a/device/gxx-linux/build/.build_cache/4d/4dac980da0ec7fa51cba9ad46b5515d7 b/device/gxx-linux/build/.build_cache/4d/4dac980da0ec7fa51cba9ad46b5515d7 new file mode 100644 index 0000000..7f11743 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/4d/4dac980da0ec7fa51cba9ad46b5515d7 differ diff --git a/device/gxx-linux/build/.build_cache/4d/4dac980da0ec7fa51cba9ad46b5515d7.txt b/device/gxx-linux/build/.build_cache/4d/4dac980da0ec7fa51cba9ad46b5515d7.txt new file mode 100644 index 0000000..4109888 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/4d/4dac980da0ec7fa51cba9ad46b5515d7.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kservice/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kservice/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/4f/4fc248fcc1f57be272bd79fa63409e62 b/device/gxx-linux/build/.build_cache/4f/4fc248fcc1f57be272bd79fa63409e62 new file mode 100644 index 0000000..a098ed9 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/4f/4fc248fcc1f57be272bd79fa63409e62 differ diff --git a/device/gxx-linux/build/.build_cache/4f/4fc248fcc1f57be272bd79fa63409e62.txt b/device/gxx-linux/build/.build_cache/4f/4fc248fcc1f57be272bd79fa63409e62.txt new file mode 100644 index 0000000..809a37f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/4f/4fc248fcc1f57be272bd79fa63409e62.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:361:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 361 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:408:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 408 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:409:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 409 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/51/51e52f1d634709eb83033b63e05e7e98 b/device/gxx-linux/build/.build_cache/51/51e52f1d634709eb83033b63e05e7e98 new file mode 100644 index 0000000..f718ac7 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/51/51e52f1d634709eb83033b63e05e7e98 differ diff --git a/device/gxx-linux/build/.build_cache/53/5378e0e902cdef4c541aacc7dc64cd0d b/device/gxx-linux/build/.build_cache/53/5378e0e902cdef4c541aacc7dc64cd0d new file mode 100644 index 0000000..8603cfd Binary files /dev/null and b/device/gxx-linux/build/.build_cache/53/5378e0e902cdef4c541aacc7dc64cd0d differ diff --git a/device/gxx-linux/build/.build_cache/54/54ed52bffeac99b7eefd55afb8652b77 b/device/gxx-linux/build/.build_cache/54/54ed52bffeac99b7eefd55afb8652b77 new file mode 100644 index 0000000..532d3c4 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/54/54ed52bffeac99b7eefd55afb8652b77 differ diff --git a/device/gxx-linux/build/.build_cache/54/54ed52bffeac99b7eefd55afb8652b77.txt b/device/gxx-linux/build/.build_cache/54/54ed52bffeac99b7eefd55afb8652b77.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/54/54ed52bffeac99b7eefd55afb8652b77.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/55/557b2fd9c16ff7230151a131203f7542 b/device/gxx-linux/build/.build_cache/55/557b2fd9c16ff7230151a131203f7542 new file mode 100644 index 0000000..d743876 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/55/557b2fd9c16ff7230151a131203f7542 differ diff --git a/device/gxx-linux/build/.build_cache/55/557b2fd9c16ff7230151a131203f7542.txt b/device/gxx-linux/build/.build_cache/55/557b2fd9c16ff7230151a131203f7542.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/55/557b2fd9c16ff7230151a131203f7542.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/57/5789baf7dff5f4eed2f5c54112931e27 b/device/gxx-linux/build/.build_cache/57/5789baf7dff5f4eed2f5c54112931e27 new file mode 100644 index 0000000..f40665f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/57/5789baf7dff5f4eed2f5c54112931e27 differ diff --git a/device/gxx-linux/build/.build_cache/57/5789baf7dff5f4eed2f5c54112931e27.txt b/device/gxx-linux/build/.build_cache/57/5789baf7dff5f4eed2f5c54112931e27.txt new file mode 100644 index 0000000..3d25eea --- /dev/null +++ b/device/gxx-linux/build/.build_cache/57/5789baf7dff5f4eed2f5c54112931e27.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:325:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 325 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:333:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 333 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:658:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 658 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/5a/5a2786ae926672430f8999eee08ec969 b/device/gxx-linux/build/.build_cache/5a/5a2786ae926672430f8999eee08ec969 new file mode 100644 index 0000000..22617f2 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/5a/5a2786ae926672430f8999eee08ec969 differ diff --git a/device/gxx-linux/build/.build_cache/5a/5a2786ae926672430f8999eee08ec969.txt b/device/gxx-linux/build/.build_cache/5a/5a2786ae926672430f8999eee08ec969.txt new file mode 100644 index 0000000..7e07d43 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/5a/5a2786ae926672430f8999eee08ec969.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:329:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 329 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:337:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 337 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:664:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 664 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/5b/5b0784d499a9ad28ab2310492f6b0b07 b/device/gxx-linux/build/.build_cache/5b/5b0784d499a9ad28ab2310492f6b0b07 new file mode 100644 index 0000000..f54f8f0 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/5b/5b0784d499a9ad28ab2310492f6b0b07 differ diff --git a/device/gxx-linux/build/.build_cache/5b/5b0784d499a9ad28ab2310492f6b0b07.txt b/device/gxx-linux/build/.build_cache/5b/5b0784d499a9ad28ab2310492f6b0b07.txt new file mode 100644 index 0000000..e56396a --- /dev/null +++ b/device/gxx-linux/build/.build_cache/5b/5b0784d499a9ad28ab2310492f6b0b07.txt @@ -0,0 +1,31 @@ +{ + errdata = "In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Kmotorboard/motorboard.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : u32\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Kmotorboard/motorboard.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kbool MotorBoard::get_doublle_inpect()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:177:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + 177 | \27[01;35m\27[K}\27[m\27[K\ + | \27[01;35m\27[K^\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kbool MotorBoard::get_staple_inpect()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:200:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + 200 | \27[01;35m\27[K}\27[m\27[K\ + | \27[01;35m\27[K^\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint MotorBoard::get_color_mode()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:212:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + 212 | \27[01;35m\27[K}\27[m\27[K\ + | \27[01;35m\27[K^\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/5c/5c59ef0958f89af140eebe93cb2d6749 b/device/gxx-linux/build/.build_cache/5c/5c59ef0958f89af140eebe93cb2d6749 new file mode 100644 index 0000000..fe600a6 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/5c/5c59ef0958f89af140eebe93cb2d6749 differ diff --git a/device/gxx-linux/build/.build_cache/5c/5c62e48b01b63e6b0335732e7bbc7e5a b/device/gxx-linux/build/.build_cache/5c/5c62e48b01b63e6b0335732e7bbc7e5a new file mode 100644 index 0000000..20e6629 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/5c/5c62e48b01b63e6b0335732e7bbc7e5a differ diff --git a/device/gxx-linux/build/.build_cache/5c/5c62e48b01b63e6b0335732e7bbc7e5a.txt b/device/gxx-linux/build/.build_cache/5c/5c62e48b01b63e6b0335732e7bbc7e5a.txt new file mode 100644 index 0000000..809a37f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/5c/5c62e48b01b63e6b0335732e7bbc7e5a.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:361:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 361 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:408:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 408 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:409:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 409 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/5c/5c6f97dd37e5371b73f3ffb989e84263 b/device/gxx-linux/build/.build_cache/5c/5c6f97dd37e5371b73f3ffb989e84263 new file mode 100644 index 0000000..96eabfd Binary files /dev/null and b/device/gxx-linux/build/.build_cache/5c/5c6f97dd37e5371b73f3ffb989e84263 differ diff --git a/device/gxx-linux/build/.build_cache/5d/5d53b569be42aad734d3c208aedab903 b/device/gxx-linux/build/.build_cache/5d/5d53b569be42aad734d3c208aedab903 new file mode 100644 index 0000000..d73df92 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/5d/5d53b569be42aad734d3c208aedab903 differ diff --git a/device/gxx-linux/build/.build_cache/5d/5d53b569be42aad734d3c208aedab903.txt b/device/gxx-linux/build/.build_cache/5d/5d53b569be42aad734d3c208aedab903.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/5d/5d53b569be42aad734d3c208aedab903.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/5d/5d6e109b904007baf62b41b7b77ead16 b/device/gxx-linux/build/.build_cache/5d/5d6e109b904007baf62b41b7b77ead16 new file mode 100644 index 0000000..20a11b3 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/5d/5d6e109b904007baf62b41b7b77ead16 differ diff --git a/device/gxx-linux/build/.build_cache/5d/5d6e109b904007baf62b41b7b77ead16.txt b/device/gxx-linux/build/.build_cache/5d/5d6e109b904007baf62b41b7b77ead16.txt new file mode 100644 index 0000000..a8f514f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/5d/5d6e109b904007baf62b41b7b77ead16.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:328:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 328 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:336:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 336 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:661:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 661 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/5e/5ec0112f944e324e197cf4ff71e5da07 b/device/gxx-linux/build/.build_cache/5e/5ec0112f944e324e197cf4ff71e5da07 new file mode 100644 index 0000000..3532d57 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/5e/5ec0112f944e324e197cf4ff71e5da07 differ diff --git a/device/gxx-linux/build/.build_cache/5f/5ff9c278891c669872c5ed1892803357 b/device/gxx-linux/build/.build_cache/5f/5ff9c278891c669872c5ed1892803357 new file mode 100644 index 0000000..f87d4f6 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/5f/5ff9c278891c669872c5ed1892803357 differ diff --git a/device/gxx-linux/build/.build_cache/5f/5ff9c278891c669872c5ed1892803357.txt b/device/gxx-linux/build/.build_cache/5f/5ff9c278891c669872c5ed1892803357.txt new file mode 100644 index 0000000..84079e8 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/5f/5ff9c278891c669872c5ed1892803357.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:337:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 337 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:357:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 357 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/61/61e2293a2ee66ac02bbf205757647bca b/device/gxx-linux/build/.build_cache/61/61e2293a2ee66ac02bbf205757647bca new file mode 100644 index 0000000..6f19c44 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/61/61e2293a2ee66ac02bbf205757647bca differ diff --git a/device/gxx-linux/build/.build_cache/61/61e2293a2ee66ac02bbf205757647bca.txt b/device/gxx-linux/build/.build_cache/61/61e2293a2ee66ac02bbf205757647bca.txt new file mode 100644 index 0000000..9baa36f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/61/61e2293a2ee66ac02bbf205757647bca.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:339:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 339 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:359:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 359 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:406:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 406 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:407:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 407 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/63/63a7e728e29616bc240944e00519d458 b/device/gxx-linux/build/.build_cache/63/63a7e728e29616bc240944e00519d458 new file mode 100644 index 0000000..2b19bf3 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/63/63a7e728e29616bc240944e00519d458 differ diff --git a/device/gxx-linux/build/.build_cache/63/63a7e728e29616bc240944e00519d458.txt b/device/gxx-linux/build/.build_cache/63/63a7e728e29616bc240944e00519d458.txt new file mode 100644 index 0000000..5de69a1 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/63/63a7e728e29616bc240944e00519d458.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:335:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 335 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:351:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 351 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:397:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 397 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:398:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 398 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/65/6591ff3dd192ea2f4b764caa52d40631 b/device/gxx-linux/build/.build_cache/65/6591ff3dd192ea2f4b764caa52d40631 new file mode 100644 index 0000000..d0d637a Binary files /dev/null and b/device/gxx-linux/build/.build_cache/65/6591ff3dd192ea2f4b764caa52d40631 differ diff --git a/device/gxx-linux/build/.build_cache/65/6591ff3dd192ea2f4b764caa52d40631.txt b/device/gxx-linux/build/.build_cache/65/6591ff3dd192ea2f4b764caa52d40631.txt new file mode 100644 index 0000000..6fe5a3b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/65/6591ff3dd192ea2f4b764caa52d40631.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:327:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 327 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:335:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 335 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:660:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 660 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/65/65a52bf5aa298c4f378d05fb29cba486 b/device/gxx-linux/build/.build_cache/65/65a52bf5aa298c4f378d05fb29cba486 new file mode 100644 index 0000000..b9372ad Binary files /dev/null and b/device/gxx-linux/build/.build_cache/65/65a52bf5aa298c4f378d05fb29cba486 differ diff --git a/device/gxx-linux/build/.build_cache/65/65a52bf5aa298c4f378d05fb29cba486.txt b/device/gxx-linux/build/.build_cache/65/65a52bf5aa298c4f378d05fb29cba486.txt new file mode 100644 index 0000000..4aa7a44 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/65/65a52bf5aa298c4f378d05fb29cba486.txt @@ -0,0 +1,45 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:85:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcode\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 85 | HGIntInfo errType = {.From = MtBoard, .Code = \27[01;35m\27[Kcode\27[m\27[K};\ + | \27[01;35m\27[K^~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:158:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcap_call_code\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = \27[01;35m\27[Kcap_call_code\27[m\27[K, .Img_Index = s_info.length()};\ + | \27[01;35m\27[K^~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:158:91:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Ks_info.std::__cxx11::basic_string::length()\27[m\27[K’ from ‘\27[01m\27[Kstd::__cxx11::basic_string::size_type\27[m\27[K’ {aka ‘\27[01m\27[Klong unsigned int\27[m\27[K’} to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = cap_call_code, .Img_Index = \27[01;35m\27[Ks_info.length()\27[m\27[K};\ + | \27[01;35m\27[K~~~~~~~~~~~~~^~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvoid Scanner::try_scan(std::string)\27[m\27[K’:\ +\27[01m\27[Kscanner/scanner.cpp:211:43:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kint AES_set_decrypt_key(const unsigned char*, int, AES_KEY*)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 211 | if(AES_set_decrypt_key(key,128,&aes_key\27[01;35m\27[K)\27[m\27[K< 0)\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:54:5:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 54 | int \27[01;36m\27[KAES_set_decrypt_key\27[m\27[K(const unsigned char *userKey, const int bits,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:222:53:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kvoid AES_ecb_encrypt(const unsigned char*, unsigned char*, const AES_KEY*, int)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 222 | AES_ecb_encrypt(cipher,decode,&aes_key,AES_DECRYP\27[01;35m\27[KT\27[m\27[K);\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:63:6:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 63 | void \27[01;36m\27[KAES_ecb_encrypt\27[m\27[K(const unsigned char *in, unsigned char *out,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/65/65c55169fc87c5e2c453cd70231406a7 b/device/gxx-linux/build/.build_cache/65/65c55169fc87c5e2c453cd70231406a7 new file mode 100644 index 0000000..bccd2da Binary files /dev/null and b/device/gxx-linux/build/.build_cache/65/65c55169fc87c5e2c453cd70231406a7 differ diff --git a/device/gxx-linux/build/.build_cache/65/65d462746b5dc001cea058ce50697fcd b/device/gxx-linux/build/.build_cache/65/65d462746b5dc001cea058ce50697fcd new file mode 100644 index 0000000..ab92142 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/65/65d462746b5dc001cea058ce50697fcd differ diff --git a/device/gxx-linux/build/.build_cache/69/69616a53c82264784ca9d55d3917603c b/device/gxx-linux/build/.build_cache/69/69616a53c82264784ca9d55d3917603c new file mode 100644 index 0000000..c7dbc1b Binary files /dev/null and b/device/gxx-linux/build/.build_cache/69/69616a53c82264784ca9d55d3917603c differ diff --git a/device/gxx-linux/build/.build_cache/69/69616a53c82264784ca9d55d3917603c.txt b/device/gxx-linux/build/.build_cache/69/69616a53c82264784ca9d55d3917603c.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/69/69616a53c82264784ca9d55d3917603c.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/6f/6f4b233b25ed0ed53eadf5f78e02b4b3 b/device/gxx-linux/build/.build_cache/6f/6f4b233b25ed0ed53eadf5f78e02b4b3 new file mode 100644 index 0000000..71f6a5b Binary files /dev/null and b/device/gxx-linux/build/.build_cache/6f/6f4b233b25ed0ed53eadf5f78e02b4b3 differ diff --git a/device/gxx-linux/build/.build_cache/72/726e014b1c5d10a04f503f33c1e72097 b/device/gxx-linux/build/.build_cache/72/726e014b1c5d10a04f503f33c1e72097 new file mode 100644 index 0000000..ea65b5a Binary files /dev/null and b/device/gxx-linux/build/.build_cache/72/726e014b1c5d10a04f503f33c1e72097 differ diff --git a/device/gxx-linux/build/.build_cache/72/726e014b1c5d10a04f503f33c1e72097.txt b/device/gxx-linux/build/.build_cache/72/726e014b1c5d10a04f503f33c1e72097.txt new file mode 100644 index 0000000..0bcfa79 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/72/726e014b1c5d10a04f503f33c1e72097.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestcapimage/main.cpp:5\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestcapimage/main.cpp:5\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/72/72ae83e22508506e165d70784015a4c2 b/device/gxx-linux/build/.build_cache/72/72ae83e22508506e165d70784015a4c2 new file mode 100644 index 0000000..f9d518d Binary files /dev/null and b/device/gxx-linux/build/.build_cache/72/72ae83e22508506e165d70784015a4c2 differ diff --git a/device/gxx-linux/build/.build_cache/72/72ae83e22508506e165d70784015a4c2.txt b/device/gxx-linux/build/.build_cache/72/72ae83e22508506e165d70784015a4c2.txt new file mode 100644 index 0000000..4aa7a44 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/72/72ae83e22508506e165d70784015a4c2.txt @@ -0,0 +1,45 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:85:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcode\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 85 | HGIntInfo errType = {.From = MtBoard, .Code = \27[01;35m\27[Kcode\27[m\27[K};\ + | \27[01;35m\27[K^~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:158:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcap_call_code\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = \27[01;35m\27[Kcap_call_code\27[m\27[K, .Img_Index = s_info.length()};\ + | \27[01;35m\27[K^~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:158:91:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Ks_info.std::__cxx11::basic_string::length()\27[m\27[K’ from ‘\27[01m\27[Kstd::__cxx11::basic_string::size_type\27[m\27[K’ {aka ‘\27[01m\27[Klong unsigned int\27[m\27[K’} to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = cap_call_code, .Img_Index = \27[01;35m\27[Ks_info.length()\27[m\27[K};\ + | \27[01;35m\27[K~~~~~~~~~~~~~^~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvoid Scanner::try_scan(std::string)\27[m\27[K’:\ +\27[01m\27[Kscanner/scanner.cpp:211:43:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kint AES_set_decrypt_key(const unsigned char*, int, AES_KEY*)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 211 | if(AES_set_decrypt_key(key,128,&aes_key\27[01;35m\27[K)\27[m\27[K< 0)\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:54:5:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 54 | int \27[01;36m\27[KAES_set_decrypt_key\27[m\27[K(const unsigned char *userKey, const int bits,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:222:53:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kvoid AES_ecb_encrypt(const unsigned char*, unsigned char*, const AES_KEY*, int)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 222 | AES_ecb_encrypt(cipher,decode,&aes_key,AES_DECRYP\27[01;35m\27[KT\27[m\27[K);\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:63:6:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 63 | void \27[01;36m\27[KAES_ecb_encrypt\27[m\27[K(const unsigned char *in, unsigned char *out,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/73/730cfcf18258d84c407e82f666366379 b/device/gxx-linux/build/.build_cache/73/730cfcf18258d84c407e82f666366379 new file mode 100644 index 0000000..d772304 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/73/730cfcf18258d84c407e82f666366379 differ diff --git a/device/gxx-linux/build/.build_cache/73/730cfcf18258d84c407e82f666366379.txt b/device/gxx-linux/build/.build_cache/73/730cfcf18258d84c407e82f666366379.txt new file mode 100644 index 0000000..84079e8 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/73/730cfcf18258d84c407e82f666366379.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:337:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 337 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:357:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 357 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/74/747d51061afe3f806efafab49ece98a1 b/device/gxx-linux/build/.build_cache/74/747d51061afe3f806efafab49ece98a1 new file mode 100644 index 0000000..222b586 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/74/747d51061afe3f806efafab49ece98a1 differ diff --git a/device/gxx-linux/build/.build_cache/74/747d51061afe3f806efafab49ece98a1.txt b/device/gxx-linux/build/.build_cache/74/747d51061afe3f806efafab49ece98a1.txt new file mode 100644 index 0000000..4ede3f2 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/74/747d51061afe3f806efafab49ece98a1.txt @@ -0,0 +1,45 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:85:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcode\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 85 | HGIntInfo errType = {.From = MtBoard, .Code = \27[01;35m\27[Kcode\27[m\27[K};\ + | \27[01;35m\27[K^~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:158:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcap_call_code\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = \27[01;35m\27[Kcap_call_code\27[m\27[K, .Img_Index = s_info.length()};\ + | \27[01;35m\27[K^~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:158:91:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Ks_info.std::__cxx11::basic_string::length()\27[m\27[K’ from ‘\27[01m\27[Kstd::__cxx11::basic_string::size_type\27[m\27[K’ {aka ‘\27[01m\27[Klong unsigned int\27[m\27[K’} to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = cap_call_code, .Img_Index = \27[01;35m\27[Ks_info.length()\27[m\27[K};\ + | \27[01;35m\27[K~~~~~~~~~~~~~^~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvoid Scanner::try_scan(std::string)\27[m\27[K’:\ +\27[01m\27[Kscanner/scanner.cpp:210:43:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kint AES_set_decrypt_key(const unsigned char*, int, AES_KEY*)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 210 | if(AES_set_decrypt_key(key,128,&aes_key\27[01;35m\27[K)\27[m\27[K< 0)\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:54:5:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 54 | int \27[01;36m\27[KAES_set_decrypt_key\27[m\27[K(const unsigned char *userKey, const int bits,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:221:53:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kvoid AES_ecb_encrypt(const unsigned char*, unsigned char*, const AES_KEY*, int)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 221 | AES_ecb_encrypt(cipher,decode,&aes_key,AES_DECRYP\27[01;35m\27[KT\27[m\27[K);\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:63:6:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 63 | void \27[01;36m\27[KAES_ecb_encrypt\27[m\27[K(const unsigned char *in, unsigned char *out,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/74/74f3110eb582bb295ad8366e987173d2 b/device/gxx-linux/build/.build_cache/74/74f3110eb582bb295ad8366e987173d2 new file mode 100644 index 0000000..811ecde Binary files /dev/null and b/device/gxx-linux/build/.build_cache/74/74f3110eb582bb295ad8366e987173d2 differ diff --git a/device/gxx-linux/build/.build_cache/76/76da96c46ea9b110c59a3bce71e49333 b/device/gxx-linux/build/.build_cache/76/76da96c46ea9b110c59a3bce71e49333 new file mode 100644 index 0000000..59b4086 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/76/76da96c46ea9b110c59a3bce71e49333 differ diff --git a/device/gxx-linux/build/.build_cache/76/76f232d7fde3ddcf89e7e162c983ff5a b/device/gxx-linux/build/.build_cache/76/76f232d7fde3ddcf89e7e162c983ff5a new file mode 100644 index 0000000..7f11743 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/76/76f232d7fde3ddcf89e7e162c983ff5a differ diff --git a/device/gxx-linux/build/.build_cache/76/76f232d7fde3ddcf89e7e162c983ff5a.txt b/device/gxx-linux/build/.build_cache/76/76f232d7fde3ddcf89e7e162c983ff5a.txt new file mode 100644 index 0000000..a24ae05 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/76/76f232d7fde3ddcf89e7e162c983ff5a.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kservice/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kservice/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/79/7913b4a0a0dbba526dce797b153a77f3 b/device/gxx-linux/build/.build_cache/79/7913b4a0a0dbba526dce797b153a77f3 new file mode 100644 index 0000000..f851958 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/79/7913b4a0a0dbba526dce797b153a77f3 differ diff --git a/device/gxx-linux/build/.build_cache/79/7913b4a0a0dbba526dce797b153a77f3.txt b/device/gxx-linux/build/.build_cache/79/7913b4a0a0dbba526dce797b153a77f3.txt new file mode 100644 index 0000000..84079e8 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/79/7913b4a0a0dbba526dce797b153a77f3.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:337:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 337 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:357:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 357 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/7a/7ad01e3649025c6790e8d6b688e6761c b/device/gxx-linux/build/.build_cache/7a/7ad01e3649025c6790e8d6b688e6761c new file mode 100644 index 0000000..b52d473 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/7a/7ad01e3649025c6790e8d6b688e6761c differ diff --git a/device/gxx-linux/build/.build_cache/7e/7e6b86de5d50f0e4bc1b1f0b881c3931 b/device/gxx-linux/build/.build_cache/7e/7e6b86de5d50f0e4bc1b1f0b881c3931 new file mode 100644 index 0000000..fd676c9 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/7e/7e6b86de5d50f0e4bc1b1f0b881c3931 differ diff --git a/device/gxx-linux/build/.build_cache/7e/7e6b86de5d50f0e4bc1b1f0b881c3931.txt b/device/gxx-linux/build/.build_cache/7e/7e6b86de5d50f0e4bc1b1f0b881c3931.txt new file mode 100644 index 0000000..454317d --- /dev/null +++ b/device/gxx-linux/build/.build_cache/7e/7e6b86de5d50f0e4bc1b1f0b881c3931.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/jsonconfig.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/jsonconfig.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/7e/7edd1a378382fc76b773960292ae3e24 b/device/gxx-linux/build/.build_cache/7e/7edd1a378382fc76b773960292ae3e24 new file mode 100644 index 0000000..97493ae Binary files /dev/null and b/device/gxx-linux/build/.build_cache/7e/7edd1a378382fc76b773960292ae3e24 differ diff --git a/device/gxx-linux/build/.build_cache/80/804e181a5a9ad1a7664d1f34d97545b6 b/device/gxx-linux/build/.build_cache/80/804e181a5a9ad1a7664d1f34d97545b6 new file mode 100644 index 0000000..a869bb5 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/80/804e181a5a9ad1a7664d1f34d97545b6 differ diff --git a/device/gxx-linux/build/.build_cache/80/804e181a5a9ad1a7664d1f34d97545b6.txt b/device/gxx-linux/build/.build_cache/80/804e181a5a9ad1a7664d1f34d97545b6.txt new file mode 100644 index 0000000..118c250 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/80/804e181a5a9ad1a7664d1f34d97545b6.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:331:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 331 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:347:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 347 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:391:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 391 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:392:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 392 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/80/805ca3e358a6bb528361d380969e917a b/device/gxx-linux/build/.build_cache/80/805ca3e358a6bb528361d380969e917a new file mode 100644 index 0000000..0f43696 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/80/805ca3e358a6bb528361d380969e917a differ diff --git a/device/gxx-linux/build/.build_cache/81/81203511373e57e6539d7379215ecdbd b/device/gxx-linux/build/.build_cache/81/81203511373e57e6539d7379215ecdbd new file mode 100644 index 0000000..a73e30f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/81/81203511373e57e6539d7379215ecdbd differ diff --git a/device/gxx-linux/build/.build_cache/81/81203511373e57e6539d7379215ecdbd.txt b/device/gxx-linux/build/.build_cache/81/81203511373e57e6539d7379215ecdbd.txt new file mode 100644 index 0000000..6173532 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/81/81203511373e57e6539d7379215ecdbd.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:327:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 327 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:343:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 343 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:387:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 387 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:388:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 388 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/83/83a9712972e31cb1a004549e118be322 b/device/gxx-linux/build/.build_cache/83/83a9712972e31cb1a004549e118be322 new file mode 100644 index 0000000..51c12f6 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/83/83a9712972e31cb1a004549e118be322 differ diff --git a/device/gxx-linux/build/.build_cache/83/83a9712972e31cb1a004549e118be322.txt b/device/gxx-linux/build/.build_cache/83/83a9712972e31cb1a004549e118be322.txt new file mode 100644 index 0000000..4b38617 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/83/83a9712972e31cb1a004549e118be322.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Ktestmotorboard/main.cpp:6\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : u32\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Ktestmotorboard/main.cpp:6\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/85/859dd6ce1911a5baaccb3389864510f7 b/device/gxx-linux/build/.build_cache/85/859dd6ce1911a5baaccb3389864510f7 new file mode 100644 index 0000000..1e027cc Binary files /dev/null and b/device/gxx-linux/build/.build_cache/85/859dd6ce1911a5baaccb3389864510f7 differ diff --git a/device/gxx-linux/build/.build_cache/85/859dd6ce1911a5baaccb3389864510f7.txt b/device/gxx-linux/build/.build_cache/85/859dd6ce1911a5baaccb3389864510f7.txt new file mode 100644 index 0000000..bc3d21b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/85/859dd6ce1911a5baaccb3389864510f7.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:335:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 335 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:355:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 355 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:402:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 402 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:403:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 403 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/85/85faf23a6be6dd96a01a496bf00547ff b/device/gxx-linux/build/.build_cache/85/85faf23a6be6dd96a01a496bf00547ff new file mode 100644 index 0000000..8e2c0e1 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/85/85faf23a6be6dd96a01a496bf00547ff differ diff --git a/device/gxx-linux/build/.build_cache/85/85faf23a6be6dd96a01a496bf00547ff.txt b/device/gxx-linux/build/.build_cache/85/85faf23a6be6dd96a01a496bf00547ff.txt new file mode 100644 index 0000000..118c250 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/85/85faf23a6be6dd96a01a496bf00547ff.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:331:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 331 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:347:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 347 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:391:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 391 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:392:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 392 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/86/86df27b46ce412bc7c50d695292ad4c8 b/device/gxx-linux/build/.build_cache/86/86df27b46ce412bc7c50d695292ad4c8 new file mode 100644 index 0000000..e69de29 diff --git a/device/gxx-linux/build/.build_cache/86/86df27b46ce412bc7c50d695292ad4c8.txt b/device/gxx-linux/build/.build_cache/86/86df27b46ce412bc7c50d695292ad4c8.txt new file mode 100644 index 0000000..9baa36f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/86/86df27b46ce412bc7c50d695292ad4c8.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:339:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 339 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:359:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 359 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:406:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 406 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:407:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 407 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/87/87e41bf0669c0ecead12200508d46382 b/device/gxx-linux/build/.build_cache/87/87e41bf0669c0ecead12200508d46382 new file mode 100644 index 0000000..d6e7a99 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/87/87e41bf0669c0ecead12200508d46382 differ diff --git a/device/gxx-linux/build/.build_cache/87/87e41bf0669c0ecead12200508d46382.txt b/device/gxx-linux/build/.build_cache/87/87e41bf0669c0ecead12200508d46382.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/87/87e41bf0669c0ecead12200508d46382.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/88/887b97f62157c5418015bfb1c846ef90 b/device/gxx-linux/build/.build_cache/88/887b97f62157c5418015bfb1c846ef90 new file mode 100644 index 0000000..391bd85 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/88/887b97f62157c5418015bfb1c846ef90 differ diff --git a/device/gxx-linux/build/.build_cache/88/887b97f62157c5418015bfb1c846ef90.txt b/device/gxx-linux/build/.build_cache/88/887b97f62157c5418015bfb1c846ef90.txt new file mode 100644 index 0000000..3fb5847 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/88/887b97f62157c5418015bfb1c846ef90.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:344:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 344 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:364:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 364 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:411:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 411 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:412:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 412 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/89/898a0a564cb2ef4fae3bac791f670ba6 b/device/gxx-linux/build/.build_cache/89/898a0a564cb2ef4fae3bac791f670ba6 new file mode 100644 index 0000000..834831c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/89/898a0a564cb2ef4fae3bac791f670ba6 differ diff --git a/device/gxx-linux/build/.build_cache/89/898a0a564cb2ef4fae3bac791f670ba6.txt b/device/gxx-linux/build/.build_cache/89/898a0a564cb2ef4fae3bac791f670ba6.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/89/898a0a564cb2ef4fae3bac791f670ba6.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/8c/8c199849a8be8fc4095fee89125f5f0e b/device/gxx-linux/build/.build_cache/8c/8c199849a8be8fc4095fee89125f5f0e new file mode 100644 index 0000000..179b496 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/8c/8c199849a8be8fc4095fee89125f5f0e differ diff --git a/device/gxx-linux/build/.build_cache/8c/8ca67609afe72b17703c18f58124a2ad b/device/gxx-linux/build/.build_cache/8c/8ca67609afe72b17703c18f58124a2ad new file mode 100644 index 0000000..8ff4fe8 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/8c/8ca67609afe72b17703c18f58124a2ad differ diff --git a/device/gxx-linux/build/.build_cache/8c/8ceaf5ca9bd789c7e9410a629ab9bff4 b/device/gxx-linux/build/.build_cache/8c/8ceaf5ca9bd789c7e9410a629ab9bff4 new file mode 100644 index 0000000..e8a6679 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/8c/8ceaf5ca9bd789c7e9410a629ab9bff4 differ diff --git a/device/gxx-linux/build/.build_cache/8c/8ceaf5ca9bd789c7e9410a629ab9bff4.txt b/device/gxx-linux/build/.build_cache/8c/8ceaf5ca9bd789c7e9410a629ab9bff4.txt new file mode 100644 index 0000000..d477174 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/8c/8ceaf5ca9bd789c7e9410a629ab9bff4.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:338:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 338 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:358:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 358 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:407:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 407 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:408:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 408 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/8e/8eb6668a5f753ac0e462397d2ba281d1 b/device/gxx-linux/build/.build_cache/8e/8eb6668a5f753ac0e462397d2ba281d1 new file mode 100644 index 0000000..b5425ea Binary files /dev/null and b/device/gxx-linux/build/.build_cache/8e/8eb6668a5f753ac0e462397d2ba281d1 differ diff --git a/device/gxx-linux/build/.build_cache/8e/8eb6668a5f753ac0e462397d2ba281d1.txt b/device/gxx-linux/build/.build_cache/8e/8eb6668a5f753ac0e462397d2ba281d1.txt new file mode 100644 index 0000000..0863bdb --- /dev/null +++ b/device/gxx-linux/build/.build_cache/8e/8eb6668a5f753ac0e462397d2ba281d1.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:324:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 324 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:340:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 340 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:384:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 384 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/90/907d8247f698eb43ca2f91e7b15b06ae b/device/gxx-linux/build/.build_cache/90/907d8247f698eb43ca2f91e7b15b06ae new file mode 100644 index 0000000..5443f5f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/90/907d8247f698eb43ca2f91e7b15b06ae differ diff --git a/device/gxx-linux/build/.build_cache/90/907d8247f698eb43ca2f91e7b15b06ae.txt b/device/gxx-linux/build/.build_cache/90/907d8247f698eb43ca2f91e7b15b06ae.txt new file mode 100644 index 0000000..14aae14 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/90/907d8247f698eb43ca2f91e7b15b06ae.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:338:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 338 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:358:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 358 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:406:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 406 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/91/916a33528768c21e0d859c25f0831cbd b/device/gxx-linux/build/.build_cache/91/916a33528768c21e0d859c25f0831cbd new file mode 100644 index 0000000..5397984 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/91/916a33528768c21e0d859c25f0831cbd differ diff --git a/device/gxx-linux/build/.build_cache/91/916a33528768c21e0d859c25f0831cbd.txt b/device/gxx-linux/build/.build_cache/91/916a33528768c21e0d859c25f0831cbd.txt new file mode 100644 index 0000000..6173532 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/91/916a33528768c21e0d859c25f0831cbd.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:327:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 327 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:343:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 343 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:387:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 387 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:388:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 388 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/92/929e9e852b9ab4869ef2a39d2c685f37 b/device/gxx-linux/build/.build_cache/92/929e9e852b9ab4869ef2a39d2c685f37 new file mode 100644 index 0000000..cae6de6 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/92/929e9e852b9ab4869ef2a39d2c685f37 differ diff --git a/device/gxx-linux/build/.build_cache/92/92a212203b7c602b5e0bb2b4bd6d47fa b/device/gxx-linux/build/.build_cache/92/92a212203b7c602b5e0bb2b4bd6d47fa new file mode 100644 index 0000000..a5373ef Binary files /dev/null and b/device/gxx-linux/build/.build_cache/92/92a212203b7c602b5e0bb2b4bd6d47fa differ diff --git a/device/gxx-linux/build/.build_cache/92/92a212203b7c602b5e0bb2b4bd6d47fa.txt b/device/gxx-linux/build/.build_cache/92/92a212203b7c602b5e0bb2b4bd6d47fa.txt new file mode 100644 index 0000000..6173532 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/92/92a212203b7c602b5e0bb2b4bd6d47fa.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:327:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 327 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:343:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 343 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:387:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 387 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:388:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 388 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/93/93fe4c1ecc24249fcf70e1a3d507e678 b/device/gxx-linux/build/.build_cache/93/93fe4c1ecc24249fcf70e1a3d507e678 new file mode 100644 index 0000000..d50f10b Binary files /dev/null and b/device/gxx-linux/build/.build_cache/93/93fe4c1ecc24249fcf70e1a3d507e678 differ diff --git a/device/gxx-linux/build/.build_cache/93/93fe4c1ecc24249fcf70e1a3d507e678.txt b/device/gxx-linux/build/.build_cache/93/93fe4c1ecc24249fcf70e1a3d507e678.txt new file mode 100644 index 0000000..84079e8 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/93/93fe4c1ecc24249fcf70e1a3d507e678.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:337:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 337 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:357:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 357 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/94/94717055e5a1b31e076d419c1de2d0a1 b/device/gxx-linux/build/.build_cache/94/94717055e5a1b31e076d419c1de2d0a1 new file mode 100644 index 0000000..09acdf5 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/94/94717055e5a1b31e076d419c1de2d0a1 differ diff --git a/device/gxx-linux/build/.build_cache/95/951320c9e66716e2340061bf36131801 b/device/gxx-linux/build/.build_cache/95/951320c9e66716e2340061bf36131801 new file mode 100644 index 0000000..40099a7 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/95/951320c9e66716e2340061bf36131801 differ diff --git a/device/gxx-linux/build/.build_cache/95/951320c9e66716e2340061bf36131801.txt b/device/gxx-linux/build/.build_cache/95/951320c9e66716e2340061bf36131801.txt new file mode 100644 index 0000000..dbb20f3 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/95/951320c9e66716e2340061bf36131801.txt @@ -0,0 +1,17 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/deviceconfig.cpp:5\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/deviceconfig.cpp:5\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/95/9570e23739593b080af4cda42d48ba95 b/device/gxx-linux/build/.build_cache/95/9570e23739593b080af4cda42d48ba95 new file mode 100644 index 0000000..dd969d7 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/95/9570e23739593b080af4cda42d48ba95 differ diff --git a/device/gxx-linux/build/.build_cache/97/97bb690f9f517d7ee3bfcd0926048dfa b/device/gxx-linux/build/.build_cache/97/97bb690f9f517d7ee3bfcd0926048dfa new file mode 100644 index 0000000..56b4128 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/97/97bb690f9f517d7ee3bfcd0926048dfa differ diff --git a/device/gxx-linux/build/.build_cache/98/984bc511e85b9ce31d50ace80d0012e0 b/device/gxx-linux/build/.build_cache/98/984bc511e85b9ce31d50ace80d0012e0 new file mode 100644 index 0000000..dacca8f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/98/984bc511e85b9ce31d50ace80d0012e0 differ diff --git a/device/gxx-linux/build/.build_cache/98/988b8eb7735d4fc27456e13c0fd88821 b/device/gxx-linux/build/.build_cache/98/988b8eb7735d4fc27456e13c0fd88821 new file mode 100644 index 0000000..f54f8f0 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/98/988b8eb7735d4fc27456e13c0fd88821 differ diff --git a/device/gxx-linux/build/.build_cache/98/988b8eb7735d4fc27456e13c0fd88821.txt b/device/gxx-linux/build/.build_cache/98/988b8eb7735d4fc27456e13c0fd88821.txt new file mode 100644 index 0000000..d788eaf --- /dev/null +++ b/device/gxx-linux/build/.build_cache/98/988b8eb7735d4fc27456e13c0fd88821.txt @@ -0,0 +1,31 @@ +{ + errdata = "In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Kmotorboard/motorboard.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Kmotorboard/motorboard.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kbool MotorBoard::get_doublle_inpect()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:177:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + 177 | \27[01;35m\27[K}\27[m\27[K\ + | \27[01;35m\27[K^\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kbool MotorBoard::get_staple_inpect()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:200:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + 200 | \27[01;35m\27[K}\27[m\27[K\ + | \27[01;35m\27[K^\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint MotorBoard::get_color_mode()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:212:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + 212 | \27[01;35m\27[K}\27[m\27[K\ + | \27[01;35m\27[K^\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/98/988ce737ff2abe88716dbbb6c3d041f2 b/device/gxx-linux/build/.build_cache/98/988ce737ff2abe88716dbbb6c3d041f2 new file mode 100644 index 0000000..6e4964f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/98/988ce737ff2abe88716dbbb6c3d041f2 differ diff --git a/device/gxx-linux/build/.build_cache/98/988ce737ff2abe88716dbbb6c3d041f2.txt b/device/gxx-linux/build/.build_cache/98/988ce737ff2abe88716dbbb6c3d041f2.txt new file mode 100644 index 0000000..809a37f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/98/988ce737ff2abe88716dbbb6c3d041f2.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:361:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 361 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:408:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 408 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:409:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 409 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/9c/9cb2110bb73be1d7e78d2c7ab0d712ef b/device/gxx-linux/build/.build_cache/9c/9cb2110bb73be1d7e78d2c7ab0d712ef new file mode 100644 index 0000000..a046226 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/9c/9cb2110bb73be1d7e78d2c7ab0d712ef differ diff --git a/device/gxx-linux/build/.build_cache/9c/9cb2110bb73be1d7e78d2c7ab0d712ef.txt b/device/gxx-linux/build/.build_cache/9c/9cb2110bb73be1d7e78d2c7ab0d712ef.txt new file mode 100644 index 0000000..d26e5d6 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/9c/9cb2110bb73be1d7e78d2c7ab0d712ef.txt @@ -0,0 +1,31 @@ +{ + errdata = "In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Kmotorboard/motorboard.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Kmotorboard/motorboard.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kbool MotorBoard::get_doublle_inpect()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:177:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + \27[01;35m\27[K}\27[m\27[K\ + \27[01;35m\27[K^\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kbool MotorBoard::get_staple_inpect()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:200:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + \27[01;35m\27[K}\27[m\27[K\ + \27[01;35m\27[K^\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint MotorBoard::get_color_mode()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:212:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + \27[01;35m\27[K}\27[m\27[K\ + \27[01;35m\27[K^\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/9d/9d23dd750ea41f93c3a716acc7252009 b/device/gxx-linux/build/.build_cache/9d/9d23dd750ea41f93c3a716acc7252009 new file mode 100644 index 0000000..bd8c50e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/9d/9d23dd750ea41f93c3a716acc7252009 differ diff --git a/device/gxx-linux/build/.build_cache/9d/9d23dd750ea41f93c3a716acc7252009.txt b/device/gxx-linux/build/.build_cache/9d/9d23dd750ea41f93c3a716acc7252009.txt new file mode 100644 index 0000000..84079e8 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/9d/9d23dd750ea41f93c3a716acc7252009.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:337:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 337 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:357:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 357 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/9d/9dab4bd415bc2e084bcf4619bab09cc3 b/device/gxx-linux/build/.build_cache/9d/9dab4bd415bc2e084bcf4619bab09cc3 new file mode 100644 index 0000000..44e2804 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/9d/9dab4bd415bc2e084bcf4619bab09cc3 differ diff --git a/device/gxx-linux/build/.build_cache/9d/9dab4bd415bc2e084bcf4619bab09cc3.txt b/device/gxx-linux/build/.build_cache/9d/9dab4bd415bc2e084bcf4619bab09cc3.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/9d/9dab4bd415bc2e084bcf4619bab09cc3.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/9d/9dc096e2c02825f3b93800b58fb73342 b/device/gxx-linux/build/.build_cache/9d/9dc096e2c02825f3b93800b58fb73342 new file mode 100644 index 0000000..eda30e9 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/9d/9dc096e2c02825f3b93800b58fb73342 differ diff --git a/device/gxx-linux/build/.build_cache/9d/9dc096e2c02825f3b93800b58fb73342.txt b/device/gxx-linux/build/.build_cache/9d/9dc096e2c02825f3b93800b58fb73342.txt new file mode 100644 index 0000000..630a192 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/9d/9dc096e2c02825f3b93800b58fb73342.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestcapimage/main.cpp:5\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestcapimage/main.cpp:5\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/a2/a2d92ef327a1ae500382ee03c10618c0 b/device/gxx-linux/build/.build_cache/a2/a2d92ef327a1ae500382ee03c10618c0 new file mode 100644 index 0000000..371046d Binary files /dev/null and b/device/gxx-linux/build/.build_cache/a2/a2d92ef327a1ae500382ee03c10618c0 differ diff --git a/device/gxx-linux/build/.build_cache/a2/a2d92ef327a1ae500382ee03c10618c0.txt b/device/gxx-linux/build/.build_cache/a2/a2d92ef327a1ae500382ee03c10618c0.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/a2/a2d92ef327a1ae500382ee03c10618c0.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/a4/a415644af6c979fc131d88ea0144a244 b/device/gxx-linux/build/.build_cache/a4/a415644af6c979fc131d88ea0144a244 new file mode 100644 index 0000000..7822039 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/a4/a415644af6c979fc131d88ea0144a244 differ diff --git a/device/gxx-linux/build/.build_cache/a4/a415644af6c979fc131d88ea0144a244.txt b/device/gxx-linux/build/.build_cache/a4/a415644af6c979fc131d88ea0144a244.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/a4/a415644af6c979fc131d88ea0144a244.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/a4/a4a6a1ffbdc771cb1da8f760b3c21b90 b/device/gxx-linux/build/.build_cache/a4/a4a6a1ffbdc771cb1da8f760b3c21b90 new file mode 100644 index 0000000..67f1e0e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/a4/a4a6a1ffbdc771cb1da8f760b3c21b90 differ diff --git a/device/gxx-linux/build/.build_cache/a5/a5554172b200234227013bfda49f47fd b/device/gxx-linux/build/.build_cache/a5/a5554172b200234227013bfda49f47fd new file mode 100644 index 0000000..fc122ec Binary files /dev/null and b/device/gxx-linux/build/.build_cache/a5/a5554172b200234227013bfda49f47fd differ diff --git a/device/gxx-linux/build/.build_cache/a5/a5554172b200234227013bfda49f47fd.txt b/device/gxx-linux/build/.build_cache/a5/a5554172b200234227013bfda49f47fd.txt new file mode 100644 index 0000000..6fe5a3b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/a5/a5554172b200234227013bfda49f47fd.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:327:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 327 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:335:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 335 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:660:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 660 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/a5/a59696a885f9ddaf18becfc3b0cec0bf b/device/gxx-linux/build/.build_cache/a5/a59696a885f9ddaf18becfc3b0cec0bf new file mode 100644 index 0000000..8a1102d Binary files /dev/null and b/device/gxx-linux/build/.build_cache/a5/a59696a885f9ddaf18becfc3b0cec0bf differ diff --git a/device/gxx-linux/build/.build_cache/a5/a59696a885f9ddaf18becfc3b0cec0bf.txt b/device/gxx-linux/build/.build_cache/a5/a59696a885f9ddaf18becfc3b0cec0bf.txt new file mode 100644 index 0000000..aca542b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/a5/a59696a885f9ddaf18becfc3b0cec0bf.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:326:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 326 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:334:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 334 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:659:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 659 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/a5/a5a9d83dc827dba0d0f6e3935fdaa8c5 b/device/gxx-linux/build/.build_cache/a5/a5a9d83dc827dba0d0f6e3935fdaa8c5 new file mode 100644 index 0000000..dbd26d3 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/a5/a5a9d83dc827dba0d0f6e3935fdaa8c5 differ diff --git a/device/gxx-linux/build/.build_cache/a5/a5a9d83dc827dba0d0f6e3935fdaa8c5.txt b/device/gxx-linux/build/.build_cache/a5/a5a9d83dc827dba0d0f6e3935fdaa8c5.txt new file mode 100644 index 0000000..84079e8 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/a5/a5a9d83dc827dba0d0f6e3935fdaa8c5.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:337:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 337 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:357:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 357 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/a7/a7c28a45fcd4ec462e5badd31e76ec4a b/device/gxx-linux/build/.build_cache/a7/a7c28a45fcd4ec462e5badd31e76ec4a new file mode 100644 index 0000000..cbb4334 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/a7/a7c28a45fcd4ec462e5badd31e76ec4a differ diff --git a/device/gxx-linux/build/.build_cache/a7/a7c28a45fcd4ec462e5badd31e76ec4a.txt b/device/gxx-linux/build/.build_cache/a7/a7c28a45fcd4ec462e5badd31e76ec4a.txt new file mode 100644 index 0000000..809a37f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/a7/a7c28a45fcd4ec462e5badd31e76ec4a.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:361:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 361 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:408:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 408 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:409:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 409 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/a9/a9af8b9fd09bed27574f923436772b28 b/device/gxx-linux/build/.build_cache/a9/a9af8b9fd09bed27574f923436772b28 new file mode 100644 index 0000000..507cc70 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/a9/a9af8b9fd09bed27574f923436772b28 differ diff --git a/device/gxx-linux/build/.build_cache/a9/a9af8b9fd09bed27574f923436772b28.txt b/device/gxx-linux/build/.build_cache/a9/a9af8b9fd09bed27574f923436772b28.txt new file mode 100644 index 0000000..14aae14 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/a9/a9af8b9fd09bed27574f923436772b28.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:338:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 338 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:358:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 358 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:406:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 406 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/a9/a9edbd0a67604ca6d509761b20a4ceee b/device/gxx-linux/build/.build_cache/a9/a9edbd0a67604ca6d509761b20a4ceee new file mode 100644 index 0000000..f54f8f0 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/a9/a9edbd0a67604ca6d509761b20a4ceee differ diff --git a/device/gxx-linux/build/.build_cache/a9/a9edbd0a67604ca6d509761b20a4ceee.txt b/device/gxx-linux/build/.build_cache/a9/a9edbd0a67604ca6d509761b20a4ceee.txt new file mode 100644 index 0000000..bfb2e9f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/a9/a9edbd0a67604ca6d509761b20a4ceee.txt @@ -0,0 +1,31 @@ +{ + errdata = "In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Kmotorboard/motorboard.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Kmotorboard/motorboard.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kbool MotorBoard::get_doublle_inpect()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:177:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + 177 | \27[01;35m\27[K}\27[m\27[K\ + | \27[01;35m\27[K^\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kbool MotorBoard::get_staple_inpect()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:200:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + 200 | \27[01;35m\27[K}\27[m\27[K\ + | \27[01;35m\27[K^\27[m\27[K\ +\27[01m\27[Kmotorboard/motorboard.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint MotorBoard::get_color_mode()\27[m\27[K’:\ +\27[01m\27[Kmotorboard/motorboard.cpp:212:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kno return statement in function returning non-void [\27[01;35m\27[K-Wreturn-type\27[m\27[K]\ + 212 | \27[01;35m\27[K}\27[m\27[K\ + | \27[01;35m\27[K^\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/aa/aa67b4f031d6c4d387d4e0fbf6a7683b b/device/gxx-linux/build/.build_cache/aa/aa67b4f031d6c4d387d4e0fbf6a7683b new file mode 100644 index 0000000..77698c3 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/aa/aa67b4f031d6c4d387d4e0fbf6a7683b differ diff --git a/device/gxx-linux/build/.build_cache/aa/aa67b4f031d6c4d387d4e0fbf6a7683b.txt b/device/gxx-linux/build/.build_cache/aa/aa67b4f031d6c4d387d4e0fbf6a7683b.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/aa/aa67b4f031d6c4d387d4e0fbf6a7683b.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/ab/ab0bfe11fa68ed764603ae473b6fed61 b/device/gxx-linux/build/.build_cache/ab/ab0bfe11fa68ed764603ae473b6fed61 new file mode 100644 index 0000000..db97b2d Binary files /dev/null and b/device/gxx-linux/build/.build_cache/ab/ab0bfe11fa68ed764603ae473b6fed61 differ diff --git a/device/gxx-linux/build/.build_cache/ab/ab0bfe11fa68ed764603ae473b6fed61.txt b/device/gxx-linux/build/.build_cache/ab/ab0bfe11fa68ed764603ae473b6fed61.txt new file mode 100644 index 0000000..0863bdb --- /dev/null +++ b/device/gxx-linux/build/.build_cache/ab/ab0bfe11fa68ed764603ae473b6fed61.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:324:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 324 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:340:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 340 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:384:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 384 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/ac/acf0ef337b031472807b7de1dd81d10e b/device/gxx-linux/build/.build_cache/ac/acf0ef337b031472807b7de1dd81d10e new file mode 100644 index 0000000..be983ec Binary files /dev/null and b/device/gxx-linux/build/.build_cache/ac/acf0ef337b031472807b7de1dd81d10e differ diff --git a/device/gxx-linux/build/.build_cache/ad/adf82ef4913d2ced4f474ea9b312021e b/device/gxx-linux/build/.build_cache/ad/adf82ef4913d2ced4f474ea9b312021e new file mode 100644 index 0000000..a93d480 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/ad/adf82ef4913d2ced4f474ea9b312021e differ diff --git a/device/gxx-linux/build/.build_cache/b1/b1001df1449e5746ad54f89352628140 b/device/gxx-linux/build/.build_cache/b1/b1001df1449e5746ad54f89352628140 new file mode 100644 index 0000000..051559f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b1/b1001df1449e5746ad54f89352628140 differ diff --git a/device/gxx-linux/build/.build_cache/b1/b1001df1449e5746ad54f89352628140.txt b/device/gxx-linux/build/.build_cache/b1/b1001df1449e5746ad54f89352628140.txt new file mode 100644 index 0000000..6173532 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b1/b1001df1449e5746ad54f89352628140.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:327:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 327 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:343:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 343 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:387:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 387 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:388:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 388 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/b1/b117199da055695028fa7e772342dc96 b/device/gxx-linux/build/.build_cache/b1/b117199da055695028fa7e772342dc96 new file mode 100644 index 0000000..6c8221e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b1/b117199da055695028fa7e772342dc96 differ diff --git a/device/gxx-linux/build/.build_cache/b1/b19c0483b4390f27cd2d4c58018f9b38 b/device/gxx-linux/build/.build_cache/b1/b19c0483b4390f27cd2d4c58018f9b38 new file mode 100644 index 0000000..658ef20 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b1/b19c0483b4390f27cd2d4c58018f9b38 differ diff --git a/device/gxx-linux/build/.build_cache/b1/b19c0483b4390f27cd2d4c58018f9b38.txt b/device/gxx-linux/build/.build_cache/b1/b19c0483b4390f27cd2d4c58018f9b38.txt new file mode 100644 index 0000000..7e28f52 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b1/b19c0483b4390f27cd2d4c58018f9b38.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/fsmstate.cpp:2\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : u32\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/fsmstate.cpp:2\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/b3/b32772bb73c6d6ce90fffd71d38d6033 b/device/gxx-linux/build/.build_cache/b3/b32772bb73c6d6ce90fffd71d38d6033 new file mode 100644 index 0000000..ed77a22 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b3/b32772bb73c6d6ce90fffd71d38d6033 differ diff --git a/device/gxx-linux/build/.build_cache/b3/b32772bb73c6d6ce90fffd71d38d6033.txt b/device/gxx-linux/build/.build_cache/b3/b32772bb73c6d6ce90fffd71d38d6033.txt new file mode 100644 index 0000000..82d950f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b3/b32772bb73c6d6ce90fffd71d38d6033.txt @@ -0,0 +1,21 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/b5/b57a0d95dea76a2ca5ba4fe7218ce5fe b/device/gxx-linux/build/.build_cache/b5/b57a0d95dea76a2ca5ba4fe7218ce5fe new file mode 100644 index 0000000..16b00bc Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b5/b57a0d95dea76a2ca5ba4fe7218ce5fe differ diff --git a/device/gxx-linux/build/.build_cache/b5/b57a0d95dea76a2ca5ba4fe7218ce5fe.txt b/device/gxx-linux/build/.build_cache/b5/b57a0d95dea76a2ca5ba4fe7218ce5fe.txt new file mode 100644 index 0000000..3d25eea --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b5/b57a0d95dea76a2ca5ba4fe7218ce5fe.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:325:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 325 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:333:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 333 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:658:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 658 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/b6/b694e0ecd6386394d10defc8f2974047 b/device/gxx-linux/build/.build_cache/b6/b694e0ecd6386394d10defc8f2974047 new file mode 100644 index 0000000..78048d2 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b6/b694e0ecd6386394d10defc8f2974047 differ diff --git a/device/gxx-linux/build/.build_cache/b6/b694e0ecd6386394d10defc8f2974047.txt b/device/gxx-linux/build/.build_cache/b6/b694e0ecd6386394d10defc8f2974047.txt new file mode 100644 index 0000000..9b4d1b2 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b6/b694e0ecd6386394d10defc8f2974047.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Kcapimage/Capturer.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Kcapimage/Capturer.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/b6/b6a7b6022866c32f358cd8f79a507fd9 b/device/gxx-linux/build/.build_cache/b6/b6a7b6022866c32f358cd8f79a507fd9 new file mode 100644 index 0000000..43561de Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b6/b6a7b6022866c32f358cd8f79a507fd9 differ diff --git a/device/gxx-linux/build/.build_cache/b6/b6a7b6022866c32f358cd8f79a507fd9.txt b/device/gxx-linux/build/.build_cache/b6/b6a7b6022866c32f358cd8f79a507fd9.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b6/b6a7b6022866c32f358cd8f79a507fd9.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/b6/b6b22aa6322dd1f9a51eacf02e30cf34 b/device/gxx-linux/build/.build_cache/b6/b6b22aa6322dd1f9a51eacf02e30cf34 new file mode 100644 index 0000000..d00f0c7 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b6/b6b22aa6322dd1f9a51eacf02e30cf34 differ diff --git a/device/gxx-linux/build/.build_cache/b6/b6b22aa6322dd1f9a51eacf02e30cf34.txt b/device/gxx-linux/build/.build_cache/b6/b6b22aa6322dd1f9a51eacf02e30cf34.txt new file mode 100644 index 0000000..f810022 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b6/b6b22aa6322dd1f9a51eacf02e30cf34.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Kscanservice/main.cpp:16\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Kscanservice/main.cpp:16\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/b7/b705da4edf62038e4529950d57355a15 b/device/gxx-linux/build/.build_cache/b7/b705da4edf62038e4529950d57355a15 new file mode 100644 index 0000000..6ca2090 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b7/b705da4edf62038e4529950d57355a15 differ diff --git a/device/gxx-linux/build/.build_cache/b7/b705da4edf62038e4529950d57355a15.txt b/device/gxx-linux/build/.build_cache/b7/b705da4edf62038e4529950d57355a15.txt new file mode 100644 index 0000000..26ebb11 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b7/b705da4edf62038e4529950d57355a15.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/jsonconfig.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/jsonconfig.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/b7/b755f6ecfc6425a72b211792abd9bdea b/device/gxx-linux/build/.build_cache/b7/b755f6ecfc6425a72b211792abd9bdea new file mode 100644 index 0000000..97f756d Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b7/b755f6ecfc6425a72b211792abd9bdea differ diff --git a/device/gxx-linux/build/.build_cache/b8/b849e6655f826812ed5467b2b13e5dc0 b/device/gxx-linux/build/.build_cache/b8/b849e6655f826812ed5467b2b13e5dc0 new file mode 100644 index 0000000..66aa9bc Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b8/b849e6655f826812ed5467b2b13e5dc0 differ diff --git a/device/gxx-linux/build/.build_cache/b8/b849e6655f826812ed5467b2b13e5dc0.txt b/device/gxx-linux/build/.build_cache/b8/b849e6655f826812ed5467b2b13e5dc0.txt new file mode 100644 index 0000000..118c250 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b8/b849e6655f826812ed5467b2b13e5dc0.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:331:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 331 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:347:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 347 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:391:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 391 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:392:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 392 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/b9/b92f27678219d1f25754ff74dd00907c b/device/gxx-linux/build/.build_cache/b9/b92f27678219d1f25754ff74dd00907c new file mode 100644 index 0000000..f4d22b4 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b9/b92f27678219d1f25754ff74dd00907c differ diff --git a/device/gxx-linux/build/.build_cache/b9/b998769f85f4e6218e0fae9d8a70571f b/device/gxx-linux/build/.build_cache/b9/b998769f85f4e6218e0fae9d8a70571f new file mode 100644 index 0000000..75b309c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b9/b998769f85f4e6218e0fae9d8a70571f differ diff --git a/device/gxx-linux/build/.build_cache/b9/b998769f85f4e6218e0fae9d8a70571f.txt b/device/gxx-linux/build/.build_cache/b9/b998769f85f4e6218e0fae9d8a70571f.txt new file mode 100644 index 0000000..a8f514f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b9/b998769f85f4e6218e0fae9d8a70571f.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:328:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 328 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:336:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 336 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:661:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 661 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/b9/b9fa21fd7f2bcc0316715263cbce9102 b/device/gxx-linux/build/.build_cache/b9/b9fa21fd7f2bcc0316715263cbce9102 new file mode 100644 index 0000000..f9c9fcd Binary files /dev/null and b/device/gxx-linux/build/.build_cache/b9/b9fa21fd7f2bcc0316715263cbce9102 differ diff --git a/device/gxx-linux/build/.build_cache/b9/b9fa21fd7f2bcc0316715263cbce9102.txt b/device/gxx-linux/build/.build_cache/b9/b9fa21fd7f2bcc0316715263cbce9102.txt new file mode 100644 index 0000000..84079e8 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/b9/b9fa21fd7f2bcc0316715263cbce9102.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:337:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 337 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:357:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 357 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:404:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 404 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/bb/bb1e03b680e8567016d0654f417d8026 b/device/gxx-linux/build/.build_cache/bb/bb1e03b680e8567016d0654f417d8026 new file mode 100644 index 0000000..bb7651b Binary files /dev/null and b/device/gxx-linux/build/.build_cache/bb/bb1e03b680e8567016d0654f417d8026 differ diff --git a/device/gxx-linux/build/.build_cache/bb/bb1e03b680e8567016d0654f417d8026.txt b/device/gxx-linux/build/.build_cache/bb/bb1e03b680e8567016d0654f417d8026.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/bb/bb1e03b680e8567016d0654f417d8026.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/bb/bb6aa2a5143cf83f05dc16459535435e b/device/gxx-linux/build/.build_cache/bb/bb6aa2a5143cf83f05dc16459535435e new file mode 100644 index 0000000..84248a9 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/bb/bb6aa2a5143cf83f05dc16459535435e differ diff --git a/device/gxx-linux/build/.build_cache/bb/bb6aa2a5143cf83f05dc16459535435e.txt b/device/gxx-linux/build/.build_cache/bb/bb6aa2a5143cf83f05dc16459535435e.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/bb/bb6aa2a5143cf83f05dc16459535435e.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/bb/bb8b8fc13ed305b1747803d45cf8317b b/device/gxx-linux/build/.build_cache/bb/bb8b8fc13ed305b1747803d45cf8317b new file mode 100644 index 0000000..8e27af7 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/bb/bb8b8fc13ed305b1747803d45cf8317b differ diff --git a/device/gxx-linux/build/.build_cache/bb/bb8b8fc13ed305b1747803d45cf8317b.txt b/device/gxx-linux/build/.build_cache/bb/bb8b8fc13ed305b1747803d45cf8317b.txt new file mode 100644 index 0000000..6173532 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/bb/bb8b8fc13ed305b1747803d45cf8317b.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:327:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 327 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:343:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 343 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:387:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 387 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:388:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 388 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/bb/bb8d9f701097b3ca52f095df7ddb377d b/device/gxx-linux/build/.build_cache/bb/bb8d9f701097b3ca52f095df7ddb377d new file mode 100644 index 0000000..690048f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/bb/bb8d9f701097b3ca52f095df7ddb377d differ diff --git a/device/gxx-linux/build/.build_cache/bb/bb8d9f701097b3ca52f095df7ddb377d.txt b/device/gxx-linux/build/.build_cache/bb/bb8d9f701097b3ca52f095df7ddb377d.txt new file mode 100644 index 0000000..a5b623b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/bb/bb8d9f701097b3ca52f095df7ddb377d.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kservice/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kservice/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/bd/bdf28052dcdf56de21b89e5ee8cd158c b/device/gxx-linux/build/.build_cache/bd/bdf28052dcdf56de21b89e5ee8cd158c new file mode 100644 index 0000000..6ca2090 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/bd/bdf28052dcdf56de21b89e5ee8cd158c differ diff --git a/device/gxx-linux/build/.build_cache/bd/bdf28052dcdf56de21b89e5ee8cd158c.txt b/device/gxx-linux/build/.build_cache/bd/bdf28052dcdf56de21b89e5ee8cd158c.txt new file mode 100644 index 0000000..454317d --- /dev/null +++ b/device/gxx-linux/build/.build_cache/bd/bdf28052dcdf56de21b89e5ee8cd158c.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/jsonconfig.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/jsonconfig.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/be/bea6af60d445c07b9274d6a599dcb8cd b/device/gxx-linux/build/.build_cache/be/bea6af60d445c07b9274d6a599dcb8cd new file mode 100644 index 0000000..cc9435b Binary files /dev/null and b/device/gxx-linux/build/.build_cache/be/bea6af60d445c07b9274d6a599dcb8cd differ diff --git a/device/gxx-linux/build/.build_cache/bf/bf01473cd3d19e53373548681ca85282 b/device/gxx-linux/build/.build_cache/bf/bf01473cd3d19e53373548681ca85282 new file mode 100644 index 0000000..6ca2090 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/bf/bf01473cd3d19e53373548681ca85282 differ diff --git a/device/gxx-linux/build/.build_cache/bf/bf01473cd3d19e53373548681ca85282.txt b/device/gxx-linux/build/.build_cache/bf/bf01473cd3d19e53373548681ca85282.txt new file mode 100644 index 0000000..953de39 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/bf/bf01473cd3d19e53373548681ca85282.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/jsonconfig.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : u32\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/jsonconfig.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/bf/bf020318facad229955e2a9e568073fb b/device/gxx-linux/build/.build_cache/bf/bf020318facad229955e2a9e568073fb new file mode 100644 index 0000000..8d0ee78 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/bf/bf020318facad229955e2a9e568073fb differ diff --git a/device/gxx-linux/build/.build_cache/bf/bf020318facad229955e2a9e568073fb.txt b/device/gxx-linux/build/.build_cache/bf/bf020318facad229955e2a9e568073fb.txt new file mode 100644 index 0000000..4ede3f2 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/bf/bf020318facad229955e2a9e568073fb.txt @@ -0,0 +1,45 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/scanner.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:85:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcode\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 85 | HGIntInfo errType = {.From = MtBoard, .Code = \27[01;35m\27[Kcode\27[m\27[K};\ + | \27[01;35m\27[K^~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In lambda function:\ +\27[01m\27[Kscanner/scanner.cpp:158:50:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Kcap_call_code\27[m\27[K’ from ‘\27[01m\27[Kint\27[m\27[K’ to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = \27[01;35m\27[Kcap_call_code\27[m\27[K, .Img_Index = s_info.length()};\ + | \27[01;35m\27[K^~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:158:91:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Knarrowing conversion of ‘\27[01m\27[Ks_info.std::__cxx11::basic_string::length()\27[m\27[K’ from ‘\27[01m\27[Kstd::__cxx11::basic_string::size_type\27[m\27[K’ {aka ‘\27[01m\27[Klong unsigned int\27[m\27[K’} to ‘\27[01m\27[Kunsigned int\27[m\27[K’ [\27[01;35m\27[K-Wnarrowing\27[m\27[K]\ + 158 | HGIntInfo info = {.From = AutoCorrect, .Code = cap_call_code, .Img_Index = \27[01;35m\27[Ks_info.length()\27[m\27[K};\ + | \27[01;35m\27[K~~~~~~~~~~~~~^~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvoid Scanner::try_scan(std::string)\27[m\27[K’:\ +\27[01m\27[Kscanner/scanner.cpp:210:43:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kint AES_set_decrypt_key(const unsigned char*, int, AES_KEY*)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 210 | if(AES_set_decrypt_key(key,128,&aes_key\27[01;35m\27[K)\27[m\27[K< 0)\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:54:5:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 54 | int \27[01;36m\27[KAES_set_decrypt_key\27[m\27[K(const unsigned char *userKey, const int bits,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scanner.cpp:221:53:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Kvoid AES_ecb_encrypt(const unsigned char*, unsigned char*, const AES_KEY*, int)\27[m\27[K’ is deprecated: Since OpenSSL 3.0 [\27[01;35m\27[K-Wdeprecated-declarations\27[m\27[K]\ + 221 | AES_ecb_encrypt(cipher,decode,&aes_key,AES_DECRYP\27[01;35m\27[KT\27[m\27[K);\ + | \27[01;35m\27[K^\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.cpp:16\27[m\27[K:\ +\27[01m\27[K/usr/local/include/openssl/aes.h:63:6:\27[m\27[K \27[01;36m\27[Knote: \27[m\27[Kdeclared here\ + 63 | void \27[01;36m\27[KAES_ecb_encrypt\27[m\27[K(const unsigned char *in, unsigned char *out,\ + | \27[01;36m\27[K^~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/c2/c28b5ef6488186b90fef8a9b98cfe405 b/device/gxx-linux/build/.build_cache/c2/c28b5ef6488186b90fef8a9b98cfe405 new file mode 100644 index 0000000..ca03707 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/c2/c28b5ef6488186b90fef8a9b98cfe405 differ diff --git a/device/gxx-linux/build/.build_cache/c2/c28b5ef6488186b90fef8a9b98cfe405.txt b/device/gxx-linux/build/.build_cache/c2/c28b5ef6488186b90fef8a9b98cfe405.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/c2/c28b5ef6488186b90fef8a9b98cfe405.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/c2/c299dd0e8345315ea3bc02e4decc3fc4 b/device/gxx-linux/build/.build_cache/c2/c299dd0e8345315ea3bc02e4decc3fc4 new file mode 100644 index 0000000..84248a9 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/c2/c299dd0e8345315ea3bc02e4decc3fc4 differ diff --git a/device/gxx-linux/build/.build_cache/c2/c299dd0e8345315ea3bc02e4decc3fc4.txt b/device/gxx-linux/build/.build_cache/c2/c299dd0e8345315ea3bc02e4decc3fc4.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/c2/c299dd0e8345315ea3bc02e4decc3fc4.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/c3/c368cc69e189afcb1c3ca8bafad6fa0b b/device/gxx-linux/build/.build_cache/c3/c368cc69e189afcb1c3ca8bafad6fa0b new file mode 100644 index 0000000..ee55e7f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/c3/c368cc69e189afcb1c3ca8bafad6fa0b differ diff --git a/device/gxx-linux/build/.build_cache/c4/c45c0c3169c3a02e74f68fdba2e4dad4 b/device/gxx-linux/build/.build_cache/c4/c45c0c3169c3a02e74f68fdba2e4dad4 new file mode 100644 index 0000000..9fd08b1 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/c4/c45c0c3169c3a02e74f68fdba2e4dad4 differ diff --git a/device/gxx-linux/build/.build_cache/c4/c45c0c3169c3a02e74f68fdba2e4dad4.txt b/device/gxx-linux/build/.build_cache/c4/c45c0c3169c3a02e74f68fdba2e4dad4.txt new file mode 100644 index 0000000..7b37ef3 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/c4/c45c0c3169c3a02e74f68fdba2e4dad4.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kimgproc/CSizedetect.h:4\27[m\27[K,\ + from \27[01m\27[Kimgproc/CSizedetect.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : u32\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kimgproc/CSizedetect.h:4\27[m\27[K,\ + from \27[01m\27[Kimgproc/CSizedetect.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/c5/c57ca9f970fb4e114b595321a8da75a0 b/device/gxx-linux/build/.build_cache/c5/c57ca9f970fb4e114b595321a8da75a0 new file mode 100644 index 0000000..658ef20 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/c5/c57ca9f970fb4e114b595321a8da75a0 differ diff --git a/device/gxx-linux/build/.build_cache/c5/c57ca9f970fb4e114b595321a8da75a0.txt b/device/gxx-linux/build/.build_cache/c5/c57ca9f970fb4e114b595321a8da75a0.txt new file mode 100644 index 0000000..acb0172 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/c5/c57ca9f970fb4e114b595321a8da75a0.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/fsmstate.cpp:2\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Kscanner/fsmstate.cpp:2\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/c5/c5d5b75f6e4508dc0c1a46e37ff578a9 b/device/gxx-linux/build/.build_cache/c5/c5d5b75f6e4508dc0c1a46e37ff578a9 new file mode 100644 index 0000000..9dc6a76 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/c5/c5d5b75f6e4508dc0c1a46e37ff578a9 differ diff --git a/device/gxx-linux/build/.build_cache/c5/c5da4345c112f69c911d19994b9910e4 b/device/gxx-linux/build/.build_cache/c5/c5da4345c112f69c911d19994b9910e4 new file mode 100644 index 0000000..2d7c391 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/c5/c5da4345c112f69c911d19994b9910e4 differ diff --git a/device/gxx-linux/build/.build_cache/c9/c96b64768ebce9665d8e824fab46b783 b/device/gxx-linux/build/.build_cache/c9/c96b64768ebce9665d8e824fab46b783 new file mode 100644 index 0000000..40099a7 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/c9/c96b64768ebce9665d8e824fab46b783 differ diff --git a/device/gxx-linux/build/.build_cache/c9/c96b64768ebce9665d8e824fab46b783.txt b/device/gxx-linux/build/.build_cache/c9/c96b64768ebce9665d8e824fab46b783.txt new file mode 100644 index 0000000..3762f61 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/c9/c96b64768ebce9665d8e824fab46b783.txt @@ -0,0 +1,17 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/deviceconfig.cpp:5\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/deviceconfig.cpp:5\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/cb/cb1ced21ef268e879d35bd9cee02402a b/device/gxx-linux/build/.build_cache/cb/cb1ced21ef268e879d35bd9cee02402a new file mode 100644 index 0000000..de3ae8c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/cb/cb1ced21ef268e879d35bd9cee02402a differ diff --git a/device/gxx-linux/build/.build_cache/cb/cb5bb99feb8649b4dabc51c291dc8eed b/device/gxx-linux/build/.build_cache/cb/cb5bb99feb8649b4dabc51c291dc8eed new file mode 100644 index 0000000..0e9ab4c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/cb/cb5bb99feb8649b4dabc51c291dc8eed differ diff --git a/device/gxx-linux/build/.build_cache/d0/d0c2014220f711e39d598bee511bc9a7 b/device/gxx-linux/build/.build_cache/d0/d0c2014220f711e39d598bee511bc9a7 new file mode 100644 index 0000000..ab62596 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d0/d0c2014220f711e39d598bee511bc9a7 differ diff --git a/device/gxx-linux/build/.build_cache/d1/d144fe5c9a4dbca1e782f1d5051b50c0 b/device/gxx-linux/build/.build_cache/d1/d144fe5c9a4dbca1e782f1d5051b50c0 new file mode 100644 index 0000000..ceaeb23 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d1/d144fe5c9a4dbca1e782f1d5051b50c0 differ diff --git a/device/gxx-linux/build/.build_cache/d1/d144fe5c9a4dbca1e782f1d5051b50c0.txt b/device/gxx-linux/build/.build_cache/d1/d144fe5c9a4dbca1e782f1d5051b50c0.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/d1/d144fe5c9a4dbca1e782f1d5051b50c0.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/d1/d15e9e3b962828c88335163e24867c3c b/device/gxx-linux/build/.build_cache/d1/d15e9e3b962828c88335163e24867c3c new file mode 100644 index 0000000..29f91b6 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d1/d15e9e3b962828c88335163e24867c3c differ diff --git a/device/gxx-linux/build/.build_cache/d1/d1db9b0ce0945382f23832f5fead0643 b/device/gxx-linux/build/.build_cache/d1/d1db9b0ce0945382f23832f5fead0643 new file mode 100644 index 0000000..51c12f6 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d1/d1db9b0ce0945382f23832f5fead0643 differ diff --git a/device/gxx-linux/build/.build_cache/d1/d1db9b0ce0945382f23832f5fead0643.txt b/device/gxx-linux/build/.build_cache/d1/d1db9b0ce0945382f23832f5fead0643.txt new file mode 100644 index 0000000..c7b60a1 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/d1/d1db9b0ce0945382f23832f5fead0643.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Ktestmotorboard/main.cpp:6\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Ktestmotorboard/main.cpp:6\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/d1/d1f2056f4be184b5f1fabba0ebd2699d b/device/gxx-linux/build/.build_cache/d1/d1f2056f4be184b5f1fabba0ebd2699d new file mode 100644 index 0000000..d9aec6d Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d1/d1f2056f4be184b5f1fabba0ebd2699d differ diff --git a/device/gxx-linux/build/.build_cache/d1/d1fe7ddc1e864d6f345c3205cb6b17b8 b/device/gxx-linux/build/.build_cache/d1/d1fe7ddc1e864d6f345c3205cb6b17b8 new file mode 100644 index 0000000..ad21a20 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d1/d1fe7ddc1e864d6f345c3205cb6b17b8 differ diff --git a/device/gxx-linux/build/.build_cache/d1/d1fe7ddc1e864d6f345c3205cb6b17b8.txt b/device/gxx-linux/build/.build_cache/d1/d1fe7ddc1e864d6f345c3205cb6b17b8.txt new file mode 100644 index 0000000..bc3d21b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/d1/d1fe7ddc1e864d6f345c3205cb6b17b8.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:335:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 335 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:355:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 355 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:402:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 402 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:403:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 403 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/d2/d2086e0d8b2b259fda1c1cc2b87b2860 b/device/gxx-linux/build/.build_cache/d2/d2086e0d8b2b259fda1c1cc2b87b2860 new file mode 100644 index 0000000..728f9cb Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d2/d2086e0d8b2b259fda1c1cc2b87b2860 differ diff --git a/device/gxx-linux/build/.build_cache/d2/d296ca9fabc18e00f3ec99c7b7b1d696 b/device/gxx-linux/build/.build_cache/d2/d296ca9fabc18e00f3ec99c7b7b1d696 new file mode 100644 index 0000000..c3167c6 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d2/d296ca9fabc18e00f3ec99c7b7b1d696 differ diff --git a/device/gxx-linux/build/.build_cache/d2/d2d3b2aa0ef54146fc97013046dc8b70 b/device/gxx-linux/build/.build_cache/d2/d2d3b2aa0ef54146fc97013046dc8b70 new file mode 100644 index 0000000..77d10b0 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d2/d2d3b2aa0ef54146fc97013046dc8b70 differ diff --git a/device/gxx-linux/build/.build_cache/d2/d2d3b2aa0ef54146fc97013046dc8b70.txt b/device/gxx-linux/build/.build_cache/d2/d2d3b2aa0ef54146fc97013046dc8b70.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/d2/d2d3b2aa0ef54146fc97013046dc8b70.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/d4/d4f4c0d1d180433c48c9efbab33d2f88 b/device/gxx-linux/build/.build_cache/d4/d4f4c0d1d180433c48c9efbab33d2f88 new file mode 100644 index 0000000..922770c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d4/d4f4c0d1d180433c48c9efbab33d2f88 differ diff --git a/device/gxx-linux/build/.build_cache/d4/d4f4c0d1d180433c48c9efbab33d2f88.txt b/device/gxx-linux/build/.build_cache/d4/d4f4c0d1d180433c48c9efbab33d2f88.txt new file mode 100644 index 0000000..d60762e --- /dev/null +++ b/device/gxx-linux/build/.build_cache/d4/d4f4c0d1d180433c48c9efbab33d2f88.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:335:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 335 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:351:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 351 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:395:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 395 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:396:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 396 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/d6/d67c64ff601e1570c5dcc18758a8843b b/device/gxx-linux/build/.build_cache/d6/d67c64ff601e1570c5dcc18758a8843b new file mode 100644 index 0000000..9fd08b1 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d6/d67c64ff601e1570c5dcc18758a8843b differ diff --git a/device/gxx-linux/build/.build_cache/d6/d67c64ff601e1570c5dcc18758a8843b.txt b/device/gxx-linux/build/.build_cache/d6/d67c64ff601e1570c5dcc18758a8843b.txt new file mode 100644 index 0000000..fcc167d --- /dev/null +++ b/device/gxx-linux/build/.build_cache/d6/d67c64ff601e1570c5dcc18758a8843b.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kimgproc/CSizedetect.h:4\27[m\27[K,\ + from \27[01m\27[Kimgproc/CSizedetect.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 32 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 38 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 45 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kimgproc/CSizedetect.h:4\27[m\27[K,\ + from \27[01m\27[Kimgproc/CSizedetect.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 482 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/d9/d9012f66e68dfeaf69a92425d398d8e4 b/device/gxx-linux/build/.build_cache/d9/d9012f66e68dfeaf69a92425d398d8e4 new file mode 100644 index 0000000..94f8f4e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/d9/d9012f66e68dfeaf69a92425d398d8e4 differ diff --git a/device/gxx-linux/build/.build_cache/db/db30dc54d4e4c1c419696b7b391720b5 b/device/gxx-linux/build/.build_cache/db/db30dc54d4e4c1c419696b7b391720b5 new file mode 100644 index 0000000..624d906 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/db/db30dc54d4e4c1c419696b7b391720b5 differ diff --git a/device/gxx-linux/build/.build_cache/db/dbfbe1fe3c2b5c92a93d12e82135e812 b/device/gxx-linux/build/.build_cache/db/dbfbe1fe3c2b5c92a93d12e82135e812 new file mode 100644 index 0000000..c33ec34 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/db/dbfbe1fe3c2b5c92a93d12e82135e812 differ diff --git a/device/gxx-linux/build/.build_cache/db/dbfbe1fe3c2b5c92a93d12e82135e812.txt b/device/gxx-linux/build/.build_cache/db/dbfbe1fe3c2b5c92a93d12e82135e812.txt new file mode 100644 index 0000000..c0233fb --- /dev/null +++ b/device/gxx-linux/build/.build_cache/db/dbfbe1fe3c2b5c92a93d12e82135e812.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Ktestmotorboard/main.cpp:6\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:32:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:38:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:45:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kmotorboard/motorboard.h:7\27[m\27[K,\ + from \27[01m\27[Ktestmotorboard/main.cpp:6\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:482:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/dc/dc4880ec1de7c98f6efac44bf8300de6 b/device/gxx-linux/build/.build_cache/dc/dc4880ec1de7c98f6efac44bf8300de6 new file mode 100644 index 0000000..ed77a22 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/dc/dc4880ec1de7c98f6efac44bf8300de6 differ diff --git a/device/gxx-linux/build/.build_cache/dc/dc4880ec1de7c98f6efac44bf8300de6.txt b/device/gxx-linux/build/.build_cache/dc/dc4880ec1de7c98f6efac44bf8300de6.txt new file mode 100644 index 0000000..2f93d3a --- /dev/null +++ b/device/gxx-linux/build/.build_cache/dc/dc4880ec1de7c98f6efac44bf8300de6.txt @@ -0,0 +1,21 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/jsonconfig.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.h:3\27[m\27[K,\ + from \27[01m\27[Kcapimage/hgutils.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/dc/dccc8ab5f01393e96bf58c3388d90a20 b/device/gxx-linux/build/.build_cache/dc/dccc8ab5f01393e96bf58c3388d90a20 new file mode 100644 index 0000000..532d3c4 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/dc/dccc8ab5f01393e96bf58c3388d90a20 differ diff --git a/device/gxx-linux/build/.build_cache/dc/dccc8ab5f01393e96bf58c3388d90a20.txt b/device/gxx-linux/build/.build_cache/dc/dccc8ab5f01393e96bf58c3388d90a20.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/dc/dccc8ab5f01393e96bf58c3388d90a20.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/de/de62f46c3c9cb367c822eca2dad458d1 b/device/gxx-linux/build/.build_cache/de/de62f46c3c9cb367c822eca2dad458d1 new file mode 100644 index 0000000..c012764 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/de/de62f46c3c9cb367c822eca2dad458d1 differ diff --git a/device/gxx-linux/build/.build_cache/e1/e10903738863c8985777dc5487d7b7fb b/device/gxx-linux/build/.build_cache/e1/e10903738863c8985777dc5487d7b7fb new file mode 100644 index 0000000..563e419 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/e1/e10903738863c8985777dc5487d7b7fb differ diff --git a/device/gxx-linux/build/.build_cache/e1/e12d4f8eb236e8a9ab8110fb49d62af3 b/device/gxx-linux/build/.build_cache/e1/e12d4f8eb236e8a9ab8110fb49d62af3 new file mode 100644 index 0000000..92e1a86 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/e1/e12d4f8eb236e8a9ab8110fb49d62af3 differ diff --git a/device/gxx-linux/build/.build_cache/e1/e151c9aea2a8d3bbe0b02d6ea0f208fb b/device/gxx-linux/build/.build_cache/e1/e151c9aea2a8d3bbe0b02d6ea0f208fb new file mode 100644 index 0000000..06a139a Binary files /dev/null and b/device/gxx-linux/build/.build_cache/e1/e151c9aea2a8d3bbe0b02d6ea0f208fb differ diff --git a/device/gxx-linux/build/.build_cache/e1/e151c9aea2a8d3bbe0b02d6ea0f208fb.txt b/device/gxx-linux/build/.build_cache/e1/e151c9aea2a8d3bbe0b02d6ea0f208fb.txt new file mode 100644 index 0000000..be46d43 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/e1/e151c9aea2a8d3bbe0b02d6ea0f208fb.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:336:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 336 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:354:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 354 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:400:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 400 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:401:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 401 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/e3/e325964180f7da4b8a1558a56d23549e b/device/gxx-linux/build/.build_cache/e3/e325964180f7da4b8a1558a56d23549e new file mode 100644 index 0000000..de55289 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/e3/e325964180f7da4b8a1558a56d23549e differ diff --git a/device/gxx-linux/build/.build_cache/e7/e7517bcf908a4569e3b85e32d4a5c349 b/device/gxx-linux/build/.build_cache/e7/e7517bcf908a4569e3b85e32d4a5c349 new file mode 100644 index 0000000..034204c Binary files /dev/null and b/device/gxx-linux/build/.build_cache/e7/e7517bcf908a4569e3b85e32d4a5c349 differ diff --git a/device/gxx-linux/build/.build_cache/e9/e914b79c0c990c3596c97d34ffd44400 b/device/gxx-linux/build/.build_cache/e9/e914b79c0c990c3596c97d34ffd44400 new file mode 100644 index 0000000..e6c3dd3 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/e9/e914b79c0c990c3596c97d34ffd44400 differ diff --git a/device/gxx-linux/build/.build_cache/e9/e914b79c0c990c3596c97d34ffd44400.txt b/device/gxx-linux/build/.build_cache/e9/e914b79c0c990c3596c97d34ffd44400.txt new file mode 100644 index 0000000..38abaab --- /dev/null +++ b/device/gxx-linux/build/.build_cache/e9/e914b79c0c990c3596c97d34ffd44400.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Ktestscanner/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scanner.h:7\27[m\27[K,\ + from \27[01m\27[Ktestscanner/main.cpp:3\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/e9/e9a949db0c4eaa4d403f7e2371678516 b/device/gxx-linux/build/.build_cache/e9/e9a949db0c4eaa4d403f7e2371678516 new file mode 100644 index 0000000..77600fe Binary files /dev/null and b/device/gxx-linux/build/.build_cache/e9/e9a949db0c4eaa4d403f7e2371678516 differ diff --git a/device/gxx-linux/build/.build_cache/e9/e9a949db0c4eaa4d403f7e2371678516.txt b/device/gxx-linux/build/.build_cache/e9/e9a949db0c4eaa4d403f7e2371678516.txt new file mode 100644 index 0000000..aca542b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/e9/e9a949db0c4eaa4d403f7e2371678516.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:326:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 326 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:334:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 334 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:659:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 659 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/eb/ebc715485faf430144a4da24cd9a18d3 b/device/gxx-linux/build/.build_cache/eb/ebc715485faf430144a4da24cd9a18d3 new file mode 100644 index 0000000..d0c876e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/eb/ebc715485faf430144a4da24cd9a18d3 differ diff --git a/device/gxx-linux/build/.build_cache/eb/ebc715485faf430144a4da24cd9a18d3.txt b/device/gxx-linux/build/.build_cache/eb/ebc715485faf430144a4da24cd9a18d3.txt new file mode 100644 index 0000000..14aae14 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/eb/ebc715485faf430144a4da24cd9a18d3.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:338:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 338 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:358:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 358 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:405:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 405 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:406:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 406 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/eb/ebcfde6c262e31740007573dcf04b7b5 b/device/gxx-linux/build/.build_cache/eb/ebcfde6c262e31740007573dcf04b7b5 new file mode 100644 index 0000000..9e6b6b9 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/eb/ebcfde6c262e31740007573dcf04b7b5 differ diff --git a/device/gxx-linux/build/.build_cache/eb/ebde7de0eda1aced9c29cb5ded6a89cb b/device/gxx-linux/build/.build_cache/eb/ebde7de0eda1aced9c29cb5ded6a89cb new file mode 100644 index 0000000..9cfa209 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/eb/ebde7de0eda1aced9c29cb5ded6a89cb differ diff --git a/device/gxx-linux/build/.build_cache/eb/ebde7de0eda1aced9c29cb5ded6a89cb.txt b/device/gxx-linux/build/.build_cache/eb/ebde7de0eda1aced9c29cb5ded6a89cb.txt new file mode 100644 index 0000000..a8f514f --- /dev/null +++ b/device/gxx-linux/build/.build_cache/eb/ebde7de0eda1aced9c29cb5ded6a89cb.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:328:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 328 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:336:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 336 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:661:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 661 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/ee/ee861430053b01918a2575b8ff0a4e67 b/device/gxx-linux/build/.build_cache/ee/ee861430053b01918a2575b8ff0a4e67 new file mode 100644 index 0000000..11a1d6d Binary files /dev/null and b/device/gxx-linux/build/.build_cache/ee/ee861430053b01918a2575b8ff0a4e67 differ diff --git a/device/gxx-linux/build/.build_cache/ee/ee8d04e32ed2dcc7eaa864247a08eb3c b/device/gxx-linux/build/.build_cache/ee/ee8d04e32ed2dcc7eaa864247a08eb3c new file mode 100644 index 0000000..3ecb967 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/ee/ee8d04e32ed2dcc7eaa864247a08eb3c differ diff --git a/device/gxx-linux/build/.build_cache/ee/ee8d04e32ed2dcc7eaa864247a08eb3c.txt b/device/gxx-linux/build/.build_cache/ee/ee8d04e32ed2dcc7eaa864247a08eb3c.txt new file mode 100644 index 0000000..6173532 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/ee/ee8d04e32ed2dcc7eaa864247a08eb3c.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:327:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 327 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:343:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 343 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:387:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 387 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:388:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 388 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/ef/ef8b2842388a7b66f6b7b2a5373b44d7 b/device/gxx-linux/build/.build_cache/ef/ef8b2842388a7b66f6b7b2a5373b44d7 new file mode 100644 index 0000000..07a374a Binary files /dev/null and b/device/gxx-linux/build/.build_cache/ef/ef8b2842388a7b66f6b7b2a5373b44d7 differ diff --git a/device/gxx-linux/build/.build_cache/ef/ef8b2842388a7b66f6b7b2a5373b44d7.txt b/device/gxx-linux/build/.build_cache/ef/ef8b2842388a7b66f6b7b2a5373b44d7.txt new file mode 100644 index 0000000..3fb5847 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/ef/ef8b2842388a7b66f6b7b2a5373b44d7.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:344:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 344 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:364:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 364 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:411:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 411 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:412:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 412 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/f3/f38042c5939693ceb80f416fb8af8315 b/device/gxx-linux/build/.build_cache/f3/f38042c5939693ceb80f416fb8af8315 new file mode 100644 index 0000000..1914ab2 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f3/f38042c5939693ceb80f416fb8af8315 differ diff --git a/device/gxx-linux/build/.build_cache/f3/f38042c5939693ceb80f416fb8af8315.txt b/device/gxx-linux/build/.build_cache/f3/f38042c5939693ceb80f416fb8af8315.txt new file mode 100644 index 0000000..bc3d21b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/f3/f38042c5939693ceb80f416fb8af8315.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:335:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 335 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:355:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 355 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:402:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 402 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:403:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 403 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/f3/f3957e91a1d6dd87e9e72aa477c482f2 b/device/gxx-linux/build/.build_cache/f3/f3957e91a1d6dd87e9e72aa477c482f2 new file mode 100644 index 0000000..c5aa6f5 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f3/f3957e91a1d6dd87e9e72aa477c482f2 differ diff --git a/device/gxx-linux/build/.build_cache/f3/f3957e91a1d6dd87e9e72aa477c482f2.txt b/device/gxx-linux/build/.build_cache/f3/f3957e91a1d6dd87e9e72aa477c482f2.txt new file mode 100644 index 0000000..49c4081 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/f3/f3957e91a1d6dd87e9e72aa477c482f2.txt @@ -0,0 +1,19 @@ +{ + errdata = "In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kcapimage/Capturer.h:6\27[m\27[K,\ + from \27[01m\27[Ktestusb/main.cpp:10\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/f4/f44ae33649458beb5d3179ce02a84071 b/device/gxx-linux/build/.build_cache/f4/f44ae33649458beb5d3179ce02a84071 new file mode 100644 index 0000000..a2de4bf Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f4/f44ae33649458beb5d3179ce02a84071 differ diff --git a/device/gxx-linux/build/.build_cache/f4/f44ae33649458beb5d3179ce02a84071.txt b/device/gxx-linux/build/.build_cache/f4/f44ae33649458beb5d3179ce02a84071.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/f4/f44ae33649458beb5d3179ce02a84071.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/f5/f5b9303712b1da7bf6ea36b70b546527 b/device/gxx-linux/build/.build_cache/f5/f5b9303712b1da7bf6ea36b70b546527 new file mode 100644 index 0000000..a85e7d0 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f5/f5b9303712b1da7bf6ea36b70b546527 differ diff --git a/device/gxx-linux/build/.build_cache/f5/f5b9303712b1da7bf6ea36b70b546527.txt b/device/gxx-linux/build/.build_cache/f5/f5b9303712b1da7bf6ea36b70b546527.txt new file mode 100644 index 0000000..0863bdb --- /dev/null +++ b/device/gxx-linux/build/.build_cache/f5/f5b9303712b1da7bf6ea36b70b546527.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:324:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 324 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:340:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 340 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:384:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 384 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/f5/f5ff85078cb6eee575866cd4333c7779 b/device/gxx-linux/build/.build_cache/f5/f5ff85078cb6eee575866cd4333c7779 new file mode 100644 index 0000000..1e40f6e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f5/f5ff85078cb6eee575866cd4333c7779 differ diff --git a/device/gxx-linux/build/.build_cache/f6/f61ecceb5a50f69b62a2f57cf90897c8 b/device/gxx-linux/build/.build_cache/f6/f61ecceb5a50f69b62a2f57cf90897c8 new file mode 100644 index 0000000..7de677b Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f6/f61ecceb5a50f69b62a2f57cf90897c8 differ diff --git a/device/gxx-linux/build/.build_cache/f6/f61ecceb5a50f69b62a2f57cf90897c8.txt b/device/gxx-linux/build/.build_cache/f6/f61ecceb5a50f69b62a2f57cf90897c8.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/f6/f61ecceb5a50f69b62a2f57cf90897c8.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/f6/f62a6faee8c6b676b33c87de7904de76 b/device/gxx-linux/build/.build_cache/f6/f62a6faee8c6b676b33c87de7904de76 new file mode 100644 index 0000000..b8ecd62 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f6/f62a6faee8c6b676b33c87de7904de76 differ diff --git a/device/gxx-linux/build/.build_cache/f6/f6866ec345fc43711381924f945a5f51 b/device/gxx-linux/build/.build_cache/f6/f6866ec345fc43711381924f945a5f51 new file mode 100644 index 0000000..ab92142 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f6/f6866ec345fc43711381924f945a5f51 differ diff --git a/device/gxx-linux/build/.build_cache/f7/f772f765c32418bca6a72712de26b23a b/device/gxx-linux/build/.build_cache/f7/f772f765c32418bca6a72712de26b23a new file mode 100644 index 0000000..df7fb1e Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f7/f772f765c32418bca6a72712de26b23a differ diff --git a/device/gxx-linux/build/.build_cache/f8/f88eff952487f5eaca9c30bcbd5e07aa b/device/gxx-linux/build/.build_cache/f8/f88eff952487f5eaca9c30bcbd5e07aa new file mode 100644 index 0000000..c9ab739 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f8/f88eff952487f5eaca9c30bcbd5e07aa differ diff --git a/device/gxx-linux/build/.build_cache/f8/f8e9a66de6a1849c5d943c6e2460be81 b/device/gxx-linux/build/.build_cache/f8/f8e9a66de6a1849c5d943c6e2460be81 new file mode 100644 index 0000000..f8c52eb Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f8/f8e9a66de6a1849c5d943c6e2460be81 differ diff --git a/device/gxx-linux/build/.build_cache/f8/f8e9a66de6a1849c5d943c6e2460be81.txt b/device/gxx-linux/build/.build_cache/f8/f8e9a66de6a1849c5d943c6e2460be81.txt new file mode 100644 index 0000000..6173532 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/f8/f8e9a66de6a1849c5d943c6e2460be81.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:327:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 327 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:343:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 343 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:387:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 387 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:388:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 388 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/f9/f9ff44d2cfc2b5fcfb02897cbe003552 b/device/gxx-linux/build/.build_cache/f9/f9ff44d2cfc2b5fcfb02897cbe003552 new file mode 100644 index 0000000..7fffe6f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/f9/f9ff44d2cfc2b5fcfb02897cbe003552 differ diff --git a/device/gxx-linux/build/.build_cache/f9/f9ff44d2cfc2b5fcfb02897cbe003552.txt b/device/gxx-linux/build/.build_cache/f9/f9ff44d2cfc2b5fcfb02897cbe003552.txt new file mode 100644 index 0000000..bc3d21b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/f9/f9ff44d2cfc2b5fcfb02897cbe003552.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:335:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 335 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:355:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 355 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:402:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 402 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:403:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 403 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/fa/fa989432b11a54b8170e2ff3cb07f71e b/device/gxx-linux/build/.build_cache/fa/fa989432b11a54b8170e2ff3cb07f71e new file mode 100644 index 0000000..6583b86 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/fa/fa989432b11a54b8170e2ff3cb07f71e differ diff --git a/device/gxx-linux/build/.build_cache/fa/fa989432b11a54b8170e2ff3cb07f71e.txt b/device/gxx-linux/build/.build_cache/fa/fa989432b11a54b8170e2ff3cb07f71e.txt new file mode 100644 index 0000000..bc3d21b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/fa/fa989432b11a54b8170e2ff3cb07f71e.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:335:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 335 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:355:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 355 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:402:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 402 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:403:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 403 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/fe/fe0eb0e33b6211d97a1c7f488cc9c9b9 b/device/gxx-linux/build/.build_cache/fe/fe0eb0e33b6211d97a1c7f488cc9c9b9 new file mode 100644 index 0000000..b05e987 Binary files /dev/null and b/device/gxx-linux/build/.build_cache/fe/fe0eb0e33b6211d97a1c7f488cc9c9b9 differ diff --git a/device/gxx-linux/build/.build_cache/fe/fe0eb0e33b6211d97a1c7f488cc9c9b9.txt b/device/gxx-linux/build/.build_cache/fe/fe0eb0e33b6211d97a1c7f488cc9c9b9.txt new file mode 100644 index 0000000..6fe5a3b --- /dev/null +++ b/device/gxx-linux/build/.build_cache/fe/fe0eb0e33b6211d97a1c7f488cc9c9b9.txt @@ -0,0 +1,30 @@ +{ + errdata = "In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:34:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 34 | \27[01;35m\27[Ktypedef\27[m\27[K struct Size\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:40:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 40 | \27[01;35m\27[Ktypedef\27[m\27[K enum Error_Status : uint32_t\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:47:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 47 | \27[01;35m\27[Ktypedef\27[m\27[K struct ImgStatus\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +In file included from \27[01m\27[Kscanner/scannerregs.h:3\27[m\27[K,\ + from \27[01m\27[Kscanner/scannerregs.cpp:1\27[m\27[K:\ +\27[01m\27[Kpackages/common.pkg/include/commondef.h:484:1:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[K‘\27[01m\27[Ktypedef\27[m\27[K’ was ignored in this declaration\ + 484 | \27[01;35m\27[Ktypedef\27[m\27[K union USBVIDPID\ + | \27[01;35m\27[K^~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::write(unsigned int, unsigned int)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:327:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 327 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:335:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 335 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/ether /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kscanner/scannerregs.cpp:\27[m\27[K In member function ‘\27[01m\27[Kvirtual bool ScannerRegAccess::read(unsigned int, unsigned int&)\27[m\27[K’:\ +\27[01m\27[Kscanner/scannerregs.cpp:660:27:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 660 | get_system_output(\27[01;35m\27[K\"sudo ifconfig eth0 | awk '/inet /{print substr($2,1)}'\"\27[m\27[K,buf,sizeof(buf));\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.build_cache/fe/feac27f7af546aed62dfb24c8ff69c76 b/device/gxx-linux/build/.build_cache/fe/feac27f7af546aed62dfb24c8ff69c76 new file mode 100644 index 0000000..a73e30f Binary files /dev/null and b/device/gxx-linux/build/.build_cache/fe/feac27f7af546aed62dfb24c8ff69c76 differ diff --git a/device/gxx-linux/build/.build_cache/fe/feac27f7af546aed62dfb24c8ff69c76.txt b/device/gxx-linux/build/.build_cache/fe/feac27f7af546aed62dfb24c8ff69c76.txt new file mode 100644 index 0000000..6fba076 --- /dev/null +++ b/device/gxx-linux/build/.build_cache/fe/feac27f7af546aed62dfb24c8ff69c76.txt @@ -0,0 +1,18 @@ +{ + errdata = "\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::write(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:325:36:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 325 | writing = ::write(fd,\27[01;35m\27[K data + write\27[m\27[Kd, writing);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kint UsbDevice::read(int, void*, size_t)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:341:35:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[Kpointer of type ‘\27[01m\27[Kvoid *\27[m\27[K’ used in arithmetic [\27[01;35m\27[K-Wpointer-arith\27[m\27[K]\ + 341 | reading = ::read(fd,\27[01;35m\27[K data + reade\27[m\27[Kd, reading);\ + | \27[01;35m\27[K~~~~~^~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:\27[m\27[K In member function ‘\27[01m\27[Kusb_gadget* UsbDevice::init_usb_camtp_gadget(camtp_ctx*)\27[m\27[K’:\ +\27[01m\27[Kusb/src/usbdevice.cpp:385:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 385 | add_usb_string(usbctx, STRINGID_CONFIG_HS, \27[01;35m\27[K \"High speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +\27[01m\27[Kusb/src/usbdevice.cpp:386:46:\27[m\27[K \27[01;35m\27[Kwarning: \27[m\27[KISO C++ forbids converting a string constant to ‘\27[01m\27[Kchar*\27[m\27[K’ [\27[01;35m\27[K-Wwrite-strings\27[m\27[K]\ + 386 | add_usb_string(usbctx, STRINGID_CONFIG_LS, \27[01;35m\27[K \"Low speed configurati\27[m\27[Kon\");\ + | \27[01;35m\27[K^~~~~~~~~~~~~~~~~~~~~~~~~\27[m\27[K\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/applog/linux/arm64-v8a/release/applog/applog.cpp.o.d b/device/gxx-linux/build/.deps/applog/linux/arm64-v8a/release/applog/applog.cpp.o.d new file mode 100644 index 0000000..db09575 --- /dev/null +++ b/device/gxx-linux/build/.deps/applog/linux/arm64-v8a/release/applog/applog.cpp.o.d @@ -0,0 +1,20 @@ +{ + files = { + "applog/applog.cpp" + }, + depfiles_gcc = "applog.o: applog/applog.cpp applog/applog.h packages/common.pkg/include/stringex.hpp\ +", + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iapplog", + "-Ipackages/common.pkg/include", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/applog/linux/arm64-v8a/release/libapplog.a.d b/device/gxx-linux/build/.deps/applog/linux/arm64-v8a/release/libapplog.a.d new file mode 100644 index 0000000..873bb9d --- /dev/null +++ b/device/gxx-linux/build/.deps/applog/linux/arm64-v8a/release/libapplog.a.d @@ -0,0 +1,11 @@ +{ + files = { + "build/.objs/applog/linux/arm64-v8a/release/applog/applog.cpp.o" + }, + values = { + "/usr/bin/ar", + { + "-cr" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/Capturer.cpp.o.d b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/Capturer.cpp.o.d new file mode 100644 index 0000000..5a9d802 --- /dev/null +++ b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/Capturer.cpp.o.d @@ -0,0 +1,24 @@ +{ + depfiles_gcc = "Capturer.o: capimage/Capturer.cpp capimage/Capturer.h regs/regsaccess.h packages/common.pkg/include/commondef.h capimage/hgutils.h capimage/jsonconfig.h packages/common.pkg/include/json.hpp deviceio/DevUtil.h deviceio/Gpio.h capimage/FpgaComm.h capimage/gvideoisp1.h capimage/gvideo.h build/config/header/config.h applog/applog.h packages/common.pkg/include/stringex.hpp packages/common.pkg/include/filetools.h\ +", + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Icapimage", + "-Ipackages/common.pkg/include", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + }, + files = { + "capimage/Capturer.cpp" + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/FpgaComm.cpp.o.d b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/FpgaComm.cpp.o.d new file mode 100644 index 0000000..b02a76f --- /dev/null +++ b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/FpgaComm.cpp.o.d @@ -0,0 +1,24 @@ +{ + depfiles_gcc = "FpgaComm.o: capimage/FpgaComm.cpp capimage/FpgaComm.h regs/regsaccess.h regs/uartregsaccess.h regs/uartregaccessb.h build/config/header/config.h\ +", + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Icapimage", + "-Ipackages/common.pkg/include", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + }, + files = { + "capimage/FpgaComm.cpp" + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/gvideo.cpp.o.d b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/gvideo.cpp.o.d new file mode 100644 index 0000000..110d585 --- /dev/null +++ b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/gvideo.cpp.o.d @@ -0,0 +1,24 @@ +{ + depfiles_gcc = "gvideo.o: capimage/gvideo.cpp capimage/gvideo.h applog/applog.h packages/common.pkg/include/stringex.hpp\ +", + files = { + "capimage/gvideo.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Icapimage", + "-Ipackages/common.pkg/include", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/gvideoisp1.cpp.o.d b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/gvideoisp1.cpp.o.d new file mode 100644 index 0000000..f4d319c --- /dev/null +++ b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/gvideoisp1.cpp.o.d @@ -0,0 +1,24 @@ +{ + depfiles_gcc = "gvideoisp1.o: capimage/gvideoisp1.cpp capimage/gvideoisp1.h capimage/gvideo.h applog/applog.h packages/common.pkg/include/stringex.hpp\ +", + files = { + "capimage/gvideoisp1.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Icapimage", + "-Ipackages/common.pkg/include", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/hgutils.cpp.o.d b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/hgutils.cpp.o.d new file mode 100644 index 0000000..8e0005a --- /dev/null +++ b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/hgutils.cpp.o.d @@ -0,0 +1,24 @@ +{ + depfiles_gcc = "hgutils.o: capimage/hgutils.cpp capimage/hgutils.h capimage/jsonconfig.h packages/common.pkg/include/json.hpp packages/common.pkg/include/commondef.h\ +", + files = { + "capimage/hgutils.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Icapimage", + "-Ipackages/common.pkg/include", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/jsonconfig.cpp.o.d b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/jsonconfig.cpp.o.d new file mode 100644 index 0000000..d2c4035 --- /dev/null +++ b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/capimage/jsonconfig.cpp.o.d @@ -0,0 +1,24 @@ +{ + files = { + "capimage/jsonconfig.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Icapimage", + "-Ipackages/common.pkg/include", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + }, + depfiles_gcc = "jsonconfig.o: capimage/jsonconfig.cpp capimage/jsonconfig.h packages/common.pkg/include/json.hpp packages/common.pkg/include/commondef.h\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/libcapimage.a.d b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/libcapimage.a.d new file mode 100644 index 0000000..1ea95cd --- /dev/null +++ b/device/gxx-linux/build/.deps/capimage/linux/arm64-v8a/release/libcapimage.a.d @@ -0,0 +1,19 @@ +{ + files = { + "build/.objs/capimage/linux/arm64-v8a/release/capimage/jsonconfig.cpp.o", + "build/.objs/capimage/linux/arm64-v8a/release/capimage/gvideoisp1.cpp.o", + "build/.objs/capimage/linux/arm64-v8a/release/capimage/FpgaComm.cpp.o", + "build/.objs/capimage/linux/arm64-v8a/release/capimage/gvideo.cpp.o", + "build/.objs/capimage/linux/arm64-v8a/release/capimage/Capturer.cpp.o", + "build/.objs/capimage/linux/arm64-v8a/release/capimage/hgutils.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libapplog.a", + "build/linux/arm64-v8a/release/libdeviceio.a" + }, + values = { + "/usr/bin/ar", + { + "-cr" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/DevUtil.cpp.o.d b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/DevUtil.cpp.o.d new file mode 100644 index 0000000..ffc70a9 --- /dev/null +++ b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/DevUtil.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "DevUtil.o: deviceio/DevUtil.cpp deviceio/DevUtil.h packages/common.pkg/include/stringex.hpp\ +", + files = { + "deviceio/DevUtil.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Ideviceio", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/Gpio.cpp.o.d b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/Gpio.cpp.o.d new file mode 100644 index 0000000..bf9e501 --- /dev/null +++ b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/Gpio.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "Gpio.o: deviceio/Gpio.cpp deviceio/Gpio.h deviceio/DevUtil.h packages/common.pkg/include/stringex.hpp\ +", + files = { + "deviceio/Gpio.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Ideviceio", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/Led.cpp.o.d b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/Led.cpp.o.d new file mode 100644 index 0000000..a1619c7 --- /dev/null +++ b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/Led.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "Led.o: deviceio/Led.cpp deviceio/Led.h deviceio/DevUtil.h packages/common.pkg/include/stringex.hpp\ +", + files = { + "deviceio/Led.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Ideviceio", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/PinMonitor.cpp.o.d b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/PinMonitor.cpp.o.d new file mode 100644 index 0000000..e65f938 --- /dev/null +++ b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/PinMonitor.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "PinMonitor.o: deviceio/PinMonitor.cpp deviceio/PinMonitor.h deviceio/Gpio.h deviceio/DevUtil.h packages/common.pkg/include/StopWatch.h applog/applog.h packages/common.pkg/include/stringex.hpp\ +", + files = { + "deviceio/PinMonitor.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Ideviceio", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/Pwm.cpp.o.d b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/Pwm.cpp.o.d new file mode 100644 index 0000000..322942e --- /dev/null +++ b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/deviceio/Pwm.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "Pwm.o: deviceio/Pwm.cpp deviceio/Pwm.h deviceio/DevUtil.h packages/common.pkg/include/stringex.hpp\ +", + files = { + "deviceio/Pwm.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Ideviceio", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/libdeviceio.a.d b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/libdeviceio.a.d new file mode 100644 index 0000000..afe5861 --- /dev/null +++ b/device/gxx-linux/build/.deps/deviceio/linux/arm64-v8a/release/libdeviceio.a.d @@ -0,0 +1,16 @@ +{ + files = { + "build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Led.cpp.o", + "build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Gpio.cpp.o", + "build/.objs/deviceio/linux/arm64-v8a/release/deviceio/PinMonitor.cpp.o", + "build/.objs/deviceio/linux/arm64-v8a/release/deviceio/DevUtil.cpp.o", + "build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Pwm.cpp.o", + "build/linux/arm64-v8a/release/libapplog.a" + }, + values = { + "/usr/bin/ar", + { + "-cr" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/fpgacontrol.cpp.o.d b/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/fpgacontrol.cpp.o.d new file mode 100644 index 0000000..439c2b3 --- /dev/null +++ b/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/fpgacontrol.cpp.o.d @@ -0,0 +1,20 @@ +{ + depfiles_gcc = "fpgacontrol.o: fpgaupdate/fpgacontrol.cpp fpgaupdate/fpgacontrol.h fpgaupdate/libmtd.h\ +", + files = { + "fpgaupdate/fpgacontrol.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Ifpgaupdate", + "-Ipackages/common.pkg/include", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd.c.o.d b/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd.c.o.d new file mode 100644 index 0000000..0f09544 --- /dev/null +++ b/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd.c.o.d @@ -0,0 +1,19 @@ +{ + depfiles_gcc = "libmtd.o: fpgaupdate/libmtd.c fpgaupdate/libmtd.h fpgaupdate/libmtd_int.h fpgaupdate/libmtd_common.h fpgaupdate/libmtd_xalloc.h\ +", + files = { + "fpgaupdate/libmtd.c" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Ifpgaupdate", + "-Ipackages/common.pkg/include", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd_legacy.c.o.d b/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd_legacy.c.o.d new file mode 100644 index 0000000..35203e7 --- /dev/null +++ b/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd_legacy.c.o.d @@ -0,0 +1,19 @@ +{ + depfiles_gcc = "libmtd_legacy.o: fpgaupdate/libmtd_legacy.c fpgaupdate/libmtd.h fpgaupdate/libmtd_int.h fpgaupdate/libmtd_common.h fpgaupdate/libmtd_xalloc.h\ +", + files = { + "fpgaupdate/libmtd_legacy.c" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Ifpgaupdate", + "-Ipackages/common.pkg/include", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/libfpgaupdate.a.d b/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/libfpgaupdate.a.d new file mode 100644 index 0000000..6d71e05 --- /dev/null +++ b/device/gxx-linux/build/.deps/fpgaupdate/linux/arm64-v8a/release/libfpgaupdate.a.d @@ -0,0 +1,13 @@ +{ + files = { + "build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/fpgacontrol.cpp.o", + "build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd_legacy.c.o", + "build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd.c.o" + }, + values = { + "/usr/bin/ar", + { + "-cr" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/CSizedetect.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/CSizedetect.cpp.o.d new file mode 100644 index 0000000..2b866ab --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/CSizedetect.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "CSizedetect.o: imgproc/CSizedetect.cpp imgproc/CSizedetect.h imgproc/IPreproc.h packages/common.pkg/include/commondef.h imgproc/ImageProcess/ImageProcess_Public.h\ +", + files = { + "imgproc/CSizedetect.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/IPreproc.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/IPreproc.cpp.o.d new file mode 100644 index 0000000..8b7064c --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/IPreproc.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "IPreproc.o: imgproc/IPreproc.cpp imgproc/IPreproc.h\ +", + files = { + "imgproc/IPreproc.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/IMulti.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/IMulti.cpp.o.d new file mode 100644 index 0000000..81c1729 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/IMulti.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "IMulti.o: imgproc/ImageProcess/IMulti.cpp imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/IMulti.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApply.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApply.cpp.o.d new file mode 100644 index 0000000..e04f03e --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApply.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApply.o: imgproc/ImageProcess/ImageApply.cpp imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApply.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAdjustColors.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAdjustColors.cpp.o.d new file mode 100644 index 0000000..5970838 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAdjustColors.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyAdjustColors.o: imgproc/ImageProcess/ImageApplyAdjustColors.cpp imgproc/ImageProcess/ImageApplyAdjustColors.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyAdjustColors.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoContrast.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoContrast.cpp.o.d new file mode 100644 index 0000000..2c677a2 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoContrast.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyAutoContrast.o: imgproc/ImageProcess/ImageApplyAutoContrast.cpp imgproc/ImageProcess/ImageApplyAutoContrast.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyAutoContrast.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoCrop.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoCrop.cpp.o.d new file mode 100644 index 0000000..8123cc1 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoCrop.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyAutoCrop.o: imgproc/ImageProcess/ImageApplyAutoCrop.cpp imgproc/ImageProcess/ImageApplyAutoCrop.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageProcess_Public.h imgproc/ImageProcess/ImageApplyDispersion.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyAutoCrop.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyBWBinaray.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyBWBinaray.cpp.o.d new file mode 100644 index 0000000..6f97ba8 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyBWBinaray.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyBWBinaray.o: imgproc/ImageProcess/ImageApplyBWBinaray.cpp imgproc/ImageProcess/ImageApplyBWBinaray.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyBWBinaray.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyChannel.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyChannel.cpp.o.d new file mode 100644 index 0000000..ee19213 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyChannel.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyChannel.o: imgproc/ImageProcess/ImageApplyChannel.cpp imgproc/ImageProcess/ImageApplyChannel.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageApplyAdjustColors.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyChannel.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyColorRecognition.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyColorRecognition.cpp.o.d new file mode 100644 index 0000000..cb38335 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyColorRecognition.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyColorRecognition.o: imgproc/ImageProcess/ImageApplyColorRecognition.cpp imgproc/ImageProcess/ImageApplyColorRecognition.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageApplyHeaders.h imgproc/ImageProcess/ImageApplyAdjustColors.h imgproc/ImageProcess/ImageApplyAutoContrast.h imgproc/ImageProcess/ImageApplyAutoCrop.h imgproc/ImageProcess/ImageApplyBWBinaray.h imgproc/ImageProcess/ImageApplyChannel.h imgproc/ImageProcess/ImageApplyConcatenation.h imgproc/ImageProcess/ImageApplyCustomCrop.h imgproc/ImageProcess/ImageApplyCustomGamma.h imgproc/ImageProcess/ImageApplyCvtColor.h imgproc/ImageProcess/ImageApplyDetachNoise.h imgproc/ImageProcess/ImageApplyDiscardBlank.h imgproc/ImageProcess/ImageApplyDispersion.h imgproc/ImageProcess/ImageApplyDogEarDetection.h imgproc/ImageProcess/ImageApplyFadeBackGroundColor.h imgproc/ImageProcess/ImageApplyFilter.h imgproc/ImageProcess/ImageApplyHSVCorrect.h imgproc/ImageProcess/ImageApplyMarkCrop.h imgproc/ImageProcess/ImageApplyOutHole.h imgproc/ImageProcess/ImageApplyRefuseInflow.h imgproc/ImageProcess/ImageApplyResize.h imgproc/ImageProcess/ImageApplyRotation.h imgproc/ImageProcess/ImageApplySplit.h imgproc/ImageProcess/MatEx.h imgproc/ImageProcess/ImageApplySizeDetection.h imgproc/ImageProcess/ImageApplyTextureRemoval.h imgproc/ImageProcess/ImageMulti.h imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/ImageMultiOutputRed.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyColorRecognition.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyConcatenation.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyConcatenation.cpp.o.d new file mode 100644 index 0000000..114f35e --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyConcatenation.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyConcatenation.o: imgproc/ImageProcess/ImageApplyConcatenation.cpp imgproc/ImageProcess/ImageApplyConcatenation.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyConcatenation.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomCrop.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomCrop.cpp.o.d new file mode 100644 index 0000000..34d7278 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomCrop.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyCustomCrop.o: imgproc/ImageProcess/ImageApplyCustomCrop.cpp imgproc/ImageProcess/ImageApplyCustomCrop.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyCustomCrop.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomGamma.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomGamma.cpp.o.d new file mode 100644 index 0000000..9361ba4 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomGamma.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyCustomGamma.o: imgproc/ImageProcess/ImageApplyCustomGamma.cpp imgproc/ImageProcess/ImageApplyCustomGamma.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyCustomGamma.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCvtColor.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCvtColor.cpp.o.d new file mode 100644 index 0000000..d23f3f0 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCvtColor.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyCvtColor.o: imgproc/ImageProcess/ImageApplyCvtColor.cpp imgproc/ImageProcess/ImageApplyCvtColor.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyCvtColor.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDetachNoise.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDetachNoise.cpp.o.d new file mode 100644 index 0000000..939e7f7 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDetachNoise.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyDetachNoise.o: imgproc/ImageProcess/ImageApplyDetachNoise.cpp imgproc/ImageProcess/ImageApplyDetachNoise.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageProcess_Public.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyDetachNoise.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDiscardBlank.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDiscardBlank.cpp.o.d new file mode 100644 index 0000000..9280c4c --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDiscardBlank.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyDiscardBlank.o: imgproc/ImageProcess/ImageApplyDiscardBlank.cpp imgproc/ImageProcess/ImageApplyDiscardBlank.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageProcess_Public.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyDiscardBlank.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDispersion.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDispersion.cpp.o.d new file mode 100644 index 0000000..179f42a --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDispersion.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyDispersion.o: imgproc/ImageProcess/ImageApplyDispersion.cpp imgproc/ImageProcess/ImageApplyDispersion.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyDispersion.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDogEarDetection.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDogEarDetection.cpp.o.d new file mode 100644 index 0000000..90eb64d --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDogEarDetection.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyDogEarDetection.o: imgproc/ImageProcess/ImageApplyDogEarDetection.cpp imgproc/ImageProcess/ImageApplyDogEarDetection.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageProcess_Public.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyDogEarDetection.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFadeBackGroundColor.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFadeBackGroundColor.cpp.o.d new file mode 100644 index 0000000..8b3e436 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFadeBackGroundColor.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyFadeBackGroundColor.o: imgproc/ImageProcess/ImageApplyFadeBackGroundColor.cpp imgproc/ImageProcess/ImageApplyFadeBackGroundColor.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyFadeBackGroundColor.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFilter.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFilter.cpp.o.d new file mode 100644 index 0000000..0660dc6 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFilter.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyFilter.o: imgproc/ImageProcess/ImageApplyFilter.cpp imgproc/ImageProcess/ImageApplyFilter.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyFilter.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyHSVCorrect.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyHSVCorrect.cpp.o.d new file mode 100644 index 0000000..116fead --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyHSVCorrect.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyHSVCorrect.o: imgproc/ImageProcess/ImageApplyHSVCorrect.cpp imgproc/ImageProcess/ImageApplyHSVCorrect.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyHSVCorrect.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyMarkCrop.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyMarkCrop.cpp.o.d new file mode 100644 index 0000000..79506d5 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyMarkCrop.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyMarkCrop.o: imgproc/ImageProcess/ImageApplyMarkCrop.cpp imgproc/ImageProcess/ImageApplyMarkCrop.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageProcess_Public.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyMarkCrop.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyOutHole.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyOutHole.cpp.o.d new file mode 100644 index 0000000..70c6b49 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyOutHole.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyOutHole.o: imgproc/ImageProcess/ImageApplyOutHole.cpp imgproc/ImageProcess/ImageApplyOutHole.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageProcess_Public.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyOutHole.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRefuseInflow.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRefuseInflow.cpp.o.d new file mode 100644 index 0000000..a948286 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRefuseInflow.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyRefuseInflow.o: imgproc/ImageProcess/ImageApplyRefuseInflow.cpp imgproc/ImageProcess/ImageApplyRefuseInflow.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageApplyAdjustColors.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyRefuseInflow.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyResize.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyResize.cpp.o.d new file mode 100644 index 0000000..3c3f4e1 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyResize.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyResize.o: imgproc/ImageProcess/ImageApplyResize.cpp imgproc/ImageProcess/ImageApplyResize.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyResize.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRotation.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRotation.cpp.o.d new file mode 100644 index 0000000..ce195a4 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRotation.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyRotation.o: imgproc/ImageProcess/ImageApplyRotation.cpp imgproc/ImageProcess/ImageApplyRotation.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyRotation.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySizeDetection.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySizeDetection.cpp.o.d new file mode 100644 index 0000000..98bc835 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySizeDetection.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplySizeDetection.o: imgproc/ImageProcess/ImageApplySizeDetection.cpp imgproc/ImageProcess/ImageApplySizeDetection.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageProcess_Public.h\ +", + files = { + "imgproc/ImageProcess/ImageApplySizeDetection.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySplit.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySplit.cpp.o.d new file mode 100644 index 0000000..c22a44f --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySplit.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplySplit.o: imgproc/ImageProcess/ImageApplySplit.cpp imgproc/ImageProcess/ImageApplySplit.h imgproc/ImageProcess/MatEx.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplySplit.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyTextureRemoval.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyTextureRemoval.cpp.o.d new file mode 100644 index 0000000..c0ab636 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyTextureRemoval.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyTextureRemoval.o: imgproc/ImageProcess/ImageApplyTextureRemoval.cpp imgproc/ImageProcess/ImageApplyTextureRemoval.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyTextureRemoval.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyUVMerge.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyUVMerge.cpp.o.d new file mode 100644 index 0000000..ef1f9c5 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyUVMerge.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageApplyUVMerge.o: imgproc/ImageProcess/ImageApplyUVMerge.cpp imgproc/ImageProcess/ImageApplyUVMerge.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageProcess_Public.h\ +", + files = { + "imgproc/ImageProcess/ImageApplyUVMerge.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMulti.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMulti.cpp.o.d new file mode 100644 index 0000000..6823f2c --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMulti.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageMulti.o: imgproc/ImageProcess/ImageMulti.cpp imgproc/ImageProcess/ImageMulti.h imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageMulti.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMultiOutputRed.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMultiOutputRed.cpp.o.d new file mode 100644 index 0000000..564dd13 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMultiOutputRed.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageMultiOutputRed.o: imgproc/ImageProcess/ImageMultiOutputRed.cpp imgproc/ImageProcess/ImageMultiOutputRed.h imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/imgprocdefs.h\ +", + files = { + "imgproc/ImageProcess/ImageMultiOutputRed.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageProcess_Public.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageProcess_Public.cpp.o.d new file mode 100644 index 0000000..5a0c5fc --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageProcess_Public.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "ImageProcess_Public.o: imgproc/ImageProcess/ImageProcess_Public.cpp imgproc/ImageProcess/ImageProcess_Public.h\ +", + files = { + "imgproc/ImageProcess/ImageProcess_Public.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/cvimagex.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/cvimagex.cpp.o.d new file mode 100644 index 0000000..fb15a76 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/cvimagex.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "cvimagex.o: imgproc/cvimagex.cpp imgproc/cvimagex.h imgproc/imgproc.h imgproc/iimage.h\ +", + files = { + "imgproc/cvimagex.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/imageencode.cpp.o.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/imageencode.cpp.o.d new file mode 100644 index 0000000..3885133 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/imgproc/imageencode.cpp.o.d @@ -0,0 +1,21 @@ +{ + depfiles_gcc = "imageencode.o: imgproc/imageencode.cpp imgproc/imageencode.h imgproc/iimageencode.h imgproc/imemory.h imgproc/imgproc.h imgproc/iimage.h imgproc/memoryex.h packages/common.pkg/include/StopWatch.h\ +", + files = { + "imgproc/imageencode.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Ipackages/common.pkg/include", + "-D_DIRECT_BUILD", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/libgimgproc.a.d b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/libgimgproc.a.d new file mode 100644 index 0000000..5ed0f68 --- /dev/null +++ b/device/gxx-linux/build/.deps/gimgproc/linux/arm64-v8a/release/libgimgproc.a.d @@ -0,0 +1,45 @@ +{ + files = { + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/cvimagex.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/IPreproc.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/CSizedetect.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/imageencode.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/IMulti.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySizeDetection.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyChannel.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyTextureRemoval.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDogEarDetection.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFadeBackGroundColor.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyResize.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApply.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCvtColor.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDetachNoise.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySplit.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageProcess_Public.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoCrop.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRotation.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyColorRecognition.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAdjustColors.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMultiOutputRed.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyBWBinaray.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDiscardBlank.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDispersion.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyMarkCrop.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyUVMerge.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoContrast.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMulti.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyHSVCorrect.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyOutHole.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRefuseInflow.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomCrop.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFilter.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomGamma.cpp.o", + "build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyConcatenation.cpp.o" + }, + values = { + "/usr/bin/ar", + { + "-cr" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/libgscanner.a.d b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/libgscanner.a.d new file mode 100644 index 0000000..18390b0 --- /dev/null +++ b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/libgscanner.a.d @@ -0,0 +1,25 @@ +{ + files = { + "build/.objs/gscanner/linux/arm64-v8a/release/scanner/scannerregs.cpp.o", + "build/.objs/gscanner/linux/arm64-v8a/release/scanner/scanner.cpp.o", + "build/.objs/gscanner/linux/arm64-v8a/release/scanner/fsmstate.cpp.o", + "build/.objs/gscanner/linux/arm64-v8a/release/scanner/imageusbtesthandler.cpp.o", + "build/.objs/gscanner/linux/arm64-v8a/release/scanner/imagesavehandler.cpp.o", + "build/.objs/gscanner/linux/arm64-v8a/release/scanner/imageusbhandler.cpp.o", + "build/.objs/gscanner/linux/arm64-v8a/release/scanner/deviceconfig.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libapplog.a", + "build/linux/arm64-v8a/release/libdeviceio.a", + "build/linux/arm64-v8a/release/libcapimage.a", + "build/linux/arm64-v8a/release/libmotorboard.a", + "build/linux/arm64-v8a/release/libgimgproc.a", + "build/linux/arm64-v8a/release/libgusb.a", + "build/linux/arm64-v8a/release/libfpgaupdate.a" + }, + values = { + "/usr/bin/ar", + { + "-cr" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/deviceconfig.cpp.o.d b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/deviceconfig.cpp.o.d new file mode 100644 index 0000000..376d5f0 --- /dev/null +++ b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/deviceconfig.cpp.o.d @@ -0,0 +1,29 @@ +{ + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iscanner", + "-Ipackages/common.pkg/include", + "-Ifpgaupdate", + "-Iusb", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + }, + files = { + "scanner/deviceconfig.cpp" + }, + depfiles_gcc = "deviceconfig.o: scanner/deviceconfig.cpp scanner/deviceconfig.h packages/common.pkg/include/json.hpp packages/common.pkg/include/commondef.h\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/fsmstate.cpp.o.d b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/fsmstate.cpp.o.d new file mode 100644 index 0000000..ef0e41a --- /dev/null +++ b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/fsmstate.cpp.o.d @@ -0,0 +1,29 @@ +{ + depfiles_gcc = "fsmstate.o: scanner/fsmstate.cpp scanner/fsmstate.h scanner/scanner.h packages/common.pkg/include/BlockingQueue.h packages/common.pkg/include/threadex.h packages/common.pkg/include/commondef.h scanner/wakeup.hpp capimage/jsonconfig.h packages/common.pkg/include/json.hpp\ +", + files = { + "scanner/fsmstate.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iscanner", + "-Ipackages/common.pkg/include", + "-Ifpgaupdate", + "-Iusb", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/imagesavehandler.cpp.o.d b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/imagesavehandler.cpp.o.d new file mode 100644 index 0000000..2f28fa6 --- /dev/null +++ b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/imagesavehandler.cpp.o.d @@ -0,0 +1,29 @@ +{ + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iscanner", + "-Ipackages/common.pkg/include", + "-Ifpgaupdate", + "-Iusb", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + }, + files = { + "scanner/imagesavehandler.cpp" + }, + depfiles_gcc = "imagesavehandler.o: scanner/imagesavehandler.cpp scanner/imagesavehandler.h packages/common.pkg/include/ThreadPool.h scanner/iimagehandler.h packages/common.pkg/include/commondef.h imgproc/ImageProcess/ImageApplyHeaders.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageApplyAdjustColors.h imgproc/ImageProcess/ImageApplyAutoContrast.h imgproc/ImageProcess/ImageApplyAutoCrop.h imgproc/ImageProcess/ImageApplyBWBinaray.h imgproc/ImageProcess/ImageApplyChannel.h imgproc/ImageProcess/ImageApplyColorRecognition.h imgproc/ImageProcess/ImageApplyConcatenation.h imgproc/ImageProcess/ImageApplyCustomCrop.h imgproc/ImageProcess/ImageApplyCustomGamma.h imgproc/ImageProcess/ImageApplyCvtColor.h imgproc/ImageProcess/ImageApplyDetachNoise.h imgproc/ImageProcess/ImageApplyDiscardBlank.h imgproc/ImageProcess/ImageApplyDispersion.h imgproc/ImageProcess/ImageApplyDogEarDetection.h imgproc/ImageProcess/ImageApplyFadeBackGroundColor.h imgproc/ImageProcess/ImageApplyFilter.h imgproc/ImageProcess/ImageApplyHSVCorrect.h imgproc/ImageProcess/ImageApplyMarkCrop.h imgproc/ImageProcess/ImageApplyOutHole.h imgproc/ImageProcess/ImageApplyRefuseInflow.h imgproc/ImageProcess/ImageApplyResize.h imgproc/ImageProcess/ImageApplyRotation.h imgproc/ImageProcess/ImageApplySplit.h imgproc/ImageProcess/MatEx.h imgproc/ImageProcess/ImageApplySizeDetection.h imgproc/ImageProcess/ImageApplyTextureRemoval.h imgproc/ImageProcess/ImageMulti.h imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/ImageMultiOutputRed.h imgproc/CSizedetect.h imgproc/IPreproc.h imgproc/imgproc.h imgproc/iimage.h packages/common.pkg/include/stringex.hpp\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/imageusbhandler.cpp.o.d b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/imageusbhandler.cpp.o.d new file mode 100644 index 0000000..dae90ac --- /dev/null +++ b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/imageusbhandler.cpp.o.d @@ -0,0 +1,29 @@ +{ + files = { + "scanner/imageusbhandler.cpp" + }, + depfiles_gcc = "imageusbhandler.o: scanner/imageusbhandler.cpp scanner/imageusbhandler.h scanner/iimagehandler.h packages/common.pkg/include/commondef.h imgproc/ImageProcess/ImageApplyHeaders.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageApplyAdjustColors.h imgproc/ImageProcess/ImageApplyAutoContrast.h imgproc/ImageProcess/ImageApplyAutoCrop.h imgproc/ImageProcess/ImageApplyBWBinaray.h imgproc/ImageProcess/ImageApplyChannel.h imgproc/ImageProcess/ImageApplyColorRecognition.h imgproc/ImageProcess/ImageApplyConcatenation.h imgproc/ImageProcess/ImageApplyCustomCrop.h imgproc/ImageProcess/ImageApplyCustomGamma.h imgproc/ImageProcess/ImageApplyCvtColor.h imgproc/ImageProcess/ImageApplyDetachNoise.h imgproc/ImageProcess/ImageApplyDiscardBlank.h imgproc/ImageProcess/ImageApplyDispersion.h imgproc/ImageProcess/ImageApplyDogEarDetection.h imgproc/ImageProcess/ImageApplyFadeBackGroundColor.h imgproc/ImageProcess/ImageApplyFilter.h imgproc/ImageProcess/ImageApplyHSVCorrect.h imgproc/ImageProcess/ImageApplyMarkCrop.h imgproc/ImageProcess/ImageApplyOutHole.h imgproc/ImageProcess/ImageApplyRefuseInflow.h imgproc/ImageProcess/ImageApplyResize.h imgproc/ImageProcess/ImageApplyRotation.h imgproc/ImageProcess/ImageApplySplit.h imgproc/ImageProcess/MatEx.h imgproc/ImageProcess/ImageApplySizeDetection.h imgproc/ImageProcess/ImageApplyTextureRemoval.h imgproc/ImageProcess/ImageMulti.h imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/ImageMultiOutputRed.h imgproc/CSizedetect.h imgproc/IPreproc.h packages/common.pkg/include/ThreadPool.h imgproc/imemory.h packages/common.pkg/include/BlockingQueue.h imgproc/imgproc.h imgproc/iimage.h packages/common.pkg/include/stringex.hpp imgproc/memoryex.h usb/usbimageprocqueue.h usb/itransmit.h usb/inotify.h usb/ireceive.h applog/applog.h packages/common.pkg/include/StopWatch.h imgproc/imageencode.h imgproc/iimageencode.h imgproc/ImageProcess/ImageApplyAutoCrop.h capimage/hgutils.h capimage/jsonconfig.h packages/common.pkg/include/json.hpp\ +", + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iscanner", + "-Ipackages/common.pkg/include", + "-Ifpgaupdate", + "-Iusb", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/imageusbtesthandler.cpp.o.d b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/imageusbtesthandler.cpp.o.d new file mode 100644 index 0000000..4cb19df --- /dev/null +++ b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/imageusbtesthandler.cpp.o.d @@ -0,0 +1,29 @@ +{ + files = { + "scanner/imageusbtesthandler.cpp" + }, + depfiles_gcc = "imageusbtesthandler.o: scanner/imageusbtesthandler.cpp scanner/imageusbtesthandler.h scanner/imageusbhandler.h scanner/iimagehandler.h packages/common.pkg/include/commondef.h imgproc/ImageProcess/ImageApplyHeaders.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageApplyAdjustColors.h imgproc/ImageProcess/ImageApplyAutoContrast.h imgproc/ImageProcess/ImageApplyAutoCrop.h imgproc/ImageProcess/ImageApplyBWBinaray.h imgproc/ImageProcess/ImageApplyChannel.h imgproc/ImageProcess/ImageApplyColorRecognition.h imgproc/ImageProcess/ImageApplyConcatenation.h imgproc/ImageProcess/ImageApplyCustomCrop.h imgproc/ImageProcess/ImageApplyCustomGamma.h imgproc/ImageProcess/ImageApplyCvtColor.h imgproc/ImageProcess/ImageApplyDetachNoise.h imgproc/ImageProcess/ImageApplyDiscardBlank.h imgproc/ImageProcess/ImageApplyDispersion.h imgproc/ImageProcess/ImageApplyDogEarDetection.h imgproc/ImageProcess/ImageApplyFadeBackGroundColor.h imgproc/ImageProcess/ImageApplyFilter.h imgproc/ImageProcess/ImageApplyHSVCorrect.h imgproc/ImageProcess/ImageApplyMarkCrop.h imgproc/ImageProcess/ImageApplyOutHole.h imgproc/ImageProcess/ImageApplyRefuseInflow.h imgproc/ImageProcess/ImageApplyResize.h imgproc/ImageProcess/ImageApplyRotation.h imgproc/ImageProcess/ImageApplySplit.h imgproc/ImageProcess/MatEx.h imgproc/ImageProcess/ImageApplySizeDetection.h imgproc/ImageProcess/ImageApplyTextureRemoval.h imgproc/ImageProcess/ImageMulti.h imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/ImageMultiOutputRed.h imgproc/CSizedetect.h imgproc/IPreproc.h packages/common.pkg/include/ThreadPool.h imgproc/imemory.h packages/common.pkg/include/BlockingQueue.h imgproc/imgproc.h imgproc/iimage.h packages/common.pkg/include/stringex.hpp imgproc/memoryex.h usb/usbimageprocqueue.h usb/itransmit.h usb/inotify.h usb/ireceive.h applog/applog.h\ +", + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iscanner", + "-Ipackages/common.pkg/include", + "-Ifpgaupdate", + "-Iusb", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/scanner.cpp.o.d b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/scanner.cpp.o.d new file mode 100644 index 0000000..e3054d6 --- /dev/null +++ b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/scanner.cpp.o.d @@ -0,0 +1,29 @@ +{ + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iscanner", + "-Ipackages/common.pkg/include", + "-Ifpgaupdate", + "-Iusb", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + }, + depfiles_gcc = "scanner.o: scanner/scanner.cpp scanner/scanner.h packages/common.pkg/include/BlockingQueue.h scanner/fsmstate.h packages/common.pkg/include/threadex.h packages/common.pkg/include/commondef.h scanner/wakeup.hpp capimage/jsonconfig.h packages/common.pkg/include/json.hpp motorboard/motorboard.h packages/common.pkg/include/autoevent.hpp capimage/Capturer.h regs/regsaccess.h capimage/hgutils.h packages/common.pkg/include/StopWatch.h scanner/iimagehandler.h imgproc/ImageProcess/ImageApplyHeaders.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageApplyAdjustColors.h imgproc/ImageProcess/ImageApplyAutoContrast.h imgproc/ImageProcess/ImageApplyAutoCrop.h imgproc/ImageProcess/ImageApplyBWBinaray.h imgproc/ImageProcess/ImageApplyChannel.h imgproc/ImageProcess/ImageApplyColorRecognition.h imgproc/ImageProcess/ImageApplyConcatenation.h imgproc/ImageProcess/ImageApplyCustomCrop.h imgproc/ImageProcess/ImageApplyCustomGamma.h imgproc/ImageProcess/ImageApplyCvtColor.h imgproc/ImageProcess/ImageApplyDetachNoise.h imgproc/ImageProcess/ImageApplyDiscardBlank.h imgproc/ImageProcess/ImageApplyDispersion.h imgproc/ImageProcess/ImageApplyDogEarDetection.h imgproc/ImageProcess/ImageApplyFadeBackGroundColor.h imgproc/ImageProcess/ImageApplyFilter.h imgproc/ImageProcess/ImageApplyHSVCorrect.h imgproc/ImageProcess/ImageApplyMarkCrop.h imgproc/ImageProcess/ImageApplyOutHole.h imgproc/ImageProcess/ImageApplyRefuseInflow.h imgproc/ImageProcess/ImageApplyResize.h imgproc/ImageProcess/ImageApplyRotation.h imgproc/ImageProcess/ImageApplySplit.h imgproc/ImageProcess/MatEx.h imgproc/ImageProcess/ImageApplySizeDetection.h imgproc/ImageProcess/ImageApplyTextureRemoval.h imgproc/ImageProcess/ImageMulti.h imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/ImageMultiOutputRed.h imgproc/CSizedetect.h imgproc/IPreproc.h applog/applog.h packages/common.pkg/include/stringex.hpp fpgaupdate/fpgacontrol.h scanner/scannerregs.h deviceio/Gpio.h scanner/deviceconfig.h\ +", + files = { + "scanner/scanner.cpp" + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/scannerregs.cpp.o.d b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/scannerregs.cpp.o.d new file mode 100644 index 0000000..4c9ae99 --- /dev/null +++ b/device/gxx-linux/build/.deps/gscanner/linux/arm64-v8a/release/scanner/scannerregs.cpp.o.d @@ -0,0 +1,29 @@ +{ + files = { + "scanner/scannerregs.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iscanner", + "-Ipackages/common.pkg/include", + "-Ifpgaupdate", + "-Iusb", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + }, + depfiles_gcc = "scannerregs.o: scanner/scannerregs.cpp scanner/scannerregs.h regs/regsaccess.h packages/common.pkg/include/commondef.h scanner/scanner.h packages/common.pkg/include/BlockingQueue.h scanner/fsmstate.h packages/common.pkg/include/threadex.h scanner/wakeup.hpp capimage/jsonconfig.h packages/common.pkg/include/json.hpp usb/usbimageprocqueue.h imgproc/imgproc.h imgproc/iimage.h usb/itransmit.h imgproc/imemory.h usb/inotify.h usb/ireceive.h packages/common.pkg/include/filetools.h packages/common.pkg/include/stringex.hpp applog/applog.h imgproc/memoryex.h capimage/hgutils.h packages/common.pkg/include/base64.hpp scanner/deviceconfig.h\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gservice/linux/arm64-v8a/release/gservice.d b/device/gxx-linux/build/.deps/gservice/linux/arm64-v8a/release/gservice.d new file mode 100644 index 0000000..6eca644 --- /dev/null +++ b/device/gxx-linux/build/.deps/gservice/linux/arm64-v8a/release/gservice.d @@ -0,0 +1,39 @@ +{ + files = { + "build/.objs/gservice/linux/arm64-v8a/release/service/main.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libapplog.a", + "build/linux/arm64-v8a/release/libdeviceio.a", + "build/linux/arm64-v8a/release/libcapimage.a", + "build/linux/arm64-v8a/release/libmotorboard.a", + "build/linux/arm64-v8a/release/libgimgproc.a", + "build/linux/arm64-v8a/release/libgusb.a", + "build/linux/arm64-v8a/release/libfpgaupdate.a", + "build/linux/arm64-v8a/release/libgscanner.a" + }, + values = { + "/usr/bin/g++", + { + "-L/usr/local/lib", + "-Lbuild/linux/arm64-v8a/release", + "-s", + "-lgscanner", + "-lssl", + "-lcrypto", + "-lfpgaupdate", + "-lgusb", + "-lgimgproc", + "-lopencv_imgcodecs", + "-lFreeImage", + "-lmotorboard", + "-lcapimage", + "-lopencv_core", + "-lopencv_highgui", + "-lopencv_imgproc", + "-ldeviceio", + "-lapplog", + "-lregs", + "-lpthread" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gservice/linux/arm64-v8a/release/service/main.cpp.o.d b/device/gxx-linux/build/.deps/gservice/linux/arm64-v8a/release/service/main.cpp.o.d new file mode 100644 index 0000000..114d95f --- /dev/null +++ b/device/gxx-linux/build/.deps/gservice/linux/arm64-v8a/release/service/main.cpp.o.d @@ -0,0 +1,29 @@ +{ + depfiles_gcc = "main.o: service/main.cpp scanner/scanner.h packages/common.pkg/include/BlockingQueue.h scanner/fsmstate.h packages/common.pkg/include/threadex.h packages/common.pkg/include/commondef.h scanner/wakeup.hpp capimage/jsonconfig.h packages/common.pkg/include/json.hpp scanner/scannerregs.h regs/regsaccess.h usb/usbservice.h motorboard/motorboard.h packages/common.pkg/include/autoevent.hpp capimage/Capturer.h capimage/hgutils.h\ +", + files = { + "service/main.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Ipackages/common.pkg/include", + "-Iscanner", + "-Ifpgaupdate", + "-Iusb", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/libgusb.a.d b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/libgusb.a.d new file mode 100644 index 0000000..a6cfa1c --- /dev/null +++ b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/libgusb.a.d @@ -0,0 +1,20 @@ +{ + files = { + "build/.objs/gusb/linux/arm64-v8a/release/usb/usbtransmit.cpp.o", + "build/.objs/gusb/linux/arm64-v8a/release/usb/usbservice.cpp.o", + "build/.objs/gusb/linux/arm64-v8a/release/usb/usbreceive.cpp.o", + "build/.objs/gusb/linux/arm64-v8a/release/usb/usbnotify.cpp.o", + "build/.objs/gusb/linux/arm64-v8a/release/usb/src/logs_out.cpp.o", + "build/.objs/gusb/linux/arm64-v8a/release/usb/src/usbdevice.cpp.o", + "build/.objs/gusb/linux/arm64-v8a/release/usb/src/usbstring.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libgimgproc.a", + "build/linux/arm64-v8a/release/libapplog.a" + }, + values = { + "/usr/bin/ar", + { + "-cr" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/src/logs_out.cpp.o.d b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/src/logs_out.cpp.o.d new file mode 100644 index 0000000..892b951 --- /dev/null +++ b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/src/logs_out.cpp.o.d @@ -0,0 +1,24 @@ +{ + depfiles_gcc = "logs_out.o: usb/src/logs_out.cpp usb/inc/buildconf.h usb/inc/logs_out.h packages/common.pkg/include/stringex.hpp applog/applog.h\ +", + files = { + "usb/src/logs_out.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iusb/inc", + "-Iusb", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/src/usbdevice.cpp.o.d b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/src/usbdevice.cpp.o.d new file mode 100644 index 0000000..63325ac --- /dev/null +++ b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/src/usbdevice.cpp.o.d @@ -0,0 +1,24 @@ +{ + depfiles_gcc = "usbdevice.o: usb/src/usbdevice.cpp usb/inc/usbdevice.h usb/inc/camtp.h usb/inc/buildconf.h usb/inc/usb_gadget.h usb/inc/usbstring.h usb/inc/logs_out.h packages/common.pkg/include/stringex.hpp applog/applog.h usb/inc/usbstring.h usb/inc/default_cfg.h\ +", + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iusb/inc", + "-Iusb", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + }, + files = { + "usb/src/usbdevice.cpp" + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/src/usbstring.cpp.o.d b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/src/usbstring.cpp.o.d new file mode 100644 index 0000000..d5222ce --- /dev/null +++ b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/src/usbstring.cpp.o.d @@ -0,0 +1,24 @@ +{ + depfiles_gcc = "usbstring.o: usb/src/usbstring.cpp usb/inc/buildconf.h usb/inc/usbstring.h\ +", + files = { + "usb/src/usbstring.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iusb/inc", + "-Iusb", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbnotify.cpp.o.d b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbnotify.cpp.o.d new file mode 100644 index 0000000..ac7c1ca --- /dev/null +++ b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbnotify.cpp.o.d @@ -0,0 +1,24 @@ +{ + files = { + "usb/usbnotify.cpp" + }, + depfiles_gcc = "usbnotify.o: usb/usbnotify.cpp usb/usbnotify.h usb/inotify.h packages/common.pkg/include/autoevent.hpp packages/common.pkg/include/threadex.h usb/inc/usbdevice.h usb/inc/camtp.h usb/inc/buildconf.h usb/inc/usb_gadget.h usb/inc/usbstring.h packages/common.pkg/include/StopWatch.h\ +", + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iusb/inc", + "-Iusb", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbreceive.cpp.o.d b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbreceive.cpp.o.d new file mode 100644 index 0000000..54df518 --- /dev/null +++ b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbreceive.cpp.o.d @@ -0,0 +1,24 @@ +{ + files = { + "usb/usbreceive.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iusb/inc", + "-Iusb", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + }, + depfiles_gcc = "usbreceive.o: usb/usbreceive.cpp usb/usbreceive.h usb/ireceive.h imgproc/imgproc.h imgproc/iimage.h imgproc/imemory.h imgproc/memoryex.h applog/applog.h packages/common.pkg/include/threadex.h usb/inc/usbdevice.h usb/inc/camtp.h usb/inc/buildconf.h usb/inc/usb_gadget.h usb/inc/usbstring.h\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbservice.cpp.o.d b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbservice.cpp.o.d new file mode 100644 index 0000000..61b61e5 --- /dev/null +++ b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbservice.cpp.o.d @@ -0,0 +1,24 @@ +{ + depfiles_gcc = "usbservice.o: usb/usbservice.cpp usb/usbservice.h packages/common.pkg/include/stringex.hpp usb/inc/usbdevice.h usb/inc/camtp.h usb/inc/buildconf.h usb/inc/usb_gadget.h usb/inc/usbstring.h regs/regsaccess.h usb/usbtransmit.h usb/itransmit.h imgproc/imemory.h packages/common.pkg/include/threadex.h packages/common.pkg/include/ThreadPool.h usb/usbreceive.h usb/ireceive.h imgproc/imgproc.h imgproc/iimage.h usb/usbnotify.h usb/inotify.h packages/common.pkg/include/autoevent.hpp applog/applog.h\ +", + files = { + "usb/usbservice.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iusb/inc", + "-Iusb", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbtransmit.cpp.o.d b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbtransmit.cpp.o.d new file mode 100644 index 0000000..80cf982 --- /dev/null +++ b/device/gxx-linux/build/.deps/gusb/linux/arm64-v8a/release/usb/usbtransmit.cpp.o.d @@ -0,0 +1,24 @@ +{ + files = { + "usb/usbtransmit.cpp" + }, + depfiles_gcc = "usbtransmit.o: usb/usbtransmit.cpp usb/usbtransmit.h usb/itransmit.h imgproc/imemory.h packages/common.pkg/include/threadex.h packages/common.pkg/include/ThreadPool.h usb/inc/usbdevice.h usb/inc/camtp.h usb/inc/buildconf.h usb/inc/usb_gadget.h usb/inc/usbstring.h applog/applog.h imgproc/memoryex.h packages/common.pkg/include/stringex.hpp\ +", + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iusb/inc", + "-Iusb", + "-Ipackages/common.pkg/include", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/motorboard/linux/arm64-v8a/release/libmotorboard.a.d b/device/gxx-linux/build/.deps/motorboard/linux/arm64-v8a/release/libmotorboard.a.d new file mode 100644 index 0000000..8b3af16 --- /dev/null +++ b/device/gxx-linux/build/.deps/motorboard/linux/arm64-v8a/release/libmotorboard.a.d @@ -0,0 +1,15 @@ +{ + files = { + "build/.objs/motorboard/linux/arm64-v8a/release/motorboard/motorboard.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libapplog.a", + "build/linux/arm64-v8a/release/libdeviceio.a", + "build/linux/arm64-v8a/release/libcapimage.a" + }, + values = { + "/usr/bin/ar", + { + "-cr" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/motorboard/linux/arm64-v8a/release/motorboard/motorboard.cpp.o.d b/device/gxx-linux/build/.deps/motorboard/linux/arm64-v8a/release/motorboard/motorboard.cpp.o.d new file mode 100644 index 0000000..851b5ee --- /dev/null +++ b/device/gxx-linux/build/.deps/motorboard/linux/arm64-v8a/release/motorboard/motorboard.cpp.o.d @@ -0,0 +1,25 @@ +{ + files = { + "motorboard/motorboard.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Imotorboard", + "-Ipackages/common.pkg/include", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + }, + depfiles_gcc = "motorboard.o: motorboard/motorboard.cpp motorboard/motorboard.h packages/common.pkg/include/autoevent.hpp packages/common.pkg/include/commondef.h deviceio/PinMonitor.h deviceio/Gpio.h regs/uartregsaccess.h regs/uartregaccessb.h regs/regsaccess.h packages/common.pkg/include/stringex.hpp build/config/header/config.h packages/common.pkg/include/StopWatch.h applog/applog.h capimage/Capturer.h capimage/hgutils.h capimage/jsonconfig.h packages/common.pkg/include/json.hpp\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/libregs.a.d b/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/libregs.a.d new file mode 100644 index 0000000..4d895e5 --- /dev/null +++ b/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/libregs.a.d @@ -0,0 +1,13 @@ +{ + files = { + "build/.objs/regs/linux/arm64-v8a/release/regs/uartregaccessb.cpp.o", + "build/.objs/regs/linux/arm64-v8a/release/regs/serialib.cpp.o", + "build/.objs/regs/linux/arm64-v8a/release/regs/uartregsaccess.cpp.o" + }, + values = { + "/usr/bin/ar", + { + "-cr" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/regs/serialib.cpp.o.d b/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/regs/serialib.cpp.o.d new file mode 100644 index 0000000..12b1794 --- /dev/null +++ b/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/regs/serialib.cpp.o.d @@ -0,0 +1,20 @@ +{ + depfiles_gcc = "serialib.o: regs/serialib.cpp regs/serialib.h\ +", + files = { + "regs/serialib.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iregs", + "-Ipackages/common.pkg/include", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/regs/uartregaccessb.cpp.o.d b/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/regs/uartregaccessb.cpp.o.d new file mode 100644 index 0000000..e1ff9c0 --- /dev/null +++ b/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/regs/uartregaccessb.cpp.o.d @@ -0,0 +1,20 @@ +{ + depfiles_gcc = "uartregaccessb.o: regs/uartregaccessb.cpp regs/uartregaccessb.h regs/regsaccess.h regs/serialib.h packages/common.pkg/include/stringex.hpp\ +", + files = { + "regs/uartregaccessb.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iregs", + "-Ipackages/common.pkg/include", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/regs/uartregsaccess.cpp.o.d b/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/regs/uartregsaccess.cpp.o.d new file mode 100644 index 0000000..3acbf21 --- /dev/null +++ b/device/gxx-linux/build/.deps/regs/linux/arm64-v8a/release/regs/uartregsaccess.cpp.o.d @@ -0,0 +1,20 @@ +{ + depfiles_gcc = "uartregsaccess.o: regs/uartregsaccess.cpp regs/uartregsaccess.h regs/uartregaccessb.h regs/regsaccess.h regs/serialib.h\ +", + files = { + "regs/uartregsaccess.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Iregs", + "-Ipackages/common.pkg/include", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/scanservice/linux/arm64-v8a/release/scanservice.d b/device/gxx-linux/build/.deps/scanservice/linux/arm64-v8a/release/scanservice.d new file mode 100644 index 0000000..aa70e75 --- /dev/null +++ b/device/gxx-linux/build/.deps/scanservice/linux/arm64-v8a/release/scanservice.d @@ -0,0 +1,39 @@ +{ + files = { + "build/.objs/scanservice/linux/arm64-v8a/release/scanservice/main.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libgimgproc.a", + "build/linux/arm64-v8a/release/libapplog.a", + "build/linux/arm64-v8a/release/libgusb.a", + "build/linux/arm64-v8a/release/libdeviceio.a", + "build/linux/arm64-v8a/release/libcapimage.a", + "build/linux/arm64-v8a/release/libmotorboard.a", + "build/linux/arm64-v8a/release/libfpgaupdate.a", + "build/linux/arm64-v8a/release/libgscanner.a" + }, + values = { + "/usr/bin/g++", + { + "-L/usr/local/lib", + "-Lbuild/linux/arm64-v8a/release", + "-s", + "-lgscanner", + "-lssl", + "-lcrypto", + "-lfpgaupdate", + "-lmotorboard", + "-lcapimage", + "-lopencv_highgui", + "-ldeviceio", + "-lgusb", + "-lapplog", + "-lgimgproc", + "-lopencv_core", + "-lopencv_imgproc", + "-lopencv_imgcodecs", + "-lFreeImage", + "-lregs", + "-lpthread" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/scanservice/linux/arm64-v8a/release/scanservice/main.cpp.o.d b/device/gxx-linux/build/.deps/scanservice/linux/arm64-v8a/release/scanservice/main.cpp.o.d new file mode 100644 index 0000000..b045470 --- /dev/null +++ b/device/gxx-linux/build/.deps/scanservice/linux/arm64-v8a/release/scanservice/main.cpp.o.d @@ -0,0 +1,29 @@ +{ + depfiles_gcc = "main.o: scanservice/main.cpp packages/common.pkg/include/filetools.h packages/common.pkg/include/stringex.hpp usb/usbservice.h capimage/Capturer.h regs/regsaccess.h packages/common.pkg/include/commondef.h capimage/hgutils.h capimage/jsonconfig.h packages/common.pkg/include/json.hpp motorboard/motorboard.h packages/common.pkg/include/autoevent.hpp usb/itransmit.h imgproc/imemory.h scanner/scannerregs.h scanner/scanner.h packages/common.pkg/include/BlockingQueue.h scanner/fsmstate.h packages/common.pkg/include/threadex.h scanner/wakeup.hpp usb/inotify.h imgproc/memoryex.h usb/usbimageprocqueue.h imgproc/imgproc.h imgproc/iimage.h usb/ireceive.h scanner/imageusbtesthandler.h scanner/imageusbhandler.h scanner/iimagehandler.h imgproc/ImageProcess/ImageApplyHeaders.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageApplyAdjustColors.h imgproc/ImageProcess/ImageApplyAutoContrast.h imgproc/ImageProcess/ImageApplyAutoCrop.h imgproc/ImageProcess/ImageApplyBWBinaray.h imgproc/ImageProcess/ImageApplyChannel.h imgproc/ImageProcess/ImageApplyColorRecognition.h imgproc/ImageProcess/ImageApplyConcatenation.h imgproc/ImageProcess/ImageApplyCustomCrop.h imgproc/ImageProcess/ImageApplyCustomGamma.h imgproc/ImageProcess/ImageApplyCvtColor.h imgproc/ImageProcess/ImageApplyDetachNoise.h imgproc/ImageProcess/ImageApplyDiscardBlank.h imgproc/ImageProcess/ImageApplyDispersion.h imgproc/ImageProcess/ImageApplyDogEarDetection.h imgproc/ImageProcess/ImageApplyFadeBackGroundColor.h imgproc/ImageProcess/ImageApplyFilter.h imgproc/ImageProcess/ImageApplyHSVCorrect.h imgproc/ImageProcess/ImageApplyMarkCrop.h imgproc/ImageProcess/ImageApplyOutHole.h imgproc/ImageProcess/ImageApplyRefuseInflow.h imgproc/ImageProcess/ImageApplyResize.h imgproc/ImageProcess/ImageApplyRotation.h imgproc/ImageProcess/ImageApplySplit.h imgproc/ImageProcess/MatEx.h imgproc/ImageProcess/ImageApplySizeDetection.h imgproc/ImageProcess/ImageApplyTextureRemoval.h imgproc/ImageProcess/ImageMulti.h imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/ImageMultiOutputRed.h imgproc/CSizedetect.h imgproc/IPreproc.h packages/common.pkg/include/ThreadPool.h applog/applog.h\ +", + files = { + "scanservice/main.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Ipackages/common.pkg/include", + "-Iscanner", + "-Ifpgaupdate", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iusb", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testcapimage/linux/arm64-v8a/release/testcapimage.d b/device/gxx-linux/build/.deps/testcapimage/linux/arm64-v8a/release/testcapimage.d new file mode 100644 index 0000000..98fa989 --- /dev/null +++ b/device/gxx-linux/build/.deps/testcapimage/linux/arm64-v8a/release/testcapimage.d @@ -0,0 +1,31 @@ +{ + files = { + "build/.objs/testcapimage/linux/arm64-v8a/release/testcapimage/main.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libgimgproc.a", + "build/linux/arm64-v8a/release/libapplog.a", + "build/linux/arm64-v8a/release/libgusb.a", + "build/linux/arm64-v8a/release/libdeviceio.a", + "build/linux/arm64-v8a/release/libcapimage.a" + }, + values = { + "/usr/bin/g++", + { + "-L/usr/local/lib", + "-Lbuild/linux/arm64-v8a/release", + "-s", + "-lcapimage", + "-lopencv_highgui", + "-ldeviceio", + "-lgusb", + "-lapplog", + "-lgimgproc", + "-lopencv_core", + "-lopencv_imgproc", + "-lopencv_imgcodecs", + "-lFreeImage", + "-lregs", + "-lpthread" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testcapimage/linux/arm64-v8a/release/testcapimage/main.cpp.o.d b/device/gxx-linux/build/.deps/testcapimage/linux/arm64-v8a/release/testcapimage/main.cpp.o.d new file mode 100644 index 0000000..0448867 --- /dev/null +++ b/device/gxx-linux/build/.deps/testcapimage/linux/arm64-v8a/release/testcapimage/main.cpp.o.d @@ -0,0 +1,26 @@ +{ + files = { + "testcapimage/main.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Ipackages/common.pkg/include", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iusb", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + }, + depfiles_gcc = "main.o: testcapimage/main.cpp packages/common.pkg/include/stringex.hpp capimage/Capturer.h regs/regsaccess.h packages/common.pkg/include/commondef.h capimage/hgutils.h capimage/jsonconfig.h packages/common.pkg/include/json.hpp packages/common.pkg/include/StopWatch.h build/config/header/config.h capimage/FpgaComm.h usb/usbservice.h\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testimgproc/linux/arm64-v8a/release/testimgproc.d b/device/gxx-linux/build/.deps/testimgproc/linux/arm64-v8a/release/testimgproc.d new file mode 100644 index 0000000..7813d59 --- /dev/null +++ b/device/gxx-linux/build/.deps/testimgproc/linux/arm64-v8a/release/testimgproc.d @@ -0,0 +1,20 @@ +{ + files = { + "build/.objs/testimgproc/linux/arm64-v8a/release/testimgproc/main.cpp.o", + "build/linux/arm64-v8a/release/libgimgproc.a" + }, + values = { + "/usr/bin/g++", + { + "-L/usr/local/lib", + "-Lbuild/linux/arm64-v8a/release", + "-s", + "-lgimgproc", + "-lopencv_core", + "-lopencv_imgproc", + "-lopencv_imgcodecs", + "-lFreeImage", + "-lpthread" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testimgproc/linux/arm64-v8a/release/testimgproc/main.cpp.o.d b/device/gxx-linux/build/.deps/testimgproc/linux/arm64-v8a/release/testimgproc/main.cpp.o.d new file mode 100644 index 0000000..4fc3341 --- /dev/null +++ b/device/gxx-linux/build/.deps/testimgproc/linux/arm64-v8a/release/testimgproc/main.cpp.o.d @@ -0,0 +1,20 @@ +{ + depfiles_gcc = "main.o: testimgproc/main.cpp imgproc/cvimagex.h imgproc/imgproc.h imgproc/iimage.h packages/common.pkg/include/StopWatch.h imgproc/iimageencode.h imgproc/imemory.h imgproc/imageencode.h\ +", + files = { + "testimgproc/main.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Ipackages/common.pkg/include", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testmotorboard/linux/arm64-v8a/release/testmotorboard.d b/device/gxx-linux/build/.deps/testmotorboard/linux/arm64-v8a/release/testmotorboard.d new file mode 100644 index 0000000..2ed1c3e --- /dev/null +++ b/device/gxx-linux/build/.deps/testmotorboard/linux/arm64-v8a/release/testmotorboard.d @@ -0,0 +1,27 @@ +{ + files = { + "build/.objs/testmotorboard/linux/arm64-v8a/release/testmotorboard/main.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libapplog.a", + "build/linux/arm64-v8a/release/libdeviceio.a", + "build/linux/arm64-v8a/release/libcapimage.a", + "build/linux/arm64-v8a/release/libmotorboard.a" + }, + values = { + "/usr/bin/g++", + { + "-L/usr/local/lib", + "-Lbuild/linux/arm64-v8a/release", + "-s", + "-lmotorboard", + "-lcapimage", + "-lopencv_core", + "-lopencv_highgui", + "-lopencv_imgproc", + "-ldeviceio", + "-lapplog", + "-lregs", + "-lpthread" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testmotorboard/linux/arm64-v8a/release/testmotorboard/main.cpp.o.d b/device/gxx-linux/build/.deps/testmotorboard/linux/arm64-v8a/release/testmotorboard/main.cpp.o.d new file mode 100644 index 0000000..4c41574 --- /dev/null +++ b/device/gxx-linux/build/.deps/testmotorboard/linux/arm64-v8a/release/testmotorboard/main.cpp.o.d @@ -0,0 +1,25 @@ +{ + depfiles_gcc = "main.o: testmotorboard/main.cpp motorboard/motorboard.h packages/common.pkg/include/autoevent.hpp packages/common.pkg/include/commondef.h packages/common.pkg/include/filetools.h packages/common.pkg/include/stringex.hpp regs/uartregsaccess.h regs/uartregaccessb.h regs/regsaccess.h deviceio/Gpio.h packages/common.pkg/include/StopWatch.h\ +", + files = { + "testmotorboard/main.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Iimgproc/ImageProcess", + "-Ipackages/common.pkg/include", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testregs/linux/arm64-v8a/release/testregs.d b/device/gxx-linux/build/.deps/testregs/linux/arm64-v8a/release/testregs.d new file mode 100644 index 0000000..bfbf0ff --- /dev/null +++ b/device/gxx-linux/build/.deps/testregs/linux/arm64-v8a/release/testregs.d @@ -0,0 +1,26 @@ +{ + files = { + "build/.objs/testregs/linux/arm64-v8a/release/testregs/main.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libgimgproc.a", + "build/linux/arm64-v8a/release/libapplog.a", + "build/linux/arm64-v8a/release/libgusb.a" + }, + values = { + "/usr/bin/g++", + { + "-L/usr/local/lib", + "-Lbuild/linux/arm64-v8a/release", + "-s", + "-lgusb", + "-lapplog", + "-lgimgproc", + "-lopencv_core", + "-lopencv_imgproc", + "-lopencv_imgcodecs", + "-lFreeImage", + "-lregs", + "-lpthread" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testregs/linux/arm64-v8a/release/testregs/main.cpp.o.d b/device/gxx-linux/build/.deps/testregs/linux/arm64-v8a/release/testregs/main.cpp.o.d new file mode 100644 index 0000000..7a82a3e --- /dev/null +++ b/device/gxx-linux/build/.deps/testregs/linux/arm64-v8a/release/testregs/main.cpp.o.d @@ -0,0 +1,24 @@ +{ + depfiles_gcc = "main.o: testregs/main.cpp packages/common.pkg/include/filetools.h packages/common.pkg/include/stringex.hpp regs/uartregsaccess.h regs/uartregaccessb.h regs/regsaccess.h build/config/header/config.h packages/common.pkg/include/StopWatch.h applog/applog.h usb/usbservice.h\ +", + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Ipackages/common.pkg/include", + "-Ibuild/config/header", + "-Iusb", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + }, + files = { + "testregs/main.cpp" + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testscanner/linux/arm64-v8a/release/testscanner.d b/device/gxx-linux/build/.deps/testscanner/linux/arm64-v8a/release/testscanner.d new file mode 100644 index 0000000..8e706bf --- /dev/null +++ b/device/gxx-linux/build/.deps/testscanner/linux/arm64-v8a/release/testscanner.d @@ -0,0 +1,39 @@ +{ + files = { + "build/.objs/testscanner/linux/arm64-v8a/release/testscanner/main.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libapplog.a", + "build/linux/arm64-v8a/release/libdeviceio.a", + "build/linux/arm64-v8a/release/libcapimage.a", + "build/linux/arm64-v8a/release/libmotorboard.a", + "build/linux/arm64-v8a/release/libgimgproc.a", + "build/linux/arm64-v8a/release/libgusb.a", + "build/linux/arm64-v8a/release/libfpgaupdate.a", + "build/linux/arm64-v8a/release/libgscanner.a" + }, + values = { + "/usr/bin/g++", + { + "-L/usr/local/lib", + "-Lbuild/linux/arm64-v8a/release", + "-s", + "-lgscanner", + "-lssl", + "-lcrypto", + "-lfpgaupdate", + "-lgusb", + "-lgimgproc", + "-lopencv_imgcodecs", + "-lFreeImage", + "-lmotorboard", + "-lcapimage", + "-lopencv_core", + "-lopencv_highgui", + "-lopencv_imgproc", + "-ldeviceio", + "-lapplog", + "-lregs", + "-lpthread" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testscanner/linux/arm64-v8a/release/testscanner/main.cpp.o.d b/device/gxx-linux/build/.deps/testscanner/linux/arm64-v8a/release/testscanner/main.cpp.o.d new file mode 100644 index 0000000..bf3cf9c --- /dev/null +++ b/device/gxx-linux/build/.deps/testscanner/linux/arm64-v8a/release/testscanner/main.cpp.o.d @@ -0,0 +1,29 @@ +{ + depfiles_gcc = "main.o: testscanner/main.cpp scanner/scanner.h packages/common.pkg/include/BlockingQueue.h scanner/fsmstate.h packages/common.pkg/include/threadex.h packages/common.pkg/include/commondef.h scanner/wakeup.hpp capimage/jsonconfig.h packages/common.pkg/include/json.hpp scanner/scannerregs.h regs/regsaccess.h usb/usbservice.h motorboard/motorboard.h packages/common.pkg/include/autoevent.hpp capimage/Capturer.h capimage/hgutils.h scanner/imageusbhandler.h scanner/iimagehandler.h imgproc/ImageProcess/ImageApplyHeaders.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageApplyAdjustColors.h imgproc/ImageProcess/ImageApplyAutoContrast.h imgproc/ImageProcess/ImageApplyAutoCrop.h imgproc/ImageProcess/ImageApplyBWBinaray.h imgproc/ImageProcess/ImageApplyChannel.h imgproc/ImageProcess/ImageApplyColorRecognition.h imgproc/ImageProcess/ImageApplyConcatenation.h imgproc/ImageProcess/ImageApplyCustomCrop.h imgproc/ImageProcess/ImageApplyCustomGamma.h imgproc/ImageProcess/ImageApplyCvtColor.h imgproc/ImageProcess/ImageApplyDetachNoise.h imgproc/ImageProcess/ImageApplyDiscardBlank.h imgproc/ImageProcess/ImageApplyDispersion.h imgproc/ImageProcess/ImageApplyDogEarDetection.h imgproc/ImageProcess/ImageApplyFadeBackGroundColor.h imgproc/ImageProcess/ImageApplyFilter.h imgproc/ImageProcess/ImageApplyHSVCorrect.h imgproc/ImageProcess/ImageApplyMarkCrop.h imgproc/ImageProcess/ImageApplyOutHole.h imgproc/ImageProcess/ImageApplyRefuseInflow.h imgproc/ImageProcess/ImageApplyResize.h imgproc/ImageProcess/ImageApplyRotation.h imgproc/ImageProcess/ImageApplySplit.h imgproc/ImageProcess/MatEx.h imgproc/ImageProcess/ImageApplySizeDetection.h imgproc/ImageProcess/ImageApplyTextureRemoval.h imgproc/ImageProcess/ImageMulti.h imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/ImageMultiOutputRed.h imgproc/CSizedetect.h imgproc/IPreproc.h packages/common.pkg/include/ThreadPool.h imgproc/imemory.h\ +", + files = { + "testscanner/main.cpp" + }, + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Ipackages/common.pkg/include", + "-Iscanner", + "-Ifpgaupdate", + "-Iusb", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iapplog", + "-Iregs", + "-DNDEBUG" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testusb/linux/arm64-v8a/release/testusb.d b/device/gxx-linux/build/.deps/testusb/linux/arm64-v8a/release/testusb.d new file mode 100644 index 0000000..3c324ac --- /dev/null +++ b/device/gxx-linux/build/.deps/testusb/linux/arm64-v8a/release/testusb.d @@ -0,0 +1,39 @@ +{ + files = { + "build/.objs/testusb/linux/arm64-v8a/release/testusb/main.cpp.o", + "build/linux/arm64-v8a/release/libregs.a", + "build/linux/arm64-v8a/release/libgimgproc.a", + "build/linux/arm64-v8a/release/libapplog.a", + "build/linux/arm64-v8a/release/libgusb.a", + "build/linux/arm64-v8a/release/libdeviceio.a", + "build/linux/arm64-v8a/release/libcapimage.a", + "build/linux/arm64-v8a/release/libmotorboard.a", + "build/linux/arm64-v8a/release/libfpgaupdate.a", + "build/linux/arm64-v8a/release/libgscanner.a" + }, + values = { + "/usr/bin/g++", + { + "-L/usr/local/lib", + "-Lbuild/linux/arm64-v8a/release", + "-s", + "-lgscanner", + "-lssl", + "-lcrypto", + "-lfpgaupdate", + "-lmotorboard", + "-lcapimage", + "-lopencv_highgui", + "-ldeviceio", + "-lgusb", + "-lapplog", + "-lgimgproc", + "-lopencv_core", + "-lopencv_imgproc", + "-lopencv_imgcodecs", + "-lFreeImage", + "-lregs", + "-lpthread" + } + } +} \ No newline at end of file diff --git a/device/gxx-linux/build/.deps/testusb/linux/arm64-v8a/release/testusb/main.cpp.o.d b/device/gxx-linux/build/.deps/testusb/linux/arm64-v8a/release/testusb/main.cpp.o.d new file mode 100644 index 0000000..53359cc --- /dev/null +++ b/device/gxx-linux/build/.deps/testusb/linux/arm64-v8a/release/testusb/main.cpp.o.d @@ -0,0 +1,29 @@ +{ + values = { + "/usr/bin/gcc", + { + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + "-O3", + "-I/usr/local/include/opencv4", + "-Ipackages/common.pkg/include", + "-Iscanner", + "-Ifpgaupdate", + "-Imotorboard", + "-Icapimage", + "-Ibuild/config/header", + "-Ideviceio", + "-Iusb", + "-Iapplog", + "-Iimgproc/ImageProcess", + "-Iimgproc", + "-Iregs", + "-DNDEBUG" + } + }, + files = { + "testusb/main.cpp" + }, + depfiles_gcc = "main.o: testusb/main.cpp packages/common.pkg/include/filetools.h packages/common.pkg/include/stringex.hpp usb/usbservice.h capimage/Capturer.h regs/regsaccess.h packages/common.pkg/include/commondef.h capimage/hgutils.h capimage/jsonconfig.h packages/common.pkg/include/json.hpp motorboard/motorboard.h packages/common.pkg/include/autoevent.hpp usb/itransmit.h imgproc/imemory.h scanner/scannerregs.h scanner/scanner.h packages/common.pkg/include/BlockingQueue.h scanner/fsmstate.h packages/common.pkg/include/threadex.h scanner/wakeup.hpp usb/inotify.h imgproc/memoryex.h usb/usbimageprocqueue.h imgproc/imgproc.h imgproc/iimage.h usb/ireceive.h scanner/imageusbtesthandler.h scanner/imageusbhandler.h scanner/iimagehandler.h imgproc/ImageProcess/ImageApplyHeaders.h imgproc/ImageProcess/ImageApply.h imgproc/ImageProcess/imgprocdefs.h imgproc/ImageProcess/ImageApplyAdjustColors.h imgproc/ImageProcess/ImageApplyAutoContrast.h imgproc/ImageProcess/ImageApplyAutoCrop.h imgproc/ImageProcess/ImageApplyBWBinaray.h imgproc/ImageProcess/ImageApplyChannel.h imgproc/ImageProcess/ImageApplyColorRecognition.h imgproc/ImageProcess/ImageApplyConcatenation.h imgproc/ImageProcess/ImageApplyCustomCrop.h imgproc/ImageProcess/ImageApplyCustomGamma.h imgproc/ImageProcess/ImageApplyCvtColor.h imgproc/ImageProcess/ImageApplyDetachNoise.h imgproc/ImageProcess/ImageApplyDiscardBlank.h imgproc/ImageProcess/ImageApplyDispersion.h imgproc/ImageProcess/ImageApplyDogEarDetection.h imgproc/ImageProcess/ImageApplyFadeBackGroundColor.h imgproc/ImageProcess/ImageApplyFilter.h imgproc/ImageProcess/ImageApplyHSVCorrect.h imgproc/ImageProcess/ImageApplyMarkCrop.h imgproc/ImageProcess/ImageApplyOutHole.h imgproc/ImageProcess/ImageApplyRefuseInflow.h imgproc/ImageProcess/ImageApplyResize.h imgproc/ImageProcess/ImageApplyRotation.h imgproc/ImageProcess/ImageApplySplit.h imgproc/ImageProcess/MatEx.h imgproc/ImageProcess/ImageApplySizeDetection.h imgproc/ImageProcess/ImageApplyTextureRemoval.h imgproc/ImageProcess/ImageMulti.h imgproc/ImageProcess/IMulti.h imgproc/ImageProcess/ImageMultiOutputRed.h imgproc/CSizedetect.h imgproc/IPreproc.h packages/common.pkg/include/ThreadPool.h applog/applog.h\ +" +} \ No newline at end of file diff --git a/device/gxx-linux/build/.objs/applog/linux/arm64-v8a/release/applog/applog.cpp.o b/device/gxx-linux/build/.objs/applog/linux/arm64-v8a/release/applog/applog.cpp.o new file mode 100644 index 0000000..7b4accd Binary files /dev/null and b/device/gxx-linux/build/.objs/applog/linux/arm64-v8a/release/applog/applog.cpp.o differ diff --git a/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/Capturer.cpp.o b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/Capturer.cpp.o new file mode 100644 index 0000000..78048d2 Binary files /dev/null and b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/Capturer.cpp.o differ diff --git a/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/FpgaComm.cpp.o b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/FpgaComm.cpp.o new file mode 100644 index 0000000..9af100f Binary files /dev/null and b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/FpgaComm.cpp.o differ diff --git a/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/gvideo.cpp.o b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/gvideo.cpp.o new file mode 100644 index 0000000..65b422c Binary files /dev/null and b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/gvideo.cpp.o differ diff --git a/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/gvideoisp1.cpp.o b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/gvideoisp1.cpp.o new file mode 100644 index 0000000..7f86950 Binary files /dev/null and b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/gvideoisp1.cpp.o differ diff --git a/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/hgutils.cpp.o b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/hgutils.cpp.o new file mode 100644 index 0000000..ed77a22 Binary files /dev/null and b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/hgutils.cpp.o differ diff --git a/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/jsonconfig.cpp.o b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/jsonconfig.cpp.o new file mode 100644 index 0000000..6ca2090 Binary files /dev/null and b/device/gxx-linux/build/.objs/capimage/linux/arm64-v8a/release/capimage/jsonconfig.cpp.o differ diff --git a/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/DevUtil.cpp.o b/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/DevUtil.cpp.o new file mode 100644 index 0000000..fce94d4 Binary files /dev/null and b/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/DevUtil.cpp.o differ diff --git a/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Gpio.cpp.o b/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Gpio.cpp.o new file mode 100644 index 0000000..117017f Binary files /dev/null and b/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Gpio.cpp.o differ diff --git a/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Led.cpp.o b/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Led.cpp.o new file mode 100644 index 0000000..dacca8f Binary files /dev/null and b/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Led.cpp.o differ diff --git a/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/PinMonitor.cpp.o b/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/PinMonitor.cpp.o new file mode 100644 index 0000000..cae6de6 Binary files /dev/null and b/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/PinMonitor.cpp.o differ diff --git a/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Pwm.cpp.o b/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Pwm.cpp.o new file mode 100644 index 0000000..fb9772f Binary files /dev/null and b/device/gxx-linux/build/.objs/deviceio/linux/arm64-v8a/release/deviceio/Pwm.cpp.o differ diff --git a/device/gxx-linux/build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/fpgacontrol.cpp.o b/device/gxx-linux/build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/fpgacontrol.cpp.o new file mode 100644 index 0000000..12e32c1 Binary files /dev/null and b/device/gxx-linux/build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/fpgacontrol.cpp.o differ diff --git a/device/gxx-linux/build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd.c.o b/device/gxx-linux/build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd.c.o new file mode 100644 index 0000000..2d7c391 Binary files /dev/null and b/device/gxx-linux/build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd.c.o differ diff --git a/device/gxx-linux/build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd_legacy.c.o b/device/gxx-linux/build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd_legacy.c.o new file mode 100644 index 0000000..de3ae8c Binary files /dev/null and b/device/gxx-linux/build/.objs/fpgaupdate/linux/arm64-v8a/release/fpgaupdate/libmtd_legacy.c.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/CSizedetect.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/CSizedetect.cpp.o new file mode 100644 index 0000000..9fd08b1 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/CSizedetect.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/IPreproc.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/IPreproc.cpp.o new file mode 100644 index 0000000..71f6a5b Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/IPreproc.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/IMulti.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/IMulti.cpp.o new file mode 100644 index 0000000..67f1e0e Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/IMulti.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApply.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApply.cpp.o new file mode 100644 index 0000000..bbbb518 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApply.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAdjustColors.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAdjustColors.cpp.o new file mode 100644 index 0000000..034204c Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAdjustColors.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoContrast.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoContrast.cpp.o new file mode 100644 index 0000000..59b4086 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoContrast.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoCrop.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoCrop.cpp.o new file mode 100644 index 0000000..2f749bf Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyAutoCrop.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyBWBinaray.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyBWBinaray.cpp.o new file mode 100644 index 0000000..bccd2da Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyBWBinaray.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyChannel.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyChannel.cpp.o new file mode 100644 index 0000000..11a1d6d Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyChannel.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyColorRecognition.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyColorRecognition.cpp.o new file mode 100644 index 0000000..682159c Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyColorRecognition.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyConcatenation.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyConcatenation.cpp.o new file mode 100644 index 0000000..df0b73c Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyConcatenation.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomCrop.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomCrop.cpp.o new file mode 100644 index 0000000..1da743e Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomCrop.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomGamma.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomGamma.cpp.o new file mode 100644 index 0000000..97f756d Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCustomGamma.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCvtColor.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCvtColor.cpp.o new file mode 100644 index 0000000..fe600a6 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyCvtColor.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDetachNoise.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDetachNoise.cpp.o new file mode 100644 index 0000000..ee55e7f Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDetachNoise.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDiscardBlank.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDiscardBlank.cpp.o new file mode 100644 index 0000000..009a4a1 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDiscardBlank.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDispersion.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDispersion.cpp.o new file mode 100644 index 0000000..c9ab739 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDispersion.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDogEarDetection.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDogEarDetection.cpp.o new file mode 100644 index 0000000..a93d480 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyDogEarDetection.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFadeBackGroundColor.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFadeBackGroundColor.cpp.o new file mode 100644 index 0000000..8da8dac Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFadeBackGroundColor.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFilter.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFilter.cpp.o new file mode 100644 index 0000000..5124ec9 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyFilter.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyHSVCorrect.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyHSVCorrect.cpp.o new file mode 100644 index 0000000..9e6b6b9 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyHSVCorrect.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyMarkCrop.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyMarkCrop.cpp.o new file mode 100644 index 0000000..df7fb1e Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyMarkCrop.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyOutHole.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyOutHole.cpp.o new file mode 100644 index 0000000..6d5d03f Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyOutHole.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRefuseInflow.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRefuseInflow.cpp.o new file mode 100644 index 0000000..37ce5dc Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRefuseInflow.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyResize.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyResize.cpp.o new file mode 100644 index 0000000..6c8221e Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyResize.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRotation.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRotation.cpp.o new file mode 100644 index 0000000..563e419 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyRotation.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySizeDetection.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySizeDetection.cpp.o new file mode 100644 index 0000000..811ecde Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySizeDetection.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySplit.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySplit.cpp.o new file mode 100644 index 0000000..7ef328e Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplySplit.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyTextureRemoval.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyTextureRemoval.cpp.o new file mode 100644 index 0000000..de55289 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyTextureRemoval.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyUVMerge.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyUVMerge.cpp.o new file mode 100644 index 0000000..274cf32 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageApplyUVMerge.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMulti.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMulti.cpp.o new file mode 100644 index 0000000..8ff4fe8 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMulti.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMultiOutputRed.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMultiOutputRed.cpp.o new file mode 100644 index 0000000..c012764 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageMultiOutputRed.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageProcess_Public.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageProcess_Public.cpp.o new file mode 100644 index 0000000..c4e2df4 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/ImageProcess/ImageProcess_Public.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/cvimagex.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/cvimagex.cpp.o new file mode 100644 index 0000000..0f43696 Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/cvimagex.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/imageencode.cpp.o b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/imageencode.cpp.o new file mode 100644 index 0000000..c5880df Binary files /dev/null and b/device/gxx-linux/build/.objs/gimgproc/linux/arm64-v8a/release/imgproc/imageencode.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/deviceconfig.cpp.o b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/deviceconfig.cpp.o new file mode 100644 index 0000000..40099a7 Binary files /dev/null and b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/deviceconfig.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/fsmstate.cpp.o b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/fsmstate.cpp.o new file mode 100644 index 0000000..658ef20 Binary files /dev/null and b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/fsmstate.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/imagesavehandler.cpp.o b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/imagesavehandler.cpp.o new file mode 100644 index 0000000..a0161da Binary files /dev/null and b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/imagesavehandler.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/imageusbhandler.cpp.o b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/imageusbhandler.cpp.o new file mode 100644 index 0000000..21cc7f0 Binary files /dev/null and b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/imageusbhandler.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/imageusbtesthandler.cpp.o b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/imageusbtesthandler.cpp.o new file mode 100644 index 0000000..fb0bc0a Binary files /dev/null and b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/imageusbtesthandler.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/scanner.cpp.o b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/scanner.cpp.o new file mode 100644 index 0000000..222b586 Binary files /dev/null and b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/scanner.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/scannerregs.cpp.o b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/scannerregs.cpp.o new file mode 100644 index 0000000..22617f2 Binary files /dev/null and b/device/gxx-linux/build/.objs/gscanner/linux/arm64-v8a/release/scanner/scannerregs.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gservice/linux/arm64-v8a/release/service/main.cpp.o b/device/gxx-linux/build/.objs/gservice/linux/arm64-v8a/release/service/main.cpp.o new file mode 100644 index 0000000..7f11743 Binary files /dev/null and b/device/gxx-linux/build/.objs/gservice/linux/arm64-v8a/release/service/main.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/src/logs_out.cpp.o b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/src/logs_out.cpp.o new file mode 100644 index 0000000..96eabfd Binary files /dev/null and b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/src/logs_out.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/src/usbdevice.cpp.o b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/src/usbdevice.cpp.o new file mode 100644 index 0000000..cbb4334 Binary files /dev/null and b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/src/usbdevice.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/src/usbstring.cpp.o b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/src/usbstring.cpp.o new file mode 100644 index 0000000..68dfe35 Binary files /dev/null and b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/src/usbstring.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbnotify.cpp.o b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbnotify.cpp.o new file mode 100644 index 0000000..9dc6a76 Binary files /dev/null and b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbnotify.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbreceive.cpp.o b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbreceive.cpp.o new file mode 100644 index 0000000..cc9435b Binary files /dev/null and b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbreceive.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbservice.cpp.o b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbservice.cpp.o new file mode 100644 index 0000000..ef677d6 Binary files /dev/null and b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbservice.cpp.o differ diff --git a/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbtransmit.cpp.o b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbtransmit.cpp.o new file mode 100644 index 0000000..b035303 Binary files /dev/null and b/device/gxx-linux/build/.objs/gusb/linux/arm64-v8a/release/usb/usbtransmit.cpp.o differ diff --git a/device/gxx-linux/build/.objs/motorboard/linux/arm64-v8a/release/motorboard/motorboard.cpp.o b/device/gxx-linux/build/.objs/motorboard/linux/arm64-v8a/release/motorboard/motorboard.cpp.o new file mode 100644 index 0000000..f54f8f0 Binary files /dev/null and b/device/gxx-linux/build/.objs/motorboard/linux/arm64-v8a/release/motorboard/motorboard.cpp.o differ diff --git a/device/gxx-linux/build/.objs/regs/linux/arm64-v8a/release/regs/serialib.cpp.o b/device/gxx-linux/build/.objs/regs/linux/arm64-v8a/release/regs/serialib.cpp.o new file mode 100644 index 0000000..dd969d7 Binary files /dev/null and b/device/gxx-linux/build/.objs/regs/linux/arm64-v8a/release/regs/serialib.cpp.o differ diff --git a/device/gxx-linux/build/.objs/regs/linux/arm64-v8a/release/regs/uartregaccessb.cpp.o b/device/gxx-linux/build/.objs/regs/linux/arm64-v8a/release/regs/uartregaccessb.cpp.o new file mode 100644 index 0000000..92e1a86 Binary files /dev/null and b/device/gxx-linux/build/.objs/regs/linux/arm64-v8a/release/regs/uartregaccessb.cpp.o differ diff --git a/device/gxx-linux/build/.objs/regs/linux/arm64-v8a/release/regs/uartregsaccess.cpp.o b/device/gxx-linux/build/.objs/regs/linux/arm64-v8a/release/regs/uartregsaccess.cpp.o new file mode 100644 index 0000000..daaa3b1 Binary files /dev/null and b/device/gxx-linux/build/.objs/regs/linux/arm64-v8a/release/regs/uartregsaccess.cpp.o differ diff --git a/device/gxx-linux/build/.objs/scanservice/linux/arm64-v8a/release/scanservice/main.cpp.o b/device/gxx-linux/build/.objs/scanservice/linux/arm64-v8a/release/scanservice/main.cpp.o new file mode 100644 index 0000000..d00f0c7 Binary files /dev/null and b/device/gxx-linux/build/.objs/scanservice/linux/arm64-v8a/release/scanservice/main.cpp.o differ diff --git a/device/gxx-linux/build/.objs/testcapimage/linux/arm64-v8a/release/testcapimage/main.cpp.o b/device/gxx-linux/build/.objs/testcapimage/linux/arm64-v8a/release/testcapimage/main.cpp.o new file mode 100644 index 0000000..eda30e9 Binary files /dev/null and b/device/gxx-linux/build/.objs/testcapimage/linux/arm64-v8a/release/testcapimage/main.cpp.o differ diff --git a/device/gxx-linux/build/.objs/testimgproc/linux/arm64-v8a/release/testimgproc/main.cpp.o b/device/gxx-linux/build/.objs/testimgproc/linux/arm64-v8a/release/testimgproc/main.cpp.o new file mode 100644 index 0000000..4228f37 Binary files /dev/null and b/device/gxx-linux/build/.objs/testimgproc/linux/arm64-v8a/release/testimgproc/main.cpp.o differ diff --git a/device/gxx-linux/build/.objs/testmotorboard/linux/arm64-v8a/release/testmotorboard/main.cpp.o b/device/gxx-linux/build/.objs/testmotorboard/linux/arm64-v8a/release/testmotorboard/main.cpp.o new file mode 100644 index 0000000..51c12f6 Binary files /dev/null and b/device/gxx-linux/build/.objs/testmotorboard/linux/arm64-v8a/release/testmotorboard/main.cpp.o differ diff --git a/device/gxx-linux/build/.objs/testregs/linux/arm64-v8a/release/testregs/main.cpp.o b/device/gxx-linux/build/.objs/testregs/linux/arm64-v8a/release/testregs/main.cpp.o new file mode 100644 index 0000000..3532d57 Binary files /dev/null and b/device/gxx-linux/build/.objs/testregs/linux/arm64-v8a/release/testregs/main.cpp.o differ diff --git a/device/gxx-linux/build/.objs/testscanner/linux/arm64-v8a/release/testscanner/main.cpp.o b/device/gxx-linux/build/.objs/testscanner/linux/arm64-v8a/release/testscanner/main.cpp.o new file mode 100644 index 0000000..e6c3dd3 Binary files /dev/null and b/device/gxx-linux/build/.objs/testscanner/linux/arm64-v8a/release/testscanner/main.cpp.o differ diff --git a/device/gxx-linux/build/.objs/testusb/linux/arm64-v8a/release/testusb/main.cpp.o b/device/gxx-linux/build/.objs/testusb/linux/arm64-v8a/release/testusb/main.cpp.o new file mode 100644 index 0000000..43561de Binary files /dev/null and b/device/gxx-linux/build/.objs/testusb/linux/arm64-v8a/release/testusb/main.cpp.o differ diff --git a/device/gxx-linux/build/app.log b/device/gxx-linux/build/app.log new file mode 100644 index 0000000..e69de29 diff --git a/device/gxx-linux/build/config/header/config.h b/device/gxx-linux/build/config/header/config.h new file mode 100644 index 0000000..0fe93d4 --- /dev/null +++ b/device/gxx-linux/build/config/header/config.h @@ -0,0 +1,10 @@ +#pragma once + +#define FPGA_UART "/dev/ttyUSB0" +#define MOTOR_UART "/dev/ttyS4" +/* #undef CIS_TYPE */ +/* #undef TEST_IMAGE_DIR */ +/* #undef CAP_UNFIXED */ +#define TEST_FPGA "ON" +/* #undef LOOP_DEBUG */ +#define VIDEO_CLASS GVideoISP1 \ No newline at end of file diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/app.log b/device/gxx-linux/build/linux/arm64-v8a/release/app.log new file mode 100644 index 0000000..e69de29 diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/gservice b/device/gxx-linux/build/linux/arm64-v8a/release/gservice new file mode 100644 index 0000000..95c1f04 Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/gservice differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/libapplog.a b/device/gxx-linux/build/linux/arm64-v8a/release/libapplog.a new file mode 100644 index 0000000..3a064e0 Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/libapplog.a differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/libcapimage.a b/device/gxx-linux/build/linux/arm64-v8a/release/libcapimage.a new file mode 100644 index 0000000..8600bba Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/libcapimage.a differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/libdeviceio.a b/device/gxx-linux/build/linux/arm64-v8a/release/libdeviceio.a new file mode 100644 index 0000000..bf7caaf Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/libdeviceio.a differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/libfpgaupdate.a b/device/gxx-linux/build/linux/arm64-v8a/release/libfpgaupdate.a new file mode 100644 index 0000000..f406a0a Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/libfpgaupdate.a differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/libgimgproc.a b/device/gxx-linux/build/linux/arm64-v8a/release/libgimgproc.a new file mode 100644 index 0000000..f01502c Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/libgimgproc.a differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/libgscanner.a b/device/gxx-linux/build/linux/arm64-v8a/release/libgscanner.a new file mode 100644 index 0000000..3d5b50a Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/libgscanner.a differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/libgusb.a b/device/gxx-linux/build/linux/arm64-v8a/release/libgusb.a new file mode 100644 index 0000000..7a90155 Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/libgusb.a differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/libmotorboard.a b/device/gxx-linux/build/linux/arm64-v8a/release/libmotorboard.a new file mode 100644 index 0000000..6f6b3f6 Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/libmotorboard.a differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/libregs.a b/device/gxx-linux/build/linux/arm64-v8a/release/libregs.a new file mode 100644 index 0000000..9c69aeb Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/libregs.a differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/scanservice b/device/gxx-linux/build/linux/arm64-v8a/release/scanservice new file mode 100644 index 0000000..4e4505d Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/scanservice differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/scanservice_bkp b/device/gxx-linux/build/linux/arm64-v8a/release/scanservice_bkp new file mode 100644 index 0000000..8c2a7c1 Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/scanservice_bkp differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/testcapimage b/device/gxx-linux/build/linux/arm64-v8a/release/testcapimage new file mode 100644 index 0000000..941030f Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/testcapimage differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/testimgproc b/device/gxx-linux/build/linux/arm64-v8a/release/testimgproc new file mode 100644 index 0000000..c2d635e Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/testimgproc differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/testmotorboard b/device/gxx-linux/build/linux/arm64-v8a/release/testmotorboard new file mode 100644 index 0000000..cebe1d0 Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/testmotorboard differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/testregs b/device/gxx-linux/build/linux/arm64-v8a/release/testregs new file mode 100644 index 0000000..20f0e92 Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/testregs differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/testscanner b/device/gxx-linux/build/linux/arm64-v8a/release/testscanner new file mode 100644 index 0000000..655f26f Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/testscanner differ diff --git a/device/gxx-linux/build/linux/arm64-v8a/release/testusb b/device/gxx-linux/build/linux/arm64-v8a/release/testusb new file mode 100644 index 0000000..2b4cba7 Binary files /dev/null and b/device/gxx-linux/build/linux/arm64-v8a/release/testusb differ diff --git a/device/gxx-linux/capimage/Capturer.cpp b/device/gxx-linux/capimage/Capturer.cpp new file mode 100644 index 0000000..dc5cf06 --- /dev/null +++ b/device/gxx-linux/capimage/Capturer.cpp @@ -0,0 +1,916 @@ +#include "Capturer.h" +#include "DevUtil.h" +#include +#include +#include +#include "Gpio.h" +#include "FpgaComm.h" +#include "gvideoisp1.h" +#include "config.h" +#include +#include +#include "applog.h" +#include "stringex.hpp" +#include +#include +#include "filetools.h" + +using namespace std; +#define LOG_PATH "/usr/local/correct.log" +FileTools ft(LOG_PATH); + +static std::string loggername = "Capturer"; + +bool isAutoCorrect = true; +int offsetStep[12]; +int expStep[2][3]; +double radio = 1; +cv::Mat mBuffMat; +cv::Mat out; + +#define LIGHT_DIFF(maxthre, x) ((maxthre)-x) +#define BLACK_DIFF(x) (10 - x) +#define FMT_STEP(x) \ + do \ + { \ + if (x < 1 && x > 0) \ + { \ + x = 1; \ + } \ + if (step < 0 && step > -1) \ + { \ + x = -1; \ + } \ + } while (0) + +void initStep() +{ + for (int i = 0; i < 12; i++) + { + offsetStep[i] = 256; + } + for (int i = 0; i < 2; i++) + { + for (int j = 0; j < 3; j++) + { + expStep[i][j] = 1200; + } + } +} + +//设置一面的offset值 +void setOffset(int *config, int step) +{ + for (int i = 0; i < 6; i++) + { + int *offset = config + i; + *offset += step; + if (*offset < 0) + *offset = 1; + if (*offset > 255) + *offset = 255; + } +} + +Capturer::Capturer() + : vdd_cis_3voff_pin(new GpioOut(CIS_3v3_Off)), + vdd_vis_5ven_pin(new GpioOut(CIS_5v_En)), + reset_pin(new GpioOut(Fpga_Reset)), + image_in_transfer_pin(new Gpio(Image_In_Transfer)), + initDone_pin(new Gpio(Fpga_InitDone)), + fpgaLoad(new Gpio(70)), + fpga_conf_done(new Gpio(69)),//gpio init 导出 scanservice 仅操作IO + fpga_conf_initn(new Gpio(71)),//gpio init 导出 scanservice 仅操作IO + bcorrecting(false) +{ + LOG_INIT(); + fpgaComm.reset(new FpgaComm()); + fpga_reset(); + fpgaComm->resetADC(); + fpgaComm->setDelayTime(0X3e8); + + video.reset(new VIDEO_CLASS()); +} + +Capturer::~Capturer() +{ + +} + +void Capturer::Fpga_regsAccess_reset(bool enable){ + if(fpgaComm.get()) + fpgaComm->regsAccess_reset(enable); +} + +void Capturer::open() +{ + cisconfigs = getcisparams(); + int height = 6000; + set_sp(0x0208); + fpgaComm->setColorMode(1); + // int height = 2000; + // set_sp(0x0bf0); + // fpgaComm->setColorMode(0); + fpgaComm->setDpi(1); + fpgaComm->setSample(256); + fpgaComm->enableLed(true); + //设置曝光值等 + int exp[2][3]; + int gains[2][6]; + int offsets[2][6]; + for (int i = 0; i < 3; i++) + set_expo(i, 0x300); //0x1b0); + + for (int i = 0; i < 2; i++) + { + set_gain(i, 300); + set_offset(i, 150); + } + + fpgaComm->setFrameHeight(12); + std::this_thread::sleep_for(std::chrono::milliseconds(1)); + fpgaComm->capture(); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); + video.reset(new VIDEO_CLASS()); + + video->open(1632, height); + fpgaComm->setFrameHeight(12); + for (int i = 0; i < 1; i++) + { + fpgaComm->capture(); + std::this_thread::sleep_for(std::chrono::milliseconds(20)); + } + fpgaComm->setFrameHeight(height); +} +static int val = 0; +static double exp_ratio = 0.1; +void Capturer::open(HGScanConfig config) +{ + if (val > 4000) + val = 0; + + if (exp_ratio > 2.0) + exp_ratio = 0.1; + cisconfigs = getcisparams(); + auto hgsize = papersMap[(PaperSize)config.g200params.paper]; + int height = hgsize.height; + fpgaComm->setColorMode(config.g200params.color ? 1 : 0); + auto info = jsonconfig().getscannerinfo(); + //set_sp(config.g200params.color ? cisconfigs.color.sp : cisconfigs.gray.sp); //0x03fa : 0x0bf0 + int clrsp, graysp; +// if (scannerSp.count((SpeedMode)info.speedmode) <= 0) +// { +// #ifdef G200 +// clrsp = scannerSp[SpeedMode::PPM100].colorSp; +// graysp = scannerSp[SpeedMode::PPM100].colorSp; +// #else +// clrsp = scannerSp[SpeedMode::PPM70].colorSp; +// graysp = scannerSp[SpeedMode::PPM70].colorSp; +// #endif +// } +// else +// { +// clrsp = scannerSp[(SpeedMode)info.speedmode].colorSp; +// graysp = scannerSp[(SpeedMode)info.speedmode].colorSp; +// } + clrsp=info.color_sp; + graysp = info.gray_sp; + set_sp(config.g200params.color ? clrsp : graysp); + HG_LOG("\n capture color sp =%d, gray sp =%d",clrsp,graysp); + //set_sp(config.g200params.color ? 0x335 : 0x99f); //G100 0x438 0xca8 60 ppm 0x335 : 0x99f 100ppm + //G200 SP极限值205 0x27c 0x775 140ppm + //fpgaComm->setDpi(config.g200params.dpi); //0 300dpi 1 200dpi + fpgaComm->setDpi(1); + fpgaComm->setSample(256); + fpgaComm->enableLed(true); + //设置曝光值等 + + configFPGAParam(false, config.g200params.color); + + //fpgaComm->setFrameHeight(12); + //std::this_thread::sleep_for(std::chrono::milliseconds(1)); + //fpgaComm->capture(); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); + + video->open(1632, config.g200params.color ? height : height / 3); + fpgaComm->setFrameHeight(12); + for (int i = 0; i < 1; i++) + { + fpgaComm->capture(); + std::this_thread::sleep_for(std::chrono::milliseconds(20)); + } + fpgaComm->setFrameHeight(config.g200params.color ? height : height / 3); + //fpgaComm->update(); +} + +void Capturer::close() +{ + if (video) + { + video->close(); + } + fpga_reload(); +} +void Capturer::start() +{ + if (video) + video->start(); +} + +void Capturer::stop() +{ + if (video) + video->stop(); +} + +void Capturer::reset() +{ + fpga_reset(); + fpgaComm->resetADC(); + fpgaComm->setDelayTime(0X3e8); + fpgaComm->setRegs(0x00, fpgaComm->getRegs(0x00)); + fpgaComm->setRegs(0x01, fpgaComm->getRegs(0x01)); +} + +void Capturer::set_size(int width, int height) +{ + if (video) + video->set_size(width, height); +} + +void Capturer::snap() +{ + fpgaComm->capture(); +} + +std::shared_ptr Capturer::regs() +{ + return fpgaComm; +} + +void Capturer::fpga_reset() +{ + reset_pin->setValue(Gpio::Low); + std::this_thread::sleep_for(std::chrono::milliseconds(50)); + reset_pin->setValue(Gpio::High); + std::this_thread::sleep_for(std::chrono::milliseconds(50)); +} + +// void Capturer::fpga_reload() +// { +// //fpga 代码重载 +// fpgaLoad->setValue(Gpio::Low); +// std::this_thread::sleep_for(std::chrono::milliseconds(15)); +// fpgaLoad->setValue(Gpio::High); +// std::this_thread::sleep_for(std::chrono::milliseconds(15)); +// fpgaComm->resetADC(); +// } + +void Capturer::set_expo(int ix, int val) +{ + switch (ix) + { + case 0: + fpgaComm->setAExposureB(val); + break; + case 1: + fpgaComm->setAExposureG(val); //!< ok + break; + case 2: + fpgaComm->setAExposureR(val); //!< ok + break; + case 3: + fpgaComm->setBExposureB(val); + break; + case 4: + fpgaComm->setBExposureG(val); + break; + case 5: + fpgaComm->setBExposureR(val); + break; + default: + break; + } + std::this_thread::sleep_for(std::chrono::milliseconds(1)); +} + +void Capturer::set_gain(int ix, int val) +{ + for (int i = 0; i < 6; i++) + { + if (ix) + fpgaComm->setAGain(i, val); + else + fpgaComm->setBGain(i, val); + } +} + +void Capturer::set_offset(int ix, int val) +{ + for (int i = 0; i < 6; i++) + { + if (ix) + fpgaComm->setAOffset(i, val); + else + fpgaComm->setBOffset(i, val); + + std::this_thread::sleep_for(std::chrono::milliseconds(1)); + } +} + +void Capturer::configFPGAParam(bool iscorrect, int mode) +{ + int exposures[2][3]; + int gains[2][6]; + int offsets[2][6]; + if (iscorrect) + { + memcpy(&exposures[0][0], mode == IMAGE_COLOR ? cisconfigs.colorCorrect.expF : cisconfigs.grayCorrect.expF, sizeof(int) * 3); + memcpy(&exposures[1][0], mode == IMAGE_COLOR ? cisconfigs.colorCorrect.expB : cisconfigs.grayCorrect.expB, sizeof(int) * 3); + memcpy(&gains[0][0], mode == IMAGE_COLOR ? cisconfigs.colorCorrect.gainF : cisconfigs.grayCorrect.gainF, sizeof(int) * 6); + memcpy(&gains[1][0], mode == IMAGE_COLOR ? cisconfigs.colorCorrect.gainB : cisconfigs.grayCorrect.gainB, sizeof(int) * 6); + memcpy(&offsets[0][0], mode == IMAGE_COLOR ? cisconfigs.colorCorrect.offsetsF : cisconfigs.grayCorrect.offsetsF, sizeof(int) * 6); + memcpy(&offsets[1][0], mode == IMAGE_COLOR ? cisconfigs.colorCorrect.offsetsB : cisconfigs.grayCorrect.offsetsB, sizeof(int) * 6); + } + else + { + memcpy(&exposures[0][0], mode == IMAGE_COLOR ? cisconfigs.color.expF : cisconfigs.gray.expF, sizeof(int) * 3); + memcpy(&exposures[1][0], mode == IMAGE_COLOR ? cisconfigs.color.expB : cisconfigs.gray.expB, sizeof(int) * 3); + memcpy(&gains[0][0], mode == IMAGE_COLOR ? cisconfigs.color.gainF : cisconfigs.gray.gainF, sizeof(int) * 6); + memcpy(&gains[1][0], mode == IMAGE_COLOR ? cisconfigs.color.gainB : cisconfigs.gray.gainB, sizeof(int) * 6); + memcpy(&offsets[0][0], mode == IMAGE_COLOR ? cisconfigs.color.offsetsF : cisconfigs.gray.offsetsF, sizeof(int) * 6); + memcpy(&offsets[1][0], mode == IMAGE_COLOR ? cisconfigs.color.offsetsB : cisconfigs.gray.offsetsB, sizeof(int) * 6); + } + + //static int val = 0; + + //int step = 100; + + // for(int i = 0;i<2;i++) + // { + // for(int j =0 ;j<3;j++) + // { + + // exposures[i][j] =i==0? cisconfigs.gray.expF[j]*exp_ratio:cisconfigs.gray.expB[j]*exp_ratio; + // printf("exp_ratio = %0.2f \r\n",exp_ratio); + // } + // } + // val+=step; + // exp_ratio += 0.1; + + // for (int i = 0; i < 2; i++) + // { + // for (int j = 0; j < 6; j++) + // { + + // printf("gains[%d][%d] = %d \r\n", i, j, gains[i][j]); + // printf("offsets[%d][%d] = %d \r\n", i, j, offsets[i][j]); + // if (j < 3) + // { + // printf("exposures[%d][%d] = %d \r\n", i, j, exposures[i][j]); + // } + // } + // } + + setFGPAParmas(exposures, gains, offsets); +} +void Capturer::setFGPAParmas(int exposures[2][3], int gains[2][6], int offsets[2][6]) +{ + //set exposuretime + fpgaComm->setAExposureB(exposures[0][0]); + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + fpgaComm->setAExposureG(exposures[0][1]); + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + fpgaComm->setAExposureR(exposures[0][2]); + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + fpgaComm->setBExposureB(exposures[1][0]); + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + fpgaComm->setBExposureG(exposures[1][1]); + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + fpgaComm->setBExposureR(exposures[1][2]); + // set Gain and offset + for (int i = 0; i < 6; i++) + { + //LOGD("setAGain %d =:%d", i , gains[0][i]); + fpgaComm->setAGain(i, gains[0][i]); // A面增加 + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + fpgaComm->setBGain(i, gains[1][i]); // B面增益 + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + fpgaComm->setAOffset(i, offsets[0][i]); // A面偏置 + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + fpgaComm->setBOffset(i, offsets[1][i]); //B面偏置 + } +} + +void *Capturer::readFrame(int timeout) +{ + auto ret= video->read_frame(timeout); + return ret; +} + +bool Capturer::is_runing() +{ + return true; +} + +int Capturer::color() +{ + return fpgaComm->getColorMode() ? 16 : 0; +} + +int Capturer::height() +{ + return fpgaComm->getFrameHeight(); +} + +int Capturer::width() +{ + return 1632; +} + +void Capturer::set_sp(int sp) +{ + fpgaComm->setSp(sp); +} + +void Capturer::init_autocorrect(int colormode) +{ + std::thread t_correctthread = std::thread(&Capturer::autocorrect, this, colormode); + t_correctthread.detach(); +} + +void Capturer::autocorrect(int colormode) +{ + bcorrecting = true; + cisconfigs = getcisparams(); + scannerinfo = getscannerinfo(); + ft.clear(); + ft.append_log("start correct"); + if (m_captureCallback) + { + m_captureCallback(colormode, colormode ? "------开始彩色校正------\r\n" : "------开始灰度校正------\r\n"); + } + creatcorrectconfig(colormode ? IMAGE_COLOR : IMAGE_GRAY); + creatLUTData(colormode ? IMAGE_COLOR : IMAGE_GRAY, CISVendor::HUALIN_CIS_V0); + if (colormode) + { + memcpy(cisconfigs.color.offsetsF, cisconfigs.colorCorrect.offsetsF, sizeof(int) * 6); + memcpy(cisconfigs.color.offsetsB, cisconfigs.colorCorrect.offsetsB, sizeof(int) * 6); + memcpy(cisconfigs.color.expF, cisconfigs.colorCorrect.expF, sizeof(int) * 3); + memcpy(cisconfigs.color.expB, cisconfigs.colorCorrect.expB, sizeof(int) * 3); + } + else + { + memcpy(cisconfigs.gray.offsetsF, cisconfigs.grayCorrect.offsetsF, sizeof(int) * 6); + memcpy(cisconfigs.gray.offsetsB, cisconfigs.grayCorrect.offsetsB, sizeof(int) * 6); + memcpy(cisconfigs.gray.expF, cisconfigs.grayCorrect.expF, sizeof(int) * 3); + memcpy(cisconfigs.gray.expB, cisconfigs.grayCorrect.expB, sizeof(int) * 3); + } + savecisparams(cisconfigs); + initLut(); + if (m_captureCallback) + m_captureCallback(4, colormode ? "------彩色校正完成------\r\n" : "------灰度校正完成------\r\n"); + reset(); + bcorrecting = false; + HG_LOG("init_autocorrect exit \n"); +} + +void Capturer::creatcorrectconfig(int mode) +{ + std::string msg = mode == IMAGE_COLOR ? "彩色" : "灰度"; + //LOG_TRACE("creatcorrectconfig \r\n"); + ft.append_log("开始" + msg + "暗场校正"); + if (m_captureCallback) + m_captureCallback(mode, "开始" + msg + "暗场校正\r\n"); + openDevice(mode); + bool isDone = false; + int i = 1; + initStep(); + while (!isDone) //先暗场 + { + configFPGAParam(true, mode); + string log = "==============================第" + to_string(i) + "次=============================== \r\n"; + ft.append_log(log); + if (m_captureCallback) + m_captureCallback(mode, log); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + fpgaComm->enableLed(false); + std::this_thread::sleep_for(std::chrono::milliseconds(200)); + //fpgaComm->update(); + fpgaComm->capture(); + std::this_thread::sleep_for(std::chrono::milliseconds(500)); + isDone = saveLutImg(mode, mode == IMAGE_COLOR ? 0 : 2); // 0 color_black 1 color_white 2 gray_balck 3 gray_white + i++; + } + i = 1; + isDone = false; + initStep(); + ft.append_log("开始" + msg + "明场校正"); + if (m_captureCallback) + m_captureCallback(mode, "开始" + msg + "明场校正 \r\n"); + while (!isDone) //后明场 + { + configFPGAParam(true, mode); + string log = "==============================第" + to_string(i) + "次=============================== \r\n"; + ft.append_log(log); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + fpgaComm->enableLed(true); + fpgaComm->update(); + std::this_thread::sleep_for(std::chrono::milliseconds(200)); + fpgaComm->capture(); + std::this_thread::sleep_for(std::chrono::milliseconds(500)); + isDone = saveLutImg(mode, mode == IMAGE_COLOR ? 1 : 3); + //isDone = true; + i++; + } + LOG_TRACE(string_format("creatcorrectconfig %s \r\n", (mode == IMAGE_COLOR ? " Color" : " Gray"))); + video->close(); + std::this_thread::sleep_for(std::chrono::milliseconds(1000)); +} + +void Capturer::openDevice(int mode) +{ + this->reset(); + // #ifdef G00 + int width = 1632; + int height = 6000; + // #else + // int width = 1728; + // int height = 6000; + // #endif + video->open(width, mode == IMAGE_COLOR ? height : height / 3); + std::this_thread::sleep_for(std::chrono::milliseconds(20)); + fpgaComm->capture(); + video->read_frame(200); //丢弃第一张无效图像 + LOG_TRACE(string_format("cisconfigs.grayCorrect.sp = %d \r\n", cisconfigs.grayCorrect.sp)); + //fpgaComm->setSp(mode == IMAGE_COLOR ? cisconfigs.colorCorrect.sp : cisconfigs.grayCorrect.sp); + auto info = getscannerinfo(); + fpgaComm->setSp(mode == IMAGE_COLOR ? info.color_sp : info.gray_sp); //0x438 : 0xca8 + fpgaComm->setSample(256); + fpgaComm->setDpi(1); + fpgaComm->setColorMode(mode == IMAGE_COLOR ? 1 : 0); + fpgaComm->setFrameHeight(mode == IMAGE_COLOR ? height : height / 3); + fpgaComm->enableLed(true); +} + +static int savelutindex = 0; +bool Capturer::saveLutImg(int mode, int index) +{ + int offset_indexs[12] = {0, 1, 2, 5, 4, 3, 3, 4, 5, 2, 1, 0}; + int count = 1; + int height = 6000; + int width = 1632; + bool isNeedSave = true; + string log; + for (int i = 0; i < 1; i++) + { + void *data = video->read_frame(1500); + if (data == NULL) + { + log = "图像采集失败!\r\n"; + ft.append_log(log); + isNeedSave = false; + if (m_captureCallback) + m_captureCallback(mode, log); + } + if (data && isNeedSave) + { + if (mode == IMAGE_COLOR) + { + cv::Mat mergeMat = GetMergeMat(data, this->width(), this->height(), this->color()); + cv::cvtColor(mergeMat, mergeMat, CV_RGB2BGR); + if (i == 0) + { + double values[2][3]; + cv::Scalar a = cv::mean(mergeMat(cv::Rect(0, 0, mergeMat.cols / 2, mergeMat.rows))); + cv::Scalar b = cv::mean(mergeMat(cv::Rect(mergeMat.cols / 2, 0, mergeMat.cols / 2, mergeMat.rows))); + for (int j = 0; j < 3; j++) + { + values[0][j] = a.val[2 - j]; + values[1][j] = b.val[2 - j]; + } + double offValues[12]; + for (int n = 0; n < 2; n++) + { + cv::Mat img = mergeMat(cv::Rect(mergeMat.cols * n / 2, 0, mergeMat.cols / 2, mergeMat.rows)); + int offset_total = 0; + for (int s = 0; s < 6; s++) // + { + int k = n * 6 + s; + int offset_wdth; + if ((s == 0 && k == 0) || (s == 5 && k == 11)) + offset_wdth = 288; + else + offset_wdth = 432; + + cv::Scalar mean; + mean = cv::mean(img(cv::Rect(offset_total, 0, offset_wdth, img.rows))); + if ((s == 0 && k == 0) || (s == 5 && k == 11)) + offset_total += 288; + else + offset_total += 432; + offValues[k] = mean.val[0]; + } + } + + log += " 彩色A面RGB值:" + std::to_string(values[0][0]) + "," + std::to_string(values[0][1]) + "," + std::to_string(values[0][2]) + "\r\n"; + log += " 彩色B面RGB值:" + std::to_string(values[1][0]) + "," + std::to_string(values[1][1]) + "," + std::to_string(values[1][2]) + "\r\n"; + ft.append_log(log); + if (m_captureCallback) + m_captureCallback(mode, log); + if (index % 2 == 1) + { //明场 + //imwrite(std::to_string(savelutindex++) + "clwh.jpg", mergeMat); + log = "开始彩色明场校正 \r\n"; + for (int s = 0; s < 2; s++) + { + int *exposures = (int *)(s == 0 ? cisconfigs.colorCorrect.expF : cisconfigs.colorCorrect.expB); + for (int x = 0; x < 3; x++) + { + int k = (3 * s + x); + int diff = LIGHT_DIFF(scannerinfo.clr_maxbright, *((double *)values + k)); + log += " 明场:" + std::to_string(k) + ";diff:" + std::to_string(diff) + "\r\n"; + + double step = diff * radio; + int preStep = *((int *)expStep + k); + if (step * preStep < 0) + { + step = 0 - preStep / 2; + } + FMT_STEP(step); + bool isMinStep = abs(step) == 1 && step == *((int *)expStep + k); + bool isOutBounds = exposures[x] >= 1770 && step > 0; + isOutBounds |= exposures[x] <= 0 && step < 0; + if (isOutBounds) + log += " 第" + to_string(x) + "个明场校正异常 \r\n"; + else if (abs(diff) >= 2 || isMinStep) + { + *((int *)expStep + k) = (int)(step); + exposures[x] += step; + if (exposures[x] > 1770) + { + exposures[x] = 1770; + } + if (exposures[x] < 0) + exposures[x] = 0; + isNeedSave = false; + } + log += " 曝光值:" + to_string(exposures[x]) + "\r\n"; + log += " 调整步长:" + to_string(*((int *)expStep + k)) + "\r\n"; + if (isNeedSave) + log += "彩色明场校正完成\r\n"; + } + } + ft.append_log(log); + if (m_captureCallback) + m_captureCallback(mode, log); + } + else //彩色暗场 + { + int *offsets; + //imwrite(std::to_string(savelutindex++) + "clrblk.jpg", mergeMat); + log = "开始彩色暗场校正"; + for (int s = 0; s < 2; s++) + { + offsets = (int *)(s == 0 ? cisconfigs.colorCorrect.offsetsF : cisconfigs.colorCorrect.offsetsB); + for (int j = 0; j < 6; j++) + { + int k = s * 6 + j; + double diff = BLACK_DIFF(offValues[k]); + double step = radio * diff; + int preStep = offsetStep[k]; + if (step * preStep < 0) + { + step = 0 - preStep / 2; + } + else + { + radio = 1; + } + FMT_STEP(step); + bool isMinStep = abs(step) == 1 && step == offsetStep[k]; + bool isOutBounds = offsets[j] >= 255 && step > 0; + isOutBounds |= offsets[j] <= 0 && step < 0; + log += " 暗场校正 :" + std::to_string(k) + ";diff:" + std::to_string(diff) + ";light:" + std::to_string(offValues[k]) + ";offset:" + std::to_string(offsets[j]) + ";step:" + std::to_string(step) + "\r\n"; + if (isOutBounds) + log += " 第" + std::to_string(k) + "条带暗场校正异常,暗场值无法降低 \r\n"; + else if (abs(step) > 1 || isMinStep) + { + offsetStep[k] = (int)(step); + offsets[offset_indexs[k]] += step; + log += "offsetStep" + std::to_string(k) + " = " + std::to_string(offsetStep[k]) + ", offset_indexs" + std::to_string(k) + " =" + std::to_string(offset_indexs[k]) + "\r\n"; + + if (offsets[offset_indexs[k]] < 1) + offsets[offset_indexs[k]] = 1; + if (offsets[offset_indexs[k]] > 255) + offsets[offset_indexs[k]] = 255; + isNeedSave = false; + } + log += (s == 0 ? "彩色正面" : "彩色背面"); + log += "偏移值:" + std::to_string(offsets[0]) + "," + std::to_string(offsets[1]) + "," + std::to_string(offsets[2]) + "," + std::to_string(offsets[3]) + "," + std::to_string(offsets[4]) + "," + std::to_string(offsets[5]) + "\r\n"; + + if (isNeedSave) + log += (s == 0 ? "彩色正面暗场校正完成 \r\n" : "彩色背面暗场校正完成 \r\n"); + } + } + ft.append_log(log); + if (m_captureCallback) + m_captureCallback(mode, log); + } + if (isNeedSave) + { + mBuffMat.release(); + mBuffMat = mergeMat; + } + } + if (isNeedSave && i == 0) + { + if (i > 0) + { + out.release(); + cv::vconcat(mBuffMat, mergeMat, out); + } + else + { + mergeMat.copyTo(out); + cv::cvtColor(out, out, CV_BGR2RGB); + } + char buffer[40]; + sprintf(buffer, "/usr/local/huago/lut_%d.bmp", index); + imwrite(buffer, out); + LOG_TRACE(string_format("save image %s ", buffer)); + } + else if (i != 0) + { + cv::vconcat(mBuffMat, mergeMat, mBuffMat); + } + } + else + { // 灰色模式 + cv::Mat src = GetMergeMat(data, this->width(), this->height(), this->color()); + //imwrite(std::to_string(savelutindex++) + "graywh.jpg", src); + char buffer[40]; + sprintf(buffer, "/usr/local/huago/lut_%d.bmp", index); + double values[2]; + values[0] = cv::mean(src(cv::Rect(0, 0, src.cols / 2, src.rows))).val[0]; + values[1] = cv::mean(src(cv::Rect(src.cols / 2, 0, src.cols / 2, src.rows))).val[0]; + + double offValues[12]; + for (int n = 0; n < 2; n++) + { + cv::Mat img = src(cv::Rect(src.cols * n / 2, 0, src.cols / 2, src.rows)); + int offset_total = 0; + for (int s = 0; s < 6; s++) // + { + int k = n * 6 + s; + int offset_wdth; + if ((s == 0 && k == 0) || (s == 5 && k == 11)) + offset_wdth = 288; + else + offset_wdth = 432; + + cv::Scalar mean; + mean = cv::mean(img(cv::Rect(offset_total, 0, offset_wdth, img.rows))); + if ((s == 0 && k == 0) || (s == 5 && k == 11)) + offset_total += 288; + else + offset_total += 432; + offValues[k] = mean.val[0]; + } + } + + if (index % 2 == 1) //灰度明场 + { + log = "-----开始灰色明场校正-----\r\n"; + log += " 灰色扫描灰度明场均值:" + to_string(values[0]) + "," + to_string(values[1]) + "\r\n"; + for (int s = 0; s < 2; s++) + { + int *exposures = (int *)(s == 0 ? cisconfigs.grayCorrect.expF : cisconfigs.grayCorrect.expB); + int diff = LIGHT_DIFF(scannerinfo.gray_maxbright, values[s]); + double step = diff * radio; + log += " 明场:" + to_string(s) + ";diff:" + to_string(diff) + "\r\n"; + int preStep = expStep[s][0]; + if (step * preStep < 0) + { + step = 0 - preStep / 2; + } + else + { + radio = 1; + } + FMT_STEP(step); + + int exp = *(exposures + 1); + std::string ss1(string_format("exp[%d] = %d step = %.3f \r\n", s, exp, step)); + log += ss1; + bool isMinStep = abs(step) == 1 && step == expStep[s][0]; + bool isOutBounds = exp >= 1770 && step > 0; + isOutBounds |= exp <= 0 && step < 0; + if (isOutBounds) + log += " 第" + to_string(s) + "个明场校正异常 \r\n"; + else if (abs(diff) > 2 || isMinStep) + { + exp += step; + if (exp < 0) + exp = 0; + if (exp > 1770) + exp = 1770; + + float coffe[3] = {1 ,1 ,1}; // 0.2, 1,0.51 + for (int k = 0; k < 3; k++) + { + *(exposures + k) = (int)(exp * coffe[k]); + expStep[s][k] = (int)(step); + std::string exps(string_format("expStep[%d][%d] = %.3f\r\n", s, k, step)); + log += exps; + std::string ss(string_format("exposures[%d] = %0.3f \r\n", k, exposures[k])); + log += ss; + } + isNeedSave = false; + } + } + ft.append_log(log); + if (m_captureCallback) + m_captureCallback(mode, log); + } + else //灰度暗场 + { + log = "开始灰色暗场校正 \r\n"; + for (int s = 0; s < 2; s++) + { + int *offsets = (int *)(s == 0 ? cisconfigs.grayCorrect.offsetsF : cisconfigs.grayCorrect.offsetsB); + for (int j = 0; j < 6; j++) + { + int k = s * 6 + j; + double diff = BLACK_DIFF(offValues[k]); + double step = radio * diff; + int preStep = offsetStep[k]; + if (step * preStep < 0) + { + step = 0 - preStep / 2; + } + else + { + radio = 1; + } + FMT_STEP(step); + bool isMinStep = abs(step) == 1 && step == offsetStep[k]; + bool isOutBounds = offsets[j] >= 255 && step > 0; + isOutBounds |= offsets[j] <= 0 && step < 0; + log += " 暗场校正 :" + std::to_string(k) + ";diff:" + std::to_string(diff) + ";light:" + std::to_string(offValues[k]) + ";offset:" + std::to_string(offsets[j]) + ";step:" + std::to_string(step) + "\r\n"; + if (isOutBounds) + log += " 第" + std::to_string(i) + "面暗场校正异常,暗场值无法降低 \r\n"; + else if (abs(step) > 1 || isMinStep) + { + offsetStep[k] = (int)(step); + offsets[offset_indexs[k]] += step; + log += "offsetStep" + std::to_string(k) + " = " + std::to_string(offsetStep[k]) + ", offset_indexs" + std::to_string(k) + " =" + std::to_string(offset_indexs[k]) + "\r\n"; + + if (offsets[offset_indexs[k]] < 1) + offsets[offset_indexs[k]] = 1; + if (offsets[offset_indexs[k]] > 255) + offsets[offset_indexs[k]] = 255; + isNeedSave = false; + } + } + log += " 灰度偏移值:" + std::to_string(offsets[0]) + "," + std::to_string(offsets[1]) + "," + std::to_string(offsets[2]) + "," + std::to_string(offsets[3]) + "," + std::to_string(offsets[4]) + "," + std::to_string(offsets[5]) + "\r\n"; + + if (isNeedSave) + log += "灰色暗场校正完成 \r\n"; + } + //final report + ft.append_log(log); + if (m_captureCallback) + m_captureCallback(mode, log); + } + if (isNeedSave) + { + LOG_TRACE(string_format("save image path %s", buffer)); + imwrite(buffer, src); + } + } + } + } + return isNeedSave; +} + +void Capturer::fpga_reload() +{ + // fpga 代码重载 + fpgaLoad->setValue(Gpio::Low); + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + fpga_conf_initn->setValue(Gpio::Low); + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + printf("\n fpga_conf_done value %d",fpga_conf_done->getValue()); + fpgaLoad->setValue(Gpio::High); + std::this_thread::sleep_for(std::chrono::milliseconds(15)); + fpga_conf_initn->setValue(Gpio::High); + //std::this_thread::sleep_for(std::chrono::milliseconds(5)); + printf("\n fpga_conf_done value %d",fpga_conf_done->getValue()); + // while(fpga_conf_done->getValue() == Gpio::GpioLevel::Low) + // std::this_thread::sleep_for(std::chrono::milliseconds(5)); + std::this_thread::sleep_for(std::chrono::seconds(3)); + printf("\n fpga_conf_done value %d",fpga_conf_done->getValue()); + fpgaComm->resetADC(); + fpgaComm->update(); +} \ No newline at end of file diff --git a/device/gxx-linux/capimage/Capturer.h b/device/gxx-linux/capimage/Capturer.h new file mode 100644 index 0000000..9f760ec --- /dev/null +++ b/device/gxx-linux/capimage/Capturer.h @@ -0,0 +1,103 @@ +#pragma once +#include +#include +#include +#include "regsaccess.h" +#include "commondef.h" +#include "hgutils.h" + +class FpgaComm; +class gVideo; +class Gpio; + +class ICapturer +{ +public: + virtual ~ICapturer() {} + virtual void open() = 0; + virtual void Fpga_regsAccess_reset(bool enable) = 0 ; + virtual void open(HGScanConfig config) = 0; + virtual void close() = 0; + virtual void start() = 0; + virtual void stop() = 0; + virtual bool is_runing() = 0; + virtual void snap() = 0; + + virtual void set_size(int width, int height) = 0; + virtual void* readFrame(int timeout) = 0; + + virtual void set_gain(int ix, int val) = 0; + virtual void set_offset(int ix, int val) = 0; + virtual void set_expo(int ix, int val) = 0; + + virtual std::shared_ptr regs() = 0; + virtual void reset() = 0; + virtual int width() = 0; + virtual int height() = 0; + virtual int color() = 0; + virtual void init_autocorrect(int colormode) = 0; + virtual void setcapturecall(std::function callback) = 0; +}; + +class Capturer : public ICapturer +{ +public: + Capturer(); + virtual ~Capturer(); + virtual void Fpga_regsAccess_reset(bool enable); + virtual void open(); + virtual void open(HGScanConfig config); + virtual void close(); + virtual void start(); + virtual void stop(); + virtual bool is_runing(); + virtual void snap(); + + virtual void set_size(int width, int height); + virtual void set_sp(int sp); + + + virtual void* readFrame(int timeout); + + virtual void set_gain(int ix, int val); + virtual void set_offset(int ix, int val); + virtual void set_expo(int ix, int val); + + virtual std::shared_ptr regs(); + virtual void reset(); + virtual int width(); + virtual int height(); + virtual int color(); + virtual void init_autocorrect(int colormode); + virtual void setcapturecall(std::function callback) + { + m_captureCallback = callback; + }; +private: + void setFGPAParmas(int exposures[2][3], int gains[2][6], int offsets[2][6]); + void configFPGAParam(bool iscorrect,int mode); + void fpga_reset(); + void fpga_reload(); + void autocorrect(int colormode); + void creatcorrect(int mode); + void openDevice(int mode); + void creatcorrectconfig(int mode); + bool saveLutImg(int mode, int index); + std::shared_ptr vdd_cis_3voff_pin; + std::shared_ptr vdd_vis_5ven_pin; + std::shared_ptr reset_pin; + std::shared_ptr image_in_transfer_pin; + std::shared_ptr initDone_pin; + std::shared_ptr fpgaLoad; + std::shared_ptr fpga_conf_initn; + std::shared_ptr fpga_conf_done; + std::shared_ptr fpgaComm; + + std::shared_ptr video; + std::function m_captureCallback; + HGScanConfig m_configParam; + bool bcorrecting; + std::thread m_correctthread; + HGCorrectConfigs cisconfigs; + ScannerNativeParam scannerinfo; +}; diff --git a/device/gxx-linux/capimage/FpgaComm.cpp b/device/gxx-linux/capimage/FpgaComm.cpp new file mode 100644 index 0000000..8f1ac70 --- /dev/null +++ b/device/gxx-linux/capimage/FpgaComm.cpp @@ -0,0 +1,361 @@ +// +// Created by Nick on 2019/4/7. +// +#include "FpgaComm.h" +#include +#include "uartregsaccess.h" +#include "config.h" +#include + +#define Reg(x) (fpgaParams.x) +#define RegIndex(x) (std::distance((unsigned int*)&fpgaParams, (unsigned int*)&fpgaParams.x)) +#define ReadReg(x) read(RegIndex(x), *((unsigned int*)&fpgaParams.x)) +#define WriteReg(x) write(RegIndex(x), *((unsigned int*)&fpgaParams.x)) +#define WR_Reg(x) (WriteReg(x),ReadReg(x)) + +#define CO(x) std::cout << #x << " : "<< RegIndex(x) << std::endl + +FpgaComm::FpgaComm() +{ + m_regsAccess.reset(new UartRegsAccess(FPGA_UART, 921600, 0x03, 0x83)); + update(); + + Reg(AledR).sample = 256; + WR_Reg(AledR); +} + +bool FpgaComm::read(unsigned int addr, unsigned int& val) { + return m_regsAccess->read(addr, val); +} + +bool FpgaComm::write(unsigned int addr, unsigned int val) { + return m_regsAccess->write(addr, val); +} + +void FpgaComm::regsAccess_reset(bool enable){ + if(enable) + { + if(!m_regsAccess.get()) + m_regsAccess.reset(new UartRegsAccess(FPGA_UART, 921600, 0x03, 0x83)); + update(); + return; + } + if(m_regsAccess.get()) + m_regsAccess.reset(); +} + +void FpgaComm::setFrameHeight(int height){ + Reg(frame).height = height; + WR_Reg(frame); +} + +int FpgaComm::getFrameHeight() +{ + return Reg(frame).height; +} + +void FpgaComm::setFrameNum(int num){ + Reg(frame).num = num; + WR_Reg(frame); +} + +void FpgaComm::enableLed(bool bEnable) { + Reg(AledR).ledEnable = bEnable; + WR_Reg(AledR); +#ifdef HAS_UV + Reg(BledR).ledEnable = bEnable; + WR_Reg(BledR); +#else + Reg(BledR).ledEnable = bEnable; + WR_Reg(BledR); +#endif +} + +void FpgaComm::enableUV(bool enable){ +#ifdef HAS_UV + isUVEnable = enable; + Reg(BledR).ledEnable = isUVEnable; + WR_Reg(BledR); +#endif +} + +void FpgaComm::capture() { + Reg(cmd).cmd = 0; + WriteReg(cmd); + Reg(cmd).cmd = 1; + WriteReg(cmd); +} + +int FpgaComm::getRegs(int addr) { + return fpgaParams.regs[addr]; +} + +void FpgaComm::setRegs(int addr, int value) { + fpgaParams.regs[addr] = value; + write(addr, value); + read(addr, fpgaParams.regs[addr]); +} + +void FpgaComm::setAGain(int indexGain, int value) { + int index = indexGain; + int val;// = value + value>=511?val=511:val=value; + index++; + fpgaParams.Aad.ad0_addr = index*2; + fpgaParams.Aad.ad1_addr = fpgaParams.Aad.ad0_addr + 1; + fpgaParams.Aad.ad0_value = val; + fpgaParams.Aad.ad1_value = val>255?1:0; + fpgaParams.Aad.ad0_rw = 0; + fpgaParams.Aad.ad1_rw = 0; + write(0x04,*(int*)&fpgaParams.Aad); + Reg(mode).adcA = 1; + WriteReg(mode); + Reg(mode).adcA = 0; + WriteReg(mode); +} + +void FpgaComm::setBGain(int indexGain, int value) { + int index = indexGain; + int val;// = value + value>=511?val=511:val=value; + index++; + fpgaParams.Bad.ad0_addr = index*2; + fpgaParams.Bad.ad1_addr = index*2 + 1; + fpgaParams.Bad.ad0_value = val; + fpgaParams.Bad.ad1_value = val>255?1:0; + fpgaParams.Bad.ad0_rw = 0; + fpgaParams.Bad.ad1_rw = 0; + write(0x07,*(int*)&fpgaParams.Bad); + Reg(mode).adcB = 1; + WriteReg(mode); + Reg(mode).adcB = 0; + WriteReg(mode); +} + +void FpgaComm::setAOffset(int indexOffset, int value) { + Reg(Aad).ad0_rw = 0; + Reg(Aad).ad1_rw = 0; + Reg(Aad).ad0_addr = indexOffset + 0x0e; + Reg(Aad).ad1_addr = 0x14; + Reg(Aad).ad0_value = value; + WriteReg(Aad); + Reg(mode).adcA = 1; + WriteReg(mode); + Reg(mode).adcA = 0; + WriteReg(mode); +} + +void FpgaComm::setBOffset(int indexOffset, int value) { + Reg(Bad).ad0_rw = 0; + Reg(Bad).ad1_rw = 0; + Reg(Bad).ad0_addr = indexOffset + 0x0e; + Reg(Bad).ad1_addr = 0x14; + Reg(Bad).ad0_value = value; + WriteReg(Bad); + Reg(mode).adcB = 1; + WriteReg(mode); + Reg(mode).adcB = 0; + WriteReg(mode); +} + +void FpgaComm::setAExposureR(int value) { + Reg(AledR).ledR = value; + WR_Reg(AledR); +} + +void FpgaComm::setAExposureG(int value) { + Reg(AledGB).ledG = value; + WR_Reg(AledGB); +} + +void FpgaComm::setAExposureB(int value) { + Reg(AledGB).ledB = value; + WR_Reg(AledGB); +} + +void FpgaComm::setAExposureUV(int value){ +#ifdef HAS_UV + Reg(UVLed).ledASide = value; + WR_Reg(UVLed); +#endif +} + +void FpgaComm::setBExposureR(int value) { + Reg(BledR).ledR = value; + WR_Reg(BledR); +} + +void FpgaComm::setBExposureG(int value) { + Reg(BledGB).ledG = value; + WR_Reg(BledGB); +} + +void FpgaComm::setBExposureB(int value) { + Reg(BledGB).ledB = value; + WR_Reg(BledGB); +} + +void FpgaComm::setBExpousreUV(int value){ +#ifdef HAS_UV + Reg(UVLed).ledBSide = value; + WR_Reg(UVLed); +#endif +} + +void FpgaComm::setSp(int value) +{ + Reg(mode).sp = value; + WR_Reg(mode); +} + +int FpgaComm::getSp() +{ + return Reg(mode).sp; +} + +void FpgaComm::setColorMode(int mode) +{ + Reg(mode).colorMode = mode; + WR_Reg(mode); +} + +int FpgaComm::getColorMode() +{ + return Reg(mode).colorMode; +} + +void FpgaComm::setSample(int sample) +{ + Reg(mode).sample = sample; + WR_Reg(mode); + Reg(AledR).sample = sample; + WR_Reg(AledR); +} + + void FpgaComm::EnableTest(bool bTest) + { + Reg(mode).selftest = bTest; + WR_Reg(mode); + } + +int FpgaComm::IsTest() +{ + return Reg(mode).selftest; +} + +int FpgaComm::getSample() +{ + return Reg(mode).sample; +} + +void FpgaComm::setDpi(int dpi) +{ + Reg(mode).dpi = dpi; + WR_Reg(mode); +} + +int FpgaComm::getDpi() +{ + return Reg(mode).dpi; +} + +//20190626 YHP autoTrig function +void FpgaComm::setTrigMode(bool isArmMode) { + unsigned int tmp; + read(0x0b, tmp); + if(!isArmMode){ //default value+ ARM MODE,bit27 =0; + fpgaParams.TrigMode = tmp & 0XFBFFFFFF; + }else{ + fpgaParams.TrigMode = tmp |(1<<26); + } + WR_Reg(TrigMode); +} +void FpgaComm::setDelayTime(int value) { + Reg(DelayTime) = value; + WR_Reg(DelayTime); +} + +void FpgaComm::update() +{ + for(int i = 0; i < MAX_REGS; i++) + { + read(i, fpgaParams.regs[i]); + printf("reg[%d] = 0x%08x \n",i,fpgaParams.regs[i]); + } +} + +void FpgaComm::enableJamCheck(bool b){ + //Reg(BledR).user_define.led_sample.jamEnable = b; + //WR_Regs(0x08); +} + +void FpgaComm::resetADC() { + + fpgaParams.Aad.ad0_rw = 0; + fpgaParams.Aad.ad0_addr = 0; + fpgaParams.Aad.ad0_value = 0; + fpgaParams.Aad.ad1_rw = 0; + fpgaParams.Aad.ad1_addr = 0; + fpgaParams.Aad.ad1_value = 0; + WR_Reg(Aad); + fpgaParams.mode.adcA = 1; + WR_Reg(mode); + fpgaParams.mode.adcA = 0; + WR_Reg(mode); + fpgaParams.Bad.ad0_rw = 0; + fpgaParams.Bad.ad0_addr = 0; + fpgaParams.Bad.ad0_value = 0; + fpgaParams.Bad.ad1_rw = 0; + fpgaParams.Bad.ad1_addr = 0; + fpgaParams.Bad.ad1_value = 0; + WR_Reg(Bad); + fpgaParams.mode.adcB = 1; + WR_Reg(mode); + fpgaParams.mode.adcB = 0; + WR_Reg(mode); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + fpgaParams.Aad.ad0_rw = 0; + fpgaParams.Aad.ad0_addr = 0; + fpgaParams.Aad.ad0_value = 7; + fpgaParams.Aad.ad1_rw = 0; + fpgaParams.Aad.ad1_addr = 0; + fpgaParams.Aad.ad1_value = 7; + WR_Reg(Aad); + fpgaParams.mode.adcA = 1; + WR_Reg(mode); + fpgaParams.mode.adcA = 0; + WR_Reg(mode); + fpgaParams.Bad.ad0_rw = 0; + fpgaParams.Bad.ad0_addr = 0; + fpgaParams.Bad.ad0_value = 7; + fpgaParams.Bad.ad1_rw = 0; + fpgaParams.Bad.ad1_addr = 0; + fpgaParams.Bad.ad1_value = 7; + WR_Reg(Bad); + fpgaParams.mode.adcB = 1; + WR_Reg(mode); + fpgaParams.mode.adcB = 0; + WR_Reg(mode); + fpgaParams.Aad.ad0_rw = 0; + fpgaParams.Aad.ad0_addr = 1; + fpgaParams.Aad.ad0_value = 0x50; + fpgaParams.Aad.ad1_rw = 0; + fpgaParams.Aad.ad1_addr = 1; + fpgaParams.Aad.ad1_value = 0x50; + WR_Reg(Aad); + fpgaParams.mode.adcA = 1; + WR_Reg(mode); + fpgaParams.mode.adcA = 0; + WR_Reg(mode); + fpgaParams.Bad.ad0_rw = 0; + fpgaParams.Bad.ad0_addr = 1; + fpgaParams.Bad.ad0_value = 0x50; + fpgaParams.Bad.ad1_rw = 0; + fpgaParams.Bad.ad1_addr = 1; + fpgaParams.Bad.ad1_value = 0x50; + WR_Reg(Bad); + fpgaParams.mode.adcB = 1; + WR_Reg(mode); + fpgaParams.mode.adcB = 0; + WR_Reg(mode); +} \ No newline at end of file diff --git a/device/gxx-linux/capimage/FpgaComm.h b/device/gxx-linux/capimage/FpgaComm.h new file mode 100644 index 0000000..4b2a0c7 --- /dev/null +++ b/device/gxx-linux/capimage/FpgaComm.h @@ -0,0 +1,180 @@ +#pragma once +#include +#include +#include "regsaccess.h" + +#ifdef HAS_UV +#define MAX_REGS 0x0e +#else +#define MAX_REGS 0x0d +#endif + +typedef struct Frame_FPGA +{ + unsigned short int height; + unsigned short int num : 8; + unsigned short int reserved : 8; + +} FrameFpga; + +typedef struct Mode_FPGA +{ + unsigned short int colorMode : 1; + unsigned short int dpi : 2; + unsigned short int led : 1; + unsigned short sample : 9; + unsigned short int adcA : 1; + unsigned short int adcB : 1; + unsigned short int selftest : 1; + unsigned short int sp; +} ModeFpga; + +typedef struct CMD_FPGA +{ + unsigned int cmd : 1; //start : 1 , stop : 0 + unsigned int reserved : 31; +} CmdFpga; + +typedef struct STATUS_FPGA +{ + unsigned int status : 1; //start : 1 , stop : 0 + unsigned int reserved : 31; +} StatusFpga; + +typedef struct Ad_Gain +{ + unsigned short int gain_low8 : 8; + unsigned short int gain_hight : 1; + unsigned int reserved : 23; +} AdGain; + + +typedef struct CIS_AD_Gain +{ + unsigned short int ad0_value : 8; //!< 数据位 + unsigned short int ad0_reserved : 2; //!< 保留位 + unsigned short int ad0_addr : 5; //!< 寄存器地址 + unsigned short int ad0_rw : 1; //!< 读写位 1:读, 0:写 + unsigned short int ad1_value : 8; //!< 数据位 + unsigned short int ad1_reserved : 2; //!< 保留位 + unsigned short int ad1_addr : 5; //!< 寄存器地址 + unsigned short int ad1_rw : 1; //!< 读写位 1:读, 0:写; +} CisAdGain; + +typedef struct CIS_LED_RF +{ + unsigned short int ledEnable : 1; + unsigned short int fanMode : 2; + unsigned short int jamEnable : 1; + unsigned short int sample : 9; + unsigned short int reserved : 3; + unsigned short int ledR; +} CisLedRF; + +typedef struct CIS_LED_R +{ + unsigned short int ledEnable : 1; + unsigned short int sample : 9; + unsigned short int reserved : 6; + unsigned short int ledR; +} CisLedR; + +typedef struct CIS_LED_GB +{ + unsigned short int ledG; + unsigned short int ledB; +} CisLedGB; + +typedef struct CIS_LED_UV +{ + unsigned short int ledASide; + unsigned short int ledBSide; +} CisLedUv; + +typedef union Fpga_Params +{ + struct + { + FrameFpga frame; //0x00 + ModeFpga mode; //0x01 + CmdFpga cmd; //0x02 + StatusFpga status; //0x03 + CisAdGain Aad; //0x04 + CisLedR AledR; //0x05 + CisLedGB AledGB; //0x06 + CisAdGain Bad; //0x07 +#ifndef G300 + CisLedRF BledR; //0x08 +#else + CisLedR BledR; //0x08 +#endif + CisLedGB BledGB; //0x09 + unsigned int ExpIncr; //0x0a + unsigned int TrigMode; //0x0b + unsigned int DelayTime; //0x0c + CisLedUv UVLed; + }; + unsigned int regs[14]; +} FpgaParams; + + +class FpgaComm : public IRegsAccess +{ +public: + FpgaComm(); + virtual ~FpgaComm(){} + + void reset(); + void regsAccess_reset(bool enable); + void setRegs(int addr, int value); + int getRegs(int addr); + void setFrameHeight(int height); + int getFrameHeight(); + void setFrameNum(int num); + void enableLed(bool bEnable); + void enableUV(bool enable); + void capture(); + void setAGain(int indexGain, int value); + void setBGain(int indexGain, int value); + void setAOffset(int indexOffset, int value); + void setBOffset(int indexOffset, int value); + + void setAExposureR(int value); + void setAExposureG(int value); + void setAExposureB(int value); + void setAExposureUV(int value); + + void setBExposureR(int value); + void setBExposureG(int value); + void setBExposureB(int value); + void setBExpousreUV(int value); + + void setSp(int value); + int getSp(); + + void EnableTest(bool bTest); + int IsTest(); + + void setColorMode(int mode); + int getColorMode(); + + void setDpi(int dpi); + int getDpi(); + + void setSample(int sample); + int getSample(); + + //20190626 YHP autoTrig function + void setDelayTime(int value); + void setTrigMode(bool isArmMode); + + void update(); + void enableJamCheck(bool b); + void resetADC(); + virtual bool write(unsigned int addr, unsigned int val); + virtual bool read(unsigned int addr, unsigned int& val); + +private: + FpgaParams fpgaParams; + std::shared_ptr m_regsAccess; +}; \ No newline at end of file diff --git a/device/gxx-linux/capimage/gvideo.cpp b/device/gxx-linux/capimage/gvideo.cpp new file mode 100644 index 0000000..2a2c6f0 --- /dev/null +++ b/device/gxx-linux/capimage/gvideo.cpp @@ -0,0 +1,452 @@ +#include "gvideo.h" +#include +#include /* low-level i/o */ +#include +#include +#include +#include +#include +#include +#include "linux/v4l2-subdev.h" + +#include +#include +#include +#include "applog.h" +#include "stringex.hpp" + +static const std::string loggername = "gVideo"; + +using namespace std; +#define CLEAR(x) memset(&(x), 0, sizeof(x)) +#define LOG printf + +int file_size(const char* filename) +{ + struct stat statbuf; + int ret = stat(filename, &statbuf); + int size = -1; + if (ret == 0) + size = statbuf.st_size; + return size; +} + +gVideo::gVideo() + : fd(-1), + buffers(0), + bStart(false) , + dev_name("/dev/video3") +{ + LOG_INIT(); +} + +gVideo::~gVideo() +{ + stop(); + close(); +} + +bool gVideo::is_open() +{ + return fd >= 0; +} + +void gVideo::close() + { + if (is_open()) { + stop(); + uninit_device(); + close_device(); + } +} + +void gVideo::open(int width,int height) { + if (is_open()) + return; + + open_device(); + if (is_open()) { + //init_device(); + set_size(width, height); + start(); + } +} + +void gVideo::start() +{ + std::lock_guard lck(m_lock); + if (bStart) + return; + + start_capturing(); + bStart = true; +} + +void gVideo::stop() { + std::lock_guard lck(m_lock); + if (bStart) { + stop_capturing(); + bStart = false; + } +} + +void gVideo::grab(int color, bool bcrrect, int timeout, int flatpara) +{ +} + +bool gVideo::hasframe() { + return wait(0); +} + +bool gVideo::wait(int msTimeout) { + pollfd pfd; + pfd.fd = this->fd; + pfd.events = POLLIN | POLLRDNORM; + + if (poll(&pfd, 1, msTimeout) > 0) { + return pfd.revents; + } + return false; +} + +void* gVideo::read_frame(int timeout) { + if (!wait(timeout)){ + LOG_TRACE("read frame time out"); + return 0; + } + v4l2_buffer buf; + buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + buf.memory = V4L2_MEMORY_USERPTR; + if (-1 == ioctl(fd, VIDIOC_DQBUF, &buf)) { + LOG_ERROR(string_format("VIDIOC_DQBUF error!!! index :%d\n", buf.index)); + return 0; + } + if (-1 == ioctl(fd, VIDIOC_QBUF, &buf)) { + LOG_ERROR(string_format("VIDIOC_QBUF error!!! index :%d\n", buf.index)); + return 0; + } + return buffers[buf.index].start; +} + +void gVideo::set_size(int width,int height){ + if(!buffers.empty()) + uninit_device(); + + v4l_width=width; + v4l_height=height; + init_device(); +} + +void gVideo::stop_capturing(void) { + enum v4l2_buf_type type; + + type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + if (-1 == ioctl(fd, VIDIOC_STREAMOFF, &type)) + LOG_ERROR("streamo off"); +} + +unsigned int querybuf_length; +void gVideo::start_capturing(void) +{ + enum v4l2_buf_type type; + printf("start_capturing::querybuf_length = %d.\n",querybuf_length); + for (int i = 0; i < n_buffers; ++i) + { + struct v4l2_buffer buf; + struct v4l2_plane planes[VIDEO_MAX_PLANES]; + CLEAR(buf); + CLEAR(planes); + for(int j = 0; j < VIDEO_MAX_PLANES; j++) + { + //planes[j].length = buffers[i].length; + planes[j].length = querybuf_length; + planes[j].m.userptr =(unsigned long)buffers[i].start; + } + buf.index = i; + buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + buf.memory = V4L2_MEMORY_USERPTR;//V4L2_MEMORY_MMAP; + buf.m.planes = planes; + buf.length = 1; + + if (-1 == ioctl(fd, VIDIOC_QBUF, &buf)) + LOG_ERROR(string_format("VIDIOC_QBUF Error %d", i)); + else + LOG_ERROR(string_format("VIDIOC_QBUF %d\n", i)); + } + + type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + if (-1 == ioctl(fd, VIDIOC_STREAMON, &type)) + LOG_ERROR("VIDIOC_STREAMON"); +} + +void gVideo::uninit_device(void) +{ + if (!buffers.empty()) + { + struct v4l2_requestbuffers req; + CLEAR(req); + req.count = 0; + LOG_TRACE(string_format("frame count: %d", req.count)); + req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + req.memory = V4L2_MEMORY_USERPTR; + + if (-1 == ioctl(fd, VIDIOC_REQBUFS, &req)) + { + if (EINVAL == errno) + LOG_ERROR("%s does not support user pointer i/o"); + else + LOG_ERROR("VIDIOC_REQBUFS"); + } + + for (int i = 0; i < n_buffers; ++i) + free(buffers[i].start); + + buffers.clear(); + } +} + +void gVideo::init_mmap(void) +{ + + struct v4l2_requestbuffers req; + int ret; + unsigned int length; + unsigned int offset; + unsigned int page_size; + int buffer_size = v4l_width * v4l_height * 3; + printf("init_mmap::buduiqi:changdu: buffer_size= %d\n", buffer_size); + page_size = getpagesize(); + buffer_size = (buffer_size + page_size - 1) & ~(page_size - 1); + printf("init_mmap::shijichangdu:v4l_width = %d,v4l_height = %d\n", v4l_width,v4l_height); + printf("init_mmap::duiqi:page_size = %d,buffer_size = %d\n", page_size,buffer_size); + + CLEAR(req); + + //6.VIDIOC_REQBUFS + req.count = v4l_buffer_count; + //req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + //req.memory = V4L2_MEMORY_MMAP; + req.memory = V4L2_MEMORY_USERPTR; + printf("set v4l_buffer_count = %d\n", req.count); + printf("set v4l_buffer_type = %d\n", req.type); + printf("set v4l_buffer_memory = %d\n", req.memory); + + ret = ioctl(fd, VIDIOC_REQBUFS, &req); + if (ret < 0) { + printf("Unable to request buffers: %s (%d).\n", strerror(errno),errno); + } + else { + printf("%s VIDIOC_REQBUFS sucess\n",dev_name.c_str()); + } + printf("%u buffers requested.\n", req.count); + + buffers.resize(req.count); + if (buffers.empty()) { + printf("Out of memory\n"); + } + + //7.VIDIOC_QUERYBUF + for (n_buffers = 0; n_buffers < req.count; ++n_buffers) { + const char *ts_type, *ts_source; + struct v4l2_buffer buf; + struct v4l2_plane planes[VIDEO_MAX_PLANES]; + CLEAR(buf); + CLEAR(planes); + buf.index = n_buffers; + buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + //buf.memory = V4L2_MEMORY_MMAP; + buf.memory = V4L2_MEMORY_USERPTR; + buf.length = VIDEO_MAX_PLANES; + buf.m.planes = planes; + + ret = ioctl(fd, VIDIOC_QUERYBUF, &buf); + if (ret < 0) { + printf("Unable to query buffer %u: %s (%d).\n", n_buffers,strerror(errno), errno); + + } + else { + printf("index %d VIDIOC_QUERYBUF sucess.\n",n_buffers); + + } + //get_ts_flags(buf.flags, &ts_type, &ts_source); + //printf("length: %u offset: %u timestamp type/source: %s/%s\n", + // buf.length, buf.m.offset, ts_type, ts_source); + + //mmap + unsigned int length; + unsigned int offset; + length = buf.m.planes[0].length; + offset = buf.m.planes[0].m.mem_offset; + querybuf_length = buf.m.planes[0].length; + printf("VIDIOC_QUERYBUF:Buffer %u length = %d.\n",n_buffers,length); + printf("VIDIOC_QUERYBUF:Buffer %u offset = %d.\n",n_buffers,offset); + printf("VIDIOC_QUERYBUF:Buffer %u querybuf_length = %d.\n",n_buffers,querybuf_length); + } + + for (n_buffers = 0; n_buffers < buffers.size(); ++n_buffers) + { + buffers[n_buffers].length = querybuf_length; + buffers[n_buffers].start = memalign(/* boundary */ 1024, querybuf_length); + printf("memalign:buffers[%d].length = %d\n", n_buffers,buffers[n_buffers].length); + printf("memalign:buffers[%d].start = %p\n", n_buffers,buffers[n_buffers].start); + + if (!buffers[n_buffers].start) + { + fprintf(stderr, "Out of memory\n"); + exit(EXIT_FAILURE); + } + } + // unsigned int page_size; + // int buffer_size = v4l_width * v4l_height * 3; + + // page_size = getpagesize(); + // buffer_size = (buffer_size + page_size - 1) & ~(page_size - 1); + + // struct v4l2_requestbuffers req; + // CLEAR(req); + // req.count = v4l_buffer_count; + // LOG_TRACE(string_format("frame count: %d", req.count)); + // req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + // req.memory = V4L2_MEMORY_USERPTR; + + // if (-1 == ioctl(fd, VIDIOC_REQBUFS, &req)) + // { + // if (EINVAL == errno) + // LOG_ERROR("%s does not support user pointer i/o"); + // else + // LOG_ERROR("VIDIOC_REQBUFS"); + // } + + // buffers.resize(req.count); + + // for (n_buffers = 0; n_buffers < buffers.size(); ++n_buffers) + // { + // buffers[n_buffers].length = buffer_size; + // buffers[n_buffers].start = memalign(/* boundary */ page_size, buffer_size); + + // if (!buffers[n_buffers].start) + // LOG_ERROR("Out of memory"); + // } + + // struct v4l2_requestbuffers req; + // CLEAR(req); + + // req.count = v4l_buffer_count; + + // LOG("frame count: %d \n",req.count); + // req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + // req.memory = V4L2_MEMORY_MMAP; + + // if (-1 == ioctl(fd, VIDIOC_REQBUFS, &req)) { + // if (EINVAL == errno) { + // LOG("%s does not support " "memory mapping\n", dev_name.c_str()); + // } + // else { + // LOG("VIDIOC_REQBUFS \n"); + // } + // } + + // LOG("frame count:%d \n" ,req.count); + + // if (req.count < 2) { + // LOG("Insufficient buffer memory on %s\n", dev_name.c_str()); + // } + + // buffers.resize(req.count); + // LOG("frame count: %d \n", req.count); + + // if (buffers.empty()) { + // LOG("Out of memory\n"); + // } + + // for (n_buffers = 0; n_buffers < req.count; ++n_buffers) { + // struct v4l2_buffer buf; + // CLEAR(buf); + // buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + // buf.memory = V4L2_MEMORY_MMAP; + // buf.index = n_buffers; + + // if (-1 == ioctl(fd, VIDIOC_QUERYBUF, &buf)) + // LOG("VIDIOC_QUERYBUF \n"); + // LOG("mmap buffer len:%d \n",buf.length); + // buffers[n_buffers].length = buf.length; + // buffers[n_buffers].start = + // mmap(NULL /* start anywhere */, + // buf.length, + // PROT_READ | PROT_WRITE /* required */, + // MAP_SHARED /* recommended */, + // fd, buf.m.offset); + + // if (MAP_FAILED == buffers[n_buffers].start){ + // LOG("MAP_FAILED!!! %d \n",buf.length); + // } + // } +} + +void printCamInfo(int fd) +{ //获取摄像头所支持的分辨率 + enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + struct v4l2_fmtdesc fmt_1; + struct v4l2_frmsizeenum frmsize; + struct v4l2_frmivalenum frmival; + fmt_1.index = 0; + fmt_1.type = type; + while (ioctl(fd, VIDIOC_ENUM_FMT, &fmt_1) >= 0) + { + frmsize.pixel_format = fmt_1.pixelformat; + frmsize.index = 0; + while (ioctl(fd, VIDIOC_ENUM_FRAMESIZES, &frmsize) >= 0) + { + if(frmsize.type == V4L2_FRMSIZE_TYPE_DISCRETE) + LOG_INFO(string_format("line:%d %dx%d", __LINE__, frmsize.discrete.width, frmsize.discrete.height)); + else if (frmsize.type == V4L2_FRMSIZE_TYPE_STEPWISE) + LOG_INFO(string_format("line:%d %dx%d", __LINE__, frmsize.discrete.width, frmsize.discrete.height)); + frmsize.index++; + } + fmt_1.index++; + } +} + +void gVideo::init_device(void) { + struct v4l2_capability cap; + struct v4l2_format fmt; + printCamInfo(fd); + if (-1 == ioctl(fd, VIDIOC_QUERYCAP, &cap)) { + if (EINVAL == errno) + LOG_ERROR(string_format("%s is no V4L2 device", dev_name.c_str())); + else + LOG_ERROR("VIDIOC_QUERYCAP"); + } + + if (!(cap.capabilities & V4L2_CAP_VIDEO_CAPTURE)) + LOG_ERROR(string_format("%s is no video capture device", dev_name.c_str())); + + if (!(cap.capabilities & V4L2_CAP_STREAMING)) + LOG_ERROR(string_format("%s does not support streaming i/o", dev_name.c_str())); + + CLEAR(fmt); + fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + fmt.fmt.pix.width = v4l_width; + fmt.fmt.pix.height = v4l_height; + LOG_INFO(string_format("v4l2 init_device width:%d, height:%d\n", fmt.fmt.pix.width, fmt.fmt.pix.height)); + fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24; + fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; + + if (-1 == ioctl(fd, VIDIOC_S_FMT, &fmt)) + LOG_ERROR("VIDIOC_S_FMT error"); + init_mmap(); +} + +void gVideo::close_device(void) { + if (-1 == ::close(fd)) + LOG_ERROR("close"); + + fd = -1; +} + +void gVideo::open_device(void) +{ + if((fd = ::open(dev_name.c_str(), O_RDWR /* required */ /*| O_NONBLOCK*/, 0)) == -1) + LOG_ERROR(string_format("Cannot open %s", dev_name.c_str())); +} \ No newline at end of file diff --git a/device/gxx-linux/capimage/gvideo.h b/device/gxx-linux/capimage/gvideo.h new file mode 100644 index 0000000..e0da620 --- /dev/null +++ b/device/gxx-linux/capimage/gvideo.h @@ -0,0 +1,50 @@ +#pragma once +#include +#include +#include + + +class gVideo +{ +public: + gVideo(); + virtual ~gVideo(); + + bool is_open(); + void close(); + void open(int width, int height); + void start(); + void stop(); + void grab(int color, bool bcrrect = false, int timeout = 1000, int flatpara = 0); + bool hasframe(); + virtual void *read_frame(int timeout); + void set_size(int width, int height); + +protected: + bool wait(int msTimeout); + + virtual void stop_capturing(void); + virtual void start_capturing(void); + void uninit_device(void); + virtual void init_mmap(void); + virtual void init_device(void); + void close_device(void); + void open_device(void); + + + struct buffer + { + void *start; + size_t length; + }; + + const int v4l_buffer_count = 5; + int v4l_width = 3100; + int v4l_height = 3100; + std::string dev_name; + int fd; + std::vector buffers; + unsigned int n_buffers; + std::mutex m_lock; + volatile bool bStart; +}; diff --git a/device/gxx-linux/capimage/gvideoisp1.cpp b/device/gxx-linux/capimage/gvideoisp1.cpp new file mode 100644 index 0000000..e9df0f7 --- /dev/null +++ b/device/gxx-linux/capimage/gvideoisp1.cpp @@ -0,0 +1,895 @@ +#include "gvideoisp1.h" +#include /* low-level i/o */ +#include +#include +#include +#include +#include "linux/videodev2.h" +#include "linux/v4l2-subdev.h" +#include +#include "string.h" +#include +#include +#include "applog.h" +#include "stringex.hpp" + +static const std::string loggername = "GVideoISP1"; + +#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) +#define CLEAR(x) memset(&(x), 0, sizeof(x)) + +#define V4L2_BUF_TYPE_META_OUTPUT 14 +#define V4L2_CAP_META_OUTPUT 0x08000000 /* Is a metadata output device */ + +static struct { + enum v4l2_buf_type type; + bool supported; + const char *name; + const char *string; +} buf_types[] = { + { V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, 1, "Video capture mplanes", "capture-mplane", }, + { V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, 1, "Video output", "output-mplane", }, + { V4L2_BUF_TYPE_VIDEO_CAPTURE, 1, "Video capture", "capture", }, + { V4L2_BUF_TYPE_VIDEO_OUTPUT, 1, "Video output mplanes", "output", }, + { V4L2_BUF_TYPE_VIDEO_OVERLAY, 0, "Video overlay", "overlay" }, + //{ V4L2_BUF_TYPE_META_CAPTURE, 1, "Meta-data capture", "meta-capture", }//, +}; + +static struct v4l2_format_info { + const char *name; + unsigned int fourcc; + unsigned char n_planes; +} pixel_formats[] = { + { "RGB332", V4L2_PIX_FMT_RGB332, 1 }, + { "RGB444", V4L2_PIX_FMT_RGB444, 1 }, + { "ARGB444", V4L2_PIX_FMT_ARGB444, 1 }, + { "XRGB444", V4L2_PIX_FMT_XRGB444, 1 }, + { "RGB555", V4L2_PIX_FMT_RGB555, 1 }, + { "ARGB555", V4L2_PIX_FMT_ARGB555, 1 }, + { "XRGB555", V4L2_PIX_FMT_XRGB555, 1 }, + { "RGB565", V4L2_PIX_FMT_RGB565, 1 }, + { "RGB555X", V4L2_PIX_FMT_RGB555X, 1 }, + { "RGB565X", V4L2_PIX_FMT_RGB565X, 1 }, + { "BGR666", V4L2_PIX_FMT_BGR666, 1 }, + { "BGR24", V4L2_PIX_FMT_BGR24, 1 }, + { "RGB24", V4L2_PIX_FMT_RGB24, 1 }, + { "BGR32", V4L2_PIX_FMT_BGR32, 1 }, + { "ABGR32", V4L2_PIX_FMT_ABGR32, 1 }, + { "XBGR32", V4L2_PIX_FMT_XBGR32, 1 }, + { "RGB32", V4L2_PIX_FMT_RGB32, 1 }, + { "ARGB32", V4L2_PIX_FMT_ARGB32, 1 }, + { "XRGB32", V4L2_PIX_FMT_XRGB32, 1 }, + //{ "HSV24", V4L2_PIX_FMT_HSV24, 1 }, + //{ "HSV32", V4L2_PIX_FMT_HSV32, 1 }, + { "Y8", V4L2_PIX_FMT_GREY, 1 }, + { "Y10", V4L2_PIX_FMT_Y10, 1 }, + { "Y12", V4L2_PIX_FMT_Y12, 1 }, + { "Y16", V4L2_PIX_FMT_Y16, 1 }, + { "UYVY", V4L2_PIX_FMT_UYVY, 1 }, + { "VYUY", V4L2_PIX_FMT_VYUY, 1 }, + { "YUYV", V4L2_PIX_FMT_YUYV, 1 }, + { "YVYU", V4L2_PIX_FMT_YVYU, 1 }, + { "NV12", V4L2_PIX_FMT_NV12, 1 }, + { "NV12M", V4L2_PIX_FMT_NV12M, 2 }, + { "NV21", V4L2_PIX_FMT_NV21, 1 }, + { "NV21M", V4L2_PIX_FMT_NV21M, 2 }, + { "NV16", V4L2_PIX_FMT_NV16, 1 }, + { "NV16M", V4L2_PIX_FMT_NV16M, 2 }, + { "NV61", V4L2_PIX_FMT_NV61, 1 }, + { "NV61M", V4L2_PIX_FMT_NV61M, 2 }, + { "NV24", V4L2_PIX_FMT_NV24, 1 }, + { "NV42", V4L2_PIX_FMT_NV42, 1 }, + { "YUV420M", V4L2_PIX_FMT_YUV420M, 3 }, + { "YUV422M", V4L2_PIX_FMT_YUV422M, 3 }, + { "YUV444M", V4L2_PIX_FMT_YUV444M, 3 }, + { "YVU420M", V4L2_PIX_FMT_YVU420M, 3 }, + { "YVU422M", V4L2_PIX_FMT_YVU422M, 3 }, + { "YVU444M", V4L2_PIX_FMT_YVU444M, 3 }, + { "SBGGR8", V4L2_PIX_FMT_SBGGR8, 1 }, + { "SGBRG8", V4L2_PIX_FMT_SGBRG8, 1 }, + { "SGRBG8", V4L2_PIX_FMT_SGRBG8, 1 }, + { "SRGGB8", V4L2_PIX_FMT_SRGGB8, 1 }, + { "SBGGR10_DPCM8", V4L2_PIX_FMT_SBGGR10DPCM8, 1 }, + { "SGBRG10_DPCM8", V4L2_PIX_FMT_SGBRG10DPCM8, 1 }, + { "SGRBG10_DPCM8", V4L2_PIX_FMT_SGRBG10DPCM8, 1 }, + { "SRGGB10_DPCM8", V4L2_PIX_FMT_SRGGB10DPCM8, 1 }, + { "SBGGR10", V4L2_PIX_FMT_SBGGR10, 1 }, + { "SGBRG10", V4L2_PIX_FMT_SGBRG10, 1 }, + { "SGRBG10", V4L2_PIX_FMT_SGRBG10, 1 }, + { "SRGGB10", V4L2_PIX_FMT_SRGGB10, 1 }, + { "SBGGR10P", V4L2_PIX_FMT_SBGGR10P, 1 }, + { "SGBRG10P", V4L2_PIX_FMT_SGBRG10P, 1 }, + { "SGRBG10P", V4L2_PIX_FMT_SGRBG10P, 1 }, + { "SRGGB10P", V4L2_PIX_FMT_SRGGB10P, 1 }, + { "SBGGR12", V4L2_PIX_FMT_SBGGR12, 1 }, + { "SGBRG12", V4L2_PIX_FMT_SGBRG12, 1 }, + { "SGRBG12", V4L2_PIX_FMT_SGRBG12, 1 }, + { "SRGGB12", V4L2_PIX_FMT_SRGGB12, 1 }, + { "DV", V4L2_PIX_FMT_DV, 1 }, + { "MJPEG", V4L2_PIX_FMT_MJPEG, 1 }, + { "MPEG", V4L2_PIX_FMT_MPEG, 1 }, +}; + +static const struct { + const char *name; + enum v4l2_field field; +} fields[] = { + { "any", V4L2_FIELD_ANY }, + { "none", V4L2_FIELD_NONE }, + { "top", V4L2_FIELD_TOP }, + { "bottom", V4L2_FIELD_BOTTOM }, + { "interlaced", V4L2_FIELD_INTERLACED }, + { "seq-tb", V4L2_FIELD_SEQ_TB }, + { "seq-bt", V4L2_FIELD_SEQ_BT }, + { "alternate", V4L2_FIELD_ALTERNATE }, + { "interlaced-tb", V4L2_FIELD_INTERLACED_TB }, + { "interlaced-bt", V4L2_FIELD_INTERLACED_BT }, +}; + +GVideoISP1::GVideoISP1() +{ + LOG_INIT(); + dev_name = "/dev/video0"; +} + +GVideoISP1::~GVideoISP1() +{ + +} + +void* GVideoISP1::read_frame(int timeout) { + if (!wait(timeout)){ + LOG_ERROR("read frame time out!!!\n" ); + return 0; + } + struct v4l2_plane planes[VIDEO_MAX_PLANES]; + v4l2_buffer buf; + int ret; + memset(&buf, 0, sizeof buf); + memset(planes, 0, sizeof planes); + + + buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + //buf.memory = V4L2_MEMORY_USERPTR;//V4L2_MEMORY_MMAP; + buf.memory = V4L2_MEMORY_USERPTR; + buf.length = VIDEO_MAX_PLANES; + buf.m.planes = planes; + + ret = ioctl(fd, VIDIOC_DQBUF, &buf); + if (ret < 0) { + LOG_TRACE(string_format("Unable to dequeue buffer: %s (%d).",strerror(errno), errno)); + } + else { + LOG_TRACE(string_format("VIDIOC_DQBUF sucess")); + } + + + ret = ioctl(fd, VIDIOC_QBUF, &buf); + if (ret < 0) { + LOG_ERROR(string_format("Unable to requeue buffer: %s (%d).\n",strerror(errno), errno)); + } + else { + LOG_TRACE(string_format("VIDIOC_QBUF sucess")); + } + LOG_TRACE(string_format("buf.index = %d,buf.addr = %p\n",buf.index,buffers[buf.index].start)); + return buffers[buf.index].start; +} + +unsigned int gsp1querybuf_length; +void GVideoISP1::start_capturing(void) { + unsigned int i; + int ret; + enum v4l2_buf_type type; + + for (i = 0; i < n_buffers; ++i) { + struct v4l2_buffer buf; + struct v4l2_plane planes[VIDEO_MAX_PLANES]; + CLEAR(buf); + CLEAR(planes); + for(int j = 0; j < VIDEO_MAX_PLANES; j++) + { + //planes[j].length = buffers[i].length; + planes[j].length = gsp1querybuf_length; + planes[j].m.userptr =(unsigned long)buffers[i].start; + } + buf.index = i; + buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + buf.memory = V4L2_MEMORY_USERPTR;//V4L2_MEMORY_MMAP; + buf.m.planes = planes; + buf.length = 1; + + ret = ioctl(fd, VIDIOC_QBUF, &buf); + if (ret < 0) + LOG_ERROR(string_format("Unable to queue buffer: %s (%d).",strerror(errno), errno)); + else + LOG_TRACE(string_format("buf.index = %d VIDIOC_QBUF sucess.",i)); + } + + type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + ret = ioctl(fd, VIDIOC_STREAMON, &type); + if (ret < 0) { + LOG_ERROR(string_format("Unable to %s streaming: %s (%d).","start", strerror(errno), errno)); + } + else { + LOG_TRACE(string_format("VIDIOC_STREAMON sucess.")); + } +} + +void GVideoISP1::stop_capturing(void) { + enum v4l2_buf_type type; + + type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + if (-1 == ioctl(fd, VIDIOC_STREAMOFF, &type)) + LOG_ERROR(string_format("streamo off")); + + LOG_TRACE(string_format("gVideo stop_capturing")); +} + +static void get_ts_flags(uint32_t flags, const char **ts_type, const char **ts_source) +{ + switch (flags & V4L2_BUF_FLAG_TIMESTAMP_MASK) { + case V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN: + *ts_type = "unk"; + break; + case V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC: + *ts_type = "mono"; + break; + case V4L2_BUF_FLAG_TIMESTAMP_COPY: + *ts_type = "copy"; + break; + default: + *ts_type = "inv"; + } + switch (flags & V4L2_BUF_FLAG_TSTAMP_SRC_MASK) { + case V4L2_BUF_FLAG_TSTAMP_SRC_EOF: + *ts_source = "EoF"; + break; + case V4L2_BUF_FLAG_TSTAMP_SRC_SOE: + *ts_source = "SoE"; + break; + default: + *ts_source = "inv"; + } +} + +void GVideoISP1::init_mmap(void) { + // struct v4l2_requestbuffers req; + // int ret; + // unsigned int length; + // unsigned int offset; + // unsigned int page_size; + // int buffer_size = v4l_width * v4l_height * 3; + // page_size = getpagesize(); + // buffer_size = (buffer_size + page_size - 1) & ~(page_size - 1); + + // CLEAR(req); + + // //6.VIDIOC_REQBUFS + // req.count = v4l_buffer_count; + // req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + // req.memory = V4L2_MEMORY_USERPTR;//V4L2_MEMORY_MMAP; + + // ret = ioctl(fd, VIDIOC_REQBUFS, &req); + // if (ret < 0) { + // LOG_ERROR(string_format("Unable to request buffers: %s (%d).", strerror(errno),errno)); + // } + // else { + // LOG_TRACE(string_format("%s VIDIOC_REQBUFS sucess",dev_name.c_str())); + // } + // LOG_TRACE(string_format("%u buffers requested.", req.count)); + + // buffers.resize(req.count); + + + // for (n_buffers = 0; n_buffers < buffers.size(); ++n_buffers) + // { + // buffers[n_buffers].length = buffer_size; + // buffers[n_buffers].start = memalign(/* boundary */ page_size, buffer_size); + + // if (!buffers[n_buffers].start) + // LOG_ERROR("Out of memory"); + // } + + struct v4l2_requestbuffers req; + int ret; + unsigned int length; + unsigned int offset; + unsigned int page_size; + int buffer_size = v4l_width * v4l_height * 3; + LOG_TRACE(string_format("init_mmap::buduiqi:changdu: buffer_size= %d\n", buffer_size)); + page_size = getpagesize(); + buffer_size = (buffer_size + page_size - 1) & ~(page_size - 1); + LOG_TRACE(string_format("init_mmap::shijichangdu:v4l_width = %d,v4l_height = %d\n", v4l_width,v4l_height)); + LOG_TRACE(string_format("init_mmap::duiqi:page_size = %d,buffer_size = %d\n", page_size,buffer_size)); + + CLEAR(req); + + //6.VIDIOC_REQBUFS + req.count = v4l_buffer_count; + //req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + //req.memory = V4L2_MEMORY_MMAP; + req.memory = V4L2_MEMORY_USERPTR; + LOG_TRACE(string_format("set v4l_buffer_count = %d\n", req.count)); + LOG_TRACE(string_format("set v4l_buffer_type = %d\n", req.type)); + LOG_TRACE(string_format("set v4l_buffer_memory = %d\n", req.memory)); + + ret = ioctl(fd, VIDIOC_REQBUFS, &req); + if (ret < 0) { + LOG_ERROR(string_format("Unable to request buffers: %s (%d).\n", strerror(errno),errno)); + } + else { + LOG_TRACE(string_format("%s VIDIOC_REQBUFS sucess\n",dev_name.c_str())); + } + LOG_TRACE(string_format("%u buffers requested.\n", req.count)); + + buffers.resize(req.count); + if (buffers.empty()) { + LOG_ERROR("Out of memory\n"); + } + + //7.VIDIOC_QUERYBUF + for (n_buffers = 0; n_buffers < req.count; ++n_buffers) { + const char *ts_type, *ts_source; + struct v4l2_buffer buf; + struct v4l2_plane planes[VIDEO_MAX_PLANES]; + CLEAR(buf); + CLEAR(planes); + buf.index = n_buffers; + buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + //buf.memory = V4L2_MEMORY_MMAP; + buf.memory = V4L2_MEMORY_USERPTR; + buf.length = VIDEO_MAX_PLANES; + buf.m.planes = planes; + + ret = ioctl(fd, VIDIOC_QUERYBUF, &buf); + if (ret < 0) { + LOG_ERROR(string_format("Unable to query buffer %u: %s (%d).\n", n_buffers,strerror(errno), errno)); + + } + else { + LOG_TRACE(string_format("index %d VIDIOC_QUERYBUF sucess.\n",n_buffers)); + + } + get_ts_flags(buf.flags, &ts_type, &ts_source); + LOG_TRACE(string_format("length: %u offset: %u timestamp type/source: %s/%s\n", + buf.length, buf.m.offset, ts_type, ts_source)); + + //mmap + unsigned int length; + unsigned int offset; + length = buf.m.planes[0].length; + offset = buf.m.planes[0].m.mem_offset; + gsp1querybuf_length = buf.m.planes[0].length; + LOG_TRACE(string_format("VIDIOC_QUERYBUF:Buffer %u length = %d.\n",n_buffers,length)); + LOG_TRACE(string_format("VIDIOC_QUERYBUF:Buffer %u offset = %d.\n",n_buffers,offset)); + LOG_TRACE(string_format("VIDIOC_QUERYBUF:Buffer %u querybuf_length = %d.\n",n_buffers,gsp1querybuf_length)); + } + + for (n_buffers = 0; n_buffers < buffers.size(); ++n_buffers) + { + buffers[n_buffers].length = gsp1querybuf_length; + buffers[n_buffers].start = memalign(/* boundary */ 1024, gsp1querybuf_length); + LOG_TRACE(string_format("memalign:buffers[%d].length = %d\n", n_buffers,buffers[n_buffers].length)); + LOG_TRACE(string_format("memalign:buffers[%d].start = %p\n", n_buffers,buffers[n_buffers].start)); + + if (!buffers[n_buffers].start) + { + LOG_TRACE("Out of memory,exit application\n"); + exit(EXIT_FAILURE); + } + } +} + +static const char *v4l2_buf_type_name(__u32 type) +{ + unsigned int i; + + for (i = 0; i < ARRAY_SIZE(buf_types); ++i) { + if (buf_types[i].type == type) + return buf_types[i].name; + } + + if (type & V4L2_BUF_TYPE_PRIVATE) + return "Private"; + else + return "Unknown"; +} + +static const struct v4l2_format_info *v4l2_format_by_fourcc(unsigned int fourcc) +{ + unsigned int i; + + for (i = 0; i < ARRAY_SIZE(pixel_formats); ++i) { + if (pixel_formats[i].fourcc == fourcc) + return &pixel_formats[i]; + } + + return NULL; +} + + +static const char *v4l2_format_name(unsigned int fourcc) +{ + const struct v4l2_format_info *info; + static char name[5]; + unsigned int i; + + info = v4l2_format_by_fourcc(fourcc); + if (info) + return info->name; + + for (i = 0; i < 4; ++i) { + name[i] = fourcc & 0xff; + fourcc >>= 8; + } + + name[4] = '\0'; + return name; +} + +static void video_enum_frame_intervals(int fd, __u32 pixelformat, + unsigned int width, unsigned int height) +{ + struct v4l2_frmivalenum ival; + unsigned int i; + int ret; + + for (i = 0; ; ++i) { + memset(&ival, 0, sizeof ival); + ival.index = i; + ival.pixel_format = pixelformat; + ival.width = width; + ival.height = height; + ret = ioctl(fd, VIDIOC_ENUM_FRAMEINTERVALS, &ival); + if (ret < 0) + break; + + if (i != ival.index) + LOG_TRACE(string_format("Warning: driver returned wrong ival index " "%u.\n", ival.index)); + if (pixelformat != ival.pixel_format) + LOG_TRACE(string_format("Warning: driver returned wrong ival pixel " "format %08x.\n", ival.pixel_format)); + if (width != ival.width) + LOG_TRACE(string_format("Warning: driver returned wrong ival width " "%u.\n", ival.width)); + if (height != ival.height) + LOG_TRACE(string_format("Warning: driver returned wrong ival height " "%u.\n", ival.height)); + + if (i != 0) + LOG_TRACE(", "); + + switch (ival.type) { + case V4L2_FRMIVAL_TYPE_DISCRETE: + LOG_TRACE(string_format("%u/%u", ival.discrete.numerator, ival.discrete.denominator)); + break; + + case V4L2_FRMIVAL_TYPE_CONTINUOUS: + LOG_TRACE(string_format("%u/%u - %u/%u", ival.stepwise.min.numerator, ival.stepwise.min.denominator, ival.stepwise.max.numerator, ival.stepwise.max.denominator)); + return; + + case V4L2_FRMIVAL_TYPE_STEPWISE: + LOG_TRACE(string_format("%u/%u - %u/%u (by %u/%u)", ival.stepwise.min.numerator, ival.stepwise.min.denominator, ival.stepwise.max.numerator, ival.stepwise.max.denominator, ival.stepwise.step.numerator, ival.stepwise.step.denominator)); + return; + + default: + break; + } + } +} + +static void video_enum_frame_sizes(int fd, __u32 pixelformat) +{ + struct v4l2_frmsizeenum frame; + unsigned int i; + int ret; + + for (i = 0; ; ++i) { + memset(&frame, 0, sizeof frame); + frame.index = i; + frame.pixel_format = pixelformat; + ret = ioctl(fd, VIDIOC_ENUM_FRAMESIZES, &frame); + if (ret < 0) + break; + + if (i != frame.index) + LOG_TRACE(string_format("Warning: driver returned wrong frame index " "%u.\n", frame.index)); + if (pixelformat != frame.pixel_format) + LOG_TRACE(string_format("Warning: driver returned wrong frame pixel " "format %08x.\n", frame.pixel_format)); + + switch (frame.type) { + case V4L2_FRMSIZE_TYPE_DISCRETE: + LOG_TRACE(string_format("\tFrame size: %ux%u (", frame.discrete.width, frame.discrete.height)); + video_enum_frame_intervals(fd, frame.pixel_format, frame.discrete.width, frame.discrete.height); + break; + + case V4L2_FRMSIZE_TYPE_CONTINUOUS: + LOG_TRACE(string_format("\tFrame size: %ux%u - %ux%u (", frame.stepwise.min_width, frame.stepwise.min_height, frame.stepwise.max_width, frame.stepwise.max_height)); + video_enum_frame_intervals(fd, frame.pixel_format, frame.stepwise.max_width, frame.stepwise.max_height); + break; + + case V4L2_FRMSIZE_TYPE_STEPWISE: + LOG_TRACE(string_format("\tFrame size: %ux%u - %ux%u (by %ux%u) (\n", frame.stepwise.min_width, frame.stepwise.min_height, frame.stepwise.max_width, frame.stepwise.max_height, frame.stepwise.step_width, frame.stepwise.step_height)); + video_enum_frame_intervals(fd, frame.pixel_format, frame.stepwise.max_width, frame.stepwise.max_height); + break; + + default: + break; + } + } +} + + +static void video_enum_formats(int fd, enum v4l2_buf_type type) +{ + struct v4l2_fmtdesc fmt; + unsigned int i; + int ret; + + for (i = 0; ; ++i) { + memset(&fmt, 0, sizeof fmt); + fmt.index = i; + fmt.type = type; + ret = ioctl(fd, VIDIOC_ENUM_FMT, &fmt); + if (ret < 0) + break; + + if (i != fmt.index) + LOG_TRACE(string_format("Warning: driver returned wrong format index " "%u.\n", fmt.index)); + if (type != fmt.type) + LOG_TRACE(string_format("Warning: driver returned wrong format type " "%u.\n", fmt.type)); + + LOG_TRACE(string_format("\tFormat %u: %s (%08x)\n", i, v4l2_format_name(fmt.pixelformat), fmt.pixelformat)); + LOG_TRACE(string_format("\tType: %s (%u)\n", v4l2_buf_type_name(fmt.type), fmt.type)); + LOG_TRACE(string_format("\tName: %.32s\n", fmt.description)); + video_enum_frame_sizes(fd, fmt.pixelformat); + } +} + +static void video_enum_inputs(int fd) +{ + struct v4l2_input input; + unsigned int i; + int ret; + + for (i = 0; ; ++i) { + memset(&input, 0, sizeof input); + input.index = i; + ret = ioctl(fd, VIDIOC_ENUMINPUT, &input); + if (ret < 0) + break; + + if (i != input.index) + LOG_TRACE(string_format("Warning: driver returned wrong input index " "%u.\n", input.index)); + + LOG_TRACE(string_format("\tInput %u: %s.\n", i, input.name)); + } + +} + +static const char *v4l2_field_name(__u32 field) +{ + unsigned int i; + + for (i = 0; i < ARRAY_SIZE(fields); ++i) { + if (fields[i].field == field) + return fields[i].name; + } + + return "unknown"; +} + + +static void rkisp_sd_set_crop(const char *ispsd, int fd, int pad, int *w, int *h) +{ + struct v4l2_subdev_selection sel; + int ret; + + memset(&sel, 0, sizeof(sel)); + sel.which = V4L2_SUBDEV_FORMAT_ACTIVE; + sel.pad = pad; + sel.r.width = *w; + sel.r.height = *h; + sel.r.left = 0; + sel.r.top = 0; + sel.target = V4L2_SEL_TGT_CROP; + sel.flags = V4L2_SEL_FLAG_LE; + ret = ioctl(fd, VIDIOC_SUBDEV_S_SELECTION, &sel); + if (ret) { + LOG_ERROR(string_format("subdev %s pad %d crop failed, ret = %d\n", ispsd, sel.pad, ret)); + } + else { + LOG_TRACE(string_format("VIDIOC_SUBDEV_S_SELECTION sucess.\n")); + } + + *w = sel.r.width; + *h = sel.r.height; +} + +static void rkisp_video_set_crop(int fd, int x, int y, int w, int h) +{ + struct v4l2_selection sel; + int ret; + memset(&sel, 0, sizeof(sel)); + sel.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + sel.r.width = w; + sel.r.height = h; + sel.r.left = x; + sel.r.top = y; + sel.target = V4L2_SEL_TGT_CROP; + sel.flags = 0; + ret = ioctl(fd, VIDIOC_S_SELECTION, &sel); + if (ret) { + LOG_ERROR(string_format("VIDIOC_S_SELECTION::set output crop(0,0/%dx%d) failed, %s\n", w, h, strerror(errno))); + } + else { + LOG_TRACE(string_format("sVIDIOC_S_SELECTION scuess\n")); + } + +} +void GVideoISP1::init_device(void) { + struct v4l2_capability cap; + struct v4l2_format fmt; + + enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + struct v4l2_fmtdesc fmt_1; + struct v4l2_frmsizeenum frmsize; + struct v4l2_frmivalenum frmival; + struct v4l2_subdev_format subdev_fmt; + int subdev_fd; + + unsigned int caps; + bool has_video; + bool has_meta; + bool has_capture; + bool has_output; + bool has_mplane; + + int ret; + int i; + //---------------------------set /dev/v4l2-subdev*-------------------------------------// + //----------------------1.v4l2_subdev2 set format----------------------// + subdev_fd = ::open(subdev2_name.c_str(),O_RDWR,0); + if (-1 == subdev_fd) { + LOG_ERROR(string_format("Cannot open '%s'\n", subdev2_name.c_str())); + } + else { + LOG_TRACE(string_format("open %s success.fd = %d.\n",subdev2_name.c_str(),subdev_fd)); + } + memset(&subdev_fmt, 0, sizeof subdev_fmt); + subdev_fmt.pad = 0; + subdev_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; + ret = ioctl(subdev_fd, VIDIOC_SUBDEV_G_FMT, &subdev_fmt); + if (ret < 0) { + LOG_ERROR(string_format("VIDIOC_SUBDEV_G_FMT failed.\n")); + } + else { + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT SUCESS\n")); + } + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT:height = %d;width = %d;code = %d.\n", subdev_fmt.format.height,subdev_fmt.format.width,subdev_fmt.format.code)); + + subdev_fmt.format.width = v4l_width; + subdev_fmt.format.height = v4l_height; + LOG_TRACE(string_format("set height = %d\n",subdev_fmt.format.height)); + LOG_TRACE(string_format("set width = %d\n",subdev_fmt.format.width)); + ret = ioctl(subdev_fd, VIDIOC_SUBDEV_S_FMT, &subdev_fmt); + if (ret < 0) { + LOG_ERROR(string_format("VIDIOC_SUBDEV_S_FMT failed.\n")); + } + else { + LOG_TRACE(string_format("VIDIOC_SUBDEV_S_FMT SUCESS\n")); + } + LOG_TRACE(string_format("VIDIOC_SUBDEV_S_FMT:height = %d;width = %d;code = %d.\n", subdev_fmt.format.height,subdev_fmt.format.width,subdev_fmt.format.code)); + ::close(subdev_fd); + //-------------------------------------------------------------// + + //----------------------2.v4l2_subdev0 set format::pad0----------------------// + subdev_fd = ::open(subdev0_name.c_str(),O_RDWR,0); + if (-1 == subdev_fd) { + LOG_ERROR(string_format("Cannot open '%s'\n", subdev0_name.c_str())); + } + else { + LOG_TRACE(string_format("open %s success.fd = %d.\n",subdev0_name.c_str(),subdev_fd)); + } + memset(&subdev_fmt, 0, sizeof subdev_fmt); + subdev_fmt.pad = 0; + subdev_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; + ret = ioctl(subdev_fd, VIDIOC_SUBDEV_G_FMT, &subdev_fmt); + if (ret < 0) { + LOG_ERROR(string_format("VIDIOC_SUBDEV_G_FMT failed.\n")); + } + else { + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT SUCESS\n")); + } + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT:pad = %d;height = %d;width = %d;code = %d.\n", subdev_fmt.pad,subdev_fmt.format.height,subdev_fmt.format.width,subdev_fmt.format.code)); + subdev_fmt.format.width = v4l_width; + subdev_fmt.format.height = v4l_height; + LOG_TRACE(string_format("set height = %d;width = %d\n",subdev_fmt.format.height,subdev_fmt.format.width)); + + ret = ioctl(subdev_fd, VIDIOC_SUBDEV_S_FMT, &subdev_fmt); + if (ret < 0) { + LOG_ERROR(string_format("VIDIOC_SUBDEV_S_FMT failed.\n")); + } + else { + LOG_TRACE(string_format("VIDIOC_SUBDEV_S_FMT SUCESS\n")); + } + LOG_TRACE(string_format("VIDIOC_SUBDEV_S_FMT:pad = %d;height = %d;width = %d;code = %d.\n", subdev_fmt.pad,subdev_fmt.format.height,subdev_fmt.format.width,subdev_fmt.format.code)); + rkisp_sd_set_crop(subdev0_name.c_str(),subdev_fd, 0 , &v4l_width, &v4l_height); + LOG_TRACE(string_format("v4l_set height = %d;width = %d\n",v4l_width,v4l_height)); + //----------------------3.v4l2_subdev0 set format::pad2----------------------// + rkisp_sd_set_crop(subdev0_name.c_str(),subdev_fd, 2 , &v4l_width, &v4l_height); + LOG_TRACE(string_format("v4l_set height = %d;width = %d\n",v4l_width,v4l_height)); + memset(&subdev_fmt, 0, sizeof subdev_fmt); + subdev_fmt.pad = 2; + subdev_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; + ret = ioctl(subdev_fd, VIDIOC_SUBDEV_G_FMT, &subdev_fmt); + if (ret < 0) + { + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT failed.\n")); + } + else + { + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT SUCESS\n")); + } + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT:pad = %d\n",subdev_fmt.pad)); + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT:subdev_fmt.format.height = %d\n",subdev_fmt.format.height)); + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT:subdev_fmt.format.width = %d\n",subdev_fmt.format.width)); + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT:subdev_fmt.format.code = %d\n",subdev_fmt.format.code)); + subdev_fmt.format.width = v4l_width; + subdev_fmt.format.height = v4l_height; + LOG_TRACE(string_format("set height = %d\n",subdev_fmt.format.height)); + LOG_TRACE(string_format("set width = %d\n",subdev_fmt.format.width)); + + ret = ioctl(subdev_fd, VIDIOC_SUBDEV_S_FMT, &subdev_fmt); + if (ret < 0) + { + LOG_TRACE(string_format("VIDIOC_SUBDEV_S_FMT failed.\n")); + } + else + { + LOG_TRACE(string_format("VIDIOC_SUBDEV_S_FMT SUCESS\n")); + } + LOG_TRACE(string_format("VIDIOC_SUBDEV_G_FMT:pad = %d\n",subdev_fmt.pad)); + LOG_TRACE(string_format("VIDIOC_SUBDEV_S_FMT:subdev_fmt.format.height = %d\n",subdev_fmt.format.height)); + LOG_TRACE(string_format("VIDIOC_SUBDEV_S_FMT:subdev_fmt.format.width = %d\n",subdev_fmt.format.width)); + LOG_TRACE(string_format("VIDIOC_SUBDEV_S_FMT:subdev_fmt.format.code = %d\n",subdev_fmt.format.code)); + //-------------------------------------------------------------// + + //-------4.set video selection(crop) because ispsd size changed------------------// + rkisp_video_set_crop(fd, 0, 0, v4l_width, v4l_height); + //----------------------1.VIDIOC_QUERYCAP----------------------// + memset(&cap, 0, sizeof cap); + if (-1 == ioctl(fd, VIDIOC_QUERYCAP, &cap)) + + ret = ioctl(fd, VIDIOC_QUERYCAP, &cap); + if (ret < 0) + { + LOG_TRACE(string_format("VIDIOC_QUERYCAP failed.\n")); + } + else + { + LOG_TRACE(string_format("cap.capabilities = %x .\n",cap.capabilities)); + LOG_TRACE(string_format("cap.device_caps = %x .\n",cap.device_caps)); + } + caps = cap.capabilities & V4L2_CAP_DEVICE_CAPS + ? cap.device_caps : cap.capabilities; + + has_video = caps & (V4L2_CAP_VIDEO_CAPTURE_MPLANE | + V4L2_CAP_VIDEO_CAPTURE | + V4L2_CAP_VIDEO_OUTPUT_MPLANE | + V4L2_CAP_VIDEO_OUTPUT); + // has_meta = caps & (V4L2_CAP_META_CAPTURE | + // V4L2_CAP_META_OUTPUT); + // has_capture = caps & (V4L2_CAP_VIDEO_CAPTURE_MPLANE | + // V4L2_CAP_VIDEO_CAPTURE | + // V4L2_CAP_META_CAPTURE); + has_output = caps & (V4L2_CAP_VIDEO_OUTPUT_MPLANE | + V4L2_CAP_VIDEO_OUTPUT | + V4L2_CAP_META_OUTPUT); + has_mplane = caps & (V4L2_CAP_VIDEO_CAPTURE_MPLANE | + V4L2_CAP_VIDEO_OUTPUT_MPLANE); + + LOG_TRACE(string_format("Device `%s' on `%s' (driver '%s') supports%s%s%s%s %s mplanes.\n", cap.card, cap.bus_info, cap.driver, has_video ? " video," : "", has_meta ? " meta-data," : "", has_capture ? " capture," : "", has_output ? " output," : "", has_mplane ? "with" : "without")); + + + if (!(cap.capabilities & V4L2_CAP_STREAMING)) { + LOG_ERROR(string_format("%s does not support streaming i/o\n", dev_name.c_str())); + } + else { + LOG_TRACE(string_format("%s support streaming i/o\n", dev_name.c_str())); + } + //-------------------------------------------------------------// + + //----------------------2.VIDIOC_ENUM_FMT----------------------// + LOG_TRACE(string_format("- Available formats:\n")); + LOG_TRACE(string_format("------------------------------------------------------\n")); + LOG_TRACE(string_format("fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE = %d\n", V4L2_BUF_TYPE_VIDEO_CAPTURE)); + video_enum_formats(fd, V4L2_BUF_TYPE_VIDEO_CAPTURE); + + LOG_TRACE(string_format("------------------------------------------------------\n")); + LOG_TRACE(string_format("fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE = %d\n", V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE)); + video_enum_formats(fd, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); + + LOG_TRACE(string_format("------------------------------------------------------\n")); + LOG_TRACE(string_format("fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT = %d\n", V4L2_BUF_TYPE_VIDEO_OUTPUT)); + video_enum_formats(fd, V4L2_BUF_TYPE_VIDEO_OUTPUT); + + LOG_TRACE(string_format("------------------------------------------------------\n")); + LOG_TRACE(string_format("fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE = %d\n", V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)); + video_enum_formats(fd, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); + + LOG_TRACE(string_format("------------------------------------------------------\n")); + LOG_TRACE(string_format("fmt.type = V4L2_BUF_TYPE_VIDEO_OVERLAY = %d\n", V4L2_BUF_TYPE_VIDEO_OVERLAY)); + video_enum_formats(fd, V4L2_BUF_TYPE_VIDEO_OVERLAY); + + LOG_TRACE(string_format("------------------------------------------------------\n")); + //LOG_TRACE(string_format("fmt.type = V4L2_BUF_TYPE_META_CAPTURE = %d\n", V4L2_BUF_TYPE_META_CAPTURE)); + //video_enum_formats(fd, V4L2_BUF_TYPE_META_CAPTURE); + + LOG_TRACE(string_format("------------------------------------------------------\n")); + LOG_TRACE(string_format("fmt.type = V4L2_BUF_TYPE_META_OUTPUT = %d\n", V4L2_BUF_TYPE_META_OUTPUT)); + //video_enum_formats(fd, V4L2_BUF_TYPE_META_OUTPUT); + LOG_TRACE(string_format("------------------------------------------------------\n")); + //--------------------------------------------------------------// + + //----------------------3.VIDIOC_ENUMINPUT----------------------// + LOG_TRACE(string_format("- Available inputs:\n")); + video_enum_inputs(fd); + //-------------------------------------------------------------// + + //----------------------4.VIDIOC_S_FMT-------------------------// + LOG_TRACE(string_format("..........................................................................\n")); + CLEAR(fmt); + //fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + fmt.fmt.pix.width = v4l_width; + fmt.fmt.pix.height = v4l_height; + //fmt.fmt.pix.width = 2112; + //fmt.fmt.pix.height = 1568; + LOG_TRACE(string_format("v4l2 VIDIOC_S_FMT width:%d, height:%d\n", fmt.fmt.pix.width, fmt.fmt.pix.height)); + //fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24; + //fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; + //fmt.fmt.pix_mp.width = 1728; + //fmt.fmt.pix_mp.height = 1568; + fmt.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_RGB24; + fmt.fmt.pix_mp.field = 0; + fmt.fmt.pix_mp.num_planes = 1; + fmt.fmt.pix_mp.flags = 0; + fmt.fmt.pix_mp.plane_fmt[0].bytesperline = 0; + fmt.fmt.pix_mp.plane_fmt[0].sizeimage = 0; + + ret = ioctl(fd, VIDIOC_S_FMT, &fmt); + if (ret < 0) { + LOG_TRACE(string_format("Unable to set format: %s (%d).\n", strerror(errno),errno)); + + } + else { + LOG_TRACE(string_format("VIDIOC_S_FMT sucess.\n")); + } + + LOG_TRACE(string_format("Video format set: %s (%08x) %ux%u field %s, %u planes: \n", v4l2_format_name(fmt.fmt.pix_mp.pixelformat), fmt.fmt.pix_mp.pixelformat, fmt.fmt.pix_mp.width, fmt.fmt.pix_mp.height, v4l2_field_name(fmt.fmt.pix_mp.field), fmt.fmt.pix_mp.num_planes)); + + for (i = 0; i < fmt.fmt.pix_mp.num_planes; i++) { + LOG_TRACE(string_format(" * bytesperline %u, buffer size %u\n", fmt.fmt.pix_mp.plane_fmt[i].bytesperline, fmt.fmt.pix_mp.plane_fmt[i].sizeimage)); + } + //-------------------------------------------------------------// + + //----------------------5.VIDIOC_G_FMT-------------------------// + memset(&fmt, 0, sizeof fmt); + fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; + ret = ioctl(fd, VIDIOC_G_FMT, &fmt); + if (ret < 0) { + LOG_TRACE(string_format("Unable to get format: %s (%d).\n", strerror(errno),errno)); + } + else { + LOG_TRACE("VIDIOC_G_FMT sucess."); + } + LOG_TRACE(string_format("Video format: %s (%08x) %ux%u field %s, %u planes: \n", v4l2_format_name(fmt.fmt.pix_mp.pixelformat), fmt.fmt.pix_mp.pixelformat, fmt.fmt.pix_mp.width, fmt.fmt.pix_mp.height, v4l2_field_name(fmt.fmt.pix_mp.field), fmt.fmt.pix_mp.num_planes)); + for (i = 0; i < fmt.fmt.pix_mp.num_planes; i++) + LOG_TRACE(string_format(" * bytesperline %u, buffer size %u\n", fmt.fmt.pix_mp.plane_fmt[i].bytesperline, fmt.fmt.pix_mp.plane_fmt[i].sizeimage)); + + ::close(subdev_fd); + //-------------------------------------------------------------// + + //6.VIDIOC_REQBUFS //7.VIDIOC_QUERYBUF mmmap + init_mmap(); + //-------------------------------------------------------------// +} \ No newline at end of file diff --git a/device/gxx-linux/capimage/gvideoisp1.h b/device/gxx-linux/capimage/gvideoisp1.h new file mode 100644 index 0000000..133df41 --- /dev/null +++ b/device/gxx-linux/capimage/gvideoisp1.h @@ -0,0 +1,24 @@ +#pragma once +#include "gvideo.h" + + +class GVideoISP1 : public gVideo +{ +public: + GVideoISP1(); + virtual ~GVideoISP1(); + + virtual void *read_frame(int timeout); + +protected: + virtual void start_capturing(void); + virtual void stop_capturing(void); + virtual void init_mmap(void); + virtual void init_device(void); + +private: + const std::string subdev0_name = "/dev/v4l-subdev0"; + const std::string subdev1_name = "/dev/v4l-subdev1"; + const std::string subdev2_name = "/dev/v4l-subdev2"; + const std::string subdev3_name = "/dev/v4l-subdev3"; +}; \ No newline at end of file diff --git a/device/gxx-linux/capimage/hgutils.cpp b/device/gxx-linux/capimage/hgutils.cpp new file mode 100644 index 0000000..cc01014 --- /dev/null +++ b/device/gxx-linux/capimage/hgutils.cpp @@ -0,0 +1,309 @@ +#include "hgutils.h" +#include +#include +#include +#include + +using namespace cv; + +cv::Mat extractRepresentRow2(const cv::Mat &src) +{ + printf("extractRepresentRow2 enter \n"); + Mat src_temp(src.rows, src.step, CV_8UC1, src.data); + Mat dst(1, src.cols, CV_8UC(src.channels())); + Mat dst_temp(1, src.step, CV_8UC1, dst.data); + + for (int i = 0, length = src.step; i < length; i++) + { + Mat col = src_temp(Rect(i, 0, 1, src_temp.rows)); + float value = 0; + for (int j = 0, rows = col.rows; j < rows; j++) + { + value += (float)col.at(Point(0, j)) / rows; + } + dst_temp.data[i] = (int)value; + } + printf("extractRepresentRow2 exit \n"); + return dst; +} + +cv::Mat flipRightHalf(Mat &src, int papertype) +{ + Mat left = src(cv::Rect(0, 0, src.cols / 2, src.rows)); + Mat right = src(cv::Rect(src.cols / 2, 0, src.cols / 2, src.rows)); + Mat rightFlip; + if (papertype == (int)(PaperSize::G400_A4R)) + { + flip(right, rightFlip, 0); + } + else + { + flip(right, rightFlip, 1); + } + + Mat dst; + hconcat(left, rightFlip, dst); + return dst; +} + +float curve_coffes[2][3][3] = { + {{-6e-5, 0.9928, 0.289}, + {4e-5, 1.0045, -0.0338}, + {3e-5, 1.0028, -0.2547}}, + {{0.00025215105482649316, 0.9162675232424231, 2.2064225897716527}, + {-6.242394612635725e-05, 1.0212590446315797, -0.7470581333124157}, + {-0.0002324551311266845, 1.072239346671703, -1.7099159032971474}}}; + +cv::Mat create_lut(const cv::Mat &black, const cv::Mat &white, bool colormode, CISVendor vendor) +{ + printf("create_lut enter \n"); + int channel = 4896 / 12; // 1632*3 + + const int rows = black.cols / channel; //408 + const int cols = 256; + printf("LUT White width: %d height :%d channels:%d \n", white.cols, white.rows, white.channels()); + printf("LUT black width: %d height :%d channels:%d \n", black.cols, black.rows, black.channels()); + Mat lut(rows, cols, CV_8UC(channel)); + float *cisCoffoes; + float *coffoes; + if (vendor == CISVendor::DUNNAN_CIS_V0) + cisCoffoes = &curve_coffes[0][0][0]; + else if (vendor == CISVendor::HUALIN_CIS_V0) + cisCoffoes = &curve_coffes[1][0][0]; + else + { + cisCoffoes = &curve_coffes[1][0][0]; + printf("warnning!!! unknown cis type,use hualin CIS cisCoffoes params \n"); + } + + for (size_t i = 0; i < rows; i++) + { + Mat lut_row = lut(cv::Rect(0, i, cols, 1)); + unsigned char *ptr_buffer = lut_row.data; + unsigned char *ptr_black = black.data + i * channel; + unsigned char *ptr_white = white.data + i * channel; + for (size_t j = 0; j < cols; j++) + { + for (size_t k = 0; k < channel; k++) + { + if (ptr_black[k] >= ptr_white[k]) + { + ptr_buffer[j * channel + k] = 0; + printf("ptr_black[%d] >= ptr_white[%d]", k, k); + continue; + } + if (j <= ptr_black[k]) + { + ptr_buffer[j * channel + k] = 0; + } + else if (j >= ptr_white[k]) + { + ptr_buffer[j * channel + k] = 255; + } + else + { + if (white.channels() == 3) + { + float val = 255.0 * (j - ptr_black[k]) / (ptr_white[k] - ptr_black[k]) *1.2; + //float val = 255.0 * (j - ptr_black[k]) / (ptr_white[k] - ptr_black[k]); + // coffoes = cisCoffoes + 3 * (k % 3); + // val = coffoes[0] * val * val + coffoes[1] * val + coffoes[2]; + if (val > 255) + val = 255; + + if (val < 0) + val = 0; + ptr_buffer[j * channel + k] = (unsigned char)val; + } + else + { + //float val = 255 * (j - ptr_black[k]) / (ptr_white[k] - ptr_black[k]); + float val = 255 * (j - ptr_black[k]) / (ptr_white[k] - ptr_black[k]) * 1.2; + if (val > 255) + val = 255; + + if (val < 0) + val = 0; + ptr_buffer[j * channel + k] = (unsigned char)val; + } + } + } + } + } + printf("create_lut exit \n"); + return lut; +} + +void initLut() +{ + if(access(LUT_GRAY_LUT_PATH, F_OK) != -1) + lutGrayMat = cv::imread(LUT_GRAY_LUT_PATH, IMREAD_GRAYSCALE); //灰色校正值 + if(access(LUT_COLOR_LUT_PATH, F_OK) != -1) + lutColorMat = cv::imread(LUT_COLOR_LUT_PATH, IMREAD_GRAYSCALE); //彩色校正值 +} + +void correctColor(cv::Mat src, bool enhance) +{ + Mat tSrc; + Mat lutMat; + int patch = 0; + int SIZE = src.cols / 12; + //printf("lutMat.empty() src.width::%d SIZE: %d \n", src.cols, SIZE); + + if (src.type() == CV_8UC3) + { + patch = (src.cols * 3) / SIZE; + if (lutColorMat.empty()) + { + if (access(LUT_COLOR_LUT_PATH, F_OK) != -1) + { + lutColorMat = imread(LUT_COLOR_LUT_PATH, IMREAD_GRAYSCALE); + } + else + { + //printf("error error error %s NOT FOUND \n", LUT_COLOR_LUT_PATH); + return; + } + } + lutMat = lutColorMat; + } + else + { + patch = (src.cols) / SIZE; + if (lutGrayMat.empty()) + { + if (access(LUT_GRAY_LUT_PATH, F_OK) != -1) + { + lutGrayMat = imread(LUT_GRAY_LUT_PATH, IMREAD_GRAYSCALE); + } + else + { + //printf("error error error %s NOT FOUND", LUT_GRAY_LUT_PATH); + return; + } + } + lutMat = lutGrayMat; + } + if (lutMat.empty()) + { + return; + } + lutMat = cv::Mat(patch, 256, CV_8UC(SIZE), lutMat.data); + tSrc = cv::Mat(src.rows, patch, CV_8UC(SIZE), src.data); + for (int i = 0; i < patch; i++) + { + LUT(tSrc(cv::Rect(i, 0, 1, src.rows)), lutMat(cv::Rect(0, i, 256, 1)), tSrc(cv::Rect(i, 0, 1, src.rows))); + } +} + +void creatLUTData(int mode, CISVendor vendor) +{ + printf("eneter creatLUTData \n"); + auto colormode = mode == IMAGE_COLOR ? IMREAD_COLOR : IMREAD_GRAYSCALE; + std::string blackPath = mode == IMAGE_COLOR ? LUT_COLOR_BLACK_PATH : LUT_GRAY_BLACK_PATH; + std::string whitePath = mode == IMAGE_COLOR ? LUT_COLOR_WHITE_PATH : LUT_GRAY_WHITE_PATH; + std::string lutsavePath = mode == IMAGE_COLOR ? LUT_COLOR_LUT_PATH : LUT_GRAY_LUT_PATH; + cv::Mat lut; + cv::Mat twMat = cv::imread(whitePath, colormode); + cv::Mat tbMat = cv::imread(blackPath, colormode); + cv::Mat wMat, bMat; + if (mode == IMAGE_COLOR) + { + wMat = cv::Mat(twMat.rows, twMat.cols * 3, CV_8UC1, twMat.data); + bMat = cv::Mat(twMat.rows, twMat.cols * 3, CV_8UC1, tbMat.data); + } + else + { + wMat = twMat; + bMat = tbMat; + } + + lut = create_lut(extractRepresentRow2(bMat), extractRepresentRow2(wMat), mode, vendor); // add by liuyong: 刘丁维提供 2019/4/12 + Mat dst(bMat.cols * bMat.channels(), 256, CV_8UC1); + memcpy(dst.data, lut.data, bMat.cols * bMat.channels() * 256); + cv::imwrite(lutsavePath, dst); + printf("exit creatLUTData \n"); +} +static int num=0; +cv::Mat GetMergeMat(void *data, int width, int height, int type) +{ + if (!data) + return cv::Mat(); + + cv::Mat mat; + cv::Mat saveMat; + std::vector ch_mats(3); + int dstwidth, dstheight; + dstwidth = width * 3; + dstheight = height / 3-1; + + if (type == CV_8UC3) + { + mat = cv::Mat(height / 3 -1 , width * 9, CV_8UC1, data); + saveMat = cv::Mat(dstheight, dstwidth, CV_8UC3); + } + else + { //gray + saveMat = cv::Mat(height, width * 3, CV_8UC1, data); + } + static int savenum; + if (type == CV_8UC3) + { + for (int i = 0; i < 3; i++) + { // B G R + cv::Mat mattemp = mat(cv::Rect(dstwidth * i, 0, dstwidth, dstheight)); + //ch_mats.push_back(mattemp); + ch_mats[i]=mattemp; + } + swap(ch_mats[1], ch_mats[2]); + cv::merge(ch_mats, saveMat); + } + return saveMat.clone(); +} + + +cv::Mat GetMergeMat(cv::Mat& mat, int width, int height, int type) +{ + if (mat.empty()) + return cv::Mat(); + cv::Mat saveMat; + std::vector ch_mats(3); + int dstwidth, dstheight; + dstwidth = width * 3; + dstheight = height / 3-1; + + if (type == CV_8UC3) + { + saveMat = cv::Mat(dstheight, dstwidth, CV_8UC3); + for (int i = 0; i < 3; i++) + { // B G R + cv::Mat mattemp = mat(cv::Rect(dstwidth * i, 0, dstwidth, dstheight)); + //ch_mats.push_back(mattemp); + ch_mats[i]=mattemp; + } + swap(ch_mats[1], ch_mats[2]); + cv::merge(ch_mats, saveMat); + return saveMat; + } + return mat; +} + +void savescannerinfo(ScannerNativeParam params) +{ + jsonconfig().savescannerinfo(params); +} + +ScannerNativeParam getscannerinfo() +{ + return jsonconfig().getscannerinfo(); +} + +void savecisparams(HGCorrectConfigs cfgs) +{ + jsonconfig().savecisconfig(cfgs); +} + +HGCorrectConfigs getcisparams() +{ + return jsonconfig().getcorrectconfigs(); +} \ No newline at end of file diff --git a/device/gxx-linux/capimage/hgutils.h b/device/gxx-linux/capimage/hgutils.h new file mode 100644 index 0000000..912f1fb --- /dev/null +++ b/device/gxx-linux/capimage/hgutils.h @@ -0,0 +1,34 @@ +#pragma once +#include +#include "jsonconfig.h" +#include "commondef.h" + + +static cv::Mat lutGrayMat; //灰色校正值 +static cv::Mat lutColorMat; //彩色校正值 + +cv::Mat extractRepresentRow2(const cv::Mat& src); + +cv::Mat create_lut(const cv::Mat& black, const cv::Mat& white,bool colormode,CISVendor vendor); + +cv::Mat flipRightHalf(cv::Mat &src,int papertype); + +void initLut(); + +cv::Mat GetMergeMat(void* data,int width ,int height,int type); + +cv::Mat GetMergeMat(cv::Mat& mat,int width ,int height,int type); + +void correctColor(cv::Mat src, bool enhance); + +void creatLUTData(int mode,CISVendor vendor); + +void savescannerinfo(ScannerNativeParam params); + +ScannerNativeParam getscannerinfo(); + +void savecisparams(HGCorrectConfigs cfgs); + +HGCorrectConfigs getcisparams(); + + diff --git a/device/gxx-linux/capimage/jsonconfig.cpp b/device/gxx-linux/capimage/jsonconfig.cpp new file mode 100644 index 0000000..842d322 --- /dev/null +++ b/device/gxx-linux/capimage/jsonconfig.cpp @@ -0,0 +1,399 @@ +#include "jsonconfig.h" +#include +#include +#include +#include +#include +#include + + +#define SP_COLOR_DEFAULT 0x438 +#define SP_GRAY_DEFAULT 0xca8 +jsonconfig::jsonconfig() +{ +} + +jsonconfig::~jsonconfig() +{ +} + +void jsonconfig::savecisconfig(HGCorrectConfigs configs) +{ + if (access(JSON_CORRECTDIR_PATH, 0) == -1) + { + auto ret = mkdir(JSON_CORRECTDIR_PATH, 0777); + if (ret != 0) + { + HG_LOG("make dir failed .path=%s \n", JSON_CORRECTDIR_PATH); + } + } + json m_json; + m_json[STRCON(STR_COLOR, STR_EXPF)] = configs.color.expF; + m_json[STRCON(STR_COLOR, STR_EXPB)] = configs.color.expB; + m_json[STRCON(STR_COLOR, STR_GAINF)] = configs.color.gainF; + m_json[STRCON(STR_COLOR, STR_GAINB)] = configs.color.gainB; + m_json[STRCON(STR_COLOR, STR_OFFSETF)] = configs.color.offsetsF; + m_json[STRCON(STR_COLOR, STR_OFFSETB)] = configs.color.offsetsB; + if(configs.color.sp <= 0 ){ + configs.color.sp = SP_COLOR_DEFAULT; + } + m_json[STRCON(STR_COLOR, STR_SP)] = configs.color.sp; + + m_json[STRCON(STR_CORRECTCOLOR, STR_EXPF)] = configs.colorCorrect.expF; + m_json[STRCON(STR_CORRECTCOLOR, STR_EXPB)] = configs.colorCorrect.expB; + m_json[STRCON(STR_CORRECTCOLOR, STR_GAINF)] = configs.colorCorrect.gainF; + m_json[STRCON(STR_CORRECTCOLOR, STR_GAINB)] = configs.colorCorrect.gainB; + m_json[STRCON(STR_CORRECTCOLOR, STR_OFFSETF)] = configs.colorCorrect.offsetsF; + m_json[STRCON(STR_CORRECTCOLOR, STR_OFFSETB)] = configs.colorCorrect.offsetsB; + if(configs.colorCorrect.sp <= 0 ){ + configs.colorCorrect.sp = SP_COLOR_DEFAULT; + } + m_json[STRCON(STR_CORRECTCOLOR, STR_SP)] = configs.colorCorrect.sp; + + m_json[STRCON(STR_GRAY, STR_EXPF)] = configs.gray.expF; + m_json[STRCON(STR_GRAY, STR_EXPB)] = configs.gray.expB; + m_json[STRCON(STR_GRAY, STR_GAINF)] = configs.gray.gainF; + m_json[STRCON(STR_GRAY, STR_GAINB)] = configs.gray.gainB; + m_json[STRCON(STR_GRAY, STR_OFFSETF)] = configs.gray.offsetsF; + m_json[STRCON(STR_GRAY, STR_OFFSETB)] = configs.gray.offsetsB; + if(configs.gray.sp <= 0 ){ + configs.gray.sp = SP_GRAY_DEFAULT; + } + m_json[STRCON(STR_GRAY, STR_SP)] = configs.gray.sp; + + m_json[STRCON(STR_CORRECTGRAY, STR_EXPF)] = configs.grayCorrect.expF; + m_json[STRCON(STR_CORRECTGRAY, STR_EXPB)] = configs.grayCorrect.expB; + m_json[STRCON(STR_CORRECTGRAY, STR_GAINF)] = configs.grayCorrect.gainF; + m_json[STRCON(STR_CORRECTGRAY, STR_GAINB)] = configs.grayCorrect.gainB; + m_json[STRCON(STR_CORRECTGRAY, STR_OFFSETF)] = configs.grayCorrect.offsetsF; + m_json[STRCON(STR_CORRECTGRAY, STR_OFFSETB)] = configs.grayCorrect.offsetsB; + if(configs.grayCorrect.sp <= 0 ){ + configs.grayCorrect.sp = SP_GRAY_DEFAULT; + } + m_json[STRCON(STR_CORRECTGRAY, STR_SP)] = configs.grayCorrect.sp; + + std::cout << m_json << std::endl; + + std::ofstream o(JSON_CORRECTFILE_PATH); + o << std::setw(4) << m_json << std::endl; +} + +HGCorrectConfigs jsonconfig::getcorrectconfigs() +{ + HGCorrectConfigs cfs; + if (access(JSON_CORRECTDIR_PATH, 0) == -1) + { + auto ret = mkdir(JSON_CORRECTDIR_PATH, 0777); + if (ret != 0) + { + printf("make dir failed .path=%s \n", JSON_CORRECTDIR_PATH); + } + } + + if (access(JSON_CORRECTFILE_PATH, F_OK) != 0) + { + cfs = getdefaultconfigs(); + savecisconfig(cfs); + return cfs; + } + + std::ifstream i(JSON_CORRECTFILE_PATH); + auto pos = i.tellg(); + i.seekg(0, std::ios::end); + if (i.tellg() <= 2) + { + cfs = getdefaultconfigs(); + savecisconfig(cfs); + return cfs; + } + i.seekg(pos); + json m_json; + i >> m_json; + + cfs.colorCorrect.sp = cfs.color.sp = SP_COLOR_DEFAULT; + cfs.grayCorrect.sp = cfs.gray.sp = SP_GRAY_DEFAULT; + std::cout <<"GET GET GET GET GET GET" <> m_json; + + if (!m_json[S_INFO_DOUNUM].is_null()) + m_json[S_INFO_DOUNUM].get_to(snp.DoubleFeedTimes); + else + snp.DoubleFeedTimes = 0; + + if (!m_json[S_INFO_FEEDERROR].is_null()) + m_json[S_INFO_FEEDERROR].get_to(snp.FeedErrorTimes); + else + snp.FeedErrorTimes = 0; + + if (!m_json[S_INFO_HRATIO].is_null()) + m_json[S_INFO_HRATIO].get_to(snp.H_ratio); + else + snp.H_ratio = 1065353216; + + if (!m_json[S_INFO_JAMNUM].is_null()) + m_json[S_INFO_JAMNUM].get_to(snp.JamTimes); + else + snp.JamTimes = 0; + + if (!m_json[S_INFO_ROLLERNUM].is_null()) + m_json[S_INFO_ROLLERNUM].get_to(snp.RollerNum); + else + snp.RollerNum = 0; + if (!m_json[S_INFO_SCANSESSIONCOUNT].is_null()) + m_json[S_INFO_SCANSESSIONCOUNT].get_to(snp.ScanSessionsCount); + else + snp.ScanSessionsCount = 0; + + if (!m_json[S_INFO_SERIALNUM].is_null()) + m_json[S_INFO_SERIALNUM].get_to(snp.SerialNum); + else + snp.SerialNum = SERIALNUM; + + if (!m_json[S_INFO_TOKEN].is_null()) + m_json[S_INFO_TOKEN].get_to(snp.Token); + else + snp.Token = "abcdefghijklmnopqrstuvwxyz012345"; + + if (!m_json[S_INFO_TOTALSCANNED].is_null()) + m_json[S_INFO_TOTALSCANNED].get_to(snp.TotalScanned); + else + snp.TotalScanned = 0; + + if (!m_json[S_INFO_VRATIO].is_null()) + m_json[S_INFO_VRATIO].get_to(snp.V_ratio); + else + snp.V_ratio = 1065353216; + + if (!m_json[S_COLOR_SP].is_null()) + m_json[S_COLOR_SP].get_to(snp.color_sp); + else +#ifdef G200 + snp.color_sp = 0x27C; +#else + snp.color_sp = 0x2B6; +#endif + + if (!m_json[S_GRAY_SP].is_null()) + m_json[S_GRAY_SP].get_to(snp.gray_sp); + else +#ifdef G200 + snp.gray_sp = 0x775; +#else + snp.gray_sp = 0x822; +#endif + + if(!m_json[S_INFO_SLEEPTIME].is_null()) + m_json[S_INFO_SLEEPTIME].get_to(snp.sleeptime); + else + snp.sleeptime = 900; + + if(!m_json[S_INFO_CLR_MAXBRT].is_null()) + m_json[S_INFO_CLR_MAXBRT].get_to(snp.clr_maxbright); + else + snp.clr_maxbright=200; + + if(!m_json[S_INFO_GRAY_MAXBRT].is_null()) + m_json[S_INFO_GRAY_MAXBRT].get_to(snp.gray_maxbright); + else + snp.gray_maxbright=200; + + + if(!m_json[S_INFO_SPEEDMODE].is_null()) + m_json[S_INFO_SPEEDMODE].get_to(snp.speedmode); + else + snp.speedmode=0; + + if(!m_json[S_INFO_PID].is_null()) + m_json[S_INFO_PID].get_to(snp.Pid); + else + { + #ifdef G100 + snp.Pid = 0x139; + #else + snp.Pid = 0x239; + #endif + } + + if(!m_json[S_INFO_VID].is_null()) + m_json[S_INFO_VID].get_to(snp.Vid); + else + snp.Vid = 0x3072; + return snp; +} + +ScannerNativeParam jsonconfig::getdefaultscannerinfo() +{ + ScannerNativeParam param; + param.DoubleFeedTimes = 0; + param.FeedErrorTimes = 0; + param.H_ratio = 1065353216; + param.V_ratio = 1065353216; + param.JamTimes = 0; + param.RollerNum = param.TotalScanned = 0; + param.Token = "abcdefghijklmnopqrstuvwxyz012345"; //default 32byte length + param.SerialNum = SERIALNUM; +#ifdef G200 + param.gray_sp=0x775; //G200 140 ppm 0x27c 0x775 G100 100 ppm 0x2B6 0x822 + param.color_sp=0x27C; + param.speedmode = 100; + param.Pid = 0x0239; +#else + param.gray_sp=0x822; //G200 140 ppm 0x27c 0x781 G100 100 ppm 0x2B6 0x822 + param.color_sp=0x2B6; + param.speedmode = 70; + param.Pid = 0x0139; +#endif + param.Vid = 0x3072; + param.sleeptime=3600; + param.clr_maxbright = param.gray_maxbright = 200; + + return param; +} diff --git a/device/gxx-linux/capimage/jsonconfig.h b/device/gxx-linux/capimage/jsonconfig.h new file mode 100644 index 0000000..deffaca --- /dev/null +++ b/device/gxx-linux/capimage/jsonconfig.h @@ -0,0 +1,21 @@ +#pragma once +#include "json.hpp" +#include "commondef.h" + +using json = nlohmann::json; + +class jsonconfig +{ +private: + /* data */ +public: + jsonconfig(/* args */); + ~jsonconfig(); + + void savecisconfig(HGCorrectConfigs configs); + void savescannerinfo(ScannerNativeParam scannerinfo); + HGCorrectConfigs getcorrectconfigs(); + ScannerNativeParam getscannerinfo(); + HGCorrectConfigs getdefaultconfigs(); + ScannerNativeParam getdefaultscannerinfo(); +}; diff --git a/device/gxx-linux/capimage/xmake.lua b/device/gxx-linux/capimage/xmake.lua new file mode 100644 index 0000000..09de6fe --- /dev/null +++ b/device/gxx-linux/capimage/xmake.lua @@ -0,0 +1,10 @@ +add_rules("mode.debug", "mode.release") + +target("capimage") + set_kind("static") + add_files("*.cpp") + add_deps("regs", "deviceio", "conf", "applog", {public = true}) + add_includedirs(".", { public = true}) + add_links("opencv_core", "opencv_highgui", "opencv_imgproc", { public = true }) + add_syslinks("pthread") + add_packages("common") \ No newline at end of file diff --git a/device/gxx-linux/config.h.in b/device/gxx-linux/config.h.in new file mode 100644 index 0000000..e2a30fa --- /dev/null +++ b/device/gxx-linux/config.h.in @@ -0,0 +1,10 @@ +#pragma once + +${define FPGA_UART} +${define MOTOR_UART} +${define CIS_TYPE} +${define TEST_IMAGE_DIR} +${define CAP_UNFIXED} +${define TEST_FPGA} +${define LOOP_DEBUG} +#define VIDEO_CLASS ${VIDEO_CLASS} \ No newline at end of file diff --git a/device/gxx-linux/deviceio/DevUtil.cpp b/device/gxx-linux/deviceio/DevUtil.cpp new file mode 100644 index 0000000..7cd0efd --- /dev/null +++ b/device/gxx-linux/deviceio/DevUtil.cpp @@ -0,0 +1,30 @@ +#include "DevUtil.h" +#include +#include "stringex.hpp" + +#define IOEXPORTPATH "/sys/class/gpio/export" +#define PWMEXPORTPATH "/sys/class/pwm/pwmchip%d/export" +int read_dev_i(std::string path) { + int val = -1; + std::ifstream ifin(path.c_str()); + ifin >> val; + return val; +} + +std::string read_dev_s(std::string path) { + std::string val; + std::ifstream ifin(path.c_str()); + ifin >> val; + return val; +} + +DeviceExport::DeviceExport() +{ + int num = sizeof(ports) / sizeof(ports[0]); + for (int i = 0; i < num; i++) + write_dev(IOEXPORTPATH, ports[i]); + + num = sizeof(pwms) / sizeof(pwms[0]); + for (int i = 0; i < num; i++) + write_dev(string_format(PWMEXPORTPATH, pwms[i]), 0); +} diff --git a/device/gxx-linux/deviceio/DevUtil.h b/device/gxx-linux/deviceio/DevUtil.h new file mode 100644 index 0000000..553f747 --- /dev/null +++ b/device/gxx-linux/deviceio/DevUtil.h @@ -0,0 +1,94 @@ +#pragma once +#include +#include +#include + +#define G300 + +template +void write_dev(std::string path, T value) +{ + std::ofstream ofout(path); + ofout << value; +} + +extern int read_dev_i(std::string path); + +extern std::string read_dev_s(std::string path); + +enum PORTS +{ + Start = 171, + Stop = 49, + Power = 5, + Fpga_Load = 8, + +#ifndef G300 + Power_12v_Off = 12, +#endif + + MotorPower = 48, + CuoZhiMotor_Reset = 56, + CuoZhiMotor_Sleep = 57, + CuoZhiMotor_Enable = 58, + + CuoZhiMotor_Direction = 62, + CuoZhiMotor_Decay = 63, + CuoZhiMotor_Home = 184, + CuoZhiMotor_Fault = 185, + + CuoZhiMotor_Mode0 = 59, + CuoZhiMotor_Mode1 = 60, + CuoZhiMotor_Mode2 = 61, + Cover = 189, // 'GPIO6A5' opened:0 ; closed:1 + + Paper = 225, // 'GPIO7B1' has paper:0 ; no paper:1 + Scan = 226, // 'GPIO7B2' no paper:0 ; has paper:1 + PaperJam = 102, + Double_Paper = 219, // 'GPIO7A3' not doubled:0 ; doubled:1 + SW_NOR_FLASH = 221, + Double_Enable = 250, // 'GPIO8A2' off: 0 ; on: 1 + + ZouZhiMotor_Reset = 64, + ZouZhiMotor_Sleep = 65, + ZouZhiMotor_Enable = 66, + ZouZhiMotor_Direction = 70, + + ZouZhiMotor_Decay = 71, + ZouZhiMotor_Home = 187, + ZouZhiMotor_Fault = 188, + ZouZhiMotor_Mode0 = 67, + + ZouZhiMotor_Mode1 = 68, + ZouZhiMotor_Mode2 = 69, + CIS_3v3_Off = 96, + CIS_5v_En = 98, + + Fpga_InitDone = 99, + Image_In_Transfer = 101, + Fpga_Reset = 232 +}; + +class DeviceExport +{ +public: + DeviceExport(); + +private: +#ifndef G300 + const int ports[38] = {Start, Stop, Power, Fpga_Load, Power_12v_Off, MotorPower, CuoZhiMotor_Reset, CuoZhiMotor_Sleep, CuoZhiMotor_Enable, + CuoZhiMotor_Direction, CuoZhiMotor_Decay, CuoZhiMotor_Home, CuoZhiMotor_Fault, CuoZhiMotor_Mode0, + CuoZhiMotor_Mode1, CuoZhiMotor_Mode2, Cover, Paper, Scan, PaperJam, Double_Paper, Double_Enable, + ZouZhiMotor_Reset, ZouZhiMotor_Sleep, ZouZhiMotor_Enable, ZouZhiMotor_Direction, ZouZhiMotor_Decay, + ZouZhiMotor_Home, ZouZhiMotor_Fault, ZouZhiMotor_Mode0, ZouZhiMotor_Mode1, ZouZhiMotor_Mode2, + CIS_3v3_Off, CIS_5v_En, Fpga_InitDone, Image_In_Transfer, Fpga_Reset, SW_NOR_FLASH}; +#else + const int ports[36] = {Start, Stop, Power, Fpga_Load, MotorPower, CuoZhiMotor_Reset, CuoZhiMotor_Sleep, CuoZhiMotor_Enable, + CuoZhiMotor_Direction, CuoZhiMotor_Decay, CuoZhiMotor_Home, CuoZhiMotor_Fault, CuoZhiMotor_Mode0, + CuoZhiMotor_Mode1, CuoZhiMotor_Mode2, Cover, Paper, Scan, PaperJam, Double_Paper, Double_Enable, + ZouZhiMotor_Reset, ZouZhiMotor_Sleep, ZouZhiMotor_Enable, ZouZhiMotor_Direction, ZouZhiMotor_Decay, + ZouZhiMotor_Home, ZouZhiMotor_Fault, ZouZhiMotor_Mode0, ZouZhiMotor_Mode1, ZouZhiMotor_Mode2, + CIS_3v3_Off, CIS_5v_En, Fpga_InitDone, Image_In_Transfer, Fpga_Reset}; +#endif + const int pwms[2] = {2, 3}; +}; \ No newline at end of file diff --git a/device/gxx-linux/deviceio/Gpio.cpp b/device/gxx-linux/deviceio/Gpio.cpp new file mode 100644 index 0000000..92d046f --- /dev/null +++ b/device/gxx-linux/deviceio/Gpio.cpp @@ -0,0 +1,75 @@ +// +// Created by yingluo907 on 2019/4/11. +// +#include "Gpio.h" +#include "DevUtil.h" +#include "stringex.hpp" + +#define IOPATH "%s/gpio%d/%s" + +const std::string Gpio::falling = "falling"; +const std::string Gpio::rising = "rising"; +const std::string Gpio::both = "both"; +const std::string Gpio::none = "none"; + +const std::string Gpio::in = "in"; +const std::string Gpio::out = "out"; + +Gpio::Gpio(int port) +{ + this->port = port; + path_value = string_format(IOPATH, path_gpiobase.c_str(), port, path_value.c_str()); + path_edge = string_format(IOPATH, path_gpiobase.c_str(), port, path_edge.c_str()); + path_direction = string_format(IOPATH, path_gpiobase.c_str(), port, path_direction.c_str()); + path_active_low = string_format(IOPATH, path_gpiobase.c_str(), port, path_active_low.c_str()); +} + +int Gpio::getPort() +{ + return port; +} + +void Gpio::setValue(GpioLevel level) +{ + write_dev(path_value, level); +} + +Gpio::GpioLevel Gpio::getValue() { + return (Gpio::GpioLevel)read_dev_i(path_value); +} + +std::string Gpio::getDirection() +{ + return read_dev_s(path_direction); +} + +void Gpio::setDirection(std::string direction) +{ + write_dev(path_direction, direction); +} + +void Gpio::setActive(GpioLevel level) +{ + write_dev(path_active_low, level); +} + +Gpio::GpioLevel Gpio::getActive() +{ + return (GpioLevel)read_dev_i(path_active_low); +} + +void Gpio::setEdge(std::string edge) +{ + write_dev(path_edge, edge); +} + +std::string Gpio::getEdge() +{ + return read_dev_s(path_edge); +} + +GpioOut::GpioOut(int port) : + Gpio(port) +{ + setDirection(out); +} diff --git a/device/gxx-linux/deviceio/Gpio.h b/device/gxx-linux/deviceio/Gpio.h new file mode 100644 index 0000000..1ee375a --- /dev/null +++ b/device/gxx-linux/deviceio/Gpio.h @@ -0,0 +1,50 @@ +#pragma once +#include + +class Gpio +{ +public: + enum GpioLevel + { + Low, + High + }; + + Gpio(int port); + int getPort(); + void setValue(GpioLevel level); + GpioLevel getValue(); + std::string getDirection(); + void setDirection(std::string direction); + void setActive(GpioLevel level); + GpioLevel getActive(); + void setEdge(std::string edge); + std::string getEdge(); + + std::string getValuePath() + { + return path_value; + } + + static const std::string falling; + static const std::string rising; + static const std::string both; + static const std::string none; + + static const std::string in; + static const std::string out; + +private: + int port; + const std::string path_gpiobase = "/sys/class/gpio"; + std::string path_value = "value"; + std::string path_edge = "edge"; + std::string path_direction = "direction"; + std::string path_active_low = "active_low"; +}; + +class GpioOut : public Gpio +{ +public: + GpioOut(int port); +}; diff --git a/device/gxx-linux/deviceio/Led.cpp b/device/gxx-linux/deviceio/Led.cpp new file mode 100644 index 0000000..1964d93 --- /dev/null +++ b/device/gxx-linux/deviceio/Led.cpp @@ -0,0 +1,37 @@ +#include "Led.h" +#include "stringex.hpp" + +#define LEDPATH "%s/%s/%s" + +std::string Led::timer = "timer"; +std::string Led::none = "none"; + +Led::Led(std::string name) { + path_brightness = string_format(LEDPATH, path_base.c_str(), name.c_str(), path_brightness.c_str()); + path_trigger = string_format(LEDPATH, path_base.c_str(), name.c_str(), path_trigger.c_str()); + path_delay_off = string_format(LEDPATH, path_base.c_str(), name.c_str(), path_delay_off.c_str()); + path_delay_on = string_format(LEDPATH, path_base.c_str(), name.c_str(), path_delay_on.c_str()); +} + +Led::~Led() { +} + +void Led::on(int time_ms) { + if (time_ms != 0) { + write_dev(path_trigger, timer); + write_dev(path_delay_off, time_ms); + write_dev(path_delay_on, time_ms); + } else { + //if (read_dev_s(path_trigger).find(none) == std::string::npos) + write_dev(path_trigger, none); + } + write_dev(path_brightness, 1); +} + +void Led::off() { + write_dev(path_brightness, 0); +} + +bool Led::isOn() { + return (bool)read_dev_i(path_brightness); +} diff --git a/device/gxx-linux/deviceio/Led.h b/device/gxx-linux/deviceio/Led.h new file mode 100644 index 0000000..17bab58 --- /dev/null +++ b/device/gxx-linux/deviceio/Led.h @@ -0,0 +1,24 @@ +#pragma once +#include "DevUtil.h" + +class Led +{ +public: + static std::string timer; + static std::string none; +public: + Led(std::string name); + ~Led(); + + void on(int time_ms = 0); + void off(); + bool isOn(); + +private: + const std::string path_base = "/sys/class/leds"; + std::string path_brightness = "brightness"; + std::string path_trigger = "trigger"; + std::string path_delay_off = "delay_off"; + std::string path_delay_on = "delay_on"; +}; + diff --git a/device/gxx-linux/deviceio/PinMonitor.cpp b/device/gxx-linux/deviceio/PinMonitor.cpp new file mode 100644 index 0000000..cd48c13 --- /dev/null +++ b/device/gxx-linux/deviceio/PinMonitor.cpp @@ -0,0 +1,130 @@ +#include "PinMonitor.h" +#include "DevUtil.h" +#include +#include +#include +#include +#include +#include +#include "StopWatch.h" +#include +#include +#include "applog.h" +#include "stringex.hpp" + +static const std::string loggername = "PinMonitor"; +PinMonitor::PinMonitor(unsigned int pinNum, std::function call_back) + : pin(pinNum) +{ + LOG_INIT(); + pin.setDirection(Gpio::in); + pin.setEdge(Gpio::falling); + this->call_back = call_back; + thread_monitor = std::thread(&PinMonitor::monitor, this); + //printf("PinMonitor threadid = %d \n",thread_monitor.get_id()); + // int priority=sched_get_priority_max(SCHED_FIFO); + // if(priority==-1) + // { + // printf("sched_get_priority_max error \n"); + // } + // thparm.sched_priority = priority; + // if(pthread_setschedparam(thread_monitor.native_handle(),SCHED_FIFO,&thparm)) + // { + // printf("failed to error set pthread_setschedparam \n"); + // } +} + +PinMonitor::~PinMonitor() +{ + bMonitor = false; + if (thread_monitor.joinable()) + thread_monitor.join(); +} + +void PinMonitor::monitor() +{ + pollfd pfd; + int ret = 0; + pfd.fd = -1; + char buf[8]; + int num; + StopWatch sw; + + pfd.fd = open(pin.getValuePath().c_str(), O_RDONLY); + if (pfd.fd < 0) + ret = -1; + + pfd.events = POLLPRI; + num = read(pfd.fd, buf, 8); // This is to clear the avaible read + + while (bMonitor) + { + ret = poll(&pfd, 1, 1000); + if (ret > 0) + { + if (pfd.revents & POLLPRI) + { + lseek(pfd.fd, 0, SEEK_SET); + num = read(pfd.fd, buf, 8); + + buf[num - 1] = '\0'; + ret = atoi(buf); + //LOG_TRACE("poll call"); + if (call_back) + { + sw.reset(); + call_back(pin.getPort()); + LOG_TRACE(string_format("poll call times = %.2f \n",sw.elapsed_ms())); + } + + + sw.reset(); + while(sw.elapsed_ms() < 10) + { + ret = poll(&pfd, 1, 1); + if (ret > 0) + { + num = read(pfd.fd, buf, 8); + buf[num - 1] = '\0'; + ret = atoi(buf); + //printf("pMonitor nread = %d ret val = %d \n",num,ret); + } + } + } + } + } + + close(pfd.fd); + + // int n; + // int epfd = epoll_create(1); + // int fd = open(pin.getValuePath().c_str(), O_RDONLY); + // char buf[8]; + // //printf("open returned %d: %s\n", fd, strerror(errno)); + // if (fd > 0) + // { + // struct epoll_event ev; + // struct epoll_event events; + // ev.events = EPOLLPRI; + // ev.data.fd = fd; + + // n = epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev); + + // while (bMonitor) + // { + // n = epoll_wait(epfd, &events, 1, 1000); + + // if (n > 0) + // { + // n = lseek(fd, 0, SEEK_SET); + // n = read(fd, buf, 8); + + // buf[n - 1] = '\0'; + // auto ret = atoi(buf); + // if (call_back) + // call_back(pin.getPort()); + // } + // } + // } + // close(fd); +} \ No newline at end of file diff --git a/device/gxx-linux/deviceio/PinMonitor.h b/device/gxx-linux/deviceio/PinMonitor.h new file mode 100644 index 0000000..5032c71 --- /dev/null +++ b/device/gxx-linux/deviceio/PinMonitor.h @@ -0,0 +1,19 @@ +#pragma once +#include "Gpio.h" +#include +#include + +class PinMonitor +{ +public: + PinMonitor(unsigned int pinNum, std::function call_back); + ~PinMonitor(); + +private: + void monitor(); + //sched_param thparm; + Gpio pin; + std::function call_back; + std::thread thread_monitor; + volatile bool bMonitor = true; +}; \ No newline at end of file diff --git a/device/gxx-linux/deviceio/Pwm.cpp b/device/gxx-linux/deviceio/Pwm.cpp new file mode 100644 index 0000000..a4e8160 --- /dev/null +++ b/device/gxx-linux/deviceio/Pwm.cpp @@ -0,0 +1,38 @@ +#include "Pwm.h" +#include "DevUtil.h" +#include "stringex.hpp" + +#define PWMPATH "%s%d/pwm0/%s" + +Pwm::Pwm(int port) +{ + path_enable = string_format(PWMPATH, path_base.c_str(), port, path_enable.c_str()); + path_duty_cycle = string_format(PWMPATH, path_base.c_str(), port, path_duty_cycle.c_str()); + path_period = string_format(PWMPATH, path_base.c_str(), port, path_period.c_str()); +} + +Pwm::~Pwm() +{ +} + +void Pwm::setFreq(int freq) +{ + int value = PWM_PERIOD / freq; + write_dev(path_period, value); + write_dev(path_duty_cycle, value / 2); +} + +int Pwm::getFreq() +{ + return PWM_PERIOD/read_dev_i(path_period); +} + +void Pwm::enable(bool bEnable) +{ + write_dev(path_enable, bEnable); +} + +bool Pwm::isEnable() +{ + return (bool)read_dev_i(path_enable); +} diff --git a/device/gxx-linux/deviceio/Pwm.h b/device/gxx-linux/deviceio/Pwm.h new file mode 100644 index 0000000..4b39068 --- /dev/null +++ b/device/gxx-linux/deviceio/Pwm.h @@ -0,0 +1,22 @@ +#pragma once +#include +#define PWM_PERIOD 1000000000 + +class Pwm +{ +public: + Pwm(int port); + ~Pwm(); + + void setFreq(int freq); + int getFreq(); + + void enable(bool bEnable); + bool isEnable(); +private: + const std::string path_base = "/sys/class/pwm/pwmchip"; + std::string path_enable = "enable"; + std::string path_duty_cycle = "duty_cycle"; + std::string path_period = "period"; +}; + diff --git a/device/gxx-linux/deviceio/xmake.lua b/device/gxx-linux/deviceio/xmake.lua new file mode 100644 index 0000000..babe91f --- /dev/null +++ b/device/gxx-linux/deviceio/xmake.lua @@ -0,0 +1,9 @@ +add_rules("mode.debug", "mode.release") + +target("deviceio") + set_kind("static") + add_syslinks("pthread") + add_files("*.cpp") + add_includedirs(".", { public = true}) + add_deps("applog") + add_packages("common") diff --git a/device/gxx-linux/fpgaupdate/fpgacontrol.cpp b/device/gxx-linux/fpgaupdate/fpgacontrol.cpp new file mode 100644 index 0000000..9d4b919 --- /dev/null +++ b/device/gxx-linux/fpgaupdate/fpgacontrol.cpp @@ -0,0 +1,122 @@ +#include "fpgacontrol.h" +#include "libmtd.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define MTD_NODE "/dev/mtd0" +#define FPGAFILEPATH "/etc/fpgaupdatefile.bin" + +fpgacontrol::fpgacontrol() : + m_fpgafile_fd(0), + m_updateEnable(false) +{ + //printf("fpga version : %d \n", fpgaversion); +} + +fpgacontrol::~fpgacontrol() +{ +} + +bool fpgacontrol::ifneedupdatefpga() +{ + if ((access(FPGAFILEPATH, F_OK)) != -1) + { + m_updateEnable = true; + printf("found %s file ,will update fpga later!\n", FPGAFILEPATH); + } + else + { + m_updateEnable = false; + printf("%s file do not exist!\n", FPGAFILEPATH); + } + return m_updateEnable; +} + +bool fpgacontrol::updatefpga() +{ + if (!m_updateEnable) + { + printf("checked don't need to update fpga\n"); + return false; + } + return updatefpgafirmware(FPGAFILEPATH); +} + +bool fpgacontrol::updatefpgafirmware(std::string fpgafirmpath) +{ + system("echo 68 > /sys/class/gpio/export"); + system("echo out > /sys/class/gpio/gpio68/direction"); + system("echo 0 > /sys/class/gpio/gpio68/value"); + if ((m_fpgafile_fd = open(MTD_NODE, O_RDWR)) <= 0) + { + printf("update fpga error,on open mtd node!\n"); + return false; + } + + libmtd_t desc; + desc = libmtd_open(); + if (NULL == desc) + { + printf("libmtd_open error...\n"); + return false; + } + mtd_dev_info dev_info; + mtd_get_dev_info(desc, MTD_NODE, &dev_info); + printf("mtd_num = %x\n", dev_info.mtd_num); + printf("major = %x\n", dev_info.major); + printf("minor = %x\n", dev_info.minor); + printf("type_str = %s\n", dev_info.type_str); + printf("name = %s\n", dev_info.name); + printf("size = %d\n", dev_info.size); + printf("eb_cnt = %d\n", dev_info.eb_cnt); + printf("eb_size = %d\n", dev_info.eb_size); + printf("min_io_size = %d\n", dev_info.min_io_size); + printf("subpage_size = %d\n", dev_info.subpage_size); + printf("oob_size = %d\n", dev_info.oob_size); + printf("region_cnt = %d\n", dev_info.region_cnt); + printf("writable = %d\n", dev_info.writable); + printf("bb_allowed = %d\n", dev_info.bb_allowed); + for (int i = 0; i < dev_info.eb_cnt; i++) + { + if (mtd_erase(desc, &dev_info, m_fpgafile_fd, i) != 0) + { + printf("mtd_erase error...........\n"); + if (desc) + { + libmtd_close(desc); + desc = NULL; + } + if (m_fpgafile_fd) + { + close(m_fpgafile_fd); + m_fpgafile_fd = NULL; + } + //system("echo 1 > /sys/class/gpio/gpio221/value"); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + return false; + } + } + + int ret = mtd_write_img(&dev_info, m_fpgafile_fd, 0, 0, fpgafirmpath.c_str()); + libmtd_close(desc); + if (ret < 0) + { + printf("mtd_write_img failed...........\n"); + return false; + } + else + { + printf("mtd_write_img success...........\n"); + std::string rmcmd = "rm -f /etc/fpgaupdatefile.bin"; + system(rmcmd.c_str()); + return true; + } +} \ No newline at end of file diff --git a/device/gxx-linux/fpgaupdate/fpgacontrol.h b/device/gxx-linux/fpgaupdate/fpgacontrol.h new file mode 100644 index 0000000..64f7dbe --- /dev/null +++ b/device/gxx-linux/fpgaupdate/fpgacontrol.h @@ -0,0 +1,21 @@ +#pragma once +#include + +class FpgaComm; + +class fpgacontrol +{ +private: + /* data */ +public: + fpgacontrol(); + ~fpgacontrol(); + bool ifneedupdatefpga(); + bool updatefpga(); +private: + bool updatefpgafirmware(std::string fpgafirmpath); +private: + int m_fpgaversion; + int m_fpgafile_fd; + bool m_updateEnable; +}; diff --git a/device/gxx-linux/fpgaupdate/libmtd.c b/device/gxx-linux/fpgaupdate/libmtd.c new file mode 100644 index 0000000..b4c2ad9 --- /dev/null +++ b/device/gxx-linux/fpgaupdate/libmtd.c @@ -0,0 +1,1443 @@ +/* + * Copyright (c) International Business Machines Corp., 2006 + * Copyright (C) 2009 Nokia Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See + * the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Author: Artem Bityutskiy + * + * MTD library. + */ + +/* Imported from mtd-utils by dehrenberg */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include "libmtd.h" + +#include "libmtd_int.h" +#include "libmtd_common.h" + +/** + * mkpath - compose full path from 2 given components. + * @path: the first component + * @name: the second component + * + * This function returns the resulting path in case of success and %NULL in + * case of failure. + */ +static char *mkpath(const char *path, const char *name) +{ + char *n; + size_t len1 = strlen(path); + size_t len2 = strlen(name); + + n = xmalloc(len1 + len2 + 6); + + memcpy(n, path, len1); + if (n[len1 - 1] != '/') + n[len1++] = '/'; + + memcpy(n + len1, name, len2 + 1); + return n; +} + +/** + * read_data - read data from a file. + * @file: the file to read from + * @buf: the buffer to read to + * @buf_len: buffer length + * + * This function returns number of read bytes in case of success and %-1 in + * case of failure. Note, if the file contains more then @buf_len bytes of + * date, this function fails with %EINVAL error code. + */ +static int read_data(const char *file, void *buf, int buf_len) +{ + int fd, rd, tmp, tmp1; + + fd = open(file, O_RDONLY | O_CLOEXEC); + if (fd == -1) + return -1; + + rd = read(fd, buf, buf_len); + if (rd == -1) { + sys_errmsg("cannot read \"%s\"", file); + goto out_error; + } + + if (rd == buf_len) { + errmsg("contents of \"%s\" is too long", file); + errno = EINVAL; + goto out_error; + } + + ((char *)buf)[rd] = '\0'; + + /* Make sure all data is read */ + tmp1 = read(fd, &tmp, 1); + if (tmp1 == 1) { + sys_errmsg("cannot read \"%s\"", file); + goto out_error; + } + if (tmp1) { + errmsg("file \"%s\" contains too much data (> %d bytes)", + file, buf_len); + errno = EINVAL; + goto out_error; + } + + if (close(fd)) { + sys_errmsg("close failed on \"%s\"", file); + return -1; + } + + return rd; + +out_error: + close(fd); + return -1; +} + +/** + * read_major - read major and minor numbers from a file. + * @file: name of the file to read from + * @major: major number is returned here + * @minor: minor number is returned here + * + * This function returns % in case of success, and %-1 in case of failure. + */ +static int read_major(const char *file, int *major, int *minor) +{ + int ret; + char buf[50]; + + ret = read_data(file, buf, 50); + if (ret < 0) + return ret; + + ret = sscanf(buf, "%d:%d\n", major, minor); + if (ret != 2) { + errno = EINVAL; + return errmsg("\"%s\" does not have major:minor format", file); + } + + if (*major < 0 || *minor < 0) { + errno = EINVAL; + return errmsg("bad major:minor %d:%d in \"%s\"", + *major, *minor, file); + } + + return 0; +} + +/** + * dev_get_major - get major and minor numbers of an MTD device. + * @lib: libmtd descriptor + * @mtd_num: MTD device number + * @major: major number is returned here + * @minor: minor number is returned here + * + * This function returns zero in case of success and %-1 in case of failure. + */ +static int dev_get_major(struct libmtd *lib, int mtd_num, int *major, int *minor) +{ + char file[strlen(lib->mtd_dev) + 50]; + + sprintf(file, lib->mtd_dev, mtd_num); + return read_major(file, major, minor); +} + +/** + * dev_read_data - read data from an MTD device's sysfs file. + * @patt: file pattern to read from + * @mtd_num: MTD device number + * @buf: buffer to read to + * @buf_len: buffer length + * + * This function returns number of read bytes in case of success and %-1 in + * case of failure. + */ +static int dev_read_data(const char *patt, int mtd_num, void *buf, int buf_len) +{ + char file[strlen(patt) + 100]; + + sprintf(file, patt, mtd_num); + return read_data(file, buf, buf_len); +} + +/** + * read_hex_ll - read a hex 'long long' value from a file. + * @file: the file to read from + * @value: the result is stored here + * + * This function reads file @file and interprets its contents as hexadecimal + * 'long long' integer. If this is not true, it fails with %EINVAL error code. + * Returns %0 in case of success and %-1 in case of failure. + */ +static int read_hex_ll(const char *file, long long *value) +{ + int fd, rd; + char buf[50]; + + fd = open(file, O_RDONLY | O_CLOEXEC); + if (fd == -1) + return -1; + + rd = read(fd, buf, sizeof(buf)); + if (rd == -1) { + sys_errmsg("cannot read \"%s\"", file); + goto out_error; + } + if (rd == sizeof(buf)) { + errmsg("contents of \"%s\" is too long", file); + errno = EINVAL; + goto out_error; + } + buf[rd] = '\0'; + + if (sscanf(buf, "%llx\n", value) != 1) { + errmsg("cannot read integer from \"%s\"\n", file); + errno = EINVAL; + goto out_error; + } + + if (*value < 0) { + errmsg("negative value %lld in \"%s\"", *value, file); + errno = EINVAL; + goto out_error; + } + + if (close(fd)) + return sys_errmsg("close failed on \"%s\"", file); + + return 0; + +out_error: + close(fd); + return -1; +} + +/** + * read_pos_ll - read a positive 'long long' value from a file. + * @file: the file to read from + * @value: the result is stored here + * + * This function reads file @file and interprets its contents as a positive + * 'long long' integer. If this is not true, it fails with %EINVAL error code. + * Returns %0 in case of success and %-1 in case of failure. + */ +static int read_pos_ll(const char *file, long long *value) +{ + int fd, rd; + char buf[50]; + + fd = open(file, O_RDONLY | O_CLOEXEC); + if (fd == -1) + return -1; + + rd = read(fd, buf, 50); + if (rd == -1) { + sys_errmsg("cannot read \"%s\"", file); + goto out_error; + } + if (rd == 50) { + errmsg("contents of \"%s\" is too long", file); + errno = EINVAL; + goto out_error; + } + + if (sscanf(buf, "%lld\n", value) != 1) { + errmsg("cannot read integer from \"%s\"\n", file); + errno = EINVAL; + goto out_error; + } + + if (*value < 0) { + errmsg("negative value %lld in \"%s\"", *value, file); + errno = EINVAL; + goto out_error; + } + + if (close(fd)) + return sys_errmsg("close failed on \"%s\"", file); + + return 0; + +out_error: + close(fd); + return -1; +} + +/** + * read_hex_int - read an 'int' value from a file. + * @file: the file to read from + * @value: the result is stored here + * + * This function is the same as 'read_pos_ll()', but it reads an 'int' + * value, not 'long long'. + */ +static int read_hex_int(const char *file, int *value) +{ + long long res; + + if (read_hex_ll(file, &res)) + return -1; + + /* Make sure the value has correct range */ + if (res > INT_MAX || res < INT_MIN) { + errmsg("value %lld read from file \"%s\" is out of range", + res, file); + errno = EINVAL; + return -1; + } + + *value = res; + return 0; +} + +/** + * read_pos_int - read a positive 'int' value from a file. + * @file: the file to read from + * @value: the result is stored here + * + * This function is the same as 'read_pos_ll()', but it reads an 'int' + * value, not 'long long'. + */ +static int read_pos_int(const char *file, int *value) +{ + long long res; + + if (read_pos_ll(file, &res)) + return -1; + + /* Make sure the value is not too big */ + if (res > INT_MAX) { + errmsg("value %lld read from file \"%s\" is out of range", + res, file); + errno = EINVAL; + return -1; + } + + *value = res; + return 0; +} + +/** + * dev_read_hex_int - read an hex 'int' value from an MTD device sysfs file. + * @patt: file pattern to read from + * @mtd_num: MTD device number + * @value: the result is stored here + * + * This function returns %0 in case of success and %-1 in case of failure. + */ +static int dev_read_hex_int(const char *patt, int mtd_num, int *value) +{ + char file[strlen(patt) + 50]; + + sprintf(file, patt, mtd_num); + return read_hex_int(file, value); +} + +/** + * dev_read_pos_int - read a positive 'int' value from an MTD device sysfs file. + * @patt: file pattern to read from + * @mtd_num: MTD device number + * @value: the result is stored here + * + * This function returns %0 in case of success and %-1 in case of failure. + */ +static int dev_read_pos_int(const char *patt, int mtd_num, int *value) +{ + char file[strlen(patt) + 50]; + + sprintf(file, patt, mtd_num); + return read_pos_int(file, value); +} + +/** + * dev_read_pos_ll - read a positive 'long long' value from an MTD device sysfs file. + * @patt: file pattern to read from + * @mtd_num: MTD device number + * @value: the result is stored here + * + * This function returns %0 in case of success and %-1 in case of failure. + */ +static int dev_read_pos_ll(const char *patt, int mtd_num, long long *value) +{ + char file[strlen(patt) + 50]; + + sprintf(file, patt, mtd_num); + return read_pos_ll(file, value); +} + +/** + * type_str2int - convert MTD device type to integer. + * @str: MTD device type string to convert + * + * This function converts MTD device type string @str, read from sysfs, into an + * integer. + */ +static int type_str2int(const char *str) +{ + if (!strcmp(str, "nand")) + return MTD_NANDFLASH; + if (!strcmp(str, "mlc-nand")) + return MTD_MLCNANDFLASH; + if (!strcmp(str, "nor")) + return MTD_NORFLASH; + if (!strcmp(str, "rom")) + return MTD_ROM; + if (!strcmp(str, "absent")) + return MTD_ABSENT; + if (!strcmp(str, "dataflash")) + return MTD_DATAFLASH; + if (!strcmp(str, "ram")) + return MTD_RAM; + if (!strcmp(str, "ubi")) + return MTD_UBIVOLUME; + return -1; +} + +/** + * dev_node2num - find UBI device number by its character device node. + * @lib: MTD library descriptor + * @node: name of the MTD device node + * @mtd_num: MTD device number is returned here + * + * This function returns %0 in case of success and %-1 in case of failure. + */ +static int dev_node2num(struct libmtd *lib, const char *node, int *mtd_num) +{ + struct stat st; + int i, mjr, mnr; + struct mtd_info info; + + if (stat(node, &st)) + return sys_errmsg("cannot get information about \"%s\"", node); + + if (!S_ISCHR(st.st_mode)) { + errmsg("\"%s\" is not a character device", node); + errno = EINVAL; + return -1; + } + + mjr = major(st.st_rdev); + mnr = minor(st.st_rdev); + + if (mtd_get_info((libmtd_t *)lib, &info)) + return -1; + + for (i = info.lowest_mtd_num; i <= info.highest_mtd_num; i++) { + int mjr1, mnr1, ret; + + ret = dev_get_major(lib, i, &mjr1, &mnr1); + if (ret) { + if (errno == ENOENT) + continue; + if (!errno) + break; + return -1; + } + + if (mjr1 == mjr && mnr1 == mnr) { + errno = 0; + *mtd_num = i; + return 0; + } + } + + errno = ENODEV; + return -1; +} + +/** + * sysfs_is_supported - check whether the MTD sub-system supports MTD. + * @lib: MTD library descriptor + * + * The Linux kernel MTD subsystem gained MTD support starting from kernel + * 2.6.30 and libmtd tries to use sysfs interface if possible, because the NAND + * sub-page size is available there (and not available at all in pre-sysfs + * kernels). + * + * Very old kernels did not have "/sys/class/mtd" directory. Not very old + * kernels (e.g., 2.6.29) did have "/sys/class/mtd/mtdX" directories, by there + * were no files there, e.g., the "name" file was not present. So all we can do + * is to check for a "/sys/class/mtd/mtdX/name" file. But this is not a + * reliable check, because if this is a new system with no MTD devices - we'll + * treat it as a pre-sysfs system. + */ +static int sysfs_is_supported(struct libmtd *lib) +{ + int fd, num = -1; + DIR *sysfs_mtd; + char file[strlen(lib->mtd_name) + 10]; + + sysfs_mtd = opendir(lib->sysfs_mtd); + if (!sysfs_mtd) { + if (errno == ENOENT) { + errno = 0; + return 0; + } + return sys_errmsg("cannot open \"%s\"", lib->sysfs_mtd); + } + + /* + * First of all find an "mtdX" directory. This is needed because there + * may be, for example, mtd1 but no mtd0. + */ + while (1) { + int ret, mtd_num; + char tmp_buf[256]; + struct dirent *dirent; + + dirent = readdir(sysfs_mtd); + if (!dirent) + break; + + if (strlen(dirent->d_name) >= 255) { + errmsg("invalid entry in %s: \"%s\"", + lib->sysfs_mtd, dirent->d_name); + errno = EINVAL; + closedir(sysfs_mtd); + return -1; + } + + ret = sscanf(dirent->d_name, MTD_NAME_PATT"%s", + &mtd_num, tmp_buf); + if (ret == 1) { + num = mtd_num; + break; + } + } + + if (closedir(sysfs_mtd)) + return sys_errmsg("closedir failed on \"%s\"", lib->sysfs_mtd); + + if (num == -1) + /* No mtd device, treat this as pre-sysfs system */ + return 0; + + sprintf(file, lib->mtd_name, num); + fd = open(file, O_RDONLY | O_CLOEXEC); + if (fd == -1) + return 0; + + if (close(fd)) { + sys_errmsg("close failed on \"%s\"", file); + return -1; + } + + return 1; +} + +libmtd_t libmtd_open(void) +{ + struct libmtd *lib; + + lib = xzalloc(sizeof(*lib)); + + lib->offs64_ioctls = OFFS64_IOCTLS_UNKNOWN; + + lib->sysfs_mtd = mkpath("/sys", SYSFS_MTD); + if (!lib->sysfs_mtd) + goto out_error; + + lib->mtd = mkpath(lib->sysfs_mtd, MTD_NAME_PATT); + if (!lib->mtd) + goto out_error; + + lib->mtd_name = mkpath(lib->mtd, MTD_NAME); + if (!lib->mtd_name) + goto out_error; + + if (!sysfs_is_supported(lib)) { + free(lib->mtd); + free(lib->sysfs_mtd); + free(lib->mtd_name); + lib->mtd_name = lib->mtd = lib->sysfs_mtd = NULL; + return lib; + } + + lib->mtd_dev = mkpath(lib->mtd, MTD_DEV); + if (!lib->mtd_dev) + goto out_error; + + lib->mtd_type = mkpath(lib->mtd, MTD_TYPE); + if (!lib->mtd_type) + goto out_error; + + lib->mtd_eb_size = mkpath(lib->mtd, MTD_EB_SIZE); + if (!lib->mtd_eb_size) + goto out_error; + + lib->mtd_size = mkpath(lib->mtd, MTD_SIZE); + if (!lib->mtd_size) + goto out_error; + + lib->mtd_min_io_size = mkpath(lib->mtd, MTD_MIN_IO_SIZE); + if (!lib->mtd_min_io_size) + goto out_error; + + lib->mtd_subpage_size = mkpath(lib->mtd, MTD_SUBPAGE_SIZE); + if (!lib->mtd_subpage_size) + goto out_error; + + lib->mtd_oob_size = mkpath(lib->mtd, MTD_OOB_SIZE); + if (!lib->mtd_oob_size) + goto out_error; + + lib->mtd_region_cnt = mkpath(lib->mtd, MTD_REGION_CNT); + if (!lib->mtd_region_cnt) + goto out_error; + + lib->mtd_flags = mkpath(lib->mtd, MTD_FLAGS); + if (!lib->mtd_flags) + goto out_error; + + lib->sysfs_supported = 1; + return lib; + +out_error: + libmtd_close((libmtd_t)lib); + return NULL; +} + +void libmtd_close(libmtd_t desc) +{ + struct libmtd *lib = (struct libmtd *)desc; + + free(lib->mtd_flags); + free(lib->mtd_region_cnt); + free(lib->mtd_oob_size); + free(lib->mtd_subpage_size); + free(lib->mtd_min_io_size); + free(lib->mtd_size); + free(lib->mtd_eb_size); + free(lib->mtd_type); + free(lib->mtd_dev); + free(lib->mtd_name); + free(lib->mtd); + free(lib->sysfs_mtd); + free(lib); +} + +int mtd_dev_present(libmtd_t desc, int mtd_num) { + struct stat st; + struct libmtd *lib = (struct libmtd *)desc; + + if (!lib->sysfs_supported) { + return legacy_dev_present(mtd_num) == 1; + } else { + char file[strlen(lib->mtd) + 10]; + + sprintf(file, lib->mtd, mtd_num); + return !stat(file, &st); + } +} + +int mtd_get_info(libmtd_t desc, struct mtd_info *info) +{ + DIR *sysfs_mtd; + struct dirent *dirent; + struct libmtd *lib = (struct libmtd *)desc; + + memset(info, 0, sizeof(struct mtd_info)); + + if (!lib->sysfs_supported) + return legacy_mtd_get_info(info); + + info->sysfs_supported = 1; + + /* + * We have to scan the MTD sysfs directory to identify how many MTD + * devices are present. + */ + sysfs_mtd = opendir(lib->sysfs_mtd); + if (!sysfs_mtd) { + if (errno == ENOENT) { + errno = ENODEV; + return -1; + } + return sys_errmsg("cannot open \"%s\"", lib->sysfs_mtd); + } + + info->lowest_mtd_num = INT_MAX; + while (1) { + int mtd_num, ret; + char tmp_buf[256]; + + errno = 0; + dirent = readdir(sysfs_mtd); + if (!dirent) + break; + + if (strlen(dirent->d_name) >= 255) { + errmsg("invalid entry in %s: \"%s\"", + lib->sysfs_mtd, dirent->d_name); + errno = EINVAL; + goto out_close; + } + + ret = sscanf(dirent->d_name, MTD_NAME_PATT"%s", + &mtd_num, tmp_buf); + if (ret == 1) { + info->mtd_dev_cnt += 1; + if (mtd_num > info->highest_mtd_num) + info->highest_mtd_num = mtd_num; + if (mtd_num < info->lowest_mtd_num) + info->lowest_mtd_num = mtd_num; + } + } + + if (!dirent && errno) { + sys_errmsg("readdir failed on \"%s\"", lib->sysfs_mtd); + goto out_close; + } + + if (closedir(sysfs_mtd)) + return sys_errmsg("closedir failed on \"%s\"", lib->sysfs_mtd); + + if (info->lowest_mtd_num == INT_MAX) + info->lowest_mtd_num = 0; + + return 0; + +out_close: + closedir(sysfs_mtd); + return -1; +} + +int mtd_get_dev_info1(libmtd_t desc, int mtd_num, struct mtd_dev_info *mtd) +{ + int ret; + struct libmtd *lib = (struct libmtd *)desc; + + memset(mtd, 0, sizeof(struct mtd_dev_info)); + mtd->mtd_num = mtd_num; + + if (!mtd_dev_present(desc, mtd_num)) { + errno = ENODEV; + return -1; + } else if (!lib->sysfs_supported) + return legacy_get_dev_info1(mtd_num, mtd); + + if (dev_get_major(lib, mtd_num, &mtd->major, &mtd->minor)) + return -1; + + ret = dev_read_data(lib->mtd_name, mtd_num, &mtd->name, + MTD_NAME_MAX + 1); + if (ret < 0) + return -1; + ((char *)mtd->name)[ret - 1] = '\0'; + + ret = dev_read_data(lib->mtd_type, mtd_num, &mtd->type_str, + MTD_TYPE_MAX + 1); + if (ret < 0) + return -1; + ((char *)mtd->type_str)[ret - 1] = '\0'; + + if (dev_read_pos_int(lib->mtd_eb_size, mtd_num, &mtd->eb_size)) + return -1; + if (dev_read_pos_ll(lib->mtd_size, mtd_num, &mtd->size)) + return -1; + if (dev_read_pos_int(lib->mtd_min_io_size, mtd_num, &mtd->min_io_size)) + return -1; + if (dev_read_pos_int(lib->mtd_subpage_size, mtd_num, &mtd->subpage_size)) + return -1; + if (dev_read_pos_int(lib->mtd_oob_size, mtd_num, &mtd->oob_size)) + return -1; + if (dev_read_pos_int(lib->mtd_region_cnt, mtd_num, &mtd->region_cnt)) + return -1; + if (dev_read_hex_int(lib->mtd_flags, mtd_num, &ret)) + return -1; + mtd->writable = !!(ret & MTD_WRITEABLE); + + mtd->eb_cnt = mtd->size / mtd->eb_size; + mtd->type = type_str2int(mtd->type_str); + mtd->bb_allowed = !!(mtd->type == MTD_NANDFLASH || + mtd->type == MTD_MLCNANDFLASH); + + return 0; +} + +int mtd_get_dev_info(libmtd_t desc, const char *node, struct mtd_dev_info *mtd) +{ + int mtd_num; + struct libmtd *lib = (struct libmtd *)desc; + + if (!lib->sysfs_supported) + return legacy_get_dev_info(node, mtd); + + if (dev_node2num(lib, node, &mtd_num)) + return -1; + + return mtd_get_dev_info1(desc, mtd_num, mtd); +} + +static inline int mtd_ioctl_error(const struct mtd_dev_info *mtd, int eb, + const char *sreq) +{ + return sys_errmsg("%s ioctl failed for eraseblock %d (mtd%d)", + sreq, eb, mtd->mtd_num); +} + +static int mtd_valid_erase_block(const struct mtd_dev_info *mtd, int eb) +{ + printf("hello 2 \n"); + if (eb < 0 || eb >= mtd->eb_cnt) { + printf("bad eraseblock number %d, mtd%d has %d eraseblocks", + eb, mtd->mtd_num, mtd->eb_cnt); + errno = EINVAL; + printf("hello 33333333333333333333333 \n"); + return -1; + } + return 0; +} + +static int mtd_xlock(const struct mtd_dev_info *mtd, int fd, int eb, int req, + const char *sreq) +{ + int ret; + struct erase_info_user ei; + + ret = mtd_valid_erase_block(mtd, eb); + if (ret) + return ret; + + ei.start = eb * mtd->eb_size; + ei.length = mtd->eb_size; + + ret = ioctl(fd, req, &ei); + if (ret < 0) + return mtd_ioctl_error(mtd, eb, sreq); + + return 0; +} +#define mtd_xlock(mtd, fd, eb, req) mtd_xlock(mtd, fd, eb, req, #req) + +int mtd_lock(const struct mtd_dev_info *mtd, int fd, int eb) +{ + return mtd_xlock(mtd, fd, eb, MEMLOCK); +} + +int mtd_unlock(const struct mtd_dev_info *mtd, int fd, int eb) +{ + return mtd_xlock(mtd, fd, eb, MEMUNLOCK); +} + +int mtd_erase(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb) +{ + int ret; + struct libmtd *lib = (struct libmtd *)desc; + struct erase_info_user64 ei64; + struct erase_info_user ei; + + ret = mtd_valid_erase_block(mtd, eb); + if (ret) + return ret; + + ei64.start = (__u64)eb * mtd->eb_size; + ei64.length = mtd->eb_size; + + if (lib->offs64_ioctls == OFFS64_IOCTLS_SUPPORTED || + lib->offs64_ioctls == OFFS64_IOCTLS_UNKNOWN) { + ret = ioctl(fd, MEMERASE64, &ei64); + if (ret == 0) + return ret; + + if (errno != ENOTTY || + lib->offs64_ioctls != OFFS64_IOCTLS_UNKNOWN) + return mtd_ioctl_error(mtd, eb, "MEMERASE64"); + + /* + * MEMERASE64 support was added in kernel version 2.6.31, so + * probably we are working with older kernel and this ioctl is + * not supported. + */ + lib->offs64_ioctls = OFFS64_IOCTLS_NOT_SUPPORTED; + } + + if (ei64.start + ei64.length > 0xFFFFFFFF) { + errmsg("this system can address only %u eraseblocks", + 0xFFFFFFFFU / mtd->eb_size); + errno = EINVAL; + return -1; + } + + ei.start = ei64.start; + ei.length = ei64.length; + ret = ioctl(fd, MEMERASE, &ei); + if (ret < 0) + return mtd_ioctl_error(mtd, eb, "MEMERASE"); + return 0; +} + +int mtd_regioninfo(int fd, int regidx, struct region_info_user *reginfo) +{ + int ret; + + if (regidx < 0) { + errno = ENODEV; + return -1; + } + + reginfo->regionindex = regidx; + + ret = ioctl(fd, MEMGETREGIONINFO, reginfo); + if (ret < 0) + return sys_errmsg("%s ioctl failed for erase region %d", + "MEMGETREGIONINFO", regidx); + + return 0; +} + +int mtd_is_locked(const struct mtd_dev_info *mtd, int fd, int eb) +{ + int ret; + erase_info_t ei; + + ei.start = eb * mtd->eb_size; + ei.length = mtd->eb_size; + + ret = ioctl(fd, MEMISLOCKED, &ei); + if (ret < 0) { + if (errno != ENOTTY && errno != EOPNOTSUPP) + return mtd_ioctl_error(mtd, eb, "MEMISLOCKED"); + else + errno = EOPNOTSUPP; + } + + return ret; +} + +/* Patterns to write to a physical eraseblock when torturing it */ +static uint8_t patterns[] = {0xa5, 0x5a, 0x0}; + +/** + * check_pattern - check if buffer contains only a certain byte pattern. + * @buf: buffer to check + * @patt: the pattern to check + * @size: buffer size in bytes + * + * This function returns %1 in there are only @patt bytes in @buf, and %0 if + * something else was also found. + */ +static int check_pattern(const void *buf, uint8_t patt, int size) +{ + int i; + + for (i = 0; i < size; i++) + if (((const uint8_t *)buf)[i] != patt) + return 0; + return 1; +} + +int mtd_torture(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb) +{ + int err, i, patt_count; + void *buf; + + normsg("run torture test for PEB %d", eb); + patt_count = ARRAY_SIZE(patterns); + + buf = xmalloc(mtd->eb_size); + + for (i = 0; i < patt_count; i++) { + err = mtd_erase(desc, mtd, fd, eb); + if (err) + goto out; + + /* Make sure the PEB contains only 0xFF bytes */ + err = mtd_read(mtd, fd, eb, 0, buf, mtd->eb_size); + if (err) + goto out; + + err = check_pattern(buf, 0xFF, mtd->eb_size); + if (err == 0) { + errmsg("erased PEB %d, but a non-0xFF byte found", eb); + errno = EIO; + goto out; + } + + /* Write a pattern and check it */ + memset(buf, patterns[i], mtd->eb_size); + err = mtd_write(desc, mtd, fd, eb, 0, buf, mtd->eb_size, NULL, + 0, 0); + if (err) + goto out; + + memset(buf, ~patterns[i], mtd->eb_size); + err = mtd_read(mtd, fd, eb, 0, buf, mtd->eb_size); + if (err) + goto out; + + err = check_pattern(buf, patterns[i], mtd->eb_size); + if (err == 0) { + errmsg("pattern %x checking failed for PEB %d", + patterns[i], eb); + errno = EIO; + goto out; + } + } + + err = 0; + normsg("PEB %d passed torture test, do not mark it a bad", eb); + +out: + free(buf); + return -1; +} + +int mtd_is_bad(const struct mtd_dev_info *mtd, int fd, int eb) +{ + int ret; + loff_t seek; + + ret = mtd_valid_erase_block(mtd, eb); + if (ret) + return ret; + + if (!mtd->bb_allowed) + return 0; + + seek = (loff_t)eb * mtd->eb_size; + ret = ioctl(fd, MEMGETBADBLOCK, &seek); + if (ret == -1) + return mtd_ioctl_error(mtd, eb, "MEMGETBADBLOCK"); + return ret; +} + +int mtd_mark_bad(const struct mtd_dev_info *mtd, int fd, int eb) +{ + int ret; + loff_t seek; + + if (!mtd->bb_allowed) { + errno = EINVAL; + return -1; + } + + ret = mtd_valid_erase_block(mtd, eb); + if (ret) + return ret; + + seek = (loff_t)eb * mtd->eb_size; + ret = ioctl(fd, MEMSETBADBLOCK, &seek); + if (ret == -1) + return mtd_ioctl_error(mtd, eb, "MEMSETBADBLOCK"); + return 0; +} + +int mtd_read(const struct mtd_dev_info *mtd, int fd, int eb, int offs, + void *buf, int len) +{ + int ret, rd = 0; + off_t seek; + + ret = mtd_valid_erase_block(mtd, eb); + if (ret) + return ret; + + if (offs < 0 || offs + len > mtd->eb_size) { + errmsg("bad offset %d or length %d, mtd%d eraseblock size is %d", + offs, len, mtd->mtd_num, mtd->eb_size); + errno = EINVAL; + return -1; + } + + /* Seek to the beginning of the eraseblock */ + seek = (off_t)eb * mtd->eb_size + offs; + if (lseek(fd, seek, SEEK_SET) != seek) + return sys_errmsg("cannot seek mtd%d to offset %"PRIdoff_t, + mtd->mtd_num, seek); + + while (rd < len) { + ret = read(fd, buf, len); + if (ret < 0) + return sys_errmsg("cannot read %d bytes from mtd%d (eraseblock %d, offset %d)", + len, mtd->mtd_num, eb, offs); + rd += ret; + } + + return 0; +} + +static int legacy_auto_oob_layout(const struct mtd_dev_info *mtd, int fd, + int ooblen, void *oob) { + struct nand_oobinfo old_oobinfo; + int start, len; + uint8_t *tmp_buf; + + /* Read the current oob info */ + if (ioctl(fd, MEMGETOOBSEL, &old_oobinfo)) + return sys_errmsg("MEMGETOOBSEL failed"); + + tmp_buf = malloc(ooblen); + memcpy(tmp_buf, oob, ooblen); + + /* + * We use autoplacement and have the oobinfo with the autoplacement + * information from the kernel available + */ + if (old_oobinfo.useecc == MTD_NANDECC_AUTOPLACE) { + int i, tags_pos = 0; + for (i = 0; old_oobinfo.oobfree[i][1]; i++) { + /* Set the reserved bytes to 0xff */ + start = old_oobinfo.oobfree[i][0]; + len = old_oobinfo.oobfree[i][1]; + memcpy(oob + start, tmp_buf + tags_pos, len); + tags_pos += len; + } + } else { + /* Set at least the ecc byte positions to 0xff */ + start = old_oobinfo.eccbytes; + len = mtd->oob_size - start; + memcpy(oob + start, tmp_buf + start, len); + } + free(tmp_buf); + + return 0; +} + +int mtd_write(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb, + int offs, void *data, int len, void *oob, int ooblen, + uint8_t mode) +{ + int ret; + off_t seek; + struct mtd_write_req ops; + + ret = mtd_valid_erase_block(mtd, eb); + if (ret) + return ret; + + if (offs < 0 || offs + len > mtd->eb_size) { + errmsg("bad offset %d or length %d, mtd%d eraseblock size is %d", + offs, len, mtd->mtd_num, mtd->eb_size); + errno = EINVAL; + return -1; + } + if (offs % mtd->subpage_size) { + errmsg("write offset %d is not aligned to mtd%d min. I/O size %d", + offs, mtd->mtd_num, mtd->subpage_size); + errno = EINVAL; + return -1; + } + if (len % mtd->subpage_size) { + errmsg("write length %d is not aligned to mtd%d min. I/O size %d", + len, mtd->mtd_num, mtd->subpage_size); + errno = EINVAL; + return -1; + } + + /* Calculate seek address */ + seek = (off_t)eb * mtd->eb_size + offs; + + if (oob) { + ops.start = seek; + ops.len = len; + ops.ooblen = ooblen; + ops.usr_data = (uint64_t)(unsigned long)data; + ops.usr_oob = (uint64_t)(unsigned long)oob; + ops.mode = mode; + + ret = ioctl(fd, MEMWRITE, &ops); + if (ret == 0) + return 0; + else if (errno != ENOTTY && errno != EOPNOTSUPP) + return mtd_ioctl_error(mtd, eb, "MEMWRITE"); + + /* Fall back to old OOB ioctl() if necessary */ + if (mode == MTD_OPS_AUTO_OOB) + if (legacy_auto_oob_layout(mtd, fd, ooblen, oob)) + return -1; + if (mtd_write_oob(desc, mtd, fd, seek, ooblen, oob) < 0) + return sys_errmsg("cannot write to OOB"); + } + if (data) { + /* Seek to the beginning of the eraseblock */ + if (lseek(fd, seek, SEEK_SET) != seek) + return sys_errmsg("cannot seek mtd%d to offset %"PRIdoff_t, + mtd->mtd_num, seek); + ret = write(fd, data, len); + if (ret != len) + return sys_errmsg("cannot write %d bytes to mtd%d " + "(eraseblock %d, offset %d)", + len, mtd->mtd_num, eb, offs); + } + + return 0; +} + +static int do_oob_op(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, + uint64_t start, uint64_t length, void *data, unsigned int cmd64, + unsigned int cmd) +{ + int ret, oob_offs; + struct mtd_oob_buf64 oob64; + struct mtd_oob_buf oob; + unsigned long long max_offs; + const char *cmd64_str, *cmd_str; + struct libmtd *lib = (struct libmtd *)desc; + + if (cmd64 == MEMREADOOB64) { + cmd64_str = "MEMREADOOB64"; + cmd_str = "MEMREADOOB"; + } else { + cmd64_str = "MEMWRITEOOB64"; + cmd_str = "MEMWRITEOOB"; + } + + max_offs = (unsigned long long)mtd->eb_cnt * mtd->eb_size; + if (start >= max_offs) { + errmsg("bad page address %" PRIu64 ", mtd%d has %d eraseblocks (%llu bytes)", + start, mtd->mtd_num, mtd->eb_cnt, max_offs); + errno = EINVAL; + return -1; + } + + oob_offs = start & (mtd->min_io_size - 1); + if (oob_offs + length > mtd->oob_size || length == 0) { + errmsg("Cannot write %" PRIu64 " OOB bytes to address %" PRIu64 " (OOB offset %u) - mtd%d OOB size is only %d bytes", + length, start, oob_offs, mtd->mtd_num, mtd->oob_size); + errno = EINVAL; + return -1; + } + + oob64.start = start; + oob64.length = length; + oob64.usr_ptr = (uint64_t)(unsigned long)data; + + if (lib->offs64_ioctls == OFFS64_IOCTLS_SUPPORTED || + lib->offs64_ioctls == OFFS64_IOCTLS_UNKNOWN) { + ret = ioctl(fd, cmd64, &oob64); + if (ret == 0) + return ret; + + if (errno != ENOTTY || + lib->offs64_ioctls != OFFS64_IOCTLS_UNKNOWN) { + sys_errmsg("%s ioctl failed for mtd%d, offset %" PRIu64 " (eraseblock %" PRIu64 ")", + cmd64_str, mtd->mtd_num, start, start / mtd->eb_size); + } + + /* + * MEMREADOOB64/MEMWRITEOOB64 support was added in kernel + * version 2.6.31, so probably we are working with older kernel + * and these ioctls are not supported. + */ + lib->offs64_ioctls = OFFS64_IOCTLS_NOT_SUPPORTED; + } + + if (oob64.start > 0xFFFFFFFFULL) { + errmsg("this system can address only up to address %lu", + 0xFFFFFFFFUL); + errno = EINVAL; + return -1; + } + + oob.start = oob64.start; + oob.length = oob64.length; + oob.ptr = data; + + ret = ioctl(fd, cmd, &oob); + if (ret < 0) + sys_errmsg("%s ioctl failed for mtd%d, offset %" PRIu64 " (eraseblock %" PRIu64 ")", + cmd_str, mtd->mtd_num, start, start / mtd->eb_size); + return ret; +} + +int mtd_read_oob(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, + uint64_t start, uint64_t length, void *data) +{ + return do_oob_op(desc, mtd, fd, start, length, data, + MEMREADOOB64, MEMREADOOB); +} + +int mtd_write_oob(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, + uint64_t start, uint64_t length, void *data) +{ + return do_oob_op(desc, mtd, fd, start, length, data, + MEMWRITEOOB64, MEMWRITEOOB); +} + +int mtd_write_img(const struct mtd_dev_info *mtd, int fd, int eb, int offs, + const char *img_name) +{ + int tmp, ret, in_fd, len, written = 0; + off_t seek; + struct stat st; + char *buf; + printf("hello 1 \n"); + ret = mtd_valid_erase_block(mtd, eb); + printf("hello 3 \n"); + if (ret) + { + printf("hello 1 ret= %d\n",ret); + return ret; + } + + printf("hello 4 \n"); + if (offs < 0 || offs >= mtd->eb_size) { + printf("bad offset %d, mtd%d eraseblock size is %d", + offs, mtd->mtd_num, mtd->eb_size); + errno = EINVAL; + return -1; + } + printf("hello 5 \n"); + if (offs % mtd->subpage_size) { + printf("write offset %d is not aligned to mtd%d min. I/O size %d", + offs, mtd->mtd_num, mtd->subpage_size); + errno = EINVAL; + return -1; + } + + printf("hello 6 \n"); + in_fd = open(img_name, O_RDONLY | O_CLOEXEC); + if (in_fd == -1) + return printf("cannot open \"%s\"", img_name); + + + printf("hello 7 \n"); + if (fstat(in_fd, &st)) { + printf("cannot stat %s", img_name); + goto out_close; + } + printf("hello 8 \n"); + len = st.st_size; + printf("hello 8 len=%d \n",len); + if (len % mtd->subpage_size) { + printf("size of \"%s\" is %d byte, which is not aligned to " + "mtd%d min. I/O size %d", img_name, len, mtd->mtd_num, + mtd->subpage_size); + errno = EINVAL; + goto out_close; + } + printf("hello 9 \n"); + tmp = (offs + len + mtd->eb_size - 1) / mtd->eb_size; + if (eb + tmp > mtd->eb_cnt) { + printf("\"%s\" image size is %d bytes, mtd%d size is %d " + "eraseblocks, the image does not fit if we write it " + "starting from eraseblock %d, offset %d", + img_name, len, mtd->mtd_num, mtd->eb_cnt, eb, offs); + errno = EINVAL; + goto out_close; + } + printf("hello 10 \n"); + /* Seek to the beginning of the eraseblock */ + seek = (off_t)eb * mtd->eb_size + offs; + if (lseek(fd, seek, SEEK_SET) != seek) { + printf("cannot seek mtd%d to offset %"PRIdoff_t, + mtd->mtd_num, seek); + goto out_close; + } + + printf("hello 11 \n"); + buf = xmalloc(mtd->eb_size); + printf("hello 12 \n"); + while (written < len) { + int rd = 0; + + do { + ret = read(in_fd, buf, mtd->eb_size - offs - rd); + printf("hello 13 ret=%d \n",ret); + if (ret == -1) { + printf("cannot read %s", img_name); + printf("hello 13 \n"); + goto out_free; + } + rd += ret; + } while (ret && rd < mtd->eb_size - offs); + + ret = write(fd, buf, rd); + printf("hello 14 ret=%d \n",ret); + if (ret != rd) { + printf("cannot write %d bytes to mtd%d (eraseblock %d, offset %d)", + len, mtd->mtd_num, eb, offs); + printf("hello 14 \n"); + goto out_free; + } + + offs = 0; + eb += 1; + written += rd; + } + + free(buf); + close(in_fd); + return 0; + +out_free: + free(buf); +out_close: + close(in_fd); + return -1; +} + +int mtd_probe_node(libmtd_t desc, const char *node) +{ + struct stat st; + struct mtd_info info; + int i, mjr, mnr; + struct libmtd *lib = (struct libmtd *)desc; + + if (stat(node, &st)) + return sys_errmsg("cannot get information about \"%s\"", node); + + if (!S_ISCHR(st.st_mode)) { + errmsg("\"%s\" is not a character device", node); + errno = EINVAL; + return -1; + } + + mjr = major(st.st_rdev); + mnr = minor(st.st_rdev); + + if (mtd_get_info((libmtd_t *)lib, &info)) + return -1; + + if (!lib->sysfs_supported) + return 0; + + for (i = info.lowest_mtd_num; i <= info.highest_mtd_num; i++) { + int mjr1, mnr1, ret; + + ret = dev_get_major(lib, i, &mjr1, &mnr1); + if (ret) { + if (errno == ENOENT) + continue; + if (!errno) + break; + return -1; + } + + if (mjr1 == mjr && mnr1 == mnr) + return 1; + } + + errno = 0; + return -1; +} diff --git a/device/gxx-linux/fpgaupdate/libmtd.h b/device/gxx-linux/fpgaupdate/libmtd.h new file mode 100644 index 0000000..b5fd3f3 --- /dev/null +++ b/device/gxx-linux/fpgaupdate/libmtd.h @@ -0,0 +1,357 @@ +/* + * Copyright (C) 2008, 2009 Nokia Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See + * the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Author: Artem Bityutskiy + * + * MTD library. + */ + +/* Imported from mtd-utils by dehrenberg */ + +#ifndef __LIBMTD_H__ +#define __LIBMTD_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +// Needed for uint8_t, uint64_t +#include + +/* Maximum MTD device name length */ +#define MTD_NAME_MAX 127 +/* Maximum MTD device type string length */ +#define MTD_TYPE_MAX 64 + +/* MTD library descriptor */ +typedef void * libmtd_t; + +/* Forward decls */ +struct region_info_user; + +/** + * @mtd_dev_cnt: count of MTD devices in system + * @lowest_mtd_num: lowest MTD device number in system + * @highest_mtd_num: highest MTD device number in system + * @sysfs_supported: non-zero if sysfs is supported by MTD + */ +struct mtd_info +{ + int mtd_dev_cnt; + int lowest_mtd_num; + int highest_mtd_num; + unsigned int sysfs_supported:1; +}; + +/** + * struct mtd_dev_info - information about an MTD device. + * @mtd_num: MTD device number + * @major: major number of corresponding character device + * @minor: minor number of corresponding character device + * @type: flash type (constants like %MTD_NANDFLASH defined in mtd-abi.h) + * @type_str: static R/O flash type string + * @name: device name + * @size: device size in bytes + * @eb_cnt: count of eraseblocks + * @eb_size: eraseblock size + * @min_io_size: minimum input/output unit size + * @subpage_size: sub-page size + * @oob_size: OOB size (zero if the device does not have OOB area) + * @region_cnt: count of additional erase regions + * @writable: zero if the device is read-only + * @bb_allowed: non-zero if the MTD device may have bad eraseblocks + */ +struct mtd_dev_info +{ + int mtd_num; + int major; + int minor; + int type; + char type_str[MTD_TYPE_MAX + 1]; + char name[MTD_NAME_MAX + 1]; + long long size; + int eb_cnt; + int eb_size; + int min_io_size; + int subpage_size; + int oob_size; + int region_cnt; + unsigned int writable:1; + unsigned int bb_allowed:1; +}; + +/** + * libmtd_open - open MTD library. + * + * This function initializes and opens the MTD library and returns MTD library + * descriptor in case of success and %NULL in case of failure. In case of + * failure, errno contains zero if MTD is not present in the system, or + * contains the error code if a real error happened. + */ +libmtd_t libmtd_open(void); + +/** + * libmtd_close - close MTD library. + * @desc: MTD library descriptor + */ +void libmtd_close(libmtd_t desc); + +/** + * mtd_dev_present - check whether a MTD device is present. + * @desc: MTD library descriptor + * @mtd_num: MTD device number to check + * + * This function returns %1 if MTD device is present and %0 if not. + */ +int mtd_dev_present(libmtd_t desc, int mtd_num); + +/** + * mtd_get_info - get general MTD information. + * @desc: MTD library descriptor + * @info: the MTD device information is returned here + * + * This function fills the passed @info object with general MTD information and + * returns %0 in case of success and %-1 in case of failure. If MTD subsystem is + * not present in the system, errno is set to @ENODEV. + */ +int mtd_get_info(libmtd_t desc, struct mtd_info *info); + +/** + * mtd_get_dev_info - get information about an MTD device. + * @desc: MTD library descriptor + * @node: name of the MTD device node + * @mtd: the MTD device information is returned here + * + * This function gets information about MTD device defined by the @node device + * node file and saves this information in the @mtd object. Returns %0 in case + * of success and %-1 in case of failure. If MTD subsystem is not present in the + * system, or the MTD device does not exist, errno is set to @ENODEV. + */ +int mtd_get_dev_info(libmtd_t desc, const char *node, struct mtd_dev_info *mtd); + +/** + * mtd_get_dev_info1 - get information about an MTD device. + * @desc: MTD library descriptor + * @mtd_num: MTD device number to fetch information about + * @mtd: the MTD device information is returned here + * + * This function is identical to 'mtd_get_dev_info()' except that it accepts + * MTD device number, not MTD character device. + */ +int mtd_get_dev_info1(libmtd_t desc, int mtd_num, struct mtd_dev_info *mtd); + +/** + * mtd_lock - lock eraseblocks. + * @desc: MTD library descriptor + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: eraseblock to lock + * + * This function locks eraseblock @eb. Returns %0 in case of success and %-1 + * in case of failure. + */ +int mtd_lock(const struct mtd_dev_info *mtd, int fd, int eb); + +/** + * mtd_unlock - unlock eraseblocks. + * @desc: MTD library descriptor + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: eraseblock to lock + * + * This function unlocks eraseblock @eb. Returns %0 in case of success and %-1 + * in case of failure. + */ +int mtd_unlock(const struct mtd_dev_info *mtd, int fd, int eb); + +/** + * mtd_erase - erase an eraseblock. + * @desc: MTD library descriptor + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: eraseblock to erase + * + * This function erases eraseblock @eb of MTD device described by @fd. Returns + * %0 in case of success and %-1 in case of failure. + */ +int mtd_erase(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb); + +/** + * mtd_regioninfo - get information about an erase region. + * @fd: MTD device node file descriptor + * @regidx: index of region to look up + * @reginfo: the region information is returned here + * + * This function gets information about an erase region defined by the + * @regidx index and saves this information in the @reginfo object. + * Returns %0 in case of success and %-1 in case of failure. If the + * @regidx is not valid or unavailable, errno is set to @ENODEV. + */ +int mtd_regioninfo(int fd, int regidx, struct region_info_user *reginfo); + +/** + * mtd_is_locked - see if the specified eraseblock is locked. + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: eraseblock to check + * + * This function checks to see if eraseblock @eb of MTD device described + * by @fd is locked. Returns %0 if it is unlocked, %1 if it is locked, and + * %-1 in case of failure. If the ioctl is not supported (support was added in + * Linux kernel 2.6.36) or this particular device does not support it, errno is + * set to @ENOTSUPP. + */ +int mtd_is_locked(const struct mtd_dev_info *mtd, int fd, int eb); + +/** + * mtd_torture - torture an eraseblock. + * @desc: MTD library descriptor + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: eraseblock to torture + * + * This function tortures eraseblock @eb. Returns %0 in case of success and %-1 + * in case of failure. + */ +int mtd_torture(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb); + +/** + * mtd_is_bad - check if eraseblock is bad. + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: eraseblock to check + * + * This function checks if eraseblock @eb is bad. Returns %0 if not, %1 if yes, + * and %-1 in case of failure. + */ +int mtd_is_bad(const struct mtd_dev_info *mtd, int fd, int eb); + +/** + * mtd_mark_bad - mark an eraseblock as bad. + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: eraseblock to mark as bad + * + * This function marks eraseblock @eb as bad. Returns %0 in case of success and + * %-1 in case of failure. + */ +int mtd_mark_bad(const struct mtd_dev_info *mtd, int fd, int eb); + +/** + * mtd_read - read data from an MTD device. + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: eraseblock to read from + * @offs: offset withing the eraseblock to read from + * @buf: buffer to read data to + * @len: how many bytes to read + * + * This function reads @len bytes of data from eraseblock @eb and offset @offs + * of the MTD device defined by @mtd and stores the read data at buffer @buf. + * Returns %0 in case of success and %-1 in case of failure. + */ +int mtd_read(const struct mtd_dev_info *mtd, int fd, int eb, int offs, + void *buf, int len); + +/** + * mtd_write - write data to an MTD device. + * @desc: MTD library descriptor + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: eraseblock to write to + * @offs: offset withing the eraseblock to write to + * @data: data buffer to write + * @len: how many data bytes to write + * @oob: OOB buffer to write + * @ooblen: how many OOB bytes to write + * @mode: write mode (e.g., %MTD_OOB_PLACE, %MTD_OOB_RAW) + * + * This function writes @len bytes of data to eraseblock @eb and offset @offs + * of the MTD device defined by @mtd. Returns %0 in case of success and %-1 in + * case of failure. + * + * Can only write to a single page at a time if writing to OOB. + */ +int mtd_write(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb, + int offs, void *data, int len, void *oob, int ooblen, + uint8_t mode); + +/** + * mtd_read_oob - read out-of-band area. + * @desc: MTD library descriptor + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @start: page-aligned start address + * @length: number of OOB bytes to read + * @data: read buffer + * + * This function reads @length OOB bytes starting from address @start on + * MTD device described by @fd. The address is specified as page byte offset + * from the beginning of the MTD device. This function returns %0 in case of + * success and %-1 in case of failure. + */ +int mtd_read_oob(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, + uint64_t start, uint64_t length, void *data); + +/** + * mtd_write_oob - write out-of-band area. + * @desc: MTD library descriptor + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @start: page-aligned start address + * @length: number of OOB bytes to write + * @data: write buffer + * + * This function writes @length OOB bytes starting from address @start on + * MTD device described by @fd. The address is specified as page byte offset + * from the beginning of the MTD device. Returns %0 in case of success and %-1 + * in case of failure. + */ +int mtd_write_oob(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, + uint64_t start, uint64_t length, void *data); + +/** + * mtd_write_img - write a file to MTD device. + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: eraseblock to write to + * @offs: offset withing the eraseblock to write to + * @img_name: the file to write + * + * This function writes an image @img_name the MTD device defined by @mtd. @eb + * and @offs are the starting eraseblock and offset on the MTD device. Returns + * %0 in case of success and %-1 in case of failure. + */ +int mtd_write_img(const struct mtd_dev_info *mtd, int fd, int eb, int offs, + const char *img_name); + +/** + * mtd_probe_node - test MTD node. + * @desc: MTD library descriptor + * @node: the node to test + * + * This function tests whether @node is an MTD device node and returns %1 if it + * is, and %-1 if it is not (errno is %ENODEV in this case) or if an error + * occurred. + */ +int mtd_probe_node(libmtd_t desc, const char *node); + +#ifdef __cplusplus +} +#endif + +#endif /* __LIBMTD_H__ */ diff --git a/device/gxx-linux/fpgaupdate/libmtd_common.h b/device/gxx-linux/fpgaupdate/libmtd_common.h new file mode 100644 index 0000000..ef02a4e --- /dev/null +++ b/device/gxx-linux/fpgaupdate/libmtd_common.h @@ -0,0 +1,224 @@ +/* + * Copyright (c) Artem Bityutskiy, 2007, 2008 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See + * the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* Imported from mtd-utils by dehrenberg */ + +#ifndef __MTD_UTILS_COMMON_H__ +#define __MTD_UTILS_COMMON_H__ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef PROGRAM_NAME +# error "You must define PROGRAM_NAME before including this header" +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef MIN /* some C lib headers define this for us */ +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif +#ifndef MAX +#define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#define min(a, b) MIN(a, b) /* glue for linux kernel source */ +#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) + +#define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1) +#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask)) + +#define min_t(t,x,y) ({ \ + typeof((x)) _x = (x); \ + typeof((y)) _y = (y); \ + (_x < _y) ? _x : _y; \ +}) + +#define max_t(t,x,y) ({ \ + typeof((x)) _x = (x); \ + typeof((y)) _y = (y); \ + (_x > _y) ? _x : _y; \ +}) + +#ifndef O_CLOEXEC +#define O_CLOEXEC 0 +#endif + +/* define a print format specifier for off_t */ +#ifdef __USE_FILE_OFFSET64 +#define PRIxoff_t PRIx64 +#define PRIdoff_t PRId64 +#else +#define PRIxoff_t "l" PRIx32 +#define PRIdoff_t "l" PRId32 +#endif + +/* Verbose messages */ +#define bareverbose(verbose, fmt, ...) do { \ + if (verbose) \ + printf(fmt, ##__VA_ARGS__); \ +} while(0) +#define verbose(verbose, fmt, ...) \ + bareverbose(verbose, "%s: " fmt "\n", PROGRAM_NAME, ##__VA_ARGS__) + +/* Normal messages */ +#define normsg_cont(fmt, ...) do { \ + printf("%s: " fmt, PROGRAM_NAME, ##__VA_ARGS__); \ +} while(0) +#define normsg(fmt, ...) do { \ + normsg_cont(fmt "\n", ##__VA_ARGS__); \ +} while(0) + +/* Error messages */ +#define errmsg(fmt, ...) ({ \ + fprintf(stderr, "%s: error!: " fmt "\n", PROGRAM_NAME, ##__VA_ARGS__); \ + -1; \ +}) +#define errmsg_die(fmt, ...) do { \ + exit(errmsg(fmt, ##__VA_ARGS__)); \ +} while(0) + +/* System error messages */ +#define sys_errmsg(fmt, ...) ({ \ + int _err = errno; \ + errmsg(fmt, ##__VA_ARGS__); \ + fprintf(stderr, "%*serror %d (%s)\n", (int)sizeof(PROGRAM_NAME) + 1,\ + "", _err, strerror(_err)); \ + -1; \ +}) +#define sys_errmsg_die(fmt, ...) do { \ + exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ +} while(0) + +/* Warnings */ +#define warnmsg(fmt, ...) do { \ + fprintf(stderr, "%s: warning!: " fmt "\n", PROGRAM_NAME, ##__VA_ARGS__); \ +} while(0) + +#if defined(__UCLIBC__) +/* uClibc versions before 0.9.34 don't have rpmatch() */ +#if __UCLIBC_MAJOR__ == 0 && \ + (__UCLIBC_MINOR__ < 9 || \ + (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ < 34)) +#undef rpmatch +#define rpmatch __rpmatch +static inline int __rpmatch(const char *resp) +{ + return (resp[0] == 'y' || resp[0] == 'Y') ? 1 : + (resp[0] == 'n' || resp[0] == 'N') ? 0 : -1; +} +#endif +#endif + +/** + * prompt the user for confirmation + */ +static inline bool prompt(const char *msg, bool def) +{ + char *line = NULL; + size_t len; + bool ret = def; + + do { + normsg_cont("%s (%c/%c) ", msg, def ? 'Y' : 'y', def ? 'n' : 'N'); + fflush(stdout); + + while (getline(&line, &len, stdin) == -1) { + printf("failed to read prompt; assuming '%s'\n", + def ? "yes" : "no"); + break; + } + + if (strcmp("\n", line) != 0) { + switch (rpmatch(line)) { + case 0: ret = false; break; + case 1: ret = true; break; + case -1: + puts("unknown response; please try again"); + continue; + } + } + break; + } while (1); + + free(line); + + return ret; +} + +static inline int is_power_of_2(unsigned long long n) +{ + return (n != 0 && ((n & (n - 1)) == 0)); +} + +/** + * simple_strtoX - convert a hex/dec/oct string into a number + * @snum: buffer to convert + * @error: set to 1 when buffer isn't fully consumed + * + * These functions are similar to the standard strtoX() functions, but they are + * a little bit easier to use if you want to convert full string of digits into + * the binary form. The typical usage: + * + * int error = 0; + * unsigned long num; + * + * num = simple_strtoul(str, &error); + * if (error || ... if needed, your check that num is not out of range ...) + * error_happened(); + */ +#define simple_strtoX(func, type) \ +static inline type simple_##func(const char *snum, int *error) \ +{ \ + char *endptr; \ + type ret = func(snum, &endptr, 0); \ + \ + if (error && (!*snum || *endptr)) { \ + errmsg("%s: unable to parse the number '%s'", #func, snum); \ + *error = 1; \ + } \ + \ + return ret; \ +} +simple_strtoX(strtol, long int) +simple_strtoX(strtoll, long long int) +simple_strtoX(strtoul, unsigned long int) +simple_strtoX(strtoull, unsigned long long int) + +/* Simple version-printing for utils */ +#define common_print_version() \ +do { \ + printf("%s %s\n", PROGRAM_NAME, VERSION); \ +} while (0) + +#include "libmtd_xalloc.h" + +#ifdef __cplusplus +} +#endif + +#endif /* !__MTD_UTILS_COMMON_H__ */ diff --git a/device/gxx-linux/fpgaupdate/libmtd_int.h b/device/gxx-linux/fpgaupdate/libmtd_int.h new file mode 100644 index 0000000..cbe2ff5 --- /dev/null +++ b/device/gxx-linux/fpgaupdate/libmtd_int.h @@ -0,0 +1,109 @@ +/* + * Copyright (c) International Business Machines Corp., 2006 + * Copyright (C) 2009 Nokia Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See + * the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Author: Artem Bityutskiy + * + * MTD library. + */ + +/* Imported from mtd-utils by dehrenberg */ + +#ifndef __LIBMTD_INT_H__ +#define __LIBMTD_INT_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#define PROGRAM_NAME "libmtd" + +#define SYSFS_MTD "class/mtd" +#define MTD_NAME_PATT "mtd%d" +#define MTD_DEV "dev" +#define MTD_NAME "name" +#define MTD_TYPE "type" +#define MTD_EB_SIZE "erasesize" +#define MTD_SIZE "size" +#define MTD_MIN_IO_SIZE "writesize" +#define MTD_SUBPAGE_SIZE "subpagesize" +#define MTD_OOB_SIZE "oobsize" +#define MTD_REGION_CNT "numeraseregions" +#define MTD_FLAGS "flags" + +#define OFFS64_IOCTLS_UNKNOWN 0 +#define OFFS64_IOCTLS_NOT_SUPPORTED 1 +#define OFFS64_IOCTLS_SUPPORTED 2 + +/** + * libmtd - MTD library description data structure. + * @sysfs_mtd: MTD directory in sysfs + * @mtd: MTD device sysfs directory pattern + * @mtd_dev: MTD device major/minor numbers file pattern + * @mtd_name: MTD device name file pattern + * @mtd_type: MTD device type file pattern + * @mtd_eb_size: MTD device eraseblock size file pattern + * @mtd_size: MTD device size file pattern + * @mtd_min_io_size: minimum I/O unit size file pattern + * @mtd_subpage_size: sub-page size file pattern + * @mtd_oob_size: MTD device OOB size file pattern + * @mtd_region_cnt: count of additional erase regions file pattern + * @mtd_flags: MTD device flags file pattern + * @sysfs_supported: non-zero if sysfs is supported by MTD + * @offs64_ioctls: %OFFS64_IOCTLS_SUPPORTED if 64-bit %MEMERASE64, + * %MEMREADOOB64, %MEMWRITEOOB64 MTD device ioctls are + * supported, %OFFS64_IOCTLS_NOT_SUPPORTED if not, and + * %OFFS64_IOCTLS_UNKNOWN if it is not known yet; + * + * Note, we cannot find out whether 64-bit ioctls are supported by MTD when we + * are initializing the library, because this requires an MTD device node. + * Indeed, we have to actually call the ioctl and check for %ENOTTY to find + * out whether it is supported or not. + * + * Thus, we leave %offs64_ioctls uninitialized in 'libmtd_open()', and + * initialize it later, when corresponding libmtd function is used, and when + * we actually have a device node and can invoke an ioctl command on it. + */ +struct libmtd +{ + char *sysfs_mtd; + char *mtd; + char *mtd_dev; + char *mtd_name; + char *mtd_type; + char *mtd_eb_size; + char *mtd_size; + char *mtd_min_io_size; + char *mtd_subpage_size; + char *mtd_oob_size; + char *mtd_region_cnt; + char *mtd_flags; + unsigned int sysfs_supported:1; + unsigned int offs64_ioctls:2; +}; + +int legacy_libmtd_open(void); +int legacy_dev_present(int mtd_num); +int legacy_mtd_get_info(struct mtd_info *info); +int legacy_get_dev_info(const char *node, struct mtd_dev_info *mtd); +int legacy_get_dev_info1(int dev_num, struct mtd_dev_info *mtd); + +#ifdef __cplusplus +} +#endif + +#endif /* !__LIBMTD_INT_H__ */ diff --git a/device/gxx-linux/fpgaupdate/libmtd_legacy.c b/device/gxx-linux/fpgaupdate/libmtd_legacy.c new file mode 100644 index 0000000..38dc2b7 --- /dev/null +++ b/device/gxx-linux/fpgaupdate/libmtd_legacy.c @@ -0,0 +1,384 @@ +/* + * Copyright (C) 2009 Nokia Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See + * the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Author: Artem Bityutskiy + * + * This file is part of the MTD library. Implements pre-2.6.30 kernels support, + * where MTD did not have sysfs interface. The main limitation of the old + * kernels was that the sub-page size was not exported to user-space, so it was + * not possible to get sub-page size. + */ + +/* Imported from mtd-utils by dehrenberg */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "libmtd.h" +#include "libmtd_int.h" +#include "libmtd_common.h" + +#define MTD_PROC_FILE "/proc/mtd" +#define MTD_DEV_PATT "/dev/mtd%d" +#define MTD_DEV_MAJOR 90 + +#define PROC_MTD_FIRST "dev: size erasesize name\n" +#define PROC_MTD_FIRST_LEN (sizeof(PROC_MTD_FIRST) - 1) +#define PROC_MTD_MAX_LEN 4096 +#define PROC_MTD_PATT "mtd%d: %llx %x" + +/** + * struct proc_parse_info - /proc/mtd parsing information. + * @mtd_num: MTD device number + * @size: device size + * @eb_size: eraseblock size + * @name: device name + * @buf: contents of /proc/mtd + * @data_size: how much data was read into @buf + * @pos: next string in @buf to parse + */ +struct proc_parse_info +{ + int mtd_num; + long long size; + char name[MTD_NAME_MAX + 1]; + int eb_size; + char *buf; + int data_size; + char *next; +}; + +static int proc_parse_start(struct proc_parse_info *pi) +{ + int fd, ret; + + fd = open(MTD_PROC_FILE, O_RDONLY); + if (fd == -1) + return -1; + + pi->buf = xmalloc(PROC_MTD_MAX_LEN); + + ret = read(fd, pi->buf, PROC_MTD_MAX_LEN); + if (ret == -1) { + sys_errmsg("cannot read \"%s\"", MTD_PROC_FILE); + goto out_free; + } + + if (ret < PROC_MTD_FIRST_LEN || + memcmp(pi->buf, PROC_MTD_FIRST, PROC_MTD_FIRST_LEN)) { + errmsg("\"%s\" does not start with \"%s\"", MTD_PROC_FILE, + PROC_MTD_FIRST); + goto out_free; + } + + pi->data_size = ret; + pi->next = pi->buf + PROC_MTD_FIRST_LEN; + + close(fd); + return 0; + +out_free: + free(pi->buf); + close(fd); + return -1; +} + +static int proc_parse_next(struct proc_parse_info *pi) +{ + int ret, len, pos = pi->next - pi->buf; + char *p, *p1; + + if (pos >= pi->data_size) { + free(pi->buf); + return 0; + } + + ret = sscanf(pi->next, PROC_MTD_PATT, &pi->mtd_num, &pi->size, + &pi->eb_size); + if (ret != 3) + return errmsg("\"%s\" pattern not found", PROC_MTD_PATT); + + p = memchr(pi->next, '\"', pi->data_size - pos); + if (!p) + return errmsg("opening \" not found"); + p += 1; + pos = p - pi->buf; + if (pos >= pi->data_size) + return errmsg("opening \" not found"); + + p1 = memchr(p, '\"', pi->data_size - pos); + if (!p1) + return errmsg("closing \" not found"); + pos = p1 - pi->buf; + if (pos >= pi->data_size) + return errmsg("closing \" not found"); + + len = p1 - p; + if (len > MTD_NAME_MAX) + return errmsg("too long mtd%d device name", pi->mtd_num); + + memcpy(pi->name, p, len); + pi->name[len] = '\0'; + + if (p1[1] != '\n') + return errmsg("opening \"\n\" not found"); + pi->next = p1 + 2; + return 1; +} + +/** + * legacy_libmtd_open - legacy version of 'libmtd_open()'. + * + * This function is just checks that MTD is present in the system. Returns + * zero in case of success and %-1 in case of failure. In case of failure, + * errno contains zero if MTD is not present in the system, or contains the + * error code if a real error happened. This is similar to the 'libmtd_open()' + * return conventions. + */ +int legacy_libmtd_open(void) +{ + int fd; + + fd = open(MTD_PROC_FILE, O_RDONLY); + if (fd == -1) { + if (errno == ENOENT) + errno = 0; + return -1; + } + + close(fd); + return 0; +} + +/** + * legacy_dev_presentl - legacy version of 'mtd_dev_present()'. + * @info: the MTD device information is returned here + * + * When the kernel does not provide sysfs files for the MTD subsystem, + * fall-back to parsing the /proc/mtd file to determine whether an mtd device + * number @mtd_num is present. + */ +int legacy_dev_present(int mtd_num) +{ + int ret; + struct proc_parse_info pi; + + ret = proc_parse_start(&pi); + if (ret) + return -1; + + while (proc_parse_next(&pi)) { + if (pi.mtd_num == mtd_num) + return 1; + } + + return 0; +} + +/** + * legacy_mtd_get_info - legacy version of 'mtd_get_info()'. + * @info: the MTD device information is returned here + * + * This function is similar to 'mtd_get_info()' and has the same conventions. + */ +int legacy_mtd_get_info(struct mtd_info *info) +{ + int ret; + struct proc_parse_info pi; + + ret = proc_parse_start(&pi); + if (ret) + return -1; + + info->lowest_mtd_num = INT_MAX; + while (proc_parse_next(&pi)) { + info->mtd_dev_cnt += 1; + if (pi.mtd_num > info->highest_mtd_num) + info->highest_mtd_num = pi.mtd_num; + if (pi.mtd_num < info->lowest_mtd_num) + info->lowest_mtd_num = pi.mtd_num; + } + + return 0; +} + +/** + * legacy_get_dev_info - legacy version of 'mtd_get_dev_info()'. + * @node: name of the MTD device node + * @mtd: the MTD device information is returned here + * + * This function is similar to 'mtd_get_dev_info()' and has the same + * conventions. + */ +int legacy_get_dev_info(const char *node, struct mtd_dev_info *mtd) +{ + struct stat st; + struct mtd_info_user ui; + int fd, ret; + loff_t offs = 0; + struct proc_parse_info pi; + + if (stat(node, &st)) { + sys_errmsg("cannot open \"%s\"", node); + if (errno == ENOENT) + normsg("MTD subsystem is old and does not support " + "sysfs, so MTD character device nodes have " + "to exist"); + } + + if (!S_ISCHR(st.st_mode)) { + errno = EINVAL; + return errmsg("\"%s\" is not a character device", node); + } + + memset(mtd, '\0', sizeof(struct mtd_dev_info)); + mtd->major = major(st.st_rdev); + mtd->minor = minor(st.st_rdev); + + if (mtd->major != MTD_DEV_MAJOR) { + errno = EINVAL; + return errmsg("\"%s\" has major number %d, MTD devices have " + "major %d", node, mtd->major, MTD_DEV_MAJOR); + } + + mtd->mtd_num = mtd->minor / 2; + + fd = open(node, O_RDONLY); + if (fd == -1) + return sys_errmsg("cannot open \"%s\"", node); + + if (ioctl(fd, MEMGETINFO, &ui)) { + sys_errmsg("MEMGETINFO ioctl request failed"); + goto out_close; + } + + ret = ioctl(fd, MEMGETBADBLOCK, &offs); + if (ret == -1) { + if (errno != EOPNOTSUPP) { + sys_errmsg("MEMGETBADBLOCK ioctl failed"); + goto out_close; + } + errno = 0; + mtd->bb_allowed = 0; + } else + mtd->bb_allowed = 1; + + mtd->type = ui.type; + mtd->size = ui.size; + mtd->eb_size = ui.erasesize; + mtd->min_io_size = ui.writesize; + mtd->oob_size = ui.oobsize; + + if (mtd->min_io_size <= 0) { + errmsg("mtd%d (%s) has insane min. I/O unit size %d", + mtd->mtd_num, node, mtd->min_io_size); + goto out_close; + } + if (mtd->eb_size <= 0 || mtd->eb_size < mtd->min_io_size) { + errmsg("mtd%d (%s) has insane eraseblock size %d", + mtd->mtd_num, node, mtd->eb_size); + goto out_close; + } + if (mtd->size <= 0 || mtd->size < mtd->eb_size) { + errmsg("mtd%d (%s) has insane size %lld", + mtd->mtd_num, node, mtd->size); + goto out_close; + } + mtd->eb_cnt = mtd->size / mtd->eb_size; + + switch(mtd->type) { + case MTD_ABSENT: + errmsg("mtd%d (%s) is removable and is not present", + mtd->mtd_num, node); + goto out_close; + case MTD_RAM: + strcpy((char *)mtd->type_str, "ram"); + break; + case MTD_ROM: + strcpy((char *)mtd->type_str, "rom"); + break; + case MTD_NORFLASH: + strcpy((char *)mtd->type_str, "nor"); + break; + case MTD_NANDFLASH: + strcpy((char *)mtd->type_str, "nand"); + break; + case MTD_MLCNANDFLASH: + strcpy((char *)mtd->type_str, "mlc-nand"); + break; + case MTD_DATAFLASH: + strcpy((char *)mtd->type_str, "dataflash"); + break; + case MTD_UBIVOLUME: + strcpy((char *)mtd->type_str, "ubi"); + break; + default: + goto out_close; + } + + if (ui.flags & MTD_WRITEABLE) + mtd->writable = 1; + mtd->subpage_size = mtd->min_io_size; + + close(fd); + + /* + * Unfortunately, the device name is not available via ioctl, and + * we have to parse /proc/mtd to get it. + */ + ret = proc_parse_start(&pi); + if (ret) + return -1; + + while (proc_parse_next(&pi)) { + if (pi.mtd_num == mtd->mtd_num) { + strcpy((char *)mtd->name, pi.name); + return 0; + } + } + + errmsg("mtd%d not found in \"%s\"", mtd->mtd_num, MTD_PROC_FILE); + errno = ENOENT; + return -1; + +out_close: + close(fd); + return -1; +} + +/** + * legacy_get_dev_info1 - legacy version of 'mtd_get_dev_info1()'. + * @node: name of the MTD device node + * @mtd: the MTD device information is returned here + * + * This function is similar to 'mtd_get_dev_info1()' and has the same + * conventions. + */ +int legacy_get_dev_info1(int mtd_num, struct mtd_dev_info *mtd) +{ + char node[sizeof(MTD_DEV_PATT) + 20]; + + sprintf(node, MTD_DEV_PATT, mtd_num); + return legacy_get_dev_info(node, mtd); +} diff --git a/device/gxx-linux/fpgaupdate/libmtd_xalloc.h b/device/gxx-linux/fpgaupdate/libmtd_xalloc.h new file mode 100644 index 0000000..532b80f --- /dev/null +++ b/device/gxx-linux/fpgaupdate/libmtd_xalloc.h @@ -0,0 +1,106 @@ +/* + * memory wrappers + * + * Copyright (c) Artem Bityutskiy, 2007, 2008 + * Copyright 2001, 2002 Red Hat, Inc. + * 2001 David A. Schleef + * 2002 Axis Communications AB + * 2001, 2002 Erik Andersen + * 2004 University of Szeged, Hungary + * 2006 KaiGai Kohei + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See + * the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef __MTD_UTILS_XALLOC_H__ +#define __MTD_UTILS_XALLOC_H__ + +#include +#include +#include + +/* + * Mark these functions as unused so that gcc does not emit warnings + * when people include this header but don't use every function. + */ + +__attribute__((unused)) +static void *xmalloc(size_t size) +{ + void *ptr = malloc(size); + + if (ptr == NULL && size != 0) + sys_errmsg_die("out of memory"); + return ptr; +} + +__attribute__((unused)) +static void *xcalloc(size_t nmemb, size_t size) +{ + void *ptr = calloc(nmemb, size); + + if (ptr == NULL && nmemb != 0 && size != 0) + sys_errmsg_die("out of memory"); + return ptr; +} + +__attribute__((unused)) +static void *xzalloc(size_t size) +{ + return xcalloc(1, size); +} + +__attribute__((unused)) +static void *xrealloc(void *ptr, size_t size) +{ + ptr = realloc(ptr, size); + if (ptr == NULL && size != 0) + sys_errmsg_die("out of memory"); + return ptr; +} + +__attribute__((unused)) +static char *xstrdup(const char *s) +{ + char *t; + + if (s == NULL) + return NULL; + t = strdup(s); + if (t == NULL) + sys_errmsg_die("out of memory"); + return t; +} + +#ifdef _GNU_SOURCE + +__attribute__((unused)) +static int xasprintf(char **strp, const char *fmt, ...) +{ + int cnt; + va_list ap; + + va_start(ap, fmt); + cnt = vasprintf(strp, fmt, ap); + va_end(ap); + + if (cnt == -1) + sys_errmsg_die("out of memory"); + + return cnt; +} +#endif + +#endif /* !__MTD_UTILS_XALLOC_H__ */ diff --git a/device/gxx-linux/fpgaupdate/xmake.lua b/device/gxx-linux/fpgaupdate/xmake.lua new file mode 100644 index 0000000..265d0d3 --- /dev/null +++ b/device/gxx-linux/fpgaupdate/xmake.lua @@ -0,0 +1,9 @@ +add_rules("mode.debug", "mode.release") + +target("fpgaupdate") + set_kind("static") + add_syslinks("pthread") + add_files("*.cpp") + add_files("*.c") + add_includedirs(".", { public = true}) + add_packages("common") \ No newline at end of file diff --git a/device/gxx-linux/imgproc/CSizedetect.cpp b/device/gxx-linux/imgproc/CSizedetect.cpp new file mode 100644 index 0000000..ed51c89 --- /dev/null +++ b/device/gxx-linux/imgproc/CSizedetect.cpp @@ -0,0 +1,287 @@ +#include "CSizedetect.h" +#include +#include +#include +#include "ImageProcess_Public.h" +#include "commondef.h" + +void threshold_Mat(const cv::Mat& src, cv::Mat& dst, double thre) +{ + if (src.channels() == 3) + { +#ifdef USE_ONENCL + if (cl_res.context) + transforColor_threshold_opencl(src, dst, static_cast(thre)); + else +#endif + { + cv::Mat gray = hg::transforColor(src); + cv::threshold(gray, dst, thre, 255, cv::THRESH_BINARY); + gray.release(); + } + } + else + cv::threshold(src, dst, thre, 255, cv::THRESH_BINARY); + } + +void findContours(const cv::Mat& src, std::vector>& contours, std::vector& hierarchy, int retr, int method, cv::Point offset) +{ +#if CV_VERSION_REVISION == 6 + CvMat c_image = src; +#else + CvMat c_image; + c_image = cvMat(src.rows, src.cols, src.type(), src.data); + c_image.step = src.step[0]; + c_image.type = (c_image.type & ~cv::Mat::CONTINUOUS_FLAG) | (src.flags & cv::Mat::CONTINUOUS_FLAG); +#endif + cv::MemStorage storage(cvCreateMemStorage()); + CvSeq* _ccontours = nullptr; + +#if CV_VERSION_REVISION == 6 + cvFindContours(&c_image, storage, &_ccontours, sizeof(CvContour), retr, method, CvPoint(offset)); +#else + cvFindContours(&c_image, storage, &_ccontours, sizeof(CvContour), retr, method, CvPoint{ offset.x, offset.y }); +#endif + if (!_ccontours) + { + contours.clear(); + return; + } + cv::Seq all_contours(cvTreeToNodeSeq(_ccontours, sizeof(CvSeq), storage)); + size_t total = all_contours.size(); + contours.resize(total); + + cv::SeqIterator it = all_contours.begin(); + for (size_t i = 0; i < total; i++, ++it) + { + CvSeq* c = *it; + reinterpret_cast(c)->color = static_cast(i); + int count = c->total; + int* data = new int[static_cast(count * 2)]; + cvCvtSeqToArray(c, data); + for (int j = 0; j < count; j++) + { + contours[i].push_back(cv::Point(data[j * 2], data[j * 2 + 1])); + } + delete[] data; + } + + hierarchy.resize(total); + it = all_contours.begin(); + for (size_t i = 0; i < total; i++, ++it) + { + CvSeq* c = *it; + int h_next = c->h_next ? reinterpret_cast(c->h_next)->color : -1; + int h_prev = c->h_prev ? reinterpret_cast(c->h_prev)->color : -1; + int v_next = c->v_next ? reinterpret_cast(c->v_next)->color : -1; + int v_prev = c->v_prev ? reinterpret_cast(c->v_prev)->color : -1; + hierarchy[i] = cv::Vec4i(h_next, h_prev, v_next, v_prev); + } + + storage.release(); +} + +std::vector getMaxContour(const std::vector>& contours, const std::vector& hierarchy) +{ + std::vector maxContour; + if (contours.size() < 1) return {}; + + for (size_t i = 0, length = hierarchy.size(); i < length; i++) + if (hierarchy[i][3] == -1) + for (const auto& item : contours[i]) + maxContour.push_back(item); + + return maxContour; +} + +cv::RotatedRect getBoundingRect(const std::vector& contour) +{ + if (contour.empty()) return {}; + + cv::RotatedRect rect = minAreaRect(contour); + if (rect.angle < -45) + { + rect.angle += 90; + float temp = rect.size.width; + rect.size.width = rect.size.height; + rect.size.height = temp; + } + if (rect.angle > 45) + { + rect.angle -= 90; + float temp = rect.size.width; + rect.size.width = rect.size.height; + rect.size.height = temp; + } + + return rect; +} + +CSizedetect::CSizedetect(int papaertype) : m_papertype(papaertype), + m_horThre(70), + m_verThre(100) +{ + +} + +CSizedetect::~CSizedetect(void) {} + +void CSizedetect::SetPapertype(int papertype) { + m_papertype=papertype; +} +static int x=0; +int CSizedetect::preprocess(cv::Mat &mat, void *unused) +{ + if(!mat.empty()) + { + float width, height; + + cv::Mat thre; + hg::threshold_Mat(mat, thre, 40); + cv::Mat element = getStructuringElement(cv::MORPH_RECT, cv::Size(8, 1)); + cv::morphologyEx(thre, thre, cv::MORPH_OPEN, element, cv::Point(-1, -1), 1, cv::BORDER_CONSTANT, cv::Scalar::all(0)); + std::vector> contours; + std::vector hierarchy; + hg::findContours(thre, contours, hierarchy, cv::RETR_EXTERNAL); + std::vector maxContour = hg::getMaxContour(contours, hierarchy); + cv::RotatedRect rect = hg::getBoundingRect(maxContour); + width = rect.size.width; + height = rect.size.height; + printf("\n width =%f ,height = %f ",width,height); + //fastMeasureSize(mat.data,mat.cols,mat.rows,mat.channels(),width,height,40,20,5); + HGSize dstSize; + if(m_supportPaper.count((PaperSize)m_papertype)>0)//包含设置的幅面 + { + dstSize=m_supportPaper[(PaperSize)m_papertype]; + if((width>(dstSize.width+m_horThre))||(width<(dstSize.width-m_horThre))||(height > (dstSize.height+m_verThre))||(height < (dstSize.height-m_verThre))) + { + return 1; + } + } + } + return 0; +} + +void CSizedetect::rotate(float &x, float &y, float angle) +{ + float a = x * cos(angle) - y * sin(angle); + float b = x * sin(angle) + y * cos(angle); + x = a; + y = b; +} + +void CSizedetect::minAeaRect(const float *x, const float *y, int size, float &width, float &height) +{ + float area = width * height; + // rotate 0~90 degree + for (int i = 0; i < 91; ++i) + { + float tmpx = x[0], tmpy = y[0]; + rotate(tmpx, tmpy, i); + float xl = tmpx, xr = tmpx, yt = tmpy, yb = tmpy; + // traverse all points + for (int j = 1; j < size; ++j) + { + tmpx = x[j]; + tmpy = y[j]; + rotate(tmpx, tmpy, i); + if (tmpx < xl) + xl = tmpx; + if (tmpx > xr) + xr = tmpx; + if (tmpy < yb) + yb = tmpy; + if (tmpy > yt) + yt = tmpy; + } + float xx = xr - xl, yy = yt - yb; + if (area > xx * yy) + { + area = xx * yy; + height = xx; + width = yy; + } + } + + // + if (height < width) + { + float tmp = height; + height = width; + width = tmp; + } +} + +void CSizedetect::fastMeasureSize(const unsigned char *data, int src_width, int src_height, int channels, float &dst_width, float &dst_height, int threshold, int indent, int step) +{ + int bytesPerLine = src_width * channels; + int indent_x = indent * channels; + int indent_y = indent; + int step_x = step * channels; + int step_y = step; + + int total_count = (bytesPerLine + src_height) * 2 / indent; + if (total_count < 1) + return; + + float *points_x = new float[total_count]; + float *points_y = new float[total_count]; + + int points_count = 0; + //top + int rows = src_height / 2; + for (int x = 0; x < bytesPerLine; x += indent_x) + for (int y = 0; y < rows; y += step_y) + if (data[y * bytesPerLine + x] > threshold) + { + points_x[points_count] = x / channels; + points_y[points_count] = y; + points_count++; + break; + } + + //bottom + for (int x = 0; x < bytesPerLine; x += indent_x) + for (int y = src_height - 1; y >= rows; y -= step_y) + if (data[y * bytesPerLine + x] > threshold) + { + points_x[points_count] = x / channels; + points_y[points_count] = y; + points_count++; + break; + } + + //left + int cols = bytesPerLine / 2; + for (int y = 0; y < src_height; y += indent) + for (int x = 0; x < cols; x += step_x) + if (data[y * bytesPerLine + x] > threshold) + { + points_x[points_count] = x / channels; + points_y[points_count] = y; + points_count++; + break; + } + + //right + for (int y = 0; y < src_height; y += indent) + for (int x = bytesPerLine - 1; x >= cols; x -= step_x) + if (data[y * bytesPerLine + x] > threshold) + { + points_x[points_count] = x / channels; + points_y[points_count] = y; + points_count++; + break; + } + + if (points_count > 3) + { + dst_width = src_width; + dst_height = src_height; + minAeaRect(points_x, points_y, points_count, dst_width, dst_height); + } + + delete[] points_x; + delete[] points_y; +} + diff --git a/device/gxx-linux/imgproc/CSizedetect.h b/device/gxx-linux/imgproc/CSizedetect.h new file mode 100644 index 0000000..a574a81 --- /dev/null +++ b/device/gxx-linux/imgproc/CSizedetect.h @@ -0,0 +1,40 @@ +#pragma once +#include "IPreproc.h" +#include +#include "commondef.h" + +class CSizedetect : public IPreproc +{ +public: + explicit CSizedetect(int papaertype); + virtual ~CSizedetect(void); + virtual int preprocess(cv::Mat& mat,void* unused); + void SetPapertype(int papertype); +private: + void rotate(float& x, float& y, float angle); + void minAeaRect(const float* x, const float* y, int size, float& width, float& height); + void fastMeasureSize(const unsigned char* data, int src_width, int src_height, int channels, float& dst_width, float& dst_height, int threshold = 40, int indent = 20, int step = 5); +private: + int m_papertype; + int m_horThre; + int m_verThre; + std::map m_supportPaper={ + {PaperSize::G400_A3,HGSize{2338,3307}}, + {PaperSize::G400_A4,HGSize{1653,2338}}, + {PaperSize::G400_A4R,HGSize{2338,1653}}, + {PaperSize::G400_A5,HGSize{1165,1653}}, + {PaperSize::G400_A5R,HGSize{1653,1165}}, + {PaperSize::G400_A6,HGSize{826,1165}}, + {PaperSize::G400_A6R,HGSize{1165,826}}, + {PaperSize::G400_B4,HGSize{2023,2866}}, + {PaperSize::G400_B5,HGSize{1385,1968}}, + {PaperSize::G400_B5R,HGSize{1968,1385}}, + {PaperSize::G400_B6R,HGSize{1433,1007}}, + {PaperSize::G400_B6,HGSize{1007,1433}}, + {PaperSize::G400_DOUBLELETTER,HGSize{2200,3400}}, + {PaperSize::G400_LEGAL,HGSize{1700,2800}}, + {PaperSize::G400_LETTER,HGSize{1700,2640}}, + {PaperSize::G400_LONGLETTER,HGSize{2040,2640}}, + {PaperSize::G400_MAXSIZE,HGSize{2338,6614}} + }; +}; \ No newline at end of file diff --git a/device/gxx-linux/imgproc/IPreproc.cpp b/device/gxx-linux/imgproc/IPreproc.cpp new file mode 100644 index 0000000..32abc57 --- /dev/null +++ b/device/gxx-linux/imgproc/IPreproc.cpp @@ -0,0 +1,5 @@ +#include "IPreproc.h" + +IPreproc::IPreproc(void){} + +IPreproc::~IPreproc(void){} \ No newline at end of file diff --git a/device/gxx-linux/imgproc/IPreproc.h b/device/gxx-linux/imgproc/IPreproc.h new file mode 100644 index 0000000..e9e97fb --- /dev/null +++ b/device/gxx-linux/imgproc/IPreproc.h @@ -0,0 +1,13 @@ +#pragma once +#include +#include + +class IPreproc +{ +public: + IPreproc(void); + + virtual ~IPreproc(void); + + virtual int preprocess(cv::Mat& mat,void* unused=nullptr) = 0; +}; \ No newline at end of file diff --git a/device/gxx-linux/imgproc/ImageProcess b/device/gxx-linux/imgproc/ImageProcess new file mode 160000 index 0000000..71c8aa0 --- /dev/null +++ b/device/gxx-linux/imgproc/ImageProcess @@ -0,0 +1 @@ +Subproject commit 71c8aa046e57b362bf84d23204b202daf949264f diff --git a/device/gxx-linux/imgproc/cvimagex.cpp b/device/gxx-linux/imgproc/cvimagex.cpp new file mode 100644 index 0000000..960a319 --- /dev/null +++ b/device/gxx-linux/imgproc/cvimagex.cpp @@ -0,0 +1,32 @@ +#include "cvimagex.h" +#include "opencv2/opencv.hpp" + +CvImageX::CvImageX(MatPtr image) +{ + this->image = image; +} + +unsigned char* CvImageX::data() +{ + return image->data; +} + +int CvImageX::width() +{ + return image->cols; +} + +int CvImageX::height() +{ + return image->rows; +} + +int CvImageX::datasize() +{ + return height()*image->step; +} + +int CvImageX::type() +{ + return image->type(); +} \ No newline at end of file diff --git a/device/gxx-linux/imgproc/cvimagex.h b/device/gxx-linux/imgproc/cvimagex.h new file mode 100644 index 0000000..ed62cc1 --- /dev/null +++ b/device/gxx-linux/imgproc/cvimagex.h @@ -0,0 +1,21 @@ +#include "imgproc.h" + +namespace cv +{ + class Mat; +} + +typedef std::shared_ptr MatPtr; + +class CvImageX : public IImage +{ +public: + CvImageX(MatPtr image); + virtual unsigned char* data(); + virtual int width(); + virtual int height(); + virtual int type(); + virtual int datasize(); +private: + MatPtr image; +}; \ No newline at end of file diff --git a/device/gxx-linux/imgproc/iimage.h b/device/gxx-linux/imgproc/iimage.h new file mode 100644 index 0000000..df6a566 --- /dev/null +++ b/device/gxx-linux/imgproc/iimage.h @@ -0,0 +1,34 @@ +#pragma once +#include +#include +#include + +class IImage +{ +public: + virtual ~IImage(){} + + virtual unsigned char* data() = 0; + virtual int width() = 0; + virtual int height() = 0; + virtual int type() = 0; + virtual int stride() = 0; + virtual int datasize() = 0; +}; + +typedef std::shared_ptr IImagePtr; + +class IImagePair +{ +public: + IImagePair(IImagePtr imagef, IImagePtr imageb) + { + this->imagef = imagef; + this->imageb = imageb; + } + + IImagePtr imagef; + IImagePtr imageb; +}; + +typedef std::shared_ptr IImagePairPtr; \ No newline at end of file diff --git a/device/gxx-linux/imgproc/iimageencode.h b/device/gxx-linux/imgproc/iimageencode.h new file mode 100644 index 0000000..e95ecb5 --- /dev/null +++ b/device/gxx-linux/imgproc/iimageencode.h @@ -0,0 +1,18 @@ +#pragma once +#include "imemory.h" +#include "imgproc.h" + +namespace cv +{ + class Mat; +} + +class IImageEncode +{ +public: + virtual ~IImageEncode(){} + + virtual MemoryPtr encode(cv::Mat& image) = 0; +}; + +typedef std::shared_ptr ImageEncodePtr; \ No newline at end of file diff --git a/device/gxx-linux/imgproc/imageencode.cpp b/device/gxx-linux/imgproc/imageencode.cpp new file mode 100644 index 0000000..da70500 --- /dev/null +++ b/device/gxx-linux/imgproc/imageencode.cpp @@ -0,0 +1,57 @@ +#include "imageencode.h" +#include "memoryex.h" +#include "opencv2/opencv.hpp" +#include "FreeImagePlus.h" +#include "StopWatch.h" + +BmpImageEncode::~BmpImageEncode() +{ +} + +MemoryPtr BmpImageEncode::encode(cv::Mat &image) +{ + fipImage fimage(FIT_BITMAP, image.cols, image.rows, image.type() == CV_8UC3 ? 24 : 8); + int byteWidth = image.elemSize() * image.cols; + for (int i = 0; i < fimage.getHeight(); i++) + memcpy(fimage.getScanLine(i), image.ptr(i), byteWidth); + + FipMemoryPtr mem(new FipMemory()); + auto &mio = mem->io(); + + fimage.saveToMemory(FIF_PNG, mio); + return mem; +} + +JpegImageEncode::JpegImageEncode(bool bwimg) +{ + if (!bwimg) + { + compression_params.push_back(cv::IMWRITE_JPEG_QUALITY); + compression_params.push_back(100); + } + else{ + compression_params.push_back(/*CV_IMWRITE_PNG_STRATEGY*/17); + compression_params.push_back(cv::IMWRITE_PNG_STRATEGY_FIXED); + } + m_bwimg = bwimg; +} + +JpegImageEncode::~JpegImageEncode() +{ +} +MemoryPtr JpegImageEncode::encode(cv::Mat &image) +{ + VectorMemroyPtr mem = VectorMemroyPtr(new VectorMemroy()); + StopWatch sw; + cv::imencode(m_bwimg ? ".png" : ".jpg", image, mem->buf(), compression_params); + //printf("encode time = %0.2f \n", sw.elapsed_ms()); + return mem; +} + +MemoryPtr buff2mem(void *data, int size) +{ + auto mem = std::shared_ptr(new VectorMemroy()); + mem->buf().resize(size); + // memcpy(mem->buf().data(), data, size); + return mem; +} \ No newline at end of file diff --git a/device/gxx-linux/imgproc/imageencode.h b/device/gxx-linux/imgproc/imageencode.h new file mode 100644 index 0000000..f98b62f --- /dev/null +++ b/device/gxx-linux/imgproc/imageencode.h @@ -0,0 +1,31 @@ +#pragma once +#include "iimageencode.h" +#include + +// typedef struct tagBITMAPFILEHEADER { +// WORD bfType; +// DWORD bfSize; +// WORD bfReserved1; +// WORD bfReserved2; +// DWORD bfOffBits; +// } BITMAPFILEHEADER, *PBITMAPFILEHEADER; + +class BmpImageEncode : public IImageEncode +{ +public: + virtual ~BmpImageEncode(); + + virtual MemoryPtr encode(cv::Mat& image); +}; + +class JpegImageEncode : public IImageEncode +{ +public: + JpegImageEncode(bool bwimg); + virtual ~JpegImageEncode(); + virtual MemoryPtr encode(cv::Mat& image); + +private: + std::vector compression_params; + bool m_bwimg; +}; diff --git a/device/gxx-linux/imgproc/imemory.h b/device/gxx-linux/imgproc/imemory.h new file mode 100644 index 0000000..65b8da7 --- /dev/null +++ b/device/gxx-linux/imgproc/imemory.h @@ -0,0 +1,18 @@ +#pragma once +#include +#include +#include + +class IMemory +{ +public: + virtual ~IMemory(){} + + virtual unsigned char* data() = 0; + virtual size_t size() = 0; +}; + +typedef std::shared_ptr MemoryPtr; + + +MemoryPtr buff2mem(void* data, int size); \ No newline at end of file diff --git a/device/gxx-linux/imgproc/imgproc.h b/device/gxx-linux/imgproc/imgproc.h new file mode 100644 index 0000000..ebe1fb0 --- /dev/null +++ b/device/gxx-linux/imgproc/imgproc.h @@ -0,0 +1,19 @@ +#pragma once +#include "iimage.h" + +class IImPorc +{ +public: + virtual ~IImPorc(){} + virtual IImagePairPtr proc(IImagePairPtr image) = 0; +}; + +class IImageWrite +{ +public: + virtual ~IImageWrite() {} + + virtual bool save(std::string path, std::vector params) = 0; +}; + +typedef std::shared_ptr ImageWritePtr; \ No newline at end of file diff --git a/device/gxx-linux/imgproc/memoryex.h b/device/gxx-linux/imgproc/memoryex.h new file mode 100644 index 0000000..e1652bd --- /dev/null +++ b/device/gxx-linux/imgproc/memoryex.h @@ -0,0 +1,64 @@ +#pragma once +#include "imemory.h" + +class VectorMemroy : public IMemory +{ +public: + virtual unsigned char* data() + { + return m_data.empty() ? nullptr : &m_data[0]; + } + + virtual size_t size() + { + return m_data.size(); + } + + std::vector& buf() + { + return m_data; + } + + + void resize(int size) + { + m_data.resize(size); + } + +private: + std::vector m_data; +}; + +typedef std::shared_ptr VectorMemroyPtr; + + +class FipMemory : public IMemory +{ +public: + FipMemory(){} + virtual unsigned char *data() + { + unsigned char *p; + DWORD size; + mio.acquire(&p, &size); + return p; + } + + virtual size_t size() + { + unsigned char *p; + DWORD size; + mio.acquire(&p, &size); + return size; + } + + fipMemoryIO &io() + { + return mio; + } + +private: + fipMemoryIO mio; +}; + +typedef std::shared_ptr FipMemoryPtr; \ No newline at end of file diff --git a/device/gxx-linux/imgproc/xmake.lua b/device/gxx-linux/imgproc/xmake.lua new file mode 100644 index 0000000..5609ee6 --- /dev/null +++ b/device/gxx-linux/imgproc/xmake.lua @@ -0,0 +1,13 @@ +add_rules("mode.debug", "mode.release") + +target("gimgproc") + set_kind("static") + add_syslinks("pthread") + add_files("*.cpp") + add_files("ImageProcess/*.cpp") + del_files("ImageProcess/ImageApplyBarCodeRecognition.cpp") + add_includedirs("ImageProcess", {public = true}) + add_links("opencv_core", "opencv_imgproc", "opencv_imgcodecs", "FreeImage",{ public = true}) + add_includedirs(".", { public = true}) + add_defines("_DIRECT_BUILD") + add_packages("common") \ No newline at end of file diff --git a/device/gxx-linux/mdfusbconfig b/device/gxx-linux/mdfusbconfig new file mode 100644 index 0000000..59abe80 Binary files /dev/null and b/device/gxx-linux/mdfusbconfig differ diff --git a/device/gxx-linux/motorboard/motorboard.cpp b/device/gxx-linux/motorboard/motorboard.cpp new file mode 100644 index 0000000..58b590b --- /dev/null +++ b/device/gxx-linux/motorboard/motorboard.cpp @@ -0,0 +1,432 @@ +#include "motorboard.h" +#include +#include "PinMonitor.h" +#include "uartregsaccess.h" +#include +#include "stringex.hpp" +#include "config.h" +#include "StopWatch.h" +#include "applog.h" +#include "Capturer.h" + +static const std::string loggername = "MotorBoard"; + + +MotorBoard::MotorBoard() + : devPort(MOTOR_UART), + m_glue({nullptr, nullptr, nullptr,nullptr,nullptr,nullptr}) +{ + LOG_INIT(); + m_uartEnable.reset(new GpioOut(152)); + m_uartEnable->setDirection(Gpio::out); + // m_uartEnable->setEdge(Gpio::rising); + //m_uartEnable->setValue(Gpio::Low); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); + m_regsAccess.reset(new UartRegsAccess(devPort, bauds, 0x07, 0x87)); + m_intPinMonitor.reset(new PinMonitor(intport, std::bind(&MotorBoard::pin_call, this, std::placeholders::_1))); + //m_scansensorMonitor.reset(new PinMonitor(149, std::bind(&MotorBoard::scansensor_call, this, std::placeholders::_1))); + //m_uartEnable->setValue(Gpio::High); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); + m_os_mode = os_mode(); +} +static int paperinnum = 0; +void MotorBoard::start() +{ + keep_last_paper=false; + unsigned int val; + SMBCONFIG *smbc = (SMBCONFIG *)(&val); + read(0, val); + smbc->enable = 0; + write(0, val); + smbc->enable = 1; + write(0, val); + paperinnum =0 ; +} + +void MotorBoard::stop() +{ + unsigned int val; + SMBCONFIG *smbc = (SMBCONFIG *)(&val); + read(0, val); + smbc->enable = 0; + write(0, val); +} + + +void MotorBoard::pick_paper(void) +{ + unsigned int val; + SMBCONFIG *smbc = (SMBCONFIG *)(&val); + read(0x00, val); + smbc->pick_paper = 0; + write(0x00, val); + smbc->pick_paper = 1; + write(0x00, val); + // smbc->pick_paper = 0; + // write(0x00, val); +} + +void MotorBoard::clear_error() +{ + unsigned int val; + SMBCONFIG *smbc = (SMBCONFIG *)(&val); + read(0, val); + smbc->error_clean = 1; + write(0, val); + smbc->error_clean = 0; + write(0, val); +} + +bool MotorBoard::wait_paper_in(int timeout_ms) +{ + return cv_paper_in.wait(timeout_ms); +} + +bool MotorBoard::wait_paper_out(int timeout_ms) +{ + return cv_paper_out.wait(timeout_ms); +} + +bool MotorBoard::wait_error(int timeout_ms) +{ + return cv_error.wait(timeout_ms); +} + +bool MotorBoard::wait_done(int timeout_ms) +{ + return cv_scan_done.wait(timeout_ms); +} + +int MotorBoard::os_mode() +{ + unsigned int val; + read(0x02, val); + SMB_MODE *smb_mode = (SMB_MODE *)&val; + return smb_mode->scan_mode; +} + +bool MotorBoard::paper_ready() +{ + unsigned int val; + read(0x02, val); + SMB_MODE *smb_mode = (SMB_MODE *)&val; + return smb_mode->feeding_paper_ready; +} + +bool MotorBoard::is_scanning() +{ + unsigned int val; + read(0x02, val); + SMB_MODE *smb_mode = (SMB_MODE *)&val; + return smb_mode->work_status; +} + +int MotorBoard::paper_counter() +{ + unsigned int val; + read(0x02, val); + SMBMODE *smb_mode = (SMBMODE *)&val; + return smb_mode->scan_num; +} + +bool MotorBoard::set_paper_inspect_param(unsigned int value /* = 1000 */) +{ + unsigned int val; + if (!read(0x04, val)) + return false; + SMBCONFIGEXT *smb_config_ext = (SMBCONFIGEXT *)&val; + smb_config_ext->error_range_set = value; + return write(0x04, val); +} + +bool MotorBoard::get_keeplastpaper(){ + return keep_last_paper; +} + +bool MotorBoard::set_paper_inpect_info(unsigned int value) +{ + unsigned int val; + if (!read(0x04, val)) + return false; + SMBCONFIGEXT *smb_config_ext = (SMBCONFIGEXT *)&val; + smb_config_ext->paper_infor = value; + return write(0x04, val); +} + +bool MotorBoard::set_paper_inspect(bool enable /* = true */) +{ + unsigned int val; + if (!read(0x04, val)) + return false; + SMBCONFIGEXT *smb_config_ext = (SMBCONFIGEXT *)&val; + smb_config_ext->paper_size_check_en = enable; + return write(0x04, val); +} + +bool MotorBoard::set_double_inpect(bool enable) +{ + unsigned int val; + if (!read(0x00, val)) + return false; + SMBCONFIG *smb_config = (SMBCONFIG *)&val; + smb_config->double_paper = enable; + return write(0x00, val); +} +bool MotorBoard::get_doublle_inpect() +{ +} + +bool MotorBoard::set_auto_paper(bool enable){ + unsigned int val; + if (!read(0x00, val)) + return false; + SMBCONFIG *smb_config = (SMBCONFIG *)&val; + smb_config->paper_auto_module = enable; + return write(0x00, val); +} + +bool MotorBoard::set_staple_inpect(bool enable) +{ + unsigned int val; + if (!read(0x00, val)) + return false; + SMBCONFIG *smb_config = (SMBCONFIG *)&val; + smb_config->staple_enable = enable; + return write(0x00, val); +} + +bool MotorBoard::get_staple_inpect() +{ +} +bool MotorBoard::set_color_mode(int mode) +{ + unsigned int val; + if (!read(0x00, val)) + return false; + SMBCONFIG *smb_config = (SMBCONFIG *)&val; + smb_config->color_mode = mode; + return write(0x00, val); +} +int MotorBoard::get_color_mode() +{ +} + +bool MotorBoard::set_speed_mode(int mode) +{ + unsigned int val; + if (!read(0x00, val)) + return false; + + SMBCONFIG *smb_config = (SMBCONFIG *)&val; + smb_config->speed_set_enable = 1; + smb_config->v_setting = mode; + write(0x00, val); + smb_config->speed_set_enable = 0; + return write(0x00, val); +} + +int MotorBoard::get_speed_mode() +{ + unsigned int val; + if (!read(0x00, val)) + return -1; + SMBCONFIG *smb_config = (SMBCONFIG *)&val; + return smb_config->v_setting; +} + +bool MotorBoard::set_cuospeed(unsigned int speed) +{ + unsigned int val; + if (!read(0x04, val)) + return -1; + SMB_CONFIG_EXT *smb_config = (SMB_CONFIG_EXT *)&val; + smb_config->cuo_speed = speed; + return write(0x04,val); + +} + +std::shared_ptr MotorBoard::regs() +{ + return m_regsAccess; +} + +static int pinindex=0; +void MotorBoard::pin_call(unsigned int pinNum) +{ + static int index = 0; + LOG_TRACE(string_format("pin %d", index++)); + int os_m = os_mode(); + if (m_os_mode != os_m) + { + m_os_mode = os_m; + cv_os_mode.notify_all(); + if (m_glue.m_os_mode_call) + m_glue.m_os_mode_call(m_os_mode); + } + + if (m_os_mode) + { + LOG_TRACE("not scan mode"); + return; + } + + unsigned int val; + SMBSTATUS *smb_status = (SMBSTATUS *)&val; + if (!read(0x01, val)) + LOG_TRACE("read error"); + LOG_TRACE(string_format("status %08x", val)); + //printf("\n reg 1 val =%d",val); + if(val & 0x800){ + //printf("\n keep_last_paper "); + keep_last_paper=true; + } + if(val & 0x1000) + { + if(m_glue.m_set_sleepmode_call) + m_glue.m_set_sleepmode_call(val & 0xf000); + } + if(val & 0x80000) + { + if(m_glue.m_mltop_call) + m_glue.m_mltop_call(val); + } + if(smb_status->paper_auto) + { + if(m_glue.m_auto_paper) + m_glue.m_auto_paper(1); + } + if (val & 0xAFE) + { + cv_error.notify_all(); + if (m_glue.m_error_call) + m_glue.m_error_call(val & 0x30efe); //0xefe index of 16:aquireimage error index of bit 17 :size check error + + LOG_TRACE("error"); + return; + } + else + { + if (!smb_status->scan_pulse) + { + cv_paper_in.notify_all(); + LOG_TRACE("paper in"); + printf("\n paper pulse num = %d ", paperinnum++); + } + + if(smb_status->paper_left) + { + cv_paper_out.notify_all(); + LOG_TRACE("paper left"); + } + } + + if (val & 0x400) + { + LOG_TRACE("done"); + cv_scan_done.notify_all(); + if (m_glue.m_scan_done_call) + m_glue.m_scan_done_call(); + } +} + +void MotorBoard::set_capture(std::shared_ptr cap) +{ + m_cap= cap; +} + +void MotorBoard::scansensor_call(unsigned int pinNum) +{ + // static int indexscansensor=0; + // m_uartEnable->setValue(Gpio::High); + // LOG_TRACE(string_format(" gpio149 call times -%d ", indexscansensor++)); + // cv_paper_in.notify_all(); + // m_uartEnable->setValue(Gpio::Low); +} +bool MotorBoard::write(unsigned int addr, unsigned int val) +{ + return m_regsAccess->write(addr, val); +} + +bool MotorBoard::read(unsigned int addr, unsigned int &val) +{ + return m_regsAccess->read(addr, val); +} + +void MotorBoard::set_callbacks(MotorBoardGlue glue) +{ + m_glue = glue; +} + +bool MotorBoard::set_screw_inpect(bool enable) +{ + unsigned int val; + if (!read(0x00, val)) + return false; + SMBCONFIG *smb_config = (SMBCONFIG *)&val; + smb_config->skew_enable = enable; + return write(0x00, val); +} +bool MotorBoard::get_screw_inpect() +{ + unsigned int val; + read(0x00, val); + SMBCONFIG *smb_mode = (SMBCONFIG *)&val; + return smb_mode->skew_enable; +} + +bool MotorBoard::set_screw_level(int level) +{ + unsigned int val; + if (!read(0x00, val)) + return false; + SMBCONFIG *smb_config = (SMBCONFIG *)&val; + smb_config->skew_parameter = level; + return write(0x00, val); +} + +bool MotorBoard::set_long_paper(bool enable) +{ + unsigned int val; + if (!read(0x00, val)) + return false; + SMBCONFIG *smb_config = (SMBCONFIG *)&val; + smb_config->paper = enable; + return write(0x00, val); +} + +int MotorBoard::get_screw_level() +{ + unsigned int val; + auto ret= read(0x00, val); + if(!ret) + return -1; + SMBCONFIG *smb_mode = (SMBCONFIG *)&val; + return smb_mode->skew_parameter; +} + +bool MotorBoard::en_testbit(bool en) +{ + unsigned int val; + auto ret= read(0x00, val); + if(!ret) + return -1; + SMBCONFIG *smb_mode = (SMBCONFIG *)&val; + smb_mode->testbit = en?1:0; + return write(0x00,val); +} + +void MotorBoard::release_statecontrol() +{ + set_auto_paper(false); + m_regsAccess.reset(); + m_intPinMonitor.reset(); + +} + +void MotorBoard::init_statecontrol() +{ + m_regsAccess.reset(new UartRegsAccess(devPort, bauds, 0x07, 0x87)); + m_intPinMonitor.reset(new PinMonitor(intport, std::bind(&MotorBoard::pin_call, this, std::placeholders::_1))); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); + m_os_mode = os_mode(); +} \ No newline at end of file diff --git a/device/gxx-linux/motorboard/motorboard.h b/device/gxx-linux/motorboard/motorboard.h new file mode 100644 index 0000000..f8c10fb --- /dev/null +++ b/device/gxx-linux/motorboard/motorboard.h @@ -0,0 +1,144 @@ +#pragma once +#include +#include +#include +#include +#include "autoevent.hpp" +#include "commondef.h" + +class IRegsAccess; +class PinMonitor; +class Gpio; +class ICapturer; + +typedef struct SMB_CONFIG +{ + unsigned int enable : 1; + unsigned int color_mode : 1; + unsigned int paper : 1; + unsigned int double_paper : 1; + unsigned int staple_enable : 1; // 5 + unsigned int error_clean : 1; + unsigned int status_init : 1; + unsigned int pick_paper : 1; + unsigned int skew_enable : 1; + unsigned int skew_parameter : 3; // 7 + unsigned int key_staple_enable : 1; + unsigned int iic_config_addr : 7; + unsigned int iic_config : 1; + unsigned int v_setting : 2; // 11 + unsigned int speed_set_enable : 1; + unsigned int scan_busy_motor_stop : 1; + unsigned int sleep_state : 1; + unsigned int sleep_parameter : 3; // 6 + unsigned int _600dpi : 1; + unsigned int paper_auto_module : 1; // 2 + unsigned int testbit : 1; +} SMBCONFIG; + +typedef struct SMB_STATUS +{ + unsigned int scan_pulse : 1; + unsigned int m1_paper_sin : 1; + unsigned int open_machine : 1; + unsigned int pick_failed : 1; + unsigned int stop_jam : 1; // 5 + unsigned int double_paper : 1; + unsigned int staple : 1; + unsigned int papertilted : 1; + unsigned int count_pulse : 1; + unsigned int scan_mode_change : 1; // 5 + unsigned int motor_status : 1; + unsigned int keep_last_paper : 1; + unsigned int sleep_set : 1; + unsigned int sleep_conf : 3; + unsigned int dsp_get_paper_error : 1; + unsigned int paper_check_result : 1; + unsigned int top_wuzhi : 1; + unsigned int ml_top_sin : 1; // 10 + unsigned int paper_auto : 1; + unsigned int paper_left : 1; +} SMBSTATUS; + +typedef struct SMB_MODE +{ + unsigned int scan_num : 14; + unsigned int scan_mode : 2; + unsigned int feeding_paper_ready : 1; + unsigned int work_status : 1; +} SMBMODE; + +typedef struct SMB_CONFIG_EXT +{ + unsigned int paper_infor : 5; + unsigned int paper_size_check_en : 1; + unsigned int error_range_set : 15; + unsigned int cuo_speed : 7; +} SMBCONFIGEXT; + +class MotorBoard +{ +public: + MotorBoard(); + + void start(); + void stop(); + void clear_error(); + void pick_paper(); + int os_mode(); + bool paper_ready(); + bool is_scanning(); + int paper_counter(); + bool set_long_paper(bool enable); + bool set_double_inpect(bool enable); + bool get_doublle_inpect(); + bool set_staple_inpect(bool enable); + bool set_auto_paper(bool enable); + bool get_staple_inpect(); + bool set_color_mode(int mode); + int get_color_mode(); + int get_speed_mode(); + bool set_speed_mode(int mode); + bool set_screw_inpect(bool enable); + bool get_screw_inpect(); + bool set_screw_level(int level); + int get_screw_level(); + bool wait_paper_out(int timeout_ms); + bool wait_paper_in(int timeout_ms); + bool wait_error(int timeout_ms); + bool wait_done(int timeout_ms); + bool read(unsigned int addr, unsigned int &val); + bool write(unsigned int addr, unsigned int val); + bool set_paper_inspect_param(unsigned int value = 1000); + bool set_paper_inpect_info(unsigned int value); + bool set_paper_inspect(bool enable = true); + bool set_cuospeed(unsigned int speed); + void set_callbacks(MotorBoardGlue glue); + bool get_keeplastpaper(); + bool en_testbit(bool en); + std::shared_ptr regs(); + void set_capture(std::shared_ptr cap); + void release_statecontrol(); + void init_statecontrol(); +private: + void pin_call(unsigned int pinNum); + void scansensor_call(unsigned int pinNum); + const std::string devPort; + const unsigned int bauds = 921600; + const int readflag = 0x07; + const int writeflag = 0x87; + const unsigned int intport = 151; + std::shared_ptr m_regsAccess; + std::shared_ptr m_intPinMonitor; + std::shared_ptr m_uartEnable; + AutoSemaphore cv_paper_out; + AutoSemaphore cv_paper_in; + AutoSemaphore cv_error; + AutoSemaphore cv_scan_done; + AutoSemaphore cv_os_mode; + unsigned int m_os_mode; + volatile bool keep_last_paper; + MotorBoardGlue m_glue; + std::shared_ptr m_cap; + bool b_paperin; +}; \ No newline at end of file diff --git a/device/gxx-linux/motorboard/xmake.lua b/device/gxx-linux/motorboard/xmake.lua new file mode 100644 index 0000000..62a0e90 --- /dev/null +++ b/device/gxx-linux/motorboard/xmake.lua @@ -0,0 +1,9 @@ +add_rules("mode.debug", "mode.release") + +target("motorboard") + set_kind("static") + add_syslinks("pthread") + add_files("*.cpp") + add_deps("regs", "deviceio", "conf", "applog", "capimage",{public = true}) + add_includedirs(".", { public = true}) + add_packages("common") \ No newline at end of file diff --git a/device/gxx-linux/packages/common.pkg/include/BlockingQueue.h b/device/gxx-linux/packages/common.pkg/include/BlockingQueue.h new file mode 100644 index 0000000..327a881 --- /dev/null +++ b/device/gxx-linux/packages/common.pkg/include/BlockingQueue.h @@ -0,0 +1,103 @@ +#pragma once +#include +#include +#include +#include +#include + +template +class BlockingQueue +{ +private: + BlockingQueue(const BlockingQueue &rhs); + BlockingQueue &operator=(const BlockingQueue &rhs); + mutable std::mutex _mutex; + std::condition_variable _condvar; + std::deque _queue; + bool isShutDown = false; + T tRet; + +public: + BlockingQueue() + : _mutex(), _condvar(), _queue() + { + } + + ~BlockingQueue() + { + ShutDown(); + } + + void ShutDown() + { + isShutDown = true; + _condvar.notify_all(); + _queue.clear(); + } + + bool IsShutDown() + { + return isShutDown; + } + + void Put(const T task) + { + std::lock_guard lock(_mutex); + if (!isShutDown) + { + { + _queue.push_back(task); + } + _condvar.notify_all(); + } + } + + T Take() + { + std::unique_lock lock(_mutex); + if (_queue.size() <= 0) + _condvar.wait(lock); + + if (isShutDown || _queue.empty()) + { + return tRet; + } + + T front(_queue.front()); + _queue.pop_front(); + + return front; + } + + T Front() + { + std::unique_lock lock(_mutex); + if (_queue.size() <= 0) + _condvar.wait(lock); + + if (isShutDown || _queue.empty()) + { + return tRet; + } + + T front(_queue.front()); + return front; + } + + size_t Size() const + { + std::lock_guard lock(_mutex); + return _queue.size(); + } + + void Clear() + { + std::unique_lock lock(_mutex); + if (_queue.size() <= 0) + return; + if (_queue.size()>0) + { + _queue.clear(); + } + } +}; \ No newline at end of file diff --git a/device/gxx-linux/packages/common.pkg/include/StopWatch.h b/device/gxx-linux/packages/common.pkg/include/StopWatch.h new file mode 100644 index 0000000..afa4ee9 --- /dev/null +++ b/device/gxx-linux/packages/common.pkg/include/StopWatch.h @@ -0,0 +1,34 @@ +#pragma once +#include + +class StopWatch +{ +public: + StopWatch() { + _start = std::chrono::steady_clock::now(); + } + + void reset() { + _start = std::chrono::steady_clock::now(); + } + + double elapsed_s() { + return std::chrono::duration(std::chrono::steady_clock::now() - _start).count(); + } + + double elapsed_ms() { + return std::chrono::duration(std::chrono::steady_clock::now() - _start).count(); + } + + double elapsed_us() { + return std::chrono::duration(std::chrono::steady_clock::now() - _start).count(); + } + + double elapsed_ns() { + return std::chrono::duration(std::chrono::steady_clock::now() - _start).count(); + } + +private: + std::chrono::steady_clock::time_point _start; +}; + diff --git a/device/gxx-linux/packages/common.pkg/include/ThreadPool.h b/device/gxx-linux/packages/common.pkg/include/ThreadPool.h new file mode 100644 index 0000000..4183203 --- /dev/null +++ b/device/gxx-linux/packages/common.pkg/include/ThreadPool.h @@ -0,0 +1,98 @@ +#ifndef THREAD_POOL_H +#define THREAD_POOL_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class ThreadPool { +public: + ThreadPool(size_t); + template + auto enqueue(F&& f, Args&&... args) + -> std::future::type>; + ~ThreadPool(); +private: + // need to keep track of threads so we can join them + std::vector< std::thread > workers; + // the task queue + std::queue< std::function > tasks; + + // synchronization + std::mutex queue_mutex; + std::condition_variable condition; + bool stop; +}; + +// the constructor just launches some amount of workers +inline ThreadPool::ThreadPool(size_t threads) + : stop(false) +{ + for(size_t i = 0;i task; + + { + std::unique_lock lock(this->queue_mutex); + this->condition.wait(lock, + [this]{ return this->stop || !this->tasks.empty(); }); + if(this->stop && this->tasks.empty()) + return; + task = std::move(this->tasks.front()); + this->tasks.pop(); + } + + task(); + } + } + ); +} + +// add new work item to the pool +template +auto ThreadPool::enqueue(F&& f, Args&&... args) + -> std::future::type> +{ + using return_type = typename std::result_of::type; + + auto task = std::make_shared< std::packaged_task >( + std::bind(std::forward(f), std::forward(args)...) + ); + + std::future res = task->get_future(); + { + std::unique_lock lock(queue_mutex); + + // don't allow enqueueing after stopping the pool + if(stop) + throw std::runtime_error("enqueue on stopped ThreadPool"); + + tasks.emplace([task](){ (*task)(); }); + } + condition.notify_one(); + return res; +} + +// the destructor joins all threads +inline ThreadPool::~ThreadPool() +{ + { + std::unique_lock lock(queue_mutex); + stop = true; + } + condition.notify_all(); + for(std::thread &worker: workers) + worker.join(); +} + +#endif diff --git a/device/gxx-linux/packages/common.pkg/include/autoevent.hpp b/device/gxx-linux/packages/common.pkg/include/autoevent.hpp new file mode 100644 index 0000000..0b5e932 --- /dev/null +++ b/device/gxx-linux/packages/common.pkg/include/autoevent.hpp @@ -0,0 +1,70 @@ +#pragma once +#include +#include + +class AutoSemaphore +{ +public: + AutoSemaphore() + { + } + + virtual ~AutoSemaphore() + { + notify_all(); + } + + virtual void notify_all() + { + std::lock_guard lck(mutx); + cv.notify_all(); + } + + virtual bool wait(int timeout_ms) + { + std::unique_lock lck(mutx); + return cv.wait_for(lck, std::chrono::milliseconds(timeout_ms)) == std::cv_status::no_timeout; + } + +protected: + std::mutex mutx; + std::condition_variable cv; +}; + +class AutoEvent : public AutoSemaphore +{ +public: + AutoEvent() + : bNotify(false) + { + } + + virtual ~AutoEvent() + { + notify_all(); + } + + virtual void notify_all() + { + std::lock_guard lck(mutx); + bNotify = true; + cv.notify_all(); + } + + virtual bool wait(int timeout_ms) + { + std::unique_lock lck(mutx); + if (bNotify) + { + bNotify = false; + return true; + } + + bool ret = cv.wait_for(lck, std::chrono::milliseconds(timeout_ms)) == std::cv_status::no_timeout; + bNotify = false; + return ret; + } + +private: + volatile bool bNotify; +}; \ No newline at end of file diff --git a/device/gxx-linux/packages/common.pkg/include/base64.hpp b/device/gxx-linux/packages/common.pkg/include/base64.hpp new file mode 100644 index 0000000..c83c601 --- /dev/null +++ b/device/gxx-linux/packages/common.pkg/include/base64.hpp @@ -0,0 +1,115 @@ +#include +#include +/** + * Base64 编码/解码 + * @author liruixing + */ +class Base64{ +private: + std::string _base64_table; + static const char base64_pad = '='; +public: + Base64() + { + _base64_table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /*这是Base64编码使用的标准字典*/ + } + /** + * 这里必须是unsigned类型,否则编码中文的时候出错 + */ + std::string Encode(const unsigned char * str,int bytes) { + int num = 0,bin = 0,i; + std::string _encode_result; + const unsigned char * current; + current = str; + while(bytes > 2) { + _encode_result += _base64_table[current[0] >> 2]; + _encode_result += _base64_table[((current[0] & 0x03) << 4) + (current[1] >> 4)]; + _encode_result += _base64_table[((current[1] & 0x0f) << 2) + (current[2] >> 6)]; + _encode_result += _base64_table[current[2] & 0x3f]; + + current += 3; + bytes -= 3; + } + if(bytes > 0) + { + _encode_result += _base64_table[current[0] >> 2]; + if(bytes%3 == 1) { + _encode_result += _base64_table[(current[0] & 0x03) << 4]; + _encode_result += "=="; + } else if(bytes%3 == 2) { + _encode_result += _base64_table[((current[0] & 0x03) << 4) + (current[1] >> 4)]; + _encode_result += _base64_table[(current[1] & 0x0f) << 2]; + _encode_result += "="; + } + } + return _encode_result; + } + std::string Decode(const char *str,int length) { + //解码表 + const std::int8_t DecodeTable[] = + { + -2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -1, -2, -2, -1, -2, -2, + -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, + -1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 62, -2, -2, -2, 63, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -2, -2, -2, -2, -2, -2, + -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -2, -2, -2, -2, -2, + -2, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -2, -2, -2, -2, -2, + -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, + -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, + -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, + -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, + -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, + -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, + -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, + -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2 + }; + int bin = 0,i=0,pos=0; + std::string _decode_result; + const char *current = str; + char ch; + while( (ch = *current++) != '\0' && length-- > 0 ) + { + if (ch == base64_pad) { // 当前一个字符是“=”号 + /* + 先说明一个概念:在解码时,4个字符为一组进行一轮字符匹配。 + 两个条件: + 1、如果某一轮匹配的第二个是“=”且第三个字符不是“=”,说明这个带解析字符串不合法,直接返回空 + 2、如果当前“=”不是第二个字符,且后面的字符只包含空白符,则说明这个这个条件合法,可以继续。 + */ + if (*current != '=' && (i % 4) == 1) { + return NULL; + } + continue; + } + ch = DecodeTable[ch]; + //这个很重要,用来过滤所有不合法的字符 + if (ch < 0 ) { /* a space or some other separator character, we simply skip over */ + continue; + } + switch(i % 4) + { + case 0: + bin = ch << 2; + break; + case 1: + bin |= ch >> 4; + _decode_result += bin; + bin = ( ch & 0x0f ) << 4; + break; + case 2: + bin |= ch >> 2; + _decode_result += bin; + bin = ( ch & 0x03 ) << 6; + break; + case 3: + bin |= ch; + _decode_result += bin; + break; + } + i++; + } + return _decode_result; + } +}; diff --git a/device/gxx-linux/packages/common.pkg/include/commondef.h b/device/gxx-linux/packages/common.pkg/include/commondef.h new file mode 100644 index 0000000..8cf3235 --- /dev/null +++ b/device/gxx-linux/packages/common.pkg/include/commondef.h @@ -0,0 +1,748 @@ +#pragma once +#include +#include +#include + +#define FWVersionEN + +#define G200 + +#ifdef G200 +#define FWVersion "G2393A1225" +#define SERIALNUM "G2396021071101" +#else +#define FWVersion "G1393A1225" +#define SERIALNUM "G1396021071101" +#endif + +#ifdef TEST_MODE +#define HG_SAVEIMG cv::imwrite +#define HG_LOG printf +#else +#define HG_LOG +#define HG_SAVEIMG +#endif +//#ifdef FWVersionEN +//#pragma warnning("WARNNING! current fareware version is :" FWVersion) +//#endif +typedef unsigned int u32; +typedef unsigned int uint_32; +typedef unsigned char u8; +typedef unsigned char byte; +typedef unsigned short u16; + +typedef struct Size +{ + long x; + long y; +}; + +typedef enum Error_Status : uint32_t +{ + NO_error = 0, + Dog_error = 1, + Size_error = 2, +}; + +typedef struct ImgStatus +{ + Error_Status status; + uint32_t sannum; +}; + +typedef union HG_ScanConfig +{ + unsigned int value; + struct + { + unsigned int paper : 5; + unsigned int color : 1; + unsigned int dpi : 2; + unsigned int double_feed_enbale : 1; + unsigned int stable_enbale : 1; + unsigned int screw_detect_enable : 1; + unsigned int screw_detect_level : 3; //第十四位 + unsigned int iscorrect_mode : 1; + unsigned int is_autopaper : 1; + unsigned int unused_one : 4; + unsigned int pc_correct : 1; + unsigned int enable_sizecheck : 1; + unsigned int enabledsp_cache : 1; + unsigned int sizeerror_errorratio : 9; + } g200params; + struct + { + unsigned int pageSize : 5; + unsigned int isColor : 1; + unsigned int dpi : 2; + unsigned int doubleFeeded : 1; + unsigned int enableStable : 1; + unsigned int enableLed : 1; + unsigned int reversed1 : 6; + unsigned int isCorrect : 1; + unsigned int dstHeight : 8; + unsigned int reversed2 : 6; + } g400params; +} HGScanConfig; + +typedef enum SCAN_STATUS +{ + SCAN_NORMAL, + SCAN_SCANNING, + SCAN_COVEROPEN, + SCAN_FEEDERROR, + SCAN_PAPERJAM, + SCAN_DOUBLEFEED, + SCAN_AQUIREIMGTIMEOUT, + SCAN_AQUIREIMGSIZEERROR, + SCAN_DETECTSKREW, + SCAN_DETECTSTABLE, + SCAN_COUNTMODE, + SCAN_NOFEED, + SCAN_AUTOCORRECT_DONE, + SCAN_STOPED +} SCAN_STATUS; + +struct MotorBoardGlue +{ + MotorBoardGlue(const std::function error_call, + const std::function scan_done_call, + const std::function os_mode_call, + const std::function set_sleepmode_call, + const std::function mltop_call, + std::function auto_paper) + : m_error_call(error_call), + m_scan_done_call(scan_done_call), + m_os_mode_call(os_mode_call), + m_set_sleepmode_call(set_sleepmode_call), + m_mltop_call(mltop_call), + m_auto_paper(auto_paper) + { + } + + std::function m_error_call; + std::function m_scan_done_call; + std::function m_os_mode_call; + std::function m_set_sleepmode_call; + std::function m_mltop_call; + std::function m_auto_paper; +}; + +struct ScannerNativeParam +{ + u32 TotalScanned; //扫描总计�? + u32 RollerNum; //滚轴计数 + u32 H_ratio; //横向修正系数 + u32 V_ratio; //纵向修正系数 + u32 JamTimes; //卡纸次数 + u32 FeedErrorTimes; //搓纸失败次数 + u32 DoubleFeedTimes; //双张次数 + u32 ScanSessionsCount; //总计扫描次数 + u16 gray_sp; //灰度sp�? + u16 color_sp; //彩色sp�? + int sleeptime; //休眠模式时间 -1 不休�? + std::string SerialNum; //序列�? + std::string Token; //识别�? + u32 clr_maxbright; //彩色平场校正最大亮�? + u32 gray_maxbright; //灰度平场校正最大亮�? + u32 speedmode; //速度模式 G100 0->70 1->80 2->90 3->100 G200 0->100 1->110 2->120 3->130 + u16 Vid; //USB vid + u16 Pid; //USB Pid +}; + +enum TwSS : unsigned short +{ + None = 0, + A4Letter = 1, + A4 = 1, + B5Letter = 2, + JISB5 = 2, + B5 = 2, + USLetter = 3, + USLegal = 4, + A5 = 5, + B4 = 6, + ISOB4 = 6, + B6 = 7, + ISOB6 = 7, + USLedger = 9, + USExecutive = 10, + A3 = 11, + B3 = 12, + ISOB3 = 12, + A6 = 13, + C4 = 14, + C5 = 15, + C6 = 16, + _4A0 = 17, + _2A0 = 18, + A0 = 19, + A1 = 20, + A2 = 21, + A7 = 22, + A8 = 23, + A9 = 24, + A10 = 25, + ISOB0 = 26, + ISOB1 = 27, + ISOB2 = 28, + ISOB5 = 29, + ISOB7 = 30, + ISOB8 = 31, + ISOB9 = 32, + ISOB10 = 33, + JISB0 = 34, + JISB1 = 35, + JISB2 = 36, + JISB3 = 37, + JISB4 = 38, + JISB6 = 39, + JISB7 = 40, + JISB8 = 41, + JISB9 = 42, + JISB10 = 43, + C0 = 44, + C1 = 45, + C2 = 46, + C3 = 47, + C7 = 48, + C8 = 49, + C9 = 50, + C10 = 51, + USStatement = 52, + BusinessCard = 53, + MaxSize = 54, + K8 = 0x81, + K16 = 0x82, + Trigeminy = 0x83, +}; + +enum class PaperSize +{ + G400_A3 = 0, + G400_A4, + G400_A4R, + G400_A5, + G400_A5R, + G400_A6, + G400_A6R, + G400_B4, + G400_B5, + G400_B5R, + G400_B6, + G400_B6R, + G400_DOUBLELETTER, + G400_LEGAL, + G400_LETTER, + G400_LETTERR, + G400_LONGLETTER = 16, + G400_MAXSIZE = 16, + G400_AUTO = 16, + G400_MAXAUTO = 16 +}; + +struct HGSize +{ + unsigned int width; + unsigned int height; + + bool operator<(HGSize const &right) const + { + if (width < right.width && height < right.height) + return true; + return false; + } +}; + +//usb int 端点 返回消息的生产�? +enum HGType +{ + MtBoard = 1, + FPGA, + V4L2, + IMG, + AutoCorrect, + STOPSCAN, +}; + +//usb int 端点通信结构�? +struct HGIntInfo +{ + HGType From; + unsigned int Code; + unsigned int Img_Index; +}; + +enum SpeedMode +{ + PPM70 = 70, + PPM80 = 80, + PPM90 = 90, + PPM100 = 100, + PPM110 = 110, + PPM120 = 120, + PPM130 = 130 +}; + +typedef struct +{ + u32 colorSp; + u32 graySp; + u32 motorSpeed; +} CisSp; + +static std::map scannerSp = { +#ifdef G100 + {PPM70, {0x42d, 0xc88 , 1}}, + {PPM80, {0x37f, 0xa7f, 2}}, + {PPM90, {0x2B6, 0x822, 0}}, + {PPM100, {0x27C, 0x775, 0}},//G100 3399 暂无100 ppm + {PPM110, {0x24e, 0x706, 3}}, +#else + {PPM100, {0x27C, 0x775, 0}}, + {PPM110, {0x27C, 0x775, 1}}, + {PPM120, {0x27C, 0x775, 3}}, + {PPM130, {0x27C, 0x775, 2}} //默认 140 +#endif +}; + +static std::map papersMap = { + {PaperSize::G400_A3, {1632, 11100}}, + {PaperSize::G400_A4, {1632, 8400}}, + {PaperSize::G400_A4R, {1632, 6000}},//6000 + {PaperSize::G400_A5, {1632, 6600}}, + {PaperSize::G400_A5R, {1632, 4500}}, + {PaperSize::G400_A6, {1632, 4500}}, + {PaperSize::G400_A6R, {1632, 4500}}, + {PaperSize::G400_B4, {1632, 11100}}, + {PaperSize::G400_B5, {1632, 8400}}, + {PaperSize::G400_B5R, {1632, 6600}}, + {PaperSize::G400_B6, {1632, 6600}}, + {PaperSize::G400_DOUBLELETTER, {1632, 11100}}, + {PaperSize::G400_B6R, {1632, 6600}}, + {PaperSize::G400_LEGAL, {1632, 11100}}, + {PaperSize::G400_LETTER, {1632, 8400}}, + {PaperSize::G400_LETTERR, {1632, 11100}}, + {PaperSize::G400_MAXSIZE, {1632, 16002}}, + {PaperSize::G400_AUTO, {1632, 11100}}, + {PaperSize::G400_MAXAUTO, {1632, 16002}}, +}; + +// static std::map papersMap = { +// {PaperSize::G400_A3, {1632, 16002}}, +// {PaperSize::G400_A4, {1632, (uint)(8400*1.5)}}, +// {PaperSize::G400_A4R, {1632, (uint)(6000*1.5)}},//6000 +// {PaperSize::G400_A5, {1632, (uint)(6600*1.5)}}, +// {PaperSize::G400_A5R, {1632, (uint)(4500*1.5)}}, +// {PaperSize::G400_A6, {1632, (uint)(4500*1.5)}}, +// {PaperSize::G400_A6R, {1632, (uint)(4500*1.5)}}, +// {PaperSize::G400_B4, {1632, (uint)16002}}, +// {PaperSize::G400_B5, {1632, (uint)(8400*1.5)}}, +// {PaperSize::G400_B5R, {1632, (uint)(6600*1.5)}}, +// {PaperSize::G400_B6, {1632, (uint)(6600*1.5)}}, +// {PaperSize::G400_DOUBLELETTER, {1632, (uint)11100}}, +// {PaperSize::G400_B6R, {1632, (uint)(6600*1.5)}}, +// {PaperSize::G400_LEGAL, {1632, 16002}}, +// {PaperSize::G400_LETTER, {1632, (uint)(8400*1.5)}}, +// {PaperSize::G400_LETTERR, {1632, (uint)16002}}, +// {PaperSize::G400_MAXSIZE, {1632, (uint)16002}}, +// {PaperSize::G400_AUTO, {1632, (uint)16002}}, +// {PaperSize::G400_MAXAUTO, {1632, (uint)16002}}, +// }; + +enum Scanner_Reg_Defs +{ + SR_CMD, + SR_STATUS, + SR_SCAN_COUNT, + SR_OS, + SR_SENSORS, + SR_MOTOR, + SR_IM_TYPE, + SR_IM_COUNT, + SR_IM_TX, + SR_IM_FRONT_SIZE, + SR_IM_CLEAR, + SR_IM_TXING, + SR_IM_POP, + SR_IM_ABORT, + SR_COUNT, + SR_CONFIG_SCAN_PARAM, + SR_GET_FWVERSION, + SR_SET_FWERSION, + SR_GET_SERIALNUM, + SR_SET_SERIALNUM, + SR_CONFIF_IMGPROCPARAM, + SC_AUTOCORRECT, + SC_GET_CORRECT_PARAM, + SC_SET_CORRECT_PARAM, + SR_GET_H_RATIO, + SR_SET_H_RATIO, + SR_GET_V_RATIO, + SR_SET_V_RATIO, + SR_GET_SERIAL_LEN, + SR_GET_GRAY_SP, + SR_GET_COLOR_SP, + SR_SET_GRAY_SP, + SR_SET_COLOR_SP, + SR_SET_SLEEPTIME, + SR_GET_SLEEPTIME, + SR_GET_SLEEP_STAUTUS, + SR_GET_IMAGEPROCESSDONE, + SR_GET_KEEP_LAST_PAPER, + SR_GET_PAPERON, + SR_SET_SPEEDMODE, + SR_GET_SPEEDMODE, + SR_GET_JOSN_SIZE, + SR_GET_JSON, + SR_SET_JSON_PATH, + SR_SET_JSON, + SR_GET_FILE_POS, + SR_SET_FILE_POS, + SR_NOTIFY_SLEEP, + SR_GET_FEEDMODE, + SR_SET_FEEDMODE, + SR_GET_AUTOMATICCONTROLFEEDMODE_ENABLE, + SR_SET_AUTOMATICCONTROLFEEDMODE_ENABLE, + SR_GET_AUTOMATICCONTROLFEEDMODE_THRESHOLD, + SR_SET_AUTOMATICCONTROLFEEDMODE_THRESHOLD, + SR_GET_TRAYPOSITION, + SR_SET_TRAYPOSITION, + SR_GET_LOCK_STATES, + SR_SET_LOCK_STATES, + SR_GET_TOKEN, + SR_SET_TOKEN, + SR_GET_TOKEN_LENGHT, + SR_DECODE_TOKEN, + SR_CLEAN_PAPER_ROAD, + SR_GET_CUO_ERROR = 0x50, + SR_GET_DOU_ERROR, + SR_GET_JAM_ERROR, + SR_GET_SCANN_NUM, + SR_CLR_ROLLER_NUM, + SR_GET_ROLLER_NUM, + SR_CLR_SCANN_NUM, + SR_UPDATA_START = 0x100, + SR_UPDATA_STAUTUS = 0x101, + SR_UPDATA_MD5_RELUST = 0x102, + SR_UPDATA_RECOVERY = 0x103, + SR_UPDATA_REBOOT = 0x104, + SR_POWEROFF = 0x105, + SR_REBOOT = 0x106, + SR_FLAT_CLR_MAX_BRIGHT, + SR_FLAT_GRAY_MAX_BRIGHT, + SR_KERNEL_VERSION_INFO_LENGTH, + SR_GET_KERNEL_VERSION, + SR_GET_MBSTATUS, + SR_GET_IPADDR_LENGHT = 0x200, + SR_GET_MACADDR, + SR_GET_IPADDR, + SR_GET_MBVERSION_LENGHT, + SR_GET_MBVERSION, + SR_GET_USBVIDPID, + SR_SET_USBVIDPID +}; + +enum Updata_Stautus +{ + Start_updata, + Download_file, + Download_file_error, + Download_file_finish, + MD5_Reovery, + MD5_Rboot, + MD5_Error, + Reboot +}; + +enum Scanner_Cmd_Defs +{ + SC_START, + SC_STOP, + SC_CLEAR, + SC_COUNT +}; + +enum HGScanSide +{ + Duplex, + Single, + DisCardBlankNormal, + DisCardBlacnkVince, + Flod +}; + +enum class HGRotate +{ + Rot_0, + Rot_90, + Rot_180, + Rot_270, + Rot_auto +}; + +typedef union USBVIDPID +{ + struct{ + unsigned short VID; + unsigned short PID; + }param; + unsigned int value; +}; + +typedef union HG_ImgProcParms +{ + unsigned int value; + struct + { + u32 papertype : 5; + u32 scanside : 3; + u32 res : 10; + u32 rotate : 2; + u32 autodescrew : 1; + u32 fillbackground : 1; + u32 filter : 4; + u32 enhancecolor : 2; + u32 fillhole : 1; + u32 reversed : 3; + } imgprocparams; +} HGImgProcParms; + +///用于CIS 自动校正参数保存 +typedef struct +{ + u32 gainF[6]; + u32 gainB[6]; + u32 offsetsF[6]; + u32 offsetsB[6]; + u32 expF[3]; + u32 expB[3]; + u32 sp; +} HGCISConfig; + +typedef struct +{ + HGCISConfig colorCorrect; + HGCISConfig color; + HGCISConfig grayCorrect; + HGCISConfig gray; +} HGCorrectConfigs; + +enum class CISVendor +{ + CIS_UNKNOWUN, + HUALIN_CIS_V0, + DUNNAN_CIS_V0 +}; + +#define STR_CORRECTCOLOR CorrectColor +#define STR_COLOR Color +#define STR_CORRECTGRAY CorrectGray +#define STR_GRAY Gray + +#define STR_GAINF GainF +#define STR_GAINB GainB +#define STR_EXPF ExpF +#define STR_EXPB ExpB +#define STR_OFFSETF OffsetF +#define STR_OFFSETB OffsetB +#define STR_SP Sp + +#define STR(str) #str +#define STRCON(str1, str2) STR(str1) \ +STR(str2) + +#define LUT_COLOR_BLACK_PATH "/usr/local/huago/lut_0.bmp" +#define LUT_COLOR_WHITE_PATH "/usr/local/huago/lut_1.bmp" +#define LUT_GRAY_BLACK_PATH "/usr/local/huago/lut_2.bmp" +#define LUT_GRAY_WHITE_PATH "/usr/local/huago/lut_3.bmp" +#define LUT_COLOR_LUT_PATH "/usr/local/huago/color_lut.bmp" +#define LUT_GRAY_LUT_PATH "/usr/local/huago/gray_lut.bmp" + +#define IMAGE_COLOR 1 +#define IMAGE_GRAY 0 + +#define JSON_CORRECTFILE_PATH "/usr/local/huago/cisconfig.json" +#define JSON_CORRECTDIR_PATH "/usr/local/huago" +#define JSON_SCANNER_INFO_DIR "/usr/local/huago" +#define JSON_SCANNER_INFO_FILE "/usr/local/huago/scannerinfo.json" + +#define S_INFO_TOTALSCANNED "TotalScanned" +#define S_INFO_ROLLERNUM "RollerNum" +#define S_INFO_HRATIO "HRatio" +#define S_INFO_VRATIO "VRatio" +#define S_GRAY_SP "GraySp" +#define S_COLOR_SP "ColorSp" +#define S_INFO_SLEEPTIME "Sleeptime" +#define S_INFO_JAMNUM "JamInNum" +#define S_INFO_FEEDERROR "FeedError" +#define S_INFO_DOUNUM "DoubleNum" +#define S_INFO_SCANSESSIONCOUNT "ScanTimes" +#define S_INFO_SERIALNUM "SerialNum" +#define S_INFO_TOKEN "ScannerToken" +#define S_INFO_CLR_MAXBRT "FlatClrMaxBrt" +#define S_INFO_GRAY_MAXBRT "FlatGrayMaxBrt" +#define S_INFO_SPEEDMODE "SpeedMode" +#define S_INFO_VID "VID" +#define S_INFO_PID "PID" + +#pragma pack(push) +#pragma pack(4) +typedef struct tagFillHole +{ + byte is_fillhole; + int fillholeratio; +} FillHole; + +typedef struct tagDetachNoise +{ + byte is_detachnoise; + int detachnoise; +} DetachNoise; + +enum LowPowerMode : unsigned int +{ + Min_None = 0, + Min_5, + Min_10, + Min_20, + Min_30, + Min_60, + Min_120, + Min_240 +}; + +typedef struct tagHARDWAREPARAMS +{ + byte capturepixtype; + byte en_doublefeed; + byte en_stapledetect; + byte en_skrewdetect; + byte skrewdetectlevel; + LowPowerMode lowpowermode; +#ifdef UV + byte en_uv; +#endif +} HardwareCaps; + +typedef struct Scan_Rect +{ + int width; + int height; + int x; + int y; +} ScanRect; + +enum PaperAlign : unsigned char +{ + Rot0 = 0, + Rot270 = 3, + AutoTextOrientation = 5 +}; + +typedef enum Enchace_Color : short +{ + Enhance_None = 0, + Enhance_Red, + Enhance_Green, + Enhance_Blue +} EnchaceColor; + +typedef enum SharpenBlur : short +{ + Sharpen_None, + Sharpen_Normal, + Sharpen_More, + Sharpen_Blur, + Sharpen_Blur_More +} SharpenBlur; + +typedef struct tagCrop_Rect +{ + int enable; + int x; /*****自定义裁切区域左上角x坐标*/ + int y; /*****自定义裁切区域左上角y坐标*/ + int width; /*****自定义裁切区域宽�?******/ + int height; /*****自定义裁切区域高�?******/ +}CropRect; + +typedef enum tagMulti_Output { + Unused = -1, + All, + ColorGray, + ColorBw, + GrayBw +}MultiOutput; + +typedef struct tagSkew_Detection { + int enable; + int level; +}SkewDetection; + +typedef struct tagHhardware_Params_3399 +{ + int capturepixtype; + int doubleFeedDetection; + int bindingDetection; + int sizeDetection; + SkewDetection skewDetection; +}HardwareCaps_3399; + +struct GScanCap +{ + uint8_t papertype; + PaperAlign paperAlign; + uint8_t en_sizecheck; + float imageRotateDegree; + uint8_t is_duplex; + uint8_t en_fold; + int pixtype; + int automaticcolor; + int automaticcolortype; + //ScanRect scanrect; + float resolution_dst; + float resolution_native; + float gamma; + float contrast; + float brightness; + float threshold; + uint8_t is_autocontrast; + uint8_t is_autocrop; + uint8_t is_autodiscradblank_normal; + int discardblank_percent; + uint8_t is_autodiscradblank_vince; + uint8_t is_switchfrontback; + uint8_t autodescrew; + uint8_t multi_output_red; + uint8_t hsvcorrect; + uint8_t filter; + uint8_t sharpen; + uint8_t enhance_color; + uint8_t fillbackground; + bool is_convex; + int noise; + int indent; + int AutoCrop_threshold; + unsigned short scannum; + uint8_t is_backrotate180; + uint8_t is_dogeardetection; + HardwareCaps hardwarecaps; + FillHole fillhole; + DetachNoise detachnoise; + uint8_t is_autotext; + bool isfillcolor; + int refuseInflow; + int colorCorrection; + int removeMorr; + int errorExtention; + int textureRemove; + int splitImage; + CropRect cropRect; + MultiOutput multiOutput; + bool normalCrop; + uint32_t dogeardistabce; + bool fadeback; + int fadebackrange; + uint32_t reserve[1024]; +}; +#pragma pack(pop) \ No newline at end of file diff --git a/device/gxx-linux/packages/common.pkg/include/filetools.h b/device/gxx-linux/packages/common.pkg/include/filetools.h new file mode 100644 index 0000000..2656ca1 --- /dev/null +++ b/device/gxx-linux/packages/common.pkg/include/filetools.h @@ -0,0 +1,59 @@ +#pragma once +#include +#include +#include +#include +#include +#include + +class FileTools +{ +private: + std::string mPath; + +public: + FileTools(std::string path) + { + mPath = path; + } + void createLog(std::string log) + { + time_t now = time(0); + tm *ltm = localtime(&now); + char loc_date[30]; + sprintf(loc_date, "%d%02d%02d %d:%d:%d", 1900 + ltm->tm_year, 1 + ltm->tm_mon, ltm->tm_mday, ltm->tm_hour, ltm->tm_min, ltm->tm_sec); + std::ofstream ofs(mPath); + ofs << loc_date << ": " << log << std::endl; + ofs.close(); + } + void append_log(std::string log, bool printTime = true) + { + std::ofstream ofs(mPath, std::ios::app); + if (printTime) + { + time_t now = time(0); + tm *ltm = localtime(&now); + char loc_date[30]; + sprintf(loc_date, "%d%02d%02d %d:%d:%d", 1900 + ltm->tm_year, 1 + ltm->tm_mon, ltm->tm_mday, ltm->tm_hour, ltm->tm_min, ltm->tm_sec); + ofs << loc_date << ": " << log << std::endl; + } + else + { + ofs << " " << log << std::endl; + } + ofs.close(); + } + + void clear() + { + try + { + std::fstream fout(mPath, std::ios::out | std::ios::trunc); + fout.close(); + } + catch (std::exception &e) + { + //LOG("error happened: %s \n", e.what()); + } + } +}; \ No newline at end of file diff --git a/device/gxx-linux/packages/common.pkg/include/json.hpp b/device/gxx-linux/packages/common.pkg/include/json.hpp new file mode 100644 index 0000000..06da815 --- /dev/null +++ b/device/gxx-linux/packages/common.pkg/include/json.hpp @@ -0,0 +1,22875 @@ +/* + __ _____ _____ _____ + __| | __| | | | JSON for Modern C++ +| | |__ | | | | | | version 3.7.3 +|_____|_____|_____|_|___| https://github.com/nlohmann/json + +Licensed under the MIT License . +SPDX-License-Identifier: MIT +Copyright (c) 2013-2019 Niels Lohmann . + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +#ifndef INCLUDE_NLOHMANN_JSON_HPP_ +#define INCLUDE_NLOHMANN_JSON_HPP_ + +#define NLOHMANN_JSON_VERSION_MAJOR 3 +#define NLOHMANN_JSON_VERSION_MINOR 7 +#define NLOHMANN_JSON_VERSION_PATCH 3 + +#include // all_of, find, for_each +#include // assert +#include // and, not, or +#include // nullptr_t, ptrdiff_t, size_t +#include // hash, less +#include // initializer_list +#include // istream, ostream +#include // random_access_iterator_tag +#include // unique_ptr +#include // accumulate +#include // string, stoi, to_string +#include // declval, forward, move, pair, swap +#include // vector + +// #include + + +#include + +// #include + + +#include // transform +#include // array +#include // and, not +#include // forward_list +#include // inserter, front_inserter, end +#include // map +#include // string +#include // tuple, make_tuple +#include // is_arithmetic, is_same, is_enum, underlying_type, is_convertible +#include // unordered_map +#include // pair, declval +#include // valarray + +// #include + + +#include // exception +#include // runtime_error +#include // to_string + +// #include + + +#include // size_t + +namespace nlohmann +{ +namespace detail +{ +/// struct to capture the start position of the current token +struct position_t +{ + /// the total number of characters read + std::size_t chars_read_total = 0; + /// the number of characters read in the current line + std::size_t chars_read_current_line = 0; + /// the number of lines read + std::size_t lines_read = 0; + + /// conversion to size_t to preserve SAX interface + constexpr operator size_t() const + { + return chars_read_total; + } +}; + +} // namespace detail +} // namespace nlohmann + +// #include + + +#include // pair +// #include +/* Hedley - https://nemequ.github.io/hedley + * Created by Evan Nemerson + * + * To the extent possible under law, the author(s) have dedicated all + * copyright and related and neighboring rights to this software to + * the public domain worldwide. This software is distributed without + * any warranty. + * + * For details, see . + * SPDX-License-Identifier: CC0-1.0 + */ + +#if !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < 11) +#if defined(JSON_HEDLEY_VERSION) + #undef JSON_HEDLEY_VERSION +#endif +#define JSON_HEDLEY_VERSION 11 + +#if defined(JSON_HEDLEY_STRINGIFY_EX) + #undef JSON_HEDLEY_STRINGIFY_EX +#endif +#define JSON_HEDLEY_STRINGIFY_EX(x) #x + +#if defined(JSON_HEDLEY_STRINGIFY) + #undef JSON_HEDLEY_STRINGIFY +#endif +#define JSON_HEDLEY_STRINGIFY(x) JSON_HEDLEY_STRINGIFY_EX(x) + +#if defined(JSON_HEDLEY_CONCAT_EX) + #undef JSON_HEDLEY_CONCAT_EX +#endif +#define JSON_HEDLEY_CONCAT_EX(a,b) a##b + +#if defined(JSON_HEDLEY_CONCAT) + #undef JSON_HEDLEY_CONCAT +#endif +#define JSON_HEDLEY_CONCAT(a,b) JSON_HEDLEY_CONCAT_EX(a,b) + +#if defined(JSON_HEDLEY_VERSION_ENCODE) + #undef JSON_HEDLEY_VERSION_ENCODE +#endif +#define JSON_HEDLEY_VERSION_ENCODE(major,minor,revision) (((major) * 1000000) + ((minor) * 1000) + (revision)) + +#if defined(JSON_HEDLEY_VERSION_DECODE_MAJOR) + #undef JSON_HEDLEY_VERSION_DECODE_MAJOR +#endif +#define JSON_HEDLEY_VERSION_DECODE_MAJOR(version) ((version) / 1000000) + +#if defined(JSON_HEDLEY_VERSION_DECODE_MINOR) + #undef JSON_HEDLEY_VERSION_DECODE_MINOR +#endif +#define JSON_HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000) + +#if defined(JSON_HEDLEY_VERSION_DECODE_REVISION) + #undef JSON_HEDLEY_VERSION_DECODE_REVISION +#endif +#define JSON_HEDLEY_VERSION_DECODE_REVISION(version) ((version) % 1000) + +#if defined(JSON_HEDLEY_GNUC_VERSION) + #undef JSON_HEDLEY_GNUC_VERSION +#endif +#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__) + #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) +#elif defined(__GNUC__) + #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, 0) +#endif + +#if defined(JSON_HEDLEY_GNUC_VERSION_CHECK) + #undef JSON_HEDLEY_GNUC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_GNUC_VERSION) + #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_MSVC_VERSION) + #undef JSON_HEDLEY_MSVC_VERSION +#endif +#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 140000000) + #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 10000000, (_MSC_FULL_VER % 10000000) / 100000, (_MSC_FULL_VER % 100000) / 100) +#elif defined(_MSC_FULL_VER) + #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 1000000, (_MSC_FULL_VER % 1000000) / 10000, (_MSC_FULL_VER % 10000) / 10) +#elif defined(_MSC_VER) + #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_VER / 100, _MSC_VER % 100, 0) +#endif + +#if defined(JSON_HEDLEY_MSVC_VERSION_CHECK) + #undef JSON_HEDLEY_MSVC_VERSION_CHECK +#endif +#if !defined(_MSC_VER) + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0) +#elif defined(_MSC_VER) && (_MSC_VER >= 1400) + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch))) +#elif defined(_MSC_VER) && (_MSC_VER >= 1200) + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch))) +#else + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor))) +#endif + +#if defined(JSON_HEDLEY_INTEL_VERSION) + #undef JSON_HEDLEY_INTEL_VERSION +#endif +#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) + #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, __INTEL_COMPILER_UPDATE) +#elif defined(__INTEL_COMPILER) + #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0) +#endif + +#if defined(JSON_HEDLEY_INTEL_VERSION_CHECK) + #undef JSON_HEDLEY_INTEL_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_INTEL_VERSION) + #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_PGI_VERSION) + #undef JSON_HEDLEY_PGI_VERSION +#endif +#if defined(__PGI) && defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__) + #define JSON_HEDLEY_PGI_VERSION JSON_HEDLEY_VERSION_ENCODE(__PGIC__, __PGIC_MINOR__, __PGIC_PATCHLEVEL__) +#endif + +#if defined(JSON_HEDLEY_PGI_VERSION_CHECK) + #undef JSON_HEDLEY_PGI_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_PGI_VERSION) + #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PGI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_SUNPRO_VERSION) + #undef JSON_HEDLEY_SUNPRO_VERSION +#endif +#if defined(__SUNPRO_C) && (__SUNPRO_C > 0x1000) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_C >> 16) & 0xf) * 10) + ((__SUNPRO_C >> 12) & 0xf), (((__SUNPRO_C >> 8) & 0xf) * 10) + ((__SUNPRO_C >> 4) & 0xf), (__SUNPRO_C & 0xf) * 10) +#elif defined(__SUNPRO_C) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_C >> 8) & 0xf, (__SUNPRO_C >> 4) & 0xf, (__SUNPRO_C) & 0xf) +#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_CC >> 16) & 0xf) * 10) + ((__SUNPRO_CC >> 12) & 0xf), (((__SUNPRO_CC >> 8) & 0xf) * 10) + ((__SUNPRO_CC >> 4) & 0xf), (__SUNPRO_CC & 0xf) * 10) +#elif defined(__SUNPRO_CC) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_CC >> 8) & 0xf, (__SUNPRO_CC >> 4) & 0xf, (__SUNPRO_CC) & 0xf) +#endif + +#if defined(JSON_HEDLEY_SUNPRO_VERSION_CHECK) + #undef JSON_HEDLEY_SUNPRO_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_SUNPRO_VERSION) + #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_SUNPRO_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION) + #undef JSON_HEDLEY_EMSCRIPTEN_VERSION +#endif +#if defined(__EMSCRIPTEN__) + #define JSON_HEDLEY_EMSCRIPTEN_VERSION JSON_HEDLEY_VERSION_ENCODE(__EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__) +#endif + +#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK) + #undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION) + #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_EMSCRIPTEN_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_ARM_VERSION) + #undef JSON_HEDLEY_ARM_VERSION +#endif +#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION) + #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCOMPILER_VERSION / 1000000, (__ARMCOMPILER_VERSION % 1000000) / 10000, (__ARMCOMPILER_VERSION % 10000) / 100) +#elif defined(__CC_ARM) && defined(__ARMCC_VERSION) + #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCC_VERSION / 1000000, (__ARMCC_VERSION % 1000000) / 10000, (__ARMCC_VERSION % 10000) / 100) +#endif + +#if defined(JSON_HEDLEY_ARM_VERSION_CHECK) + #undef JSON_HEDLEY_ARM_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_ARM_VERSION) + #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_ARM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_IBM_VERSION) + #undef JSON_HEDLEY_IBM_VERSION +#endif +#if defined(__ibmxl__) + #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ibmxl_version__, __ibmxl_release__, __ibmxl_modification__) +#elif defined(__xlC__) && defined(__xlC_ver__) + #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, (__xlC_ver__ >> 8) & 0xff) +#elif defined(__xlC__) + #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, 0) +#endif + +#if defined(JSON_HEDLEY_IBM_VERSION_CHECK) + #undef JSON_HEDLEY_IBM_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_IBM_VERSION) + #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IBM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_VERSION) + #undef JSON_HEDLEY_TI_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) + #define JSON_HEDLEY_TI_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_VERSION_CHECK) + #undef JSON_HEDLEY_TI_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_VERSION) + #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_CRAY_VERSION) + #undef JSON_HEDLEY_CRAY_VERSION +#endif +#if defined(_CRAYC) + #if defined(_RELEASE_PATCHLEVEL) + #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, _RELEASE_PATCHLEVEL) + #else + #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, 0) + #endif +#endif + +#if defined(JSON_HEDLEY_CRAY_VERSION_CHECK) + #undef JSON_HEDLEY_CRAY_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_CRAY_VERSION) + #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_CRAY_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_IAR_VERSION) + #undef JSON_HEDLEY_IAR_VERSION +#endif +#if defined(__IAR_SYSTEMS_ICC__) + #if __VER__ > 1000 + #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE((__VER__ / 1000000), ((__VER__ / 1000) % 1000), (__VER__ % 1000)) + #else + #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE(VER / 100, __VER__ % 100, 0) + #endif +#endif + +#if defined(JSON_HEDLEY_IAR_VERSION_CHECK) + #undef JSON_HEDLEY_IAR_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_IAR_VERSION) + #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IAR_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TINYC_VERSION) + #undef JSON_HEDLEY_TINYC_VERSION +#endif +#if defined(__TINYC__) + #define JSON_HEDLEY_TINYC_VERSION JSON_HEDLEY_VERSION_ENCODE(__TINYC__ / 1000, (__TINYC__ / 100) % 10, __TINYC__ % 100) +#endif + +#if defined(JSON_HEDLEY_TINYC_VERSION_CHECK) + #undef JSON_HEDLEY_TINYC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TINYC_VERSION) + #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TINYC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_DMC_VERSION) + #undef JSON_HEDLEY_DMC_VERSION +#endif +#if defined(__DMC__) + #define JSON_HEDLEY_DMC_VERSION JSON_HEDLEY_VERSION_ENCODE(__DMC__ >> 8, (__DMC__ >> 4) & 0xf, __DMC__ & 0xf) +#endif + +#if defined(JSON_HEDLEY_DMC_VERSION_CHECK) + #undef JSON_HEDLEY_DMC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_DMC_VERSION) + #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_DMC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_COMPCERT_VERSION) + #undef JSON_HEDLEY_COMPCERT_VERSION +#endif +#if defined(__COMPCERT_VERSION__) + #define JSON_HEDLEY_COMPCERT_VERSION JSON_HEDLEY_VERSION_ENCODE(__COMPCERT_VERSION__ / 10000, (__COMPCERT_VERSION__ / 100) % 100, __COMPCERT_VERSION__ % 100) +#endif + +#if defined(JSON_HEDLEY_COMPCERT_VERSION_CHECK) + #undef JSON_HEDLEY_COMPCERT_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_COMPCERT_VERSION) + #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_COMPCERT_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_PELLES_VERSION) + #undef JSON_HEDLEY_PELLES_VERSION +#endif +#if defined(__POCC__) + #define JSON_HEDLEY_PELLES_VERSION JSON_HEDLEY_VERSION_ENCODE(__POCC__ / 100, __POCC__ % 100, 0) +#endif + +#if defined(JSON_HEDLEY_PELLES_VERSION_CHECK) + #undef JSON_HEDLEY_PELLES_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_PELLES_VERSION) + #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PELLES_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_GCC_VERSION) + #undef JSON_HEDLEY_GCC_VERSION +#endif +#if \ + defined(JSON_HEDLEY_GNUC_VERSION) && \ + !defined(__clang__) && \ + !defined(JSON_HEDLEY_INTEL_VERSION) && \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + !defined(JSON_HEDLEY_ARM_VERSION) && \ + !defined(JSON_HEDLEY_TI_VERSION) && \ + !defined(__COMPCERT__) + #define JSON_HEDLEY_GCC_VERSION JSON_HEDLEY_GNUC_VERSION +#endif + +#if defined(JSON_HEDLEY_GCC_VERSION_CHECK) + #undef JSON_HEDLEY_GCC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_GCC_VERSION) + #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_HAS_ATTRIBUTE +#endif +#if defined(__has_attribute) + #define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) __has_attribute(attribute) +#else + #define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE +#endif +#if defined(__has_attribute) + #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) __has_attribute(attribute) +#else + #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE +#endif +#if defined(__has_attribute) + #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) __has_attribute(attribute) +#else + #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE +#endif +#if \ + defined(__has_cpp_attribute) && \ + defined(__cplusplus) && \ + (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) __has_cpp_attribute(attribute) +#else + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) (0) +#endif + +#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS) + #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS +#endif +#if !defined(__cplusplus) || !defined(__has_cpp_attribute) + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0) +#elif \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) && \ + (!defined(JSON_HEDLEY_MSVC_VERSION) || JSON_HEDLEY_MSVC_VERSION_CHECK(19,20,0)) + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(ns::attribute) +#else + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE +#endif +#if defined(__has_cpp_attribute) && defined(__cplusplus) + #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute) +#else + #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE +#endif +#if defined(__has_cpp_attribute) && defined(__cplusplus) + #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute) +#else + #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_BUILTIN) + #undef JSON_HEDLEY_HAS_BUILTIN +#endif +#if defined(__has_builtin) + #define JSON_HEDLEY_HAS_BUILTIN(builtin) __has_builtin(builtin) +#else + #define JSON_HEDLEY_HAS_BUILTIN(builtin) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_BUILTIN) + #undef JSON_HEDLEY_GNUC_HAS_BUILTIN +#endif +#if defined(__has_builtin) + #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin) +#else + #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_BUILTIN) + #undef JSON_HEDLEY_GCC_HAS_BUILTIN +#endif +#if defined(__has_builtin) + #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin) +#else + #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_FEATURE) + #undef JSON_HEDLEY_HAS_FEATURE +#endif +#if defined(__has_feature) + #define JSON_HEDLEY_HAS_FEATURE(feature) __has_feature(feature) +#else + #define JSON_HEDLEY_HAS_FEATURE(feature) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_FEATURE) + #undef JSON_HEDLEY_GNUC_HAS_FEATURE +#endif +#if defined(__has_feature) + #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature) +#else + #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_FEATURE) + #undef JSON_HEDLEY_GCC_HAS_FEATURE +#endif +#if defined(__has_feature) + #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature) +#else + #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_EXTENSION) + #undef JSON_HEDLEY_HAS_EXTENSION +#endif +#if defined(__has_extension) + #define JSON_HEDLEY_HAS_EXTENSION(extension) __has_extension(extension) +#else + #define JSON_HEDLEY_HAS_EXTENSION(extension) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_EXTENSION) + #undef JSON_HEDLEY_GNUC_HAS_EXTENSION +#endif +#if defined(__has_extension) + #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension) +#else + #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_EXTENSION) + #undef JSON_HEDLEY_GCC_HAS_EXTENSION +#endif +#if defined(__has_extension) + #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension) +#else + #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE +#endif +#if defined(__has_declspec_attribute) + #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) __has_declspec_attribute(attribute) +#else + #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE +#endif +#if defined(__has_declspec_attribute) + #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute) +#else + #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE +#endif +#if defined(__has_declspec_attribute) + #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute) +#else + #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_WARNING) + #undef JSON_HEDLEY_HAS_WARNING +#endif +#if defined(__has_warning) + #define JSON_HEDLEY_HAS_WARNING(warning) __has_warning(warning) +#else + #define JSON_HEDLEY_HAS_WARNING(warning) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_WARNING) + #undef JSON_HEDLEY_GNUC_HAS_WARNING +#endif +#if defined(__has_warning) + #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning) +#else + #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_WARNING) + #undef JSON_HEDLEY_GCC_HAS_WARNING +#endif +#if defined(__has_warning) + #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning) +#else + #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +/* JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ is for + HEDLEY INTERNAL USE ONLY. API subject to change without notice. */ +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ +#endif +#if defined(__cplusplus) && JSON_HEDLEY_HAS_WARNING("-Wc++98-compat") +# define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \ + xpr \ + JSON_HEDLEY_DIAGNOSTIC_POP +#else +# define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(x) x +#endif + +#if \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \ + defined(__clang__) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(6,0,0) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,17) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) && defined(__C99_PRAGMA_OPERATOR)) + #define JSON_HEDLEY_PRAGMA(value) _Pragma(#value) +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_PRAGMA(value) __pragma(value) +#else + #define JSON_HEDLEY_PRAGMA(value) +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_PUSH) + #undef JSON_HEDLEY_DIAGNOSTIC_PUSH +#endif +#if defined(JSON_HEDLEY_DIAGNOSTIC_POP) + #undef JSON_HEDLEY_DIAGNOSTIC_POP +#endif +#if defined(__clang__) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("clang diagnostic push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("clang diagnostic pop") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("GCC diagnostic push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("GCC diagnostic pop") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH __pragma(warning(push)) + #define JSON_HEDLEY_DIAGNOSTIC_POP __pragma(warning(pop)) +#elif JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("pop") +#elif JSON_HEDLEY_TI_VERSION_CHECK(8,1,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("diag_push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("diag_pop") +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)") +#else + #define JSON_HEDLEY_DIAGNOSTIC_PUSH + #define JSON_HEDLEY_DIAGNOSTIC_POP +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wdeprecated-declarations") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warning(disable:1478 1786)") +#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:4996)) +#elif JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1291,1718") +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && !defined(__cplusplus) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,E_DEPRECATED_ATT,E_DEPRECATED_ATT_MESS)") +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && defined(__cplusplus) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,symdeprecated,symdeprecated2)") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress=Pe1444,Pe1215") +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warn(disable:2241)") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("warning(disable:161)") +#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 1675") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:4068)) +#elif JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress=Pe161") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-attributes") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("clang diagnostic ignored \"-Wunknown-attributes\"") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("warning(disable:1292)") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:5030)) +#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097") +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("error_messages(off,attrskipunsup)") +#elif JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1173") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wcast-qual") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("clang diagnostic ignored \"-Wcast-qual\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("warning(disable:2203 2331)") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("GCC diagnostic ignored \"-Wcast-qual\"") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL +#endif + +#if defined(JSON_HEDLEY_DEPRECATED) + #undef JSON_HEDLEY_DEPRECATED +#endif +#if defined(JSON_HEDLEY_DEPRECATED_FOR) + #undef JSON_HEDLEY_DEPRECATED_FOR +#endif +#if defined(__cplusplus) && (__cplusplus >= 201402L) + #define JSON_HEDLEY_DEPRECATED(since) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since)]]) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since "; use " #replacement)]]) +#elif \ + JSON_HEDLEY_HAS_EXTENSION(attribute_deprecated_with_message) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,3,0) + #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__("Since " #since))) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__("Since " #since "; use " #replacement))) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(deprecated) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_TI_VERSION_CHECK(7,3,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) + #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__)) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__)) +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) + #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated("Since " # since)) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated("Since " #since "; use " #replacement)) +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \ + JSON_HEDLEY_PELLES_VERSION_CHECK(6,50,0) + #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated) +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DEPRECATED(since) _Pragma("deprecated") + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) _Pragma("deprecated") +#else + #define JSON_HEDLEY_DEPRECATED(since) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) +#endif + +#if defined(JSON_HEDLEY_UNAVAILABLE) + #undef JSON_HEDLEY_UNAVAILABLE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(warning) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_UNAVAILABLE(available_since) __attribute__((__warning__("Not available until " #available_since))) +#else + #define JSON_HEDLEY_UNAVAILABLE(available_since) +#endif + +#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT) + #undef JSON_HEDLEY_WARN_UNUSED_RESULT +#endif +#if defined(__cplusplus) && (__cplusplus >= 201703L) + #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]]) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(warn_unused_result) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_TI_VERSION_CHECK(7,3,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) +#elif defined(_Check_return_) /* SAL */ + #define JSON_HEDLEY_WARN_UNUSED_RESULT _Check_return_ +#else + #define JSON_HEDLEY_WARN_UNUSED_RESULT +#endif + +#if defined(JSON_HEDLEY_SENTINEL) + #undef JSON_HEDLEY_SENTINEL +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(sentinel) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) + #define JSON_HEDLEY_SENTINEL(position) __attribute__((__sentinel__(position))) +#else + #define JSON_HEDLEY_SENTINEL(position) +#endif + +#if defined(JSON_HEDLEY_NO_RETURN) + #undef JSON_HEDLEY_NO_RETURN +#endif +#if JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_NO_RETURN __noreturn +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__)) +#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L + #define JSON_HEDLEY_NO_RETURN _Noreturn +#elif defined(__cplusplus) && (__cplusplus >= 201103L) + #define JSON_HEDLEY_NO_RETURN JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[noreturn]]) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(noreturn) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,2,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(18,0,0) || \ + (JSON_HEDLEY_TI_VERSION_CHECK(17,3,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) + #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__)) +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) + #define JSON_HEDLEY_NO_RETURN _Pragma("does_not_return") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) + #define JSON_HEDLEY_NO_RETURN __declspec(noreturn) +#elif JSON_HEDLEY_TI_VERSION_CHECK(6,0,0) && defined(__cplusplus) + #define JSON_HEDLEY_NO_RETURN _Pragma("FUNC_NEVER_RETURNS;") +#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0) + #define JSON_HEDLEY_NO_RETURN __attribute((noreturn)) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0) + #define JSON_HEDLEY_NO_RETURN __declspec(noreturn) +#else + #define JSON_HEDLEY_NO_RETURN +#endif + +#if defined(JSON_HEDLEY_NO_ESCAPE) + #undef JSON_HEDLEY_NO_ESCAPE +#endif +#if JSON_HEDLEY_HAS_ATTRIBUTE(noescape) + #define JSON_HEDLEY_NO_ESCAPE __attribute__((__noescape__)) +#else + #define JSON_HEDLEY_NO_ESCAPE +#endif + +#if defined(JSON_HEDLEY_UNREACHABLE) + #undef JSON_HEDLEY_UNREACHABLE +#endif +#if defined(JSON_HEDLEY_UNREACHABLE_RETURN) + #undef JSON_HEDLEY_UNREACHABLE_RETURN +#endif +#if \ + (JSON_HEDLEY_HAS_BUILTIN(__builtin_unreachable) && (!defined(JSON_HEDLEY_ARM_VERSION))) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,5) + #define JSON_HEDLEY_UNREACHABLE() __builtin_unreachable() +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) + #define JSON_HEDLEY_UNREACHABLE() __assume(0) +#elif JSON_HEDLEY_TI_VERSION_CHECK(6,0,0) + #if defined(__cplusplus) + #define JSON_HEDLEY_UNREACHABLE() std::_nassert(0) + #else + #define JSON_HEDLEY_UNREACHABLE() _nassert(0) + #endif + #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return value +#elif defined(EXIT_FAILURE) + #define JSON_HEDLEY_UNREACHABLE() abort() +#else + #define JSON_HEDLEY_UNREACHABLE() + #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return value +#endif +#if !defined(JSON_HEDLEY_UNREACHABLE_RETURN) + #define JSON_HEDLEY_UNREACHABLE_RETURN(value) JSON_HEDLEY_UNREACHABLE() +#endif + +#if defined(JSON_HEDLEY_ASSUME) + #undef JSON_HEDLEY_ASSUME +#endif +#if \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_ASSUME(expr) __assume(expr) +#elif JSON_HEDLEY_HAS_BUILTIN(__builtin_assume) + #define JSON_HEDLEY_ASSUME(expr) __builtin_assume(expr) +#elif JSON_HEDLEY_TI_VERSION_CHECK(6,0,0) + #if defined(__cplusplus) + #define JSON_HEDLEY_ASSUME(expr) std::_nassert(expr) + #else + #define JSON_HEDLEY_ASSUME(expr) _nassert(expr) + #endif +#elif \ + (JSON_HEDLEY_HAS_BUILTIN(__builtin_unreachable) && !defined(JSON_HEDLEY_ARM_VERSION)) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,5) + #define JSON_HEDLEY_ASSUME(expr) ((void) ((expr) ? 1 : (__builtin_unreachable(), 1))) +#else + #define JSON_HEDLEY_ASSUME(expr) ((void) (expr)) +#endif + +JSON_HEDLEY_DIAGNOSTIC_PUSH +#if JSON_HEDLEY_HAS_WARNING("-Wpedantic") + #pragma clang diagnostic ignored "-Wpedantic" +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic") && defined(__cplusplus) + #pragma clang diagnostic ignored "-Wc++98-compat-pedantic" +#endif +#if JSON_HEDLEY_GCC_HAS_WARNING("-Wvariadic-macros",4,0,0) + #if defined(__clang__) + #pragma clang diagnostic ignored "-Wvariadic-macros" + #elif defined(JSON_HEDLEY_GCC_VERSION) + #pragma GCC diagnostic ignored "-Wvariadic-macros" + #endif +#endif +#if defined(JSON_HEDLEY_NON_NULL) + #undef JSON_HEDLEY_NON_NULL +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(nonnull) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) + #define JSON_HEDLEY_NON_NULL(...) __attribute__((__nonnull__(__VA_ARGS__))) +#else + #define JSON_HEDLEY_NON_NULL(...) +#endif +JSON_HEDLEY_DIAGNOSTIC_POP + +#if defined(JSON_HEDLEY_PRINTF_FORMAT) + #undef JSON_HEDLEY_PRINTF_FORMAT +#endif +#if defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && !defined(__USE_MINGW_ANSI_STDIO) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(ms_printf, string_idx, first_to_check))) +#elif defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && defined(__USE_MINGW_ANSI_STDIO) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(gnu_printf, string_idx, first_to_check))) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(format) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_TI_VERSION_CHECK(7,3,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(__printf__, string_idx, first_to_check))) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(6,0,0) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check)) +#else + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) +#endif + +#if defined(JSON_HEDLEY_CONSTEXPR) + #undef JSON_HEDLEY_CONSTEXPR +#endif +#if defined(__cplusplus) + #if __cplusplus >= 201103L + #define JSON_HEDLEY_CONSTEXPR JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(constexpr) + #endif +#endif +#if !defined(JSON_HEDLEY_CONSTEXPR) + #define JSON_HEDLEY_CONSTEXPR +#endif + +#if defined(JSON_HEDLEY_PREDICT) + #undef JSON_HEDLEY_PREDICT +#endif +#if defined(JSON_HEDLEY_LIKELY) + #undef JSON_HEDLEY_LIKELY +#endif +#if defined(JSON_HEDLEY_UNLIKELY) + #undef JSON_HEDLEY_UNLIKELY +#endif +#if defined(JSON_HEDLEY_UNPREDICTABLE) + #undef JSON_HEDLEY_UNPREDICTABLE +#endif +#if JSON_HEDLEY_HAS_BUILTIN(__builtin_unpredictable) + #define JSON_HEDLEY_UNPREDICTABLE(expr) __builtin_unpredictable(!!(expr)) +#endif +#if \ + JSON_HEDLEY_HAS_BUILTIN(__builtin_expect_with_probability) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(9,0,0) +# define JSON_HEDLEY_PREDICT(expr, value, probability) __builtin_expect_with_probability(expr, value, probability) +# define JSON_HEDLEY_PREDICT_TRUE(expr, probability) __builtin_expect_with_probability(!!(expr), 1, probability) +# define JSON_HEDLEY_PREDICT_FALSE(expr, probability) __builtin_expect_with_probability(!!(expr), 0, probability) +# define JSON_HEDLEY_LIKELY(expr) __builtin_expect(!!(expr), 1) +# define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect(!!(expr), 0) +#if !defined(JSON_HEDLEY_BUILTIN_UNPREDICTABLE) + #define JSON_HEDLEY_BUILTIN_UNPREDICTABLE(expr) __builtin_expect_with_probability(!!(expr), 1, 0.5) +#endif +#elif \ + JSON_HEDLEY_HAS_BUILTIN(__builtin_expect) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(6,1,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,27) +# define JSON_HEDLEY_PREDICT(expr, expected, probability) \ + (((probability) >= 0.9) ? __builtin_expect(!!(expr), (expected)) : (((void) (expected)), !!(expr))) +# define JSON_HEDLEY_PREDICT_TRUE(expr, probability) \ + (__extension__ ({ \ + JSON_HEDLEY_CONSTEXPR double hedley_probability_ = (probability); \ + ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 1) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 0) : !!(expr))); \ + })) +# define JSON_HEDLEY_PREDICT_FALSE(expr, probability) \ + (__extension__ ({ \ + JSON_HEDLEY_CONSTEXPR double hedley_probability_ = (probability); \ + ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 0) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 1) : !!(expr))); \ + })) +# define JSON_HEDLEY_LIKELY(expr) __builtin_expect(!!(expr), 1) +# define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect(!!(expr), 0) +#else +# define JSON_HEDLEY_PREDICT(expr, expected, probability) (((void) (expected)), !!(expr)) +# define JSON_HEDLEY_PREDICT_TRUE(expr, probability) (!!(expr)) +# define JSON_HEDLEY_PREDICT_FALSE(expr, probability) (!!(expr)) +# define JSON_HEDLEY_LIKELY(expr) (!!(expr)) +# define JSON_HEDLEY_UNLIKELY(expr) (!!(expr)) +#endif +#if !defined(JSON_HEDLEY_UNPREDICTABLE) + #define JSON_HEDLEY_UNPREDICTABLE(expr) JSON_HEDLEY_PREDICT(expr, 1, 0.5) +#endif + +#if defined(JSON_HEDLEY_MALLOC) + #undef JSON_HEDLEY_MALLOC +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(malloc) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_TI_VERSION_CHECK(7,3,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) + #define JSON_HEDLEY_MALLOC __attribute__((__malloc__)) +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) + #define JSON_HEDLEY_MALLOC _Pragma("returns_new_memory") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(14, 0, 0) + #define JSON_HEDLEY_MALLOC __declspec(restrict) +#else + #define JSON_HEDLEY_MALLOC +#endif + +#if defined(JSON_HEDLEY_PURE) + #undef JSON_HEDLEY_PURE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(pure) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(2,96,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_TI_VERSION_CHECK(7,3,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_PURE __attribute__((__pure__)) +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) + #define JSON_HEDLEY_PURE _Pragma("does_not_write_global_data") +#elif JSON_HEDLEY_TI_VERSION_CHECK(6,0,0) && defined(__cplusplus) + #define JSON_HEDLEY_PURE _Pragma("FUNC_IS_PURE;") +#else + #define JSON_HEDLEY_PURE +#endif + +#if defined(JSON_HEDLEY_CONST) + #undef JSON_HEDLEY_CONST +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(const) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(2,5,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_TI_VERSION_CHECK(7,3,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_CONST __attribute__((__const__)) +#elif \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) + #define JSON_HEDLEY_CONST _Pragma("no_side_effect") +#else + #define JSON_HEDLEY_CONST JSON_HEDLEY_PURE +#endif + +#if defined(JSON_HEDLEY_RESTRICT) + #undef JSON_HEDLEY_RESTRICT +#endif +#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus) + #define JSON_HEDLEY_RESTRICT restrict +#elif \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)) || \ + JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \ + defined(__clang__) + #define JSON_HEDLEY_RESTRICT __restrict +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,3,0) && !defined(__cplusplus) + #define JSON_HEDLEY_RESTRICT _Restrict +#else + #define JSON_HEDLEY_RESTRICT +#endif + +#if defined(JSON_HEDLEY_INLINE) + #undef JSON_HEDLEY_INLINE +#endif +#if \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \ + (defined(__cplusplus) && (__cplusplus >= 199711L)) + #define JSON_HEDLEY_INLINE inline +#elif \ + defined(JSON_HEDLEY_GCC_VERSION) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(6,2,0) + #define JSON_HEDLEY_INLINE __inline__ +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_INLINE __inline +#else + #define JSON_HEDLEY_INLINE +#endif + +#if defined(JSON_HEDLEY_ALWAYS_INLINE) + #undef JSON_HEDLEY_ALWAYS_INLINE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(always_inline) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_TI_VERSION_CHECK(7,3,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) + #define JSON_HEDLEY_ALWAYS_INLINE __attribute__((__always_inline__)) JSON_HEDLEY_INLINE +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) + #define JSON_HEDLEY_ALWAYS_INLINE __forceinline +#elif JSON_HEDLEY_TI_VERSION_CHECK(7,0,0) && defined(__cplusplus) + #define JSON_HEDLEY_ALWAYS_INLINE _Pragma("FUNC_ALWAYS_INLINE;") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_ALWAYS_INLINE _Pragma("inline=forced") +#else + #define JSON_HEDLEY_ALWAYS_INLINE JSON_HEDLEY_INLINE +#endif + +#if defined(JSON_HEDLEY_NEVER_INLINE) + #undef JSON_HEDLEY_NEVER_INLINE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(noinline) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_TI_VERSION_CHECK(7,3,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) + #define JSON_HEDLEY_NEVER_INLINE __attribute__((__noinline__)) +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) + #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline) +#elif JSON_HEDLEY_PGI_VERSION_CHECK(10,2,0) + #define JSON_HEDLEY_NEVER_INLINE _Pragma("noinline") +#elif JSON_HEDLEY_TI_VERSION_CHECK(6,0,0) && defined(__cplusplus) + #define JSON_HEDLEY_NEVER_INLINE _Pragma("FUNC_CANNOT_INLINE;") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_NEVER_INLINE _Pragma("inline=never") +#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0) + #define JSON_HEDLEY_NEVER_INLINE __attribute((noinline)) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0) + #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline) +#else + #define JSON_HEDLEY_NEVER_INLINE +#endif + +#if defined(JSON_HEDLEY_PRIVATE) + #undef JSON_HEDLEY_PRIVATE +#endif +#if defined(JSON_HEDLEY_PUBLIC) + #undef JSON_HEDLEY_PUBLIC +#endif +#if defined(JSON_HEDLEY_IMPORT) + #undef JSON_HEDLEY_IMPORT +#endif +#if defined(_WIN32) || defined(__CYGWIN__) + #define JSON_HEDLEY_PRIVATE + #define JSON_HEDLEY_PUBLIC __declspec(dllexport) + #define JSON_HEDLEY_IMPORT __declspec(dllimport) +#else + #if \ + JSON_HEDLEY_HAS_ATTRIBUTE(visibility) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_TI_VERSION_CHECK(7,3,0) && defined(__TI_EABI__) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) + #define JSON_HEDLEY_PRIVATE __attribute__((__visibility__("hidden"))) + #define JSON_HEDLEY_PUBLIC __attribute__((__visibility__("default"))) + #else + #define JSON_HEDLEY_PRIVATE + #define JSON_HEDLEY_PUBLIC + #endif + #define JSON_HEDLEY_IMPORT extern +#endif + +#if defined(JSON_HEDLEY_NO_THROW) + #undef JSON_HEDLEY_NO_THROW +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(nothrow) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_NO_THROW __attribute__((__nothrow__)) +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) + #define JSON_HEDLEY_NO_THROW __declspec(nothrow) +#else + #define JSON_HEDLEY_NO_THROW +#endif + +#if defined(JSON_HEDLEY_FALL_THROUGH) + #undef JSON_HEDLEY_FALL_THROUGH +#endif +#if JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(fallthrough,7,0,0) && !defined(JSON_HEDLEY_PGI_VERSION) + #define JSON_HEDLEY_FALL_THROUGH __attribute__((__fallthrough__)) +#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(clang,fallthrough) + #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[clang::fallthrough]]) +#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(fallthrough) + #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[fallthrough]]) +#elif defined(__fallthrough) /* SAL */ + #define JSON_HEDLEY_FALL_THROUGH __fallthrough +#else + #define JSON_HEDLEY_FALL_THROUGH +#endif + +#if defined(JSON_HEDLEY_RETURNS_NON_NULL) + #undef JSON_HEDLEY_RETURNS_NON_NULL +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(returns_nonnull) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) + #define JSON_HEDLEY_RETURNS_NON_NULL __attribute__((__returns_nonnull__)) +#elif defined(_Ret_notnull_) /* SAL */ + #define JSON_HEDLEY_RETURNS_NON_NULL _Ret_notnull_ +#else + #define JSON_HEDLEY_RETURNS_NON_NULL +#endif + +#if defined(JSON_HEDLEY_ARRAY_PARAM) + #undef JSON_HEDLEY_ARRAY_PARAM +#endif +#if \ + defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \ + !defined(__STDC_NO_VLA__) && \ + !defined(__cplusplus) && \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + !defined(JSON_HEDLEY_TINYC_VERSION) + #define JSON_HEDLEY_ARRAY_PARAM(name) (name) +#else + #define JSON_HEDLEY_ARRAY_PARAM(name) +#endif + +#if defined(JSON_HEDLEY_IS_CONSTANT) + #undef JSON_HEDLEY_IS_CONSTANT +#endif +#if defined(JSON_HEDLEY_REQUIRE_CONSTEXPR) + #undef JSON_HEDLEY_REQUIRE_CONSTEXPR +#endif +/* JSON_HEDLEY_IS_CONSTEXPR_ is for + HEDLEY INTERNAL USE ONLY. API subject to change without notice. */ +#if defined(JSON_HEDLEY_IS_CONSTEXPR_) + #undef JSON_HEDLEY_IS_CONSTEXPR_ +#endif +#if \ + JSON_HEDLEY_HAS_BUILTIN(__builtin_constant_p) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,19) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(6,1,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) && !defined(__cplusplus)) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) + #define JSON_HEDLEY_IS_CONSTANT(expr) __builtin_constant_p(expr) +#endif +#if !defined(__cplusplus) +# if \ + JSON_HEDLEY_HAS_BUILTIN(__builtin_types_compatible_p) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,24) +#if defined(__INTPTR_TYPE__) + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0)), int*) +#else + #include + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((intptr_t) ((expr) * 0)) : (int*) 0)), int*) +#endif +# elif \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && !defined(JSON_HEDLEY_SUNPRO_VERSION) && !defined(JSON_HEDLEY_PGI_VERSION)) || \ + JSON_HEDLEY_HAS_EXTENSION(c_generic_selections) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,3,0) +#if defined(__INTPTR_TYPE__) + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0), int*: 1, void*: 0) +#else + #include + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((intptr_t) * 0) : (int*) 0), int*: 1, void*: 0) +#endif +# elif \ + defined(JSON_HEDLEY_GCC_VERSION) || \ + defined(JSON_HEDLEY_INTEL_VERSION) || \ + defined(JSON_HEDLEY_TINYC_VERSION) || \ + defined(JSON_HEDLEY_TI_VERSION) || \ + defined(__clang__) +# define JSON_HEDLEY_IS_CONSTEXPR_(expr) ( \ + sizeof(void) != \ + sizeof(*( \ + 1 ? \ + ((void*) ((expr) * 0L) ) : \ +((struct { char v[sizeof(void) * 2]; } *) 1) \ + ) \ + ) \ + ) +# endif +#endif +#if defined(JSON_HEDLEY_IS_CONSTEXPR_) + #if !defined(JSON_HEDLEY_IS_CONSTANT) + #define JSON_HEDLEY_IS_CONSTANT(expr) JSON_HEDLEY_IS_CONSTEXPR_(expr) + #endif + #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (JSON_HEDLEY_IS_CONSTEXPR_(expr) ? (expr) : (-1)) +#else + #if !defined(JSON_HEDLEY_IS_CONSTANT) + #define JSON_HEDLEY_IS_CONSTANT(expr) (0) + #endif + #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (expr) +#endif + +#if defined(JSON_HEDLEY_BEGIN_C_DECLS) + #undef JSON_HEDLEY_BEGIN_C_DECLS +#endif +#if defined(JSON_HEDLEY_END_C_DECLS) + #undef JSON_HEDLEY_END_C_DECLS +#endif +#if defined(JSON_HEDLEY_C_DECL) + #undef JSON_HEDLEY_C_DECL +#endif +#if defined(__cplusplus) + #define JSON_HEDLEY_BEGIN_C_DECLS extern "C" { + #define JSON_HEDLEY_END_C_DECLS } + #define JSON_HEDLEY_C_DECL extern "C" +#else + #define JSON_HEDLEY_BEGIN_C_DECLS + #define JSON_HEDLEY_END_C_DECLS + #define JSON_HEDLEY_C_DECL +#endif + +#if defined(JSON_HEDLEY_STATIC_ASSERT) + #undef JSON_HEDLEY_STATIC_ASSERT +#endif +#if \ + !defined(__cplusplus) && ( \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \ + JSON_HEDLEY_HAS_FEATURE(c_static_assert) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(6,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + defined(_Static_assert) \ + ) +# define JSON_HEDLEY_STATIC_ASSERT(expr, message) _Static_assert(expr, message) +#elif \ + (defined(__cplusplus) && (__cplusplus >= 201103L)) || \ + JSON_HEDLEY_MSVC_VERSION_CHECK(16,0,0) || \ + (defined(__cplusplus) && JSON_HEDLEY_TI_VERSION_CHECK(8,3,0)) +# define JSON_HEDLEY_STATIC_ASSERT(expr, message) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(static_assert(expr, message)) +#else +# define JSON_HEDLEY_STATIC_ASSERT(expr, message) +#endif + +#if defined(JSON_HEDLEY_CONST_CAST) + #undef JSON_HEDLEY_CONST_CAST +#endif +#if defined(__cplusplus) +# define JSON_HEDLEY_CONST_CAST(T, expr) (const_cast(expr)) +#elif \ + JSON_HEDLEY_HAS_WARNING("-Wcast-qual") || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) +# define JSON_HEDLEY_CONST_CAST(T, expr) (__extension__ ({ \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL \ + ((T) (expr)); \ + JSON_HEDLEY_DIAGNOSTIC_POP \ + })) +#else +# define JSON_HEDLEY_CONST_CAST(T, expr) ((T) (expr)) +#endif + +#if defined(JSON_HEDLEY_REINTERPRET_CAST) + #undef JSON_HEDLEY_REINTERPRET_CAST +#endif +#if defined(__cplusplus) + #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) (reinterpret_cast(expr)) +#else + #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) (*((T*) &(expr))) +#endif + +#if defined(JSON_HEDLEY_STATIC_CAST) + #undef JSON_HEDLEY_STATIC_CAST +#endif +#if defined(__cplusplus) + #define JSON_HEDLEY_STATIC_CAST(T, expr) (static_cast(expr)) +#else + #define JSON_HEDLEY_STATIC_CAST(T, expr) ((T) (expr)) +#endif + +#if defined(JSON_HEDLEY_CPP_CAST) + #undef JSON_HEDLEY_CPP_CAST +#endif +#if defined(__cplusplus) + #define JSON_HEDLEY_CPP_CAST(T, expr) static_cast(expr) +#else + #define JSON_HEDLEY_CPP_CAST(T, expr) (expr) +#endif + +#if defined(JSON_HEDLEY_NULL) + #undef JSON_HEDLEY_NULL +#endif +#if defined(__cplusplus) + #if __cplusplus >= 201103L + #define JSON_HEDLEY_NULL JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(nullptr) + #elif defined(NULL) + #define JSON_HEDLEY_NULL NULL + #else + #define JSON_HEDLEY_NULL JSON_HEDLEY_STATIC_CAST(void*, 0) + #endif +#elif defined(NULL) + #define JSON_HEDLEY_NULL NULL +#else + #define JSON_HEDLEY_NULL ((void*) 0) +#endif + +#if defined(JSON_HEDLEY_MESSAGE) + #undef JSON_HEDLEY_MESSAGE +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas") +# define JSON_HEDLEY_MESSAGE(msg) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \ + JSON_HEDLEY_PRAGMA(message msg) \ + JSON_HEDLEY_DIAGNOSTIC_POP +#elif \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message msg) +#elif JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(_CRI message msg) +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg)) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg)) +#else +# define JSON_HEDLEY_MESSAGE(msg) +#endif + +#if defined(JSON_HEDLEY_WARNING) + #undef JSON_HEDLEY_WARNING +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas") +# define JSON_HEDLEY_WARNING(msg) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \ + JSON_HEDLEY_PRAGMA(clang warning msg) \ + JSON_HEDLEY_DIAGNOSTIC_POP +#elif \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,8,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) +# define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(GCC warning msg) +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) +# define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(message(msg)) +#else +# define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_MESSAGE(msg) +#endif + +#if defined(JSON_HEDLEY_REQUIRE) + #undef JSON_HEDLEY_REQUIRE +#endif +#if defined(JSON_HEDLEY_REQUIRE_MSG) + #undef JSON_HEDLEY_REQUIRE_MSG +#endif +#if JSON_HEDLEY_HAS_ATTRIBUTE(diagnose_if) +# if JSON_HEDLEY_HAS_WARNING("-Wgcc-compat") +# define JSON_HEDLEY_REQUIRE(expr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \ + __attribute__((diagnose_if(!(expr), #expr, "error"))) \ + JSON_HEDLEY_DIAGNOSTIC_POP +# define JSON_HEDLEY_REQUIRE_MSG(expr,msg) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \ + __attribute__((diagnose_if(!(expr), msg, "error"))) \ + JSON_HEDLEY_DIAGNOSTIC_POP +# else +# define JSON_HEDLEY_REQUIRE(expr) __attribute__((diagnose_if(!(expr), #expr, "error"))) +# define JSON_HEDLEY_REQUIRE_MSG(expr,msg) __attribute__((diagnose_if(!(expr), msg, "error"))) +# endif +#else +# define JSON_HEDLEY_REQUIRE(expr) +# define JSON_HEDLEY_REQUIRE_MSG(expr,msg) +#endif + +#if defined(JSON_HEDLEY_FLAGS) + #undef JSON_HEDLEY_FLAGS +#endif +#if JSON_HEDLEY_HAS_ATTRIBUTE(flag_enum) + #define JSON_HEDLEY_FLAGS __attribute__((__flag_enum__)) +#endif + +#if defined(JSON_HEDLEY_FLAGS_CAST) + #undef JSON_HEDLEY_FLAGS_CAST +#endif +#if JSON_HEDLEY_INTEL_VERSION_CHECK(19,0,0) +# define JSON_HEDLEY_FLAGS_CAST(T, expr) (__extension__ ({ \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("warning(disable:188)") \ + ((T) (expr)); \ + JSON_HEDLEY_DIAGNOSTIC_POP \ + })) +#else +# define JSON_HEDLEY_FLAGS_CAST(T, expr) JSON_HEDLEY_STATIC_CAST(T, expr) +#endif + +#if defined(JSON_HEDLEY_EMPTY_BASES) + #undef JSON_HEDLEY_EMPTY_BASES +#endif +#if JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,23918) && !JSON_HEDLEY_MSVC_VERSION_CHECK(20,0,0) + #define JSON_HEDLEY_EMPTY_BASES __declspec(empty_bases) +#else + #define JSON_HEDLEY_EMPTY_BASES +#endif + +/* Remaining macros are deprecated. */ + +#if defined(JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK) + #undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK +#endif +#if defined(__clang__) + #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) (0) +#else + #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_CLANG_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE +#endif +#define JSON_HEDLEY_CLANG_HAS_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_ATTRIBUTE(attribute) + +#if defined(JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE +#endif +#define JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) + +#if defined(JSON_HEDLEY_CLANG_HAS_BUILTIN) + #undef JSON_HEDLEY_CLANG_HAS_BUILTIN +#endif +#define JSON_HEDLEY_CLANG_HAS_BUILTIN(builtin) JSON_HEDLEY_HAS_BUILTIN(builtin) + +#if defined(JSON_HEDLEY_CLANG_HAS_FEATURE) + #undef JSON_HEDLEY_CLANG_HAS_FEATURE +#endif +#define JSON_HEDLEY_CLANG_HAS_FEATURE(feature) JSON_HEDLEY_HAS_FEATURE(feature) + +#if defined(JSON_HEDLEY_CLANG_HAS_EXTENSION) + #undef JSON_HEDLEY_CLANG_HAS_EXTENSION +#endif +#define JSON_HEDLEY_CLANG_HAS_EXTENSION(extension) JSON_HEDLEY_HAS_EXTENSION(extension) + +#if defined(JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE +#endif +#define JSON_HEDLEY_CLANG_HAS_DECLSPEC_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) + +#if defined(JSON_HEDLEY_CLANG_HAS_WARNING) + #undef JSON_HEDLEY_CLANG_HAS_WARNING +#endif +#define JSON_HEDLEY_CLANG_HAS_WARNING(warning) JSON_HEDLEY_HAS_WARNING(warning) + +#endif /* !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < X) */ + + +// This file contains all internal macro definitions +// You MUST include macro_unscope.hpp at the end of json.hpp to undef all of them + +// exclude unsupported compilers +#if !defined(JSON_SKIP_UNSUPPORTED_COMPILER_CHECK) + #if defined(__clang__) + #if (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) < 30400 + #error "unsupported Clang version - see https://github.com/nlohmann/json#supported-compilers" + #endif + #elif defined(__GNUC__) && !(defined(__ICC) || defined(__INTEL_COMPILER)) + #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40800 + #error "unsupported GCC version - see https://github.com/nlohmann/json#supported-compilers" + #endif + #endif +#endif + +// C++ language standard detection +#if (defined(__cplusplus) && __cplusplus >= 201703L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464 + #define JSON_HAS_CPP_17 + #define JSON_HAS_CPP_14 +#elif (defined(__cplusplus) && __cplusplus >= 201402L) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1) + #define JSON_HAS_CPP_14 +#endif + +// disable float-equal warnings on GCC/clang +#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wfloat-equal" +#endif + +// disable documentation warnings on clang +#if defined(__clang__) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wdocumentation" +#endif + +// allow to disable exceptions +#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(JSON_NOEXCEPTION) + #define JSON_THROW(exception) throw exception + #define JSON_TRY try + #define JSON_CATCH(exception) catch(exception) + #define JSON_INTERNAL_CATCH(exception) catch(exception) +#else + #include + #define JSON_THROW(exception) std::abort() + #define JSON_TRY if(true) + #define JSON_CATCH(exception) if(false) + #define JSON_INTERNAL_CATCH(exception) if(false) +#endif + +// override exception macros +#if defined(JSON_THROW_USER) + #undef JSON_THROW + #define JSON_THROW JSON_THROW_USER +#endif +#if defined(JSON_TRY_USER) + #undef JSON_TRY + #define JSON_TRY JSON_TRY_USER +#endif +#if defined(JSON_CATCH_USER) + #undef JSON_CATCH + #define JSON_CATCH JSON_CATCH_USER + #undef JSON_INTERNAL_CATCH + #define JSON_INTERNAL_CATCH JSON_CATCH_USER +#endif +#if defined(JSON_INTERNAL_CATCH_USER) + #undef JSON_INTERNAL_CATCH + #define JSON_INTERNAL_CATCH JSON_INTERNAL_CATCH_USER +#endif + +/*! +@brief macro to briefly define a mapping between an enum and JSON +@def NLOHMANN_JSON_SERIALIZE_ENUM +@since version 3.4.0 +*/ +#define NLOHMANN_JSON_SERIALIZE_ENUM(ENUM_TYPE, ...) \ + template \ + inline void to_json(BasicJsonType& j, const ENUM_TYPE& e) \ + { \ + static_assert(std::is_enum::value, #ENUM_TYPE " must be an enum!"); \ + static const std::pair m[] = __VA_ARGS__; \ + auto it = std::find_if(std::begin(m), std::end(m), \ + [e](const std::pair& ej_pair) -> bool \ + { \ + return ej_pair.first == e; \ + }); \ + j = ((it != std::end(m)) ? it : std::begin(m))->second; \ + } \ + template \ + inline void from_json(const BasicJsonType& j, ENUM_TYPE& e) \ + { \ + static_assert(std::is_enum::value, #ENUM_TYPE " must be an enum!"); \ + static const std::pair m[] = __VA_ARGS__; \ + auto it = std::find_if(std::begin(m), std::end(m), \ + [&j](const std::pair& ej_pair) -> bool \ + { \ + return ej_pair.second == j; \ + }); \ + e = ((it != std::end(m)) ? it : std::begin(m))->first; \ + } + +// Ugly macros to avoid uglier copy-paste when specializing basic_json. They +// may be removed in the future once the class is split. + +#define NLOHMANN_BASIC_JSON_TPL_DECLARATION \ + template class ObjectType, \ + template class ArrayType, \ + class StringType, class BooleanType, class NumberIntegerType, \ + class NumberUnsignedType, class NumberFloatType, \ + template class AllocatorType, \ + template class JSONSerializer> + +#define NLOHMANN_BASIC_JSON_TPL \ + basic_json + + +namespace nlohmann +{ +namespace detail +{ +//////////////// +// exceptions // +//////////////// + +/*! +@brief general exception of the @ref basic_json class + +This class is an extension of `std::exception` objects with a member @a id for +exception ids. It is used as the base class for all exceptions thrown by the +@ref basic_json class. This class can hence be used as "wildcard" to catch +exceptions. + +Subclasses: +- @ref parse_error for exceptions indicating a parse error +- @ref invalid_iterator for exceptions indicating errors with iterators +- @ref type_error for exceptions indicating executing a member function with + a wrong type +- @ref out_of_range for exceptions indicating access out of the defined range +- @ref other_error for exceptions indicating other library errors + +@internal +@note To have nothrow-copy-constructible exceptions, we internally use + `std::runtime_error` which can cope with arbitrary-length error messages. + Intermediate strings are built with static functions and then passed to + the actual constructor. +@endinternal + +@liveexample{The following code shows how arbitrary library exceptions can be +caught.,exception} + +@since version 3.0.0 +*/ +class exception : public std::exception +{ + public: + /// returns the explanatory string + JSON_HEDLEY_RETURNS_NON_NULL + const char* what() const noexcept override + { + return m.what(); + } + + /// the id of the exception + const int id; + + protected: + JSON_HEDLEY_NON_NULL(3) + exception(int id_, const char* what_arg) : id(id_), m(what_arg) {} + + static std::string name(const std::string& ename, int id_) + { + return "[json.exception." + ename + "." + std::to_string(id_) + "] "; + } + + private: + /// an exception object as storage for error messages + std::runtime_error m; +}; + +/*! +@brief exception indicating a parse error + +This exception is thrown by the library when a parse error occurs. Parse errors +can occur during the deserialization of JSON text, CBOR, MessagePack, as well +as when using JSON Patch. + +Member @a byte holds the byte index of the last read character in the input +file. + +Exceptions have ids 1xx. + +name / id | example message | description +------------------------------ | --------------- | ------------------------- +json.exception.parse_error.101 | parse error at 2: unexpected end of input; expected string literal | This error indicates a syntax error while deserializing a JSON text. The error message describes that an unexpected token (character) was encountered, and the member @a byte indicates the error position. +json.exception.parse_error.102 | parse error at 14: missing or wrong low surrogate | JSON uses the `\uxxxx` format to describe Unicode characters. Code points above above 0xFFFF are split into two `\uxxxx` entries ("surrogate pairs"). This error indicates that the surrogate pair is incomplete or contains an invalid code point. +json.exception.parse_error.103 | parse error: code points above 0x10FFFF are invalid | Unicode supports code points up to 0x10FFFF. Code points above 0x10FFFF are invalid. +json.exception.parse_error.104 | parse error: JSON patch must be an array of objects | [RFC 6902](https://tools.ietf.org/html/rfc6902) requires a JSON Patch document to be a JSON document that represents an array of objects. +json.exception.parse_error.105 | parse error: operation must have string member 'op' | An operation of a JSON Patch document must contain exactly one "op" member, whose value indicates the operation to perform. Its value must be one of "add", "remove", "replace", "move", "copy", or "test"; other values are errors. +json.exception.parse_error.106 | parse error: array index '01' must not begin with '0' | An array index in a JSON Pointer ([RFC 6901](https://tools.ietf.org/html/rfc6901)) may be `0` or any number without a leading `0`. +json.exception.parse_error.107 | parse error: JSON pointer must be empty or begin with '/' - was: 'foo' | A JSON Pointer must be a Unicode string containing a sequence of zero or more reference tokens, each prefixed by a `/` character. +json.exception.parse_error.108 | parse error: escape character '~' must be followed with '0' or '1' | In a JSON Pointer, only `~0` and `~1` are valid escape sequences. +json.exception.parse_error.109 | parse error: array index 'one' is not a number | A JSON Pointer array index must be a number. +json.exception.parse_error.110 | parse error at 1: cannot read 2 bytes from vector | When parsing CBOR or MessagePack, the byte vector ends before the complete value has been read. +json.exception.parse_error.112 | parse error at 1: error reading CBOR; last byte: 0xF8 | Not all types of CBOR or MessagePack are supported. This exception occurs if an unsupported byte was read. +json.exception.parse_error.113 | parse error at 2: expected a CBOR string; last byte: 0x98 | While parsing a map key, a value that is not a string has been read. +json.exception.parse_error.114 | parse error: Unsupported BSON record type 0x0F | The parsing of the corresponding BSON record type is not implemented (yet). + +@note For an input with n bytes, 1 is the index of the first character and n+1 + is the index of the terminating null byte or the end of file. This also + holds true when reading a byte vector (CBOR or MessagePack). + +@liveexample{The following code shows how a `parse_error` exception can be +caught.,parse_error} + +@sa - @ref exception for the base class of the library exceptions +@sa - @ref invalid_iterator for exceptions indicating errors with iterators +@sa - @ref type_error for exceptions indicating executing a member function with + a wrong type +@sa - @ref out_of_range for exceptions indicating access out of the defined range +@sa - @ref other_error for exceptions indicating other library errors + +@since version 3.0.0 +*/ +class parse_error : public exception +{ + public: + /*! + @brief create a parse error exception + @param[in] id_ the id of the exception + @param[in] pos the position where the error occurred (or with + chars_read_total=0 if the position cannot be + determined) + @param[in] what_arg the explanatory string + @return parse_error object + */ + static parse_error create(int id_, const position_t& pos, const std::string& what_arg) + { + std::string w = exception::name("parse_error", id_) + "parse error" + + position_string(pos) + ": " + what_arg; + return parse_error(id_, pos.chars_read_total, w.c_str()); + } + + static parse_error create(int id_, std::size_t byte_, const std::string& what_arg) + { + std::string w = exception::name("parse_error", id_) + "parse error" + + (byte_ != 0 ? (" at byte " + std::to_string(byte_)) : "") + + ": " + what_arg; + return parse_error(id_, byte_, w.c_str()); + } + + /*! + @brief byte index of the parse error + + The byte index of the last read character in the input file. + + @note For an input with n bytes, 1 is the index of the first character and + n+1 is the index of the terminating null byte or the end of file. + This also holds true when reading a byte vector (CBOR or MessagePack). + */ + const std::size_t byte; + + private: + parse_error(int id_, std::size_t byte_, const char* what_arg) + : exception(id_, what_arg), byte(byte_) {} + + static std::string position_string(const position_t& pos) + { + return " at line " + std::to_string(pos.lines_read + 1) + + ", column " + std::to_string(pos.chars_read_current_line); + } +}; + +/*! +@brief exception indicating errors with iterators + +This exception is thrown if iterators passed to a library function do not match +the expected semantics. + +Exceptions have ids 2xx. + +name / id | example message | description +----------------------------------- | --------------- | ------------------------- +json.exception.invalid_iterator.201 | iterators are not compatible | The iterators passed to constructor @ref basic_json(InputIT first, InputIT last) are not compatible, meaning they do not belong to the same container. Therefore, the range (@a first, @a last) is invalid. +json.exception.invalid_iterator.202 | iterator does not fit current value | In an erase or insert function, the passed iterator @a pos does not belong to the JSON value for which the function was called. It hence does not define a valid position for the deletion/insertion. +json.exception.invalid_iterator.203 | iterators do not fit current value | Either iterator passed to function @ref erase(IteratorType first, IteratorType last) does not belong to the JSON value from which values shall be erased. It hence does not define a valid range to delete values from. +json.exception.invalid_iterator.204 | iterators out of range | When an iterator range for a primitive type (number, boolean, or string) is passed to a constructor or an erase function, this range has to be exactly (@ref begin(), @ref end()), because this is the only way the single stored value is expressed. All other ranges are invalid. +json.exception.invalid_iterator.205 | iterator out of range | When an iterator for a primitive type (number, boolean, or string) is passed to an erase function, the iterator has to be the @ref begin() iterator, because it is the only way to address the stored value. All other iterators are invalid. +json.exception.invalid_iterator.206 | cannot construct with iterators from null | The iterators passed to constructor @ref basic_json(InputIT first, InputIT last) belong to a JSON null value and hence to not define a valid range. +json.exception.invalid_iterator.207 | cannot use key() for non-object iterators | The key() member function can only be used on iterators belonging to a JSON object, because other types do not have a concept of a key. +json.exception.invalid_iterator.208 | cannot use operator[] for object iterators | The operator[] to specify a concrete offset cannot be used on iterators belonging to a JSON object, because JSON objects are unordered. +json.exception.invalid_iterator.209 | cannot use offsets with object iterators | The offset operators (+, -, +=, -=) cannot be used on iterators belonging to a JSON object, because JSON objects are unordered. +json.exception.invalid_iterator.210 | iterators do not fit | The iterator range passed to the insert function are not compatible, meaning they do not belong to the same container. Therefore, the range (@a first, @a last) is invalid. +json.exception.invalid_iterator.211 | passed iterators may not belong to container | The iterator range passed to the insert function must not be a subrange of the container to insert to. +json.exception.invalid_iterator.212 | cannot compare iterators of different containers | When two iterators are compared, they must belong to the same container. +json.exception.invalid_iterator.213 | cannot compare order of object iterators | The order of object iterators cannot be compared, because JSON objects are unordered. +json.exception.invalid_iterator.214 | cannot get value | Cannot get value for iterator: Either the iterator belongs to a null value or it is an iterator to a primitive type (number, boolean, or string), but the iterator is different to @ref begin(). + +@liveexample{The following code shows how an `invalid_iterator` exception can be +caught.,invalid_iterator} + +@sa - @ref exception for the base class of the library exceptions +@sa - @ref parse_error for exceptions indicating a parse error +@sa - @ref type_error for exceptions indicating executing a member function with + a wrong type +@sa - @ref out_of_range for exceptions indicating access out of the defined range +@sa - @ref other_error for exceptions indicating other library errors + +@since version 3.0.0 +*/ +class invalid_iterator : public exception +{ + public: + static invalid_iterator create(int id_, const std::string& what_arg) + { + std::string w = exception::name("invalid_iterator", id_) + what_arg; + return invalid_iterator(id_, w.c_str()); + } + + private: + JSON_HEDLEY_NON_NULL(3) + invalid_iterator(int id_, const char* what_arg) + : exception(id_, what_arg) {} +}; + +/*! +@brief exception indicating executing a member function with a wrong type + +This exception is thrown in case of a type error; that is, a library function is +executed on a JSON value whose type does not match the expected semantics. + +Exceptions have ids 3xx. + +name / id | example message | description +----------------------------- | --------------- | ------------------------- +json.exception.type_error.301 | cannot create object from initializer list | To create an object from an initializer list, the initializer list must consist only of a list of pairs whose first element is a string. When this constraint is violated, an array is created instead. +json.exception.type_error.302 | type must be object, but is array | During implicit or explicit value conversion, the JSON type must be compatible to the target type. For instance, a JSON string can only be converted into string types, but not into numbers or boolean types. +json.exception.type_error.303 | incompatible ReferenceType for get_ref, actual type is object | To retrieve a reference to a value stored in a @ref basic_json object with @ref get_ref, the type of the reference must match the value type. For instance, for a JSON array, the @a ReferenceType must be @ref array_t &. +json.exception.type_error.304 | cannot use at() with string | The @ref at() member functions can only be executed for certain JSON types. +json.exception.type_error.305 | cannot use operator[] with string | The @ref operator[] member functions can only be executed for certain JSON types. +json.exception.type_error.306 | cannot use value() with string | The @ref value() member functions can only be executed for certain JSON types. +json.exception.type_error.307 | cannot use erase() with string | The @ref erase() member functions can only be executed for certain JSON types. +json.exception.type_error.308 | cannot use push_back() with string | The @ref push_back() and @ref operator+= member functions can only be executed for certain JSON types. +json.exception.type_error.309 | cannot use insert() with | The @ref insert() member functions can only be executed for certain JSON types. +json.exception.type_error.310 | cannot use swap() with number | The @ref swap() member functions can only be executed for certain JSON types. +json.exception.type_error.311 | cannot use emplace_back() with string | The @ref emplace_back() member function can only be executed for certain JSON types. +json.exception.type_error.312 | cannot use update() with string | The @ref update() member functions can only be executed for certain JSON types. +json.exception.type_error.313 | invalid value to unflatten | The @ref unflatten function converts an object whose keys are JSON Pointers back into an arbitrary nested JSON value. The JSON Pointers must not overlap, because then the resulting value would not be well defined. +json.exception.type_error.314 | only objects can be unflattened | The @ref unflatten function only works for an object whose keys are JSON Pointers. +json.exception.type_error.315 | values in object must be primitive | The @ref unflatten function only works for an object whose keys are JSON Pointers and whose values are primitive. +json.exception.type_error.316 | invalid UTF-8 byte at index 10: 0x7E | The @ref dump function only works with UTF-8 encoded strings; that is, if you assign a `std::string` to a JSON value, make sure it is UTF-8 encoded. | +json.exception.type_error.317 | JSON value cannot be serialized to requested format | The dynamic type of the object cannot be represented in the requested serialization format (e.g. a raw `true` or `null` JSON object cannot be serialized to BSON) | + +@liveexample{The following code shows how a `type_error` exception can be +caught.,type_error} + +@sa - @ref exception for the base class of the library exceptions +@sa - @ref parse_error for exceptions indicating a parse error +@sa - @ref invalid_iterator for exceptions indicating errors with iterators +@sa - @ref out_of_range for exceptions indicating access out of the defined range +@sa - @ref other_error for exceptions indicating other library errors + +@since version 3.0.0 +*/ +class type_error : public exception +{ + public: + static type_error create(int id_, const std::string& what_arg) + { + std::string w = exception::name("type_error", id_) + what_arg; + return type_error(id_, w.c_str()); + } + + private: + JSON_HEDLEY_NON_NULL(3) + type_error(int id_, const char* what_arg) : exception(id_, what_arg) {} +}; + +/*! +@brief exception indicating access out of the defined range + +This exception is thrown in case a library function is called on an input +parameter that exceeds the expected range, for instance in case of array +indices or nonexisting object keys. + +Exceptions have ids 4xx. + +name / id | example message | description +------------------------------- | --------------- | ------------------------- +json.exception.out_of_range.401 | array index 3 is out of range | The provided array index @a i is larger than @a size-1. +json.exception.out_of_range.402 | array index '-' (3) is out of range | The special array index `-` in a JSON Pointer never describes a valid element of the array, but the index past the end. That is, it can only be used to add elements at this position, but not to read it. +json.exception.out_of_range.403 | key 'foo' not found | The provided key was not found in the JSON object. +json.exception.out_of_range.404 | unresolved reference token 'foo' | A reference token in a JSON Pointer could not be resolved. +json.exception.out_of_range.405 | JSON pointer has no parent | The JSON Patch operations 'remove' and 'add' can not be applied to the root element of the JSON value. +json.exception.out_of_range.406 | number overflow parsing '10E1000' | A parsed number could not be stored as without changing it to NaN or INF. +json.exception.out_of_range.407 | number overflow serializing '9223372036854775808' | UBJSON and BSON only support integer numbers up to 9223372036854775807. | +json.exception.out_of_range.408 | excessive array size: 8658170730974374167 | The size (following `#`) of an UBJSON array or object exceeds the maximal capacity. | +json.exception.out_of_range.409 | BSON key cannot contain code point U+0000 (at byte 2) | Key identifiers to be serialized to BSON cannot contain code point U+0000, since the key is stored as zero-terminated c-string | + +@liveexample{The following code shows how an `out_of_range` exception can be +caught.,out_of_range} + +@sa - @ref exception for the base class of the library exceptions +@sa - @ref parse_error for exceptions indicating a parse error +@sa - @ref invalid_iterator for exceptions indicating errors with iterators +@sa - @ref type_error for exceptions indicating executing a member function with + a wrong type +@sa - @ref other_error for exceptions indicating other library errors + +@since version 3.0.0 +*/ +class out_of_range : public exception +{ + public: + static out_of_range create(int id_, const std::string& what_arg) + { + std::string w = exception::name("out_of_range", id_) + what_arg; + return out_of_range(id_, w.c_str()); + } + + private: + JSON_HEDLEY_NON_NULL(3) + out_of_range(int id_, const char* what_arg) : exception(id_, what_arg) {} +}; + +/*! +@brief exception indicating other library errors + +This exception is thrown in case of errors that cannot be classified with the +other exception types. + +Exceptions have ids 5xx. + +name / id | example message | description +------------------------------ | --------------- | ------------------------- +json.exception.other_error.501 | unsuccessful: {"op":"test","path":"/baz", "value":"bar"} | A JSON Patch operation 'test' failed. The unsuccessful operation is also printed. + +@sa - @ref exception for the base class of the library exceptions +@sa - @ref parse_error for exceptions indicating a parse error +@sa - @ref invalid_iterator for exceptions indicating errors with iterators +@sa - @ref type_error for exceptions indicating executing a member function with + a wrong type +@sa - @ref out_of_range for exceptions indicating access out of the defined range + +@liveexample{The following code shows how an `other_error` exception can be +caught.,other_error} + +@since version 3.0.0 +*/ +class other_error : public exception +{ + public: + static other_error create(int id_, const std::string& what_arg) + { + std::string w = exception::name("other_error", id_) + what_arg; + return other_error(id_, w.c_str()); + } + + private: + JSON_HEDLEY_NON_NULL(3) + other_error(int id_, const char* what_arg) : exception(id_, what_arg) {} +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + + +#include // not +#include // size_t +#include // conditional, enable_if, false_type, integral_constant, is_constructible, is_integral, is_same, remove_cv, remove_reference, true_type + +namespace nlohmann +{ +namespace detail +{ +// alias templates to reduce boilerplate +template +using enable_if_t = typename std::enable_if::type; + +template +using uncvref_t = typename std::remove_cv::type>::type; + +// implementation of C++14 index_sequence and affiliates +// source: https://stackoverflow.com/a/32223343 +template +struct index_sequence +{ + using type = index_sequence; + using value_type = std::size_t; + static constexpr std::size_t size() noexcept + { + return sizeof...(Ints); + } +}; + +template +struct merge_and_renumber; + +template +struct merge_and_renumber, index_sequence> + : index_sequence < I1..., (sizeof...(I1) + I2)... > {}; + +template +struct make_index_sequence + : merge_and_renumber < typename make_index_sequence < N / 2 >::type, + typename make_index_sequence < N - N / 2 >::type > {}; + +template<> struct make_index_sequence<0> : index_sequence<> {}; +template<> struct make_index_sequence<1> : index_sequence<0> {}; + +template +using index_sequence_for = make_index_sequence; + +// dispatch utility (taken from ranges-v3) +template struct priority_tag : priority_tag < N - 1 > {}; +template<> struct priority_tag<0> {}; + +// taken from ranges-v3 +template +struct static_const +{ + static constexpr T value{}; +}; + +template +constexpr T static_const::value; +} // namespace detail +} // namespace nlohmann + +// #include + + +#include // not +#include // numeric_limits +#include // false_type, is_constructible, is_integral, is_same, true_type +#include // declval + +// #include + + +#include // random_access_iterator_tag + +// #include + + +namespace nlohmann +{ +namespace detail +{ +template struct make_void +{ + using type = void; +}; +template using void_t = typename make_void::type; +} // namespace detail +} // namespace nlohmann + +// #include + + +namespace nlohmann +{ +namespace detail +{ +template +struct iterator_types {}; + +template +struct iterator_types < + It, + void_t> +{ + using difference_type = typename It::difference_type; + using value_type = typename It::value_type; + using pointer = typename It::pointer; + using reference = typename It::reference; + using iterator_category = typename It::iterator_category; +}; + +// This is required as some compilers implement std::iterator_traits in a way that +// doesn't work with SFINAE. See https://github.com/nlohmann/json/issues/1341. +template +struct iterator_traits +{ +}; + +template +struct iterator_traits < T, enable_if_t < !std::is_pointer::value >> + : iterator_types +{ +}; + +template +struct iterator_traits::value>> +{ + using iterator_category = std::random_access_iterator_tag; + using value_type = T; + using difference_type = ptrdiff_t; + using pointer = T*; + using reference = T&; +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + +// #include + + +#include + +// #include + + +// http://en.cppreference.com/w/cpp/experimental/is_detected +namespace nlohmann +{ +namespace detail +{ +struct nonesuch +{ + nonesuch() = delete; + ~nonesuch() = delete; + nonesuch(nonesuch const&) = delete; + nonesuch(nonesuch const&&) = delete; + void operator=(nonesuch const&) = delete; + void operator=(nonesuch&&) = delete; +}; + +template class Op, + class... Args> +struct detector +{ + using value_t = std::false_type; + using type = Default; +}; + +template class Op, class... Args> +struct detector>, Op, Args...> +{ + using value_t = std::true_type; + using type = Op; +}; + +template