UsingNet / nvcodec-python

MIT License
21 stars 5 forks source link

Installation fails on Orin #7

Open stevefs opened 1 year ago

stevefs commented 1 year ago

Hi Jetson Orin with Jetpack SDK 5.0.2/L4T 35.1.0 I am trying to install nvcodec-python using pip install pynvcodec but getting the follow error The first problem is that nvcc is not found. I will look at that first. nvcc is present so there is likely a pathing issue. Hopefully the following errors follow from that.

ERROR: Command errored out with exit status 1: command: /home/jetson/PycharmProjects/depthai/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j9wh4f2y/pynvcodec_1863374f3ff9407aaadfe261ae6ef2e4/setup.py'"'"'; file='"'"'/tmp/pip-install-j9wh4f2y/pynvcodec_1863374f3ff9407aaadfe261ae6ef2e4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-73lffknw cwd: /tmp/pip-install-j9wh4f2y/pynvcodec_1863374f3ff9407aaadfe261ae6ef2e4/ Complete output (267 lines): running bdist_wheel running build running build_ext mkdir -p build/tests mkdir -p build/lib nvcc -DCUDNN --compiler-options "-fPIC -lstdc++ -pthread -lm" -c src/cuvid/Utils/ColorSpace.cu -o build/lib/libcolor_space.a /bin/sh: 1: nvcc: not found make: [Makefile:45: build/lib/libcolor_space.a] Error 127 creating build/temp.linux-aarch64-3.9 creating build/temp.linux-aarch64-3.9/src creating build/temp.linux-aarch64-3.9/src/cuvid creating build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder creating build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c nvcodec-python.cpp -o build/temp.linux-aarch64-3.9/nvcodec-python.o nvcodec-python.cpp:98:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 98 | }; | ^ nvcodec-python.cpp: In function ‘PyObject VideoDecoder_decode(NvCodec, PyObject)’: nvcodec-python.cpp:118:28: warning: NULL used in arithmetic [-Wpointer-arith] 118 | if(error_str[0] != NULL){ | ^~~~ nvcodec-python.cpp: At global scope: nvcodec-python.cpp:192:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 192 | }; | ^ nvcodec-python.cpp:286:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 286 | }; | ^ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/Logger.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/Logger.o src/cuvid/Logger.cpp:3:30: warning: ‘logger’ initialized and declared ‘extern’ 3 | extern simplelogger::Logger logger = simplelogger::LoggerFactory::CreateConsoleLogger(); | ^~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvDecoder/NvDecoder.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder/NvDecoder.o In file included from src/cuvid/NvDecoder/NvDecoder.h:23, from src/cuvid/NvDecoder/NvDecoder.cpp:18: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘__off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/cuvid/NvDecoder/NvDecoder.h:23, from src/cuvid/NvDecoder/NvDecoder.cpp:18: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ src/cuvid/NvDecoder/NvDecoder.cpp: In function ‘const char GetVideoCodecString(cudaVideoCodec)’: src/cuvid/NvDecoder/NvDecoder.cpp:69:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 69 | for (int i = cudaVideoCodec_NumCodecs + 1; i < sizeof(aCodecName) / sizeof(aCodecName[0]); i++) { | ^~~~~~~~~~ src/cuvid/NvDecoder/NvDecoder.cpp: In member function ‘int NvDecoder::HandleVideoSequence(CUVIDEOFORMAT)’: src/cuvid/NvDecoder/NvDecoder.cpp:293:21: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 293 | if (m_nMaxWidth < (int)pVideoFormat->coded_width) | ~~^~~~~~~~~~ src/cuvid/NvDecoder/NvDecoder.cpp:295:22: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 295 | if (m_nMaxHeight < (int)pVideoFormat->coded_height) | ~~~^~~~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvEncoder/NvEncoder.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoder.o In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ src/cuvid/NvEncoder/NvEncoder.h: In constructor ‘NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE, void, uint32_t, uint32_t, NV_ENC_BUFFER_FORMAT, uint32_t, bool, bool)’: src/cuvid/NvEncoder/NvEncoder.h:431:24: warning: ‘NvEncoder::m_eDeviceType’ will be initialized after [-Wreorder] 431 | NV_ENC_DEVICE_TYPE m_eDeviceType; | ^~~~~ src/cuvid/NvEncoder/NvEncoder.h:427:14: warning: ‘uint32_t NvEncoder::m_nWidth’ [-Wreorder] 427 | uint32_t m_nWidth; | ^~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:439:14: warning: ‘NvEncoder::m_nMaxEncodeHeight’ will be initialized after [-Wreorder] 439 | uint32_t m_nMaxEncodeHeight = 0; | ^~~~~~ src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NV_ENC_BUFFER_FORMAT NvEncoder::m_eBufferFormat’ [-Wreorder] 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NvEncoder::m_eBufferFormat’ will be initialized after [-Wreorder] 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.h:409:10: warning: ‘bool NvEncoder::m_bMotionEstimationOnly’ [-Wreorder] 409 | bool m_bMotionEstimationOnly = false; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:435:14: warning: ‘NvEncoder::m_nExtraOutputDelay’ will be initialized after [-Wreorder] 435 | uint32_t m_nExtraOutputDelay = 3; // To ensure encode and graphics can work in parallel, m_nExtraOutputDelay should be set to at least 1 | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.h:411:11: warning: ‘void NvEncoder::m_hEncoder’ [-Wreorder] 411 | void m_hEncoder = nullptr; | ^~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvEncoder/NvEncoderCuda.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoderCuda.o In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18, from src/cuvid/NvEncoder/NvEncoderCuda.cpp:12: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/decoder.cpp -o build/temp.linux-aarch64-3.9/src/decoder.o In file included from src/decoder.cpp:2: src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘__off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/decoder.cpp:2: src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ In file included from src/decoder.cpp:5: src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’: src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 165 | for (int i = 0; i < sizeof(aeCodec) / sizeof(aeCodec[0]); i++) { | ^~~~~~~~ src/decoder.cpp: In function ‘int videoDecoder_destroy(videoDecoderHandle)’: src/decoder.cpp:25:23: warning: deleting ‘void’ is undefined [-Wdelete-incomplete] 25 | delete(handle->dec); | ^ src/decoder.cpp: In function ‘videoFrameList videoDecoder_decode(videoDecoderHandle, u_int8_t, size_t, char)’: src/decoder.cpp:62:20: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] 62 | error[0] = NULL; | ^~~~ src/decoder.cpp:66:27: warning: catching polymorphic type ‘class NVDECException’ by value [-Wcatch-value=] 66 | }catch(NVDECException e){ | ^ src/decoder.cpp:58:14: warning: unused variable ‘pVideo’ [-Wunused-variable] 58 | uint8_t pVideo = NULL, pFrame; | ^~ In file included from src/decoder.cpp:5: src/cuvid/AppDecUtils.h: At global scope: src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function] 141 | static void ShowDecoderCapability() | ^~~~~ src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char, char, char, int&, bool, int)’ defined but not used [-Wunused-function] 45 | static void ParseCommandLine(int argc, char argv[], char szInputFileName, | ^~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/encoder.cpp -o build/temp.linux-aarch64-3.9/src/encoder.o In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18, from src/encoder.cpp:2: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ In file included from src/encoder.cpp:3: src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/encoder.cpp:3: src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ In file included from src/encoder.cpp:6: src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’: src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 165 | for (int i = 0; i < sizeof(aeCodec) / sizeof(aeCodec[0]); i++) { | ^~~~~~~~ In file included from src/encoder.cpp:7: src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘virtual void NvEncoderInitParam::SetInitParams(NV_ENC_INITIALIZE_PARAMS, NV_ENC_BUFFER_FORMAT)’: src/cuvid/Utils/NvEncoderCLIOptions.h:222:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 222 | tokens[i] == "-codec" && ++i || src/cuvid/Utils/NvEncoderCLIOptions.h:224:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 224 | tokens[i] == "-tuninginfo" && ++i || src/cuvid/Utils/NvEncoderCLIOptions.h:225:67: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 225 | tokens[i] == "-multipass" && ++i != tokens.size() && ParseString("-multipass", tokens[i], vMultiPass, szMultipass, &config.rcParams.multiPass) || src/cuvid/Utils/NvEncoderCLIOptions.h:226:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 226 | tokens[i] == "-profile" && ++i != tokens.size() && (IsCodecH264() ? src/cuvid/Utils/NvEncoderCLIOptions.h:229:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 229 | tokens[i] == "-rc" && ++i != tokens.size() && ParseString("-rc", tokens[i], vRcMode, szRcModeNames, &config.rcParams.rateControlMode) || src/cuvid/Utils/NvEncoderCLIOptions.h:230:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 230 | tokens[i] == "-fps" && ++i != tokens.size() && ParseInt("-fps", tokens[i], &pParams->frameRateNum) || src/cuvid/Utils/NvEncoderCLIOptions.h:231:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 231 | tokens[i] == "-bf" && ++i != tokens.size() && ParseInt("-bf", tokens[i], &config.frameIntervalP) && ++config.frameIntervalP || src/cuvid/Utils/NvEncoderCLIOptions.h:232:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 232 | tokens[i] == "-bitrate" && ++i != tokens.size() && ParseBitRate("-bitrate", tokens[i], &config.rcParams.averageBitRate) || src/cuvid/Utils/NvEncoderCLIOptions.h:233:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 233 | tokens[i] == "-maxbitrate" && ++i != tokens.size() && ParseBitRate("-maxbitrate", tokens[i], &config.rcParams.maxBitRate) || src/cuvid/Utils/NvEncoderCLIOptions.h:234:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 234 | tokens[i] == "-vbvbufsize" && ++i != tokens.size() && ParseBitRate("-vbvbufsize", tokens[i], &config.rcParams.vbvBufferSize) || src/cuvid/Utils/NvEncoderCLIOptions.h:235:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 235 | tokens[i] == "-vbvinit" && ++i != tokens.size() && ParseBitRate("-vbvinit", tokens[i], &config.rcParams.vbvInitialDelay) || src/cuvid/Utils/NvEncoderCLIOptions.h:236:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 236 | tokens[i] == "-cq" && ++i != tokens.size() && ParseInt("-cq", tokens[i], &config.rcParams.targetQuality) || src/cuvid/Utils/NvEncoderCLIOptions.h:237:140: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 237 | tokens[i] == "-initqp" && ++i != tokens.size() && ParseQp("-initqp", tokens[i], &config.rcParams.initialRCQP) && (config.rcParams.enableInitialRCQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:238:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 238 | tokens[i] == "-qmin" && ++i != tokens.size() && ParseQp("-qmin", tokens[i], &config.rcParams.minQP) && (config.rcParams.enableMinQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:239:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 239 | tokens[i] == "-qmax" && ++i != tokens.size() && ParseQp("-qmax", tokens[i], &config.rcParams.maxQP) && (config.rcParams.enableMaxQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:240:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 240 | tokens[i] == "-constqp" && ++i != tokens.size() && ParseQp("-constqp", tokens[i], &config.rcParams.constQP) || src/cuvid/Utils/NvEncoderCLIOptions.h:241:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 241 | tokens[i] == "-temporalaq" && (config.rcParams.enableTemporalAQ = true) src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseBitRate(const string&, const string&, unsigned int)’: src/cuvid/Utils/NvEncoderCLIOptions.h:338:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 338 | } catch (std::invalid_argument) { | ^~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseQp(const string&, const string&, NV_ENC_QP)’: src/cuvid/Utils/NvEncoderCLIOptions.h:365:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 365 | } catch (std::invalid_argument) { | ^~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = unsigned int; std::string = std::__cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:230:132: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 347 | } catch (std::invalid_argument) { | ^~~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = int; std::string = std::cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:231:132: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = unsigned char; std::string = std::__cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:236:140: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = short unsigned int; std::string = std::__cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:246:135: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] In file included from src/encoder.cpp:6: src/cuvid/AppDecUtils.h: At global scope: src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function] 141 | static void ShowDecoderCapability() | ^~~~~ src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char*, char, char, int&, bool, int)’ defined but not used [-Wunused-function] 45 | static void ParseCommandLine(int argc, char argv[], char szInputFileName, | ^~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/source.cpp -o build/temp.linux-aarch64-3.9/src/source.o src/source.cpp: In function ‘videoSource videoSource_init(char*, int)’: src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations] 10 | av_register_all(); | ^ In file included from src/source.h:8, from src/source.cpp:2: /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here 2050 | void av_register_all(void); | ^~~~~~~ src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations] 10 | av_register_all(); | ^ In file included from src/source.h:8, from src/source.cpp:2: /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here 2050 | void av_register_all(void); | ^~~~~~~ creating build/lib.linux-aarch64-3.9 aarch64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 build/temp.linux-aarch64-3.9/nvcodec-python.o build/temp.linux-aarch64-3.9/src/cuvid/Logger.o build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder/NvDecoder.o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoder.o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoderCuda.o build/temp.linux-aarch64-3.9/src/decoder.o build/temp.linux-aarch64-3.9/src/encoder.o build/temp.linux-aarch64-3.9/src/source.o -Lbuild/lib -L/usr/local/cuda-11.2/targets/x86_64-linux/lib -L/usr/lib/aarch64-linux-gnu -lavformat -lavcodec -lavutil -lnvcuvid -lnvidia-encode -lcuda -lstdc++ -lm -lcudart -lcolor_space -o build/lib.linux-aarch64-3.9/nvcodec.cpython-39-aarch64-linux-gnu.so /usr/bin/ld: cannot find -lnvcuvid /usr/bin/ld: cannot find -lnvidia-encode /usr/bin/ld: cannot find -lcudart /usr/bin/ld: cannot find -lcolor_space collect2: error: ld returned 1 exit status error: command '/usr/bin/aarch64-linux-gnu-g++' failed with exit code 1

ERROR: Failed building wheel for pynvcodec ERROR: Command errored out with exit status 1: command: /home/jetson/PycharmProjects/depthai/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j9wh4f2y/pynvcodec_1863374f3ff9407aaadfe261ae6ef2e4/setup.py'"'"'; file='"'"'/tmp/pip-install-j9wh4f2y/pynvcodec_1863374f3ff9407aaadfe261ae6ef2e4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-k_uqvl9e/install-record.txt --single-version-externally-managed --compile --install-headers /home/jetson/PycharmProjects/depthai/venv/include/site/python3.9/pynvcodec cwd: /tmp/pip-install-j9wh4f2y/pynvcodec_1863374f3ff9407aaadfe261ae6ef2e4/ Complete output (269 lines): running install /home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_ext mkdir -p build/tests mkdir -p build/lib nvcc -DCUDNN --compiler-options "-fPIC -lstdc++ -pthread -lm" -c src/cuvid/Utils/ColorSpace.cu -o build/lib/libcolor_space.a /bin/sh: 1: nvcc: not found make: [Makefile:45: build/lib/libcolor_space.a] Error 127 creating build/temp.linux-aarch64-3.9 creating build/temp.linux-aarch64-3.9/src creating build/temp.linux-aarch64-3.9/src/cuvid creating build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder creating build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c nvcodec-python.cpp -o build/temp.linux-aarch64-3.9/nvcodec-python.o nvcodec-python.cpp:98:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 98 | }; | ^ nvcodec-python.cpp: In function ‘PyObject VideoDecoder_decode(NvCodec, PyObject)’: nvcodec-python.cpp:118:28: warning: NULL used in arithmetic [-Wpointer-arith] 118 | if(error_str[0] != NULL){ | ^~~~ nvcodec-python.cpp: At global scope: nvcodec-python.cpp:192:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 192 | }; | ^ nvcodec-python.cpp:286:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 286 | }; | ^ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/Logger.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/Logger.o src/cuvid/Logger.cpp:3:30: warning: ‘logger’ initialized and declared ‘extern’ 3 | extern simplelogger::Logger logger = simplelogger::LoggerFactory::CreateConsoleLogger(); | ^~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvDecoder/NvDecoder.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder/NvDecoder.o In file included from src/cuvid/NvDecoder/NvDecoder.h:23, from src/cuvid/NvDecoder/NvDecoder.cpp:18: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘__off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/cuvid/NvDecoder/NvDecoder.h:23, from src/cuvid/NvDecoder/NvDecoder.cpp:18: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ src/cuvid/NvDecoder/NvDecoder.cpp: In function ‘const char GetVideoCodecString(cudaVideoCodec)’: src/cuvid/NvDecoder/NvDecoder.cpp:69:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 69 | for (int i = cudaVideoCodec_NumCodecs + 1; i < sizeof(aCodecName) / sizeof(aCodecName[0]); i++) { | ^~~~~~~~~~ src/cuvid/NvDecoder/NvDecoder.cpp: In member function ‘int NvDecoder::HandleVideoSequence(CUVIDEOFORMAT)’: src/cuvid/NvDecoder/NvDecoder.cpp:293:21: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 293 | if (m_nMaxWidth < (int)pVideoFormat->coded_width) | ~~^~~~~~~~~~ src/cuvid/NvDecoder/NvDecoder.cpp:295:22: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 295 | if (m_nMaxHeight < (int)pVideoFormat->coded_height) | ~~~^~~~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvEncoder/NvEncoder.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoder.o In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ src/cuvid/NvEncoder/NvEncoder.h: In constructor ‘NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE, void, uint32_t, uint32_t, NV_ENC_BUFFER_FORMAT, uint32_t, bool, bool)’: src/cuvid/NvEncoder/NvEncoder.h:431:24: warning: ‘NvEncoder::m_eDeviceType’ will be initialized after [-Wreorder] 431 | NV_ENC_DEVICE_TYPE m_eDeviceType; | ^~~~~ src/cuvid/NvEncoder/NvEncoder.h:427:14: warning: ‘uint32_t NvEncoder::m_nWidth’ [-Wreorder] 427 | uint32_t m_nWidth; | ^~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:439:14: warning: ‘NvEncoder::m_nMaxEncodeHeight’ will be initialized after [-Wreorder] 439 | uint32_t m_nMaxEncodeHeight = 0; | ^~~~~~ src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NV_ENC_BUFFER_FORMAT NvEncoder::m_eBufferFormat’ [-Wreorder] 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NvEncoder::m_eBufferFormat’ will be initialized after [-Wreorder] 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.h:409:10: warning: ‘bool NvEncoder::m_bMotionEstimationOnly’ [-Wreorder] 409 | bool m_bMotionEstimationOnly = false; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:435:14: warning: ‘NvEncoder::m_nExtraOutputDelay’ will be initialized after [-Wreorder] 435 | uint32_t m_nExtraOutputDelay = 3; // To ensure encode and graphics can work in parallel, m_nExtraOutputDelay should be set to at least 1 | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.h:411:11: warning: ‘void NvEncoder::m_hEncoder’ [-Wreorder] 411 | void m_hEncoder = nullptr; | ^~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvEncoder/NvEncoderCuda.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoderCuda.o In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18, from src/cuvid/NvEncoder/NvEncoderCuda.cpp:12: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/decoder.cpp -o build/temp.linux-aarch64-3.9/src/decoder.o In file included from src/decoder.cpp:2: src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘__off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/decoder.cpp:2: src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ In file included from src/decoder.cpp:5: src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’: src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 165 | for (int i = 0; i < sizeof(aeCodec) / sizeof(aeCodec[0]); i++) { | ^~~~~~~~ src/decoder.cpp: In function ‘int videoDecoder_destroy(videoDecoderHandle)’: src/decoder.cpp:25:23: warning: deleting ‘void’ is undefined [-Wdelete-incomplete] 25 | delete(handle->dec); | ^ src/decoder.cpp: In function ‘videoFrameList videoDecoder_decode(videoDecoderHandle, u_int8_t, size_t, char)’: src/decoder.cpp:62:20: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] 62 | error[0] = NULL; | ^~~~ src/decoder.cpp:66:27: warning: catching polymorphic type ‘class NVDECException’ by value [-Wcatch-value=] 66 | }catch(NVDECException e){ | ^ src/decoder.cpp:58:14: warning: unused variable ‘pVideo’ [-Wunused-variable] 58 | uint8_t pVideo = NULL, pFrame; | ^~ In file included from src/decoder.cpp:5: src/cuvid/AppDecUtils.h: At global scope: src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function] 141 | static void ShowDecoderCapability() | ^~~~~ src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char, char, char, int&, bool, int)’ defined but not used [-Wunused-function] 45 | static void ParseCommandLine(int argc, char argv[], char szInputFileName, | ^~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/encoder.cpp -o build/temp.linux-aarch64-3.9/src/encoder.o In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18, from src/encoder.cpp:2: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ In file included from src/encoder.cpp:3: src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/encoder.cpp:3: src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ In file included from src/encoder.cpp:6: src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’: src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 165 | for (int i = 0; i < sizeof(aeCodec) / sizeof(aeCodec[0]); i++) { | ^~~~~~~~ In file included from src/encoder.cpp:7: src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘virtual void NvEncoderInitParam::SetInitParams(NV_ENC_INITIALIZE_PARAMS, NV_ENC_BUFFER_FORMAT)’: src/cuvid/Utils/NvEncoderCLIOptions.h:222:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 222 | tokens[i] == "-codec" && ++i || src/cuvid/Utils/NvEncoderCLIOptions.h:224:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 224 | tokens[i] == "-tuninginfo" && ++i || src/cuvid/Utils/NvEncoderCLIOptions.h:225:67: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 225 | tokens[i] == "-multipass" && ++i != tokens.size() && ParseString("-multipass", tokens[i], vMultiPass, szMultipass, &config.rcParams.multiPass) || src/cuvid/Utils/NvEncoderCLIOptions.h:226:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 226 | tokens[i] == "-profile" && ++i != tokens.size() && (IsCodecH264() ? src/cuvid/Utils/NvEncoderCLIOptions.h:229:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 229 | tokens[i] == "-rc" && ++i != tokens.size() && ParseString("-rc", tokens[i], vRcMode, szRcModeNames, &config.rcParams.rateControlMode) || src/cuvid/Utils/NvEncoderCLIOptions.h:230:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 230 | tokens[i] == "-fps" && ++i != tokens.size() && ParseInt("-fps", tokens[i], &pParams->frameRateNum) || src/cuvid/Utils/NvEncoderCLIOptions.h:231:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 231 | tokens[i] == "-bf" && ++i != tokens.size() && ParseInt("-bf", tokens[i], &config.frameIntervalP) && ++config.frameIntervalP || src/cuvid/Utils/NvEncoderCLIOptions.h:232:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 232 | tokens[i] == "-bitrate" && ++i != tokens.size() && ParseBitRate("-bitrate", tokens[i], &config.rcParams.averageBitRate) || src/cuvid/Utils/NvEncoderCLIOptions.h:233:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 233 | tokens[i] == "-maxbitrate" && ++i != tokens.size() && ParseBitRate("-maxbitrate", tokens[i], &config.rcParams.maxBitRate) || src/cuvid/Utils/NvEncoderCLIOptions.h:234:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 234 | tokens[i] == "-vbvbufsize" && ++i != tokens.size() && ParseBitRate("-vbvbufsize", tokens[i], &config.rcParams.vbvBufferSize) || src/cuvid/Utils/NvEncoderCLIOptions.h:235:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 235 | tokens[i] == "-vbvinit" && ++i != tokens.size() && ParseBitRate("-vbvinit", tokens[i], &config.rcParams.vbvInitialDelay) || src/cuvid/Utils/NvEncoderCLIOptions.h:236:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 236 | tokens[i] == "-cq" && ++i != tokens.size() && ParseInt("-cq", tokens[i], &config.rcParams.targetQuality) || src/cuvid/Utils/NvEncoderCLIOptions.h:237:140: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 237 | tokens[i] == "-initqp" && ++i != tokens.size() && ParseQp("-initqp", tokens[i], &config.rcParams.initialRCQP) && (config.rcParams.enableInitialRCQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:238:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 238 | tokens[i] == "-qmin" && ++i != tokens.size() && ParseQp("-qmin", tokens[i], &config.rcParams.minQP) && (config.rcParams.enableMinQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:239:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 239 | tokens[i] == "-qmax" && ++i != tokens.size() && ParseQp("-qmax", tokens[i], &config.rcParams.maxQP) && (config.rcParams.enableMaxQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:240:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 240 | tokens[i] == "-constqp" && ++i != tokens.size() && ParseQp("-constqp", tokens[i], &config.rcParams.constQP) || src/cuvid/Utils/NvEncoderCLIOptions.h:241:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 241 | tokens[i] == "-temporalaq" && (config.rcParams.enableTemporalAQ = true) src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseBitRate(const string&, const string&, unsigned int)’: src/cuvid/Utils/NvEncoderCLIOptions.h:338:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 338 | } catch (std::invalid_argument) { | ^~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseQp(const string&, const string&, NV_ENC_QP)’: src/cuvid/Utils/NvEncoderCLIOptions.h:365:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 365 | } catch (std::invalid_argument) { | ^~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = unsigned int; std::string = std::__cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:230:132: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 347 | } catch (std::invalid_argument) { | ^~~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = int; std::string = std::cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:231:132: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = unsigned char; std::string = std::__cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:236:140: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = short unsigned int; std::string = std::__cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:246:135: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] In file included from src/encoder.cpp:6: src/cuvid/AppDecUtils.h: At global scope: src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function] 141 | static void ShowDecoderCapability() | ^~~~~ src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char*, char, char, int&, bool, int)’ defined but not used [-Wunused-function] 45 | static void ParseCommandLine(int argc, char argv[], char szInputFileName, | ^~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/source.cpp -o build/temp.linux-aarch64-3.9/src/source.o src/source.cpp: In function ‘videoSource videoSource_init(char*, int)’: src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations] 10 | av_register_all(); | ^ In file included from src/source.h:8, from src/source.cpp:2: /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here 2050 | void av_register_all(void); | ^~~~~~~ src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations] 10 | av_register_all(); | ^ In file included from src/source.h:8, from src/source.cpp:2: /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here 2050 | void av_register_all(void); | ^~~~~~~ creating build/lib.linux-aarch64-3.9 aarch64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 build/temp.linux-aarch64-3.9/nvcodec-python.o build/temp.linux-aarch64-3.9/src/cuvid/Logger.o build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder/NvDecoder.o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoder.o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoderCuda.o build/temp.linux-aarch64-3.9/src/decoder.o build/temp.linux-aarch64-3.9/src/encoder.o build/temp.linux-aarch64-3.9/src/source.o -Lbuild/lib -L/usr/local/cuda-11.2/targets/x86_64-linux/lib -L/usr/lib/aarch64-linux-gnu -lavformat -lavcodec -lavutil -lnvcuvid -lnvidia-encode -lcuda -lstdc++ -lm -lcudart -lcolor_space -o build/lib.linux-aarch64-3.9/nvcodec.cpython-39-aarch64-linux-gnu.so /usr/bin/ld: cannot find -lnvcuvid /usr/bin/ld: cannot find -lnvidia-encode /usr/bin/ld: cannot find -lcudart /usr/bin/ld: cannot find -lcolor_space collect2: error: ld returned 1 exit status error: command '/usr/bin/aarch64-linux-gnu-g++' failed with exit code 1

ERROR: Command errored out with exit status 1: /home/jetson/PycharmProjects/depthai/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j9wh4f2y/pynvcodec_1863374f3ff9407aaadfe261ae6ef2e4/setup.py'"'"'; file='"'"'/tmp/pip-install-j9wh4f2y/pynvcodec_1863374f3ff9407aaadfe261ae6ef2e4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-k_uqvl9e/install-record.txt --single-version-externally-managed --compile --install-headers /home/jetson/PycharmProjects/depthai/venv/include/site/python3.9/pynvcodec Check the logs for full command output. WARNING: You are using pip version 21.3.1; however, version 22.3.1 is available. You should consider upgrading via the '/home/jetson/PycharmProjects/depthai/venv/bin/python -m pip install --upgrade pip' command.

stevefs commented 1 year ago

Solved nvcc path issue but now getting the following errors

pip install pynvcodec Collecting pynvcodec Using cached pynvcodec-0.0.6.tar.gz (116 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy>=1.17 in ./PycharmProjects/depthai/venv/lib/python3.9/site-packages (from pynvcodec) (1.23.5) Building wheels for collected packages: pynvcodec Building wheel for pynvcodec (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/jetson/PycharmProjects/depthai/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qcrjfhic/pynvcodec_d3c20e8bbe6344cf8c05b53c5729bb44/setup.py'"'"'; file='"'"'/tmp/pip-install-qcrjfhic/pynvcodec_d3c20e8bbe6344cf8c05b53c5729bb44/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-7zxzy8dy cwd: /tmp/pip-install-qcrjfhic/pynvcodec_d3c20e8bbe6344cf8c05b53c5729bb44/ Complete output (264 lines): running bdist_wheel running build running build_ext mkdir -p build/tests mkdir -p build/lib nvcc -DCUDNN --compiler-options "-fPIC -lstdc++ -pthread -lm" -c src/cuvid/Utils/ColorSpace.cu -o build/lib/libcolor_space.a creating build/temp.linux-aarch64-3.9 creating build/temp.linux-aarch64-3.9/src creating build/temp.linux-aarch64-3.9/src/cuvid creating build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder creating build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c nvcodec-python.cpp -o build/temp.linux-aarch64-3.9/nvcodec-python.o nvcodec-python.cpp:98:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 98 | }; | ^ nvcodec-python.cpp: In function ‘PyObject VideoDecoder_decode(NvCodec, PyObject)’: nvcodec-python.cpp:118:28: warning: NULL used in arithmetic [-Wpointer-arith] 118 | if(error_str[0] != NULL){ | ^~~~ nvcodec-python.cpp: At global scope: nvcodec-python.cpp:192:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 192 | }; | ^ nvcodec-python.cpp:286:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 286 | }; | ^ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/Logger.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/Logger.o src/cuvid/Logger.cpp:3:30: warning: ‘logger’ initialized and declared ‘extern’ 3 | extern simplelogger::Logger logger = simplelogger::LoggerFactory::CreateConsoleLogger(); | ^~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvDecoder/NvDecoder.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder/NvDecoder.o In file included from src/cuvid/NvDecoder/NvDecoder.h:23, from src/cuvid/NvDecoder/NvDecoder.cpp:18: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘__off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/cuvid/NvDecoder/NvDecoder.h:23, from src/cuvid/NvDecoder/NvDecoder.cpp:18: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ src/cuvid/NvDecoder/NvDecoder.cpp: In function ‘const char GetVideoCodecString(cudaVideoCodec)’: src/cuvid/NvDecoder/NvDecoder.cpp:69:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 69 | for (int i = cudaVideoCodec_NumCodecs + 1; i < sizeof(aCodecName) / sizeof(aCodecName[0]); i++) { | ^~~~~~~~~~ src/cuvid/NvDecoder/NvDecoder.cpp: In member function ‘int NvDecoder::HandleVideoSequence(CUVIDEOFORMAT)’: src/cuvid/NvDecoder/NvDecoder.cpp:293:21: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 293 | if (m_nMaxWidth < (int)pVideoFormat->coded_width) | ~~^~~~~~~~~~ src/cuvid/NvDecoder/NvDecoder.cpp:295:22: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 295 | if (m_nMaxHeight < (int)pVideoFormat->coded_height) | ~~~^~~~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvEncoder/NvEncoder.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoder.o In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ src/cuvid/NvEncoder/NvEncoder.h: In constructor ‘NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE, void, uint32_t, uint32_t, NV_ENC_BUFFER_FORMAT, uint32_t, bool, bool)’: src/cuvid/NvEncoder/NvEncoder.h:431:24: warning: ‘NvEncoder::m_eDeviceType’ will be initialized after [-Wreorder] 431 | NV_ENC_DEVICE_TYPE m_eDeviceType; | ^~~~~ src/cuvid/NvEncoder/NvEncoder.h:427:14: warning: ‘uint32_t NvEncoder::m_nWidth’ [-Wreorder] 427 | uint32_t m_nWidth; | ^~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:439:14: warning: ‘NvEncoder::m_nMaxEncodeHeight’ will be initialized after [-Wreorder] 439 | uint32_t m_nMaxEncodeHeight = 0; | ^~~~~~ src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NV_ENC_BUFFER_FORMAT NvEncoder::m_eBufferFormat’ [-Wreorder] 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NvEncoder::m_eBufferFormat’ will be initialized after [-Wreorder] 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.h:409:10: warning: ‘bool NvEncoder::m_bMotionEstimationOnly’ [-Wreorder] 409 | bool m_bMotionEstimationOnly = false; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:435:14: warning: ‘NvEncoder::m_nExtraOutputDelay’ will be initialized after [-Wreorder] 435 | uint32_t m_nExtraOutputDelay = 3; // To ensure encode and graphics can work in parallel, m_nExtraOutputDelay should be set to at least 1 | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.h:411:11: warning: ‘void NvEncoder::m_hEncoder’ [-Wreorder] 411 | void m_hEncoder = nullptr; | ^~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvEncoder/NvEncoderCuda.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoderCuda.o In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18, from src/cuvid/NvEncoder/NvEncoderCuda.cpp:12: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/decoder.cpp -o build/temp.linux-aarch64-3.9/src/decoder.o In file included from src/decoder.cpp:2: src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/decoder.cpp:2: src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ In file included from src/decoder.cpp:5: src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’: src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 165 | for (int i = 0; i < sizeof(aeCodec) / sizeof(aeCodec[0]); i++) { | ^~~~~~~~ src/decoder.cpp: In function ‘int videoDecoder_destroy(videoDecoderHandle)’: src/decoder.cpp:25:23: warning: deleting ‘void’ is undefined [-Wdelete-incomplete] 25 | delete(handle->dec); | ^ src/decoder.cpp: In function ‘videoFrameList videoDecoder_decode(videoDecoderHandle, u_int8_t, size_t, char)’: src/decoder.cpp:62:20: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] 62 | error[0] = NULL; | ^~~~ src/decoder.cpp:66:27: warning: catching polymorphic type ‘class NVDECException’ by value [-Wcatch-value=] 66 | }catch(NVDECException e){ | ^ src/decoder.cpp:58:14: warning: unused variable ‘pVideo’ [-Wunused-variable] 58 | uint8_t pVideo = NULL, *pFrame; | ^~ In file included from src/decoder.cpp:5: src/cuvid/AppDecUtils.h: At global scope: src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function] 141 | static void ShowDecoderCapability() | ^~~~~ src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char*, char, char, int&, bool, int)’ defined but not used [-Wunused-function] 45 | static void ParseCommandLine(int argc, char argv[], char szInputFileName, | ^~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/encoder.cpp -o build/temp.linux-aarch64-3.9/src/encoder.o In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18, from src/encoder.cpp:2: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ In file included from src/encoder.cpp:3: src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘__off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/encoder.cpp:3: src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ In file included from src/encoder.cpp:6: src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’: src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 165 | for (int i = 0; i < sizeof(aeCodec) / sizeof(aeCodec[0]); i++) { | ^~~~~~~~ In file included from src/encoder.cpp:7: src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘virtual void NvEncoderInitParam::SetInitParams(NV_ENC_INITIALIZE_PARAMS, NV_ENC_BUFFER_FORMAT)’: src/cuvid/Utils/NvEncoderCLIOptions.h:222:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 222 | tokens[i] == "-codec" && ++i || src/cuvid/Utils/NvEncoderCLIOptions.h:224:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 224 | tokens[i] == "-tuninginfo" && ++i || src/cuvid/Utils/NvEncoderCLIOptions.h:225:67: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 225 | tokens[i] == "-multipass" && ++i != tokens.size() && ParseString("-multipass", tokens[i], vMultiPass, szMultipass, &config.rcParams.multiPass) || src/cuvid/Utils/NvEncoderCLIOptions.h:226:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 226 | tokens[i] == "-profile" && ++i != tokens.size() && (IsCodecH264() ? src/cuvid/Utils/NvEncoderCLIOptions.h:229:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 229 | tokens[i] == "-rc" && ++i != tokens.size() && ParseString("-rc", tokens[i], vRcMode, szRcModeNames, &config.rcParams.rateControlMode) || src/cuvid/Utils/NvEncoderCLIOptions.h:230:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 230 | tokens[i] == "-fps" && ++i != tokens.size() && ParseInt("-fps", tokens[i], &pParams->frameRateNum) || src/cuvid/Utils/NvEncoderCLIOptions.h:231:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 231 | tokens[i] == "-bf" && ++i != tokens.size() && ParseInt("-bf", tokens[i], &config.frameIntervalP) && ++config.frameIntervalP || src/cuvid/Utils/NvEncoderCLIOptions.h:232:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 232 | tokens[i] == "-bitrate" && ++i != tokens.size() && ParseBitRate("-bitrate", tokens[i], &config.rcParams.averageBitRate) || src/cuvid/Utils/NvEncoderCLIOptions.h:233:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 233 | tokens[i] == "-maxbitrate" && ++i != tokens.size() && ParseBitRate("-maxbitrate", tokens[i], &config.rcParams.maxBitRate) || src/cuvid/Utils/NvEncoderCLIOptions.h:234:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 234 | tokens[i] == "-vbvbufsize" && ++i != tokens.size() && ParseBitRate("-vbvbufsize", tokens[i], &config.rcParams.vbvBufferSize) || src/cuvid/Utils/NvEncoderCLIOptions.h:235:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 235 | tokens[i] == "-vbvinit" && ++i != tokens.size() && ParseBitRate("-vbvinit", tokens[i], &config.rcParams.vbvInitialDelay) || src/cuvid/Utils/NvEncoderCLIOptions.h:236:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 236 | tokens[i] == "-cq" && ++i != tokens.size() && ParseInt("-cq", tokens[i], &config.rcParams.targetQuality) || src/cuvid/Utils/NvEncoderCLIOptions.h:237:140: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 237 | tokens[i] == "-initqp" && ++i != tokens.size() && ParseQp("-initqp", tokens[i], &config.rcParams.initialRCQP) && (config.rcParams.enableInitialRCQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:238:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 238 | tokens[i] == "-qmin" && ++i != tokens.size() && ParseQp("-qmin", tokens[i], &config.rcParams.minQP) && (config.rcParams.enableMinQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:239:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 239 | tokens[i] == "-qmax" && ++i != tokens.size() && ParseQp("-qmax", tokens[i], &config.rcParams.maxQP) && (config.rcParams.enableMaxQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:240:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 240 | tokens[i] == "-constqp" && ++i != tokens.size() && ParseQp("-constqp", tokens[i], &config.rcParams.constQP) || src/cuvid/Utils/NvEncoderCLIOptions.h:241:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 241 | tokens[i] == "-temporalaq" && (config.rcParams.enableTemporalAQ = true) src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseBitRate(const string&, const string&, unsigned int)’: src/cuvid/Utils/NvEncoderCLIOptions.h:338:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 338 | } catch (std::invalid_argument) { | ^~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseQp(const string&, const string&, NV_ENC_QP)’: src/cuvid/Utils/NvEncoderCLIOptions.h:365:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 365 | } catch (std::invalid_argument) { | ^~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = unsigned int; std::string = std::cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:230:132: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 347 | } catch (std::invalid_argument) { | ^~~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = int; std::string = std::__cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:231:132: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = unsigned char; std::string = std::cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:236:140: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T*) [with T = short unsigned int; std::string = std::cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:246:135: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] In file included from src/encoder.cpp:6: src/cuvid/AppDecUtils.h: At global scope: src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function] 141 | static void ShowDecoderCapability() | ^~~~~ src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char*, char, char, int&, bool, int)’ defined but not used [-Wunused-function] 45 | static void ParseCommandLine(int argc, char argv[], char szInputFileName, | ^~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/source.cpp -o build/temp.linux-aarch64-3.9/src/source.o src/source.cpp: In function ‘videoSource videoSource_init(char*, int)’: src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations] 10 | av_register_all(); | ^ In file included from src/source.h:8, from src/source.cpp:2: /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here 2050 | void av_register_all(void); | ^~~~~~~ src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations] 10 | av_register_all(); | ^ In file included from src/source.h:8, from src/source.cpp:2: /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here 2050 | void av_register_all(void); | ^~~~~~~ creating build/lib.linux-aarch64-3.9 aarch64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 build/temp.linux-aarch64-3.9/nvcodec-python.o build/temp.linux-aarch64-3.9/src/cuvid/Logger.o build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder/NvDecoder.o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoder.o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoderCuda.o build/temp.linux-aarch64-3.9/src/decoder.o build/temp.linux-aarch64-3.9/src/encoder.o build/temp.linux-aarch64-3.9/src/source.o -Lbuild/lib -L/usr/local/cuda-11.2/targets/x86_64-linux/lib -L/usr/lib/aarch64-linux-gnu -lavformat -lavcodec -lavutil -lnvcuvid -lnvidia-encode -lcuda -lstdc++ -lm -lcudart -lcolor_space -o build/lib.linux-aarch64-3.9/nvcodec.cpython-39-aarch64-linux-gnu.so /usr/bin/ld: cannot find -lnvcuvid /usr/bin/ld: cannot find -lnvidia-encode /usr/bin/ld: cannot find -lcudart collect2: error: ld returned 1 exit status error: command '/usr/bin/aarch64-linux-gnu-g++' failed with exit code 1

ERROR: Failed building wheel for pynvcodec Running setup.py clean for pynvcodec Failed to build pynvcodec Installing collected packages: pynvcodec Running setup.py install for pynvcodec ... error ERROR: Command errored out with exit status 1: command: /home/jetson/PycharmProjects/depthai/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qcrjfhic/pynvcodec_d3c20e8bbe6344cf8c05b53c5729bb44/setup.py'"'"'; file='"'"'/tmp/pip-install-qcrjfhic/pynvcodec_d3c20e8bbe6344cf8c05b53c5729bb44/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-6ohd9zk0/install-record.txt --single-version-externally-managed --compile --install-headers /home/jetson/PycharmProjects/depthai/venv/include/site/python3.9/pynvcodec cwd: /tmp/pip-install-qcrjfhic/pynvcodec_d3c20e8bbe6344cf8c05b53c5729bb44/ Complete output (266 lines): running install /home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_ext mkdir -p build/tests mkdir -p build/lib nvcc -DCUDNN --compiler-options "-fPIC -lstdc++ -pthread -lm" -c src/cuvid/Utils/ColorSpace.cu -o build/lib/libcolor_space.a creating build/temp.linux-aarch64-3.9 creating build/temp.linux-aarch64-3.9/src creating build/temp.linux-aarch64-3.9/src/cuvid creating build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder creating build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c nvcodec-python.cpp -o build/temp.linux-aarch64-3.9/nvcodec-python.o nvcodec-python.cpp:98:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 98 | }; | ^ nvcodec-python.cpp: In function ‘PyObject VideoDecoder_decode(NvCodec, PyObject)’: nvcodec-python.cpp:118:28: warning: NULL used in arithmetic [-Wpointer-arith] 118 | if(error_str[0] != NULL){ | ^~~~ nvcodec-python.cpp: At global scope: nvcodec-python.cpp:192:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 192 | }; | ^ nvcodec-python.cpp:286:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 286 | }; | ^ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/Logger.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/Logger.o src/cuvid/Logger.cpp:3:30: warning: ‘logger’ initialized and declared ‘extern’ 3 | extern simplelogger::Logger logger = simplelogger::LoggerFactory::CreateConsoleLogger(); | ^~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvDecoder/NvDecoder.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder/NvDecoder.o In file included from src/cuvid/NvDecoder/NvDecoder.h:23, from src/cuvid/NvDecoder/NvDecoder.cpp:18: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘__off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/cuvid/NvDecoder/NvDecoder.h:23, from src/cuvid/NvDecoder/NvDecoder.cpp:18: src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ src/cuvid/NvDecoder/NvDecoder.cpp: In function ‘const char GetVideoCodecString(cudaVideoCodec)’: src/cuvid/NvDecoder/NvDecoder.cpp:69:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 69 | for (int i = cudaVideoCodec_NumCodecs + 1; i < sizeof(aCodecName) / sizeof(aCodecName[0]); i++) { | ^~~~~~~~~~ src/cuvid/NvDecoder/NvDecoder.cpp: In member function ‘int NvDecoder::HandleVideoSequence(CUVIDEOFORMAT)’: src/cuvid/NvDecoder/NvDecoder.cpp:293:21: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 293 | if (m_nMaxWidth < (int)pVideoFormat->coded_width) | ~~^~~~~~~~~~ src/cuvid/NvDecoder/NvDecoder.cpp:295:22: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 295 | if (m_nMaxHeight < (int)pVideoFormat->coded_height) | ~~~^~~~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvEncoder/NvEncoder.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoder.o In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ src/cuvid/NvEncoder/NvEncoder.h: In constructor ‘NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE, void, uint32_t, uint32_t, NV_ENC_BUFFER_FORMAT, uint32_t, bool, bool)’: src/cuvid/NvEncoder/NvEncoder.h:431:24: warning: ‘NvEncoder::m_eDeviceType’ will be initialized after [-Wreorder] 431 | NV_ENC_DEVICE_TYPE m_eDeviceType; | ^~~~~ src/cuvid/NvEncoder/NvEncoder.h:427:14: warning: ‘uint32_t NvEncoder::m_nWidth’ [-Wreorder] 427 | uint32_t m_nWidth; | ^~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:439:14: warning: ‘NvEncoder::m_nMaxEncodeHeight’ will be initialized after [-Wreorder] 439 | uint32_t m_nMaxEncodeHeight = 0; | ^~~~~~ src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NV_ENC_BUFFER_FORMAT NvEncoder::m_eBufferFormat’ [-Wreorder] 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NvEncoder::m_eBufferFormat’ will be initialized after [-Wreorder] 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.h:409:10: warning: ‘bool NvEncoder::m_bMotionEstimationOnly’ [-Wreorder] 409 | bool m_bMotionEstimationOnly = false; | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12: src/cuvid/NvEncoder/NvEncoder.h:435:14: warning: ‘NvEncoder::m_nExtraOutputDelay’ will be initialized after [-Wreorder] 435 | uint32_t m_nExtraOutputDelay = 3; // To ensure encode and graphics can work in parallel, m_nExtraOutputDelay should be set to at least 1 | ^~~~~~~ src/cuvid/NvEncoder/NvEncoder.h:411:11: warning: ‘void NvEncoder::m_hEncoder’ [-Wreorder] 411 | void m_hEncoder = nullptr; | ^~~~~~ src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder] 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat, | ^~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/cuvid/NvEncoder/NvEncoderCuda.cpp -o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoderCuda.o In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18, from src/cuvid/NvEncoder/NvEncoderCuda.cpp:12: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/decoder.cpp -o build/temp.linux-aarch64-3.9/src/decoder.o In file included from src/decoder.cpp:2: src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/decoder.cpp:2: src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ In file included from src/decoder.cpp:5: src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’: src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 165 | for (int i = 0; i < sizeof(aeCodec) / sizeof(aeCodec[0]); i++) { | ^~~~~~~~ src/decoder.cpp: In function ‘int videoDecoder_destroy(videoDecoderHandle)’: src/decoder.cpp:25:23: warning: deleting ‘void’ is undefined [-Wdelete-incomplete] 25 | delete(handle->dec); | ^ src/decoder.cpp: In function ‘videoFrameList videoDecoder_decode(videoDecoderHandle, u_int8_t, size_t, char)’: src/decoder.cpp:62:20: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] 62 | error[0] = NULL; | ^~~~ src/decoder.cpp:66:27: warning: catching polymorphic type ‘class NVDECException’ by value [-Wcatch-value=] 66 | }catch(NVDECException e){ | ^ src/decoder.cpp:58:14: warning: unused variable ‘pVideo’ [-Wunused-variable] 58 | uint8_t pVideo = NULL, *pFrame; | ^~ In file included from src/decoder.cpp:5: src/cuvid/AppDecUtils.h: At global scope: src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function] 141 | static void ShowDecoderCapability() | ^~~~~ src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char*, char, char, int&, bool, int)’ defined but not used [-Wunused-function] 45 | static void ParseCommandLine(int argc, char argv[], char szInputFileName, | ^~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/encoder.cpp -o build/temp.linux-aarch64-3.9/src/encoder.o In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18, from src/encoder.cpp:2: src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void NvEncoder::GetCompletionEvent(uint32_t)’: src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector<void>::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 305 | void GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; } | ~~~~~^~~~~ In file included from src/encoder.cpp:3: src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char, bool)’: src/cuvid/Utils/NvCodecUtils.h:193:27: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘__off64_t’ {aka ‘long int’} [-Wsign-compare] 193 | if (nSize != st.st_size) { | ~~^~~~~ In file included from src/encoder.cpp:3: src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 197 | } catch(std::bad_alloc) { | ^~~~~ src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable] 213 | std::streamsize nRead = fpIn.read(reinterpret_cast<char>(pBuf), nSize).gcount(); | ^~~~~ In file included from src/encoder.cpp:6: src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’: src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 165 | for (int i = 0; i < sizeof(aeCodec) / sizeof(aeCodec[0]); i++) { | ^~~~~~~~ In file included from src/encoder.cpp:7: src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘virtual void NvEncoderInitParam::SetInitParams(NV_ENC_INITIALIZE_PARAMS, NV_ENC_BUFFER_FORMAT)’: src/cuvid/Utils/NvEncoderCLIOptions.h:222:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 222 | tokens[i] == "-codec" && ++i || src/cuvid/Utils/NvEncoderCLIOptions.h:224:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 224 | tokens[i] == "-tuninginfo" && ++i || src/cuvid/Utils/NvEncoderCLIOptions.h:225:67: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 225 | tokens[i] == "-multipass" && ++i != tokens.size() && ParseString("-multipass", tokens[i], vMultiPass, szMultipass, &config.rcParams.multiPass) || src/cuvid/Utils/NvEncoderCLIOptions.h:226:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 226 | tokens[i] == "-profile" && ++i != tokens.size() && (IsCodecH264() ? src/cuvid/Utils/NvEncoderCLIOptions.h:229:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 229 | tokens[i] == "-rc" && ++i != tokens.size() && ParseString("-rc", tokens[i], vRcMode, szRcModeNames, &config.rcParams.rateControlMode) || src/cuvid/Utils/NvEncoderCLIOptions.h:230:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 230 | tokens[i] == "-fps" && ++i != tokens.size() && ParseInt("-fps", tokens[i], &pParams->frameRateNum) || src/cuvid/Utils/NvEncoderCLIOptions.h:231:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 231 | tokens[i] == "-bf" && ++i != tokens.size() && ParseInt("-bf", tokens[i], &config.frameIntervalP) && ++config.frameIntervalP || src/cuvid/Utils/NvEncoderCLIOptions.h:232:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 232 | tokens[i] == "-bitrate" && ++i != tokens.size() && ParseBitRate("-bitrate", tokens[i], &config.rcParams.averageBitRate) || src/cuvid/Utils/NvEncoderCLIOptions.h:233:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 233 | tokens[i] == "-maxbitrate" && ++i != tokens.size() && ParseBitRate("-maxbitrate", tokens[i], &config.rcParams.maxBitRate) || src/cuvid/Utils/NvEncoderCLIOptions.h:234:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 234 | tokens[i] == "-vbvbufsize" && ++i != tokens.size() && ParseBitRate("-vbvbufsize", tokens[i], &config.rcParams.vbvBufferSize) || src/cuvid/Utils/NvEncoderCLIOptions.h:235:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 235 | tokens[i] == "-vbvinit" && ++i != tokens.size() && ParseBitRate("-vbvinit", tokens[i], &config.rcParams.vbvInitialDelay) || src/cuvid/Utils/NvEncoderCLIOptions.h:236:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 236 | tokens[i] == "-cq" && ++i != tokens.size() && ParseInt("-cq", tokens[i], &config.rcParams.targetQuality) || src/cuvid/Utils/NvEncoderCLIOptions.h:237:140: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 237 | tokens[i] == "-initqp" && ++i != tokens.size() && ParseQp("-initqp", tokens[i], &config.rcParams.initialRCQP) && (config.rcParams.enableInitialRCQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:238:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 238 | tokens[i] == "-qmin" && ++i != tokens.size() && ParseQp("-qmin", tokens[i], &config.rcParams.minQP) && (config.rcParams.enableMinQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:239:134: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 239 | tokens[i] == "-qmax" && ++i != tokens.size() && ParseQp("-qmax", tokens[i], &config.rcParams.maxQP) && (config.rcParams.enableMaxQP = true) || src/cuvid/Utils/NvEncoderCLIOptions.h:240:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 240 | tokens[i] == "-constqp" && ++i != tokens.size() && ParseQp("-constqp", tokens[i], &config.rcParams.constQP) || src/cuvid/Utils/NvEncoderCLIOptions.h:241:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 241 | tokens[i] == "-temporalaq" && (config.rcParams.enableTemporalAQ = true) src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseBitRate(const string&, const string&, unsigned int)’: src/cuvid/Utils/NvEncoderCLIOptions.h:338:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 338 | } catch (std::invalid_argument) { | ^~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseQp(const string&, const string&, NV_ENC_QP)’: src/cuvid/Utils/NvEncoderCLIOptions.h:365:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 365 | } catch (std::invalid_argument) { | ^~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = unsigned int; std::string = std::cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:230:132: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] 347 | } catch (std::invalid_argument) { | ^~~~~ src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = int; std::string = std::__cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:231:132: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T) [with T = unsigned char; std::string = std::cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:236:140: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string&, const string&, T*) [with T = short unsigned int; std::string = std::cxx11::basic_string]’: src/cuvid/Utils/NvEncoderCLIOptions.h:246:135: required from here src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=] In file included from src/encoder.cpp:6: src/cuvid/AppDecUtils.h: At global scope: src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function] 141 | static void ShowDecoderCapability() | ^~~~~ src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char*, char, char, int&, bool, int)’ defined but not used [-Wunused-function] 45 | static void ParseCommandLine(int argc, char argv[], char szInputFileName, | ^~~~ aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc -Isrc/cuvid -I/usr/local/cuda/include -I/home/jetson/PycharmProjects/depthai/venv/lib/python3.9/site-packages/numpy/core/include -I/home/jetson/PycharmProjects/depthai/venv/include -I/usr/include/python3.9 -c src/source.cpp -o build/temp.linux-aarch64-3.9/src/source.o src/source.cpp: In function ‘videoSource videoSource_init(char*, int)’: src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations] 10 | av_register_all(); | ^ In file included from src/source.h:8, from src/source.cpp:2: /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here 2050 | void av_register_all(void); | ^~~~~~~ src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations] 10 | av_register_all(); | ^ In file included from src/source.h:8, from src/source.cpp:2: /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here 2050 | void av_register_all(void); | ^~~~~~~ creating build/lib.linux-aarch64-3.9 aarch64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 build/temp.linux-aarch64-3.9/nvcodec-python.o build/temp.linux-aarch64-3.9/src/cuvid/Logger.o build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder/NvDecoder.o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoder.o build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder/NvEncoderCuda.o build/temp.linux-aarch64-3.9/src/decoder.o build/temp.linux-aarch64-3.9/src/encoder.o build/temp.linux-aarch64-3.9/src/source.o -Lbuild/lib -L/usr/local/cuda-11.2/targets/x86_64-linux/lib -L/usr/lib/aarch64-linux-gnu -lavformat -lavcodec -lavutil -lnvcuvid -lnvidia-encode -lcuda -lstdc++ -lm -lcudart -lcolor_space -o build/lib.linux-aarch64-3.9/nvcodec.cpython-39-aarch64-linux-gnu.so /usr/bin/ld: cannot find -lnvcuvid /usr/bin/ld: cannot find -lnvidia-encode /usr/bin/ld: cannot find -lcudart collect2: error: ld returned 1 exit status error: command '/usr/bin/aarch64-linux-gnu-g++' failed with exit code 1

ERROR: Command errored out with exit status 1: /home/jetson/PycharmProjects/depthai/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qcrjfhic/pynvcodec_d3c20e8bbe6344cf8c05b53c5729bb44/setup.py'"'"'; file='"'"'/tmp/pip-install-qcrjfhic/pynvcodec_d3c20e8bbe6344cf8c05b53c5729bb44/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-6ohd9zk0/install-record.txt --single-version-externally-managed --compile --install-headers /home/jetson/PycharmProjects/depthai/venv/include/site/python3.9/pynvcodec Check the logs for full command output.