Title: Installation fails on Orin · Issue #7 · UsingNet/nvcodec-python · GitHub
Open Graph Title: Installation fails on Orin · Issue #7 · UsingNet/nvcodec-python
X Title: Installation fails on Orin · Issue #7 · UsingNet/nvcodec-python
Description: 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 th...
Open Graph Description: 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 l...
X Description: 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 l...
Opengraph URL: https://github.com/UsingNet/nvcodec-python/issues/7
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Installation fails on Orin","articleBody":"Hi\r\nJetson Orin with Jetpack SDK 5.0.2/L4T 35.1.0\r\nI am trying to install nvcodec-python using pip install pynvcodec but getting the follow error\r\nThe first problem is that nvcc is not found. I will look at that first.\r\nnvcc is present so there is likely a pathing issue. Hopefully the following errors follow from that.\r\n\r\nERROR: Command errored out with exit status 1:\r\n 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\r\n cwd: /tmp/pip-install-j9wh4f2y/pynvcodec_1863374f3ff9407aaadfe261ae6ef2e4/\r\n Complete output (267 lines):\r\n running bdist_wheel\r\n running build\r\n running build_ext\r\n mkdir -p build/tests\r\n mkdir -p build/lib\r\n nvcc -DCUDNN --compiler-options \"-fPIC -lstdc++ -pthread -lm\" -c src/cuvid/Utils/ColorSpace.cu -o build/lib/libcolor_space.a\r\n /bin/sh: 1: nvcc: not found\r\n make: *** [Makefile:45: build/lib/libcolor_space.a] Error 127\r\n creating build/temp.linux-aarch64-3.9\r\n creating build/temp.linux-aarch64-3.9/src\r\n creating build/temp.linux-aarch64-3.9/src/cuvid\r\n creating build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder\r\n creating build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder\r\n 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\r\n nvcodec-python.cpp:98:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null]\r\n 98 | };\r\n | ^\r\n nvcodec-python.cpp: In function ‘PyObject* VideoDecoder_decode(NvCodec*, PyObject*)’:\r\n nvcodec-python.cpp:118:28: warning: NULL used in arithmetic [-Wpointer-arith]\r\n 118 | if(error_str[0] != NULL){\r\n | ^~~~\r\n nvcodec-python.cpp: At global scope:\r\n nvcodec-python.cpp:192:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null]\r\n 192 | };\r\n | ^\r\n nvcodec-python.cpp:286:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null]\r\n 286 | };\r\n | ^\r\n 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\r\n src/cuvid/Logger.cpp:3:30: warning: ‘logger’ initialized and declared ‘extern’\r\n 3 | extern simplelogger::Logger *logger = simplelogger::LoggerFactory::CreateConsoleLogger();\r\n | ^~~~~~\r\n 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\r\n In file included from src/cuvid/NvDecoder/NvDecoder.h:23,\r\n from src/cuvid/NvDecoder/NvDecoder.cpp:18:\r\n src/cuvid/NvDecoder/../Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char*, bool)’:\r\n 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]\r\n 193 | if (nSize != st.st_size) {\r\n | ~~~~~~^~~~~~~~~~~~~\r\n In file included from src/cuvid/NvDecoder/NvDecoder.h:23,\r\n from src/cuvid/NvDecoder/NvDecoder.cpp:18:\r\n src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=]\r\n 197 | } catch(std::bad_alloc) {\r\n | ^~~~~~~~~\r\n src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable]\r\n 213 | std::streamsize nRead = fpIn.read(reinterpret_cast\u003cchar*\u003e(pBuf), nSize).gcount();\r\n | ^~~~~\r\n src/cuvid/NvDecoder/NvDecoder.cpp: In function ‘const char* GetVideoCodecString(cudaVideoCodec)’:\r\n src/cuvid/NvDecoder/NvDecoder.cpp:69:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]\r\n 69 | for (int i = cudaVideoCodec_NumCodecs + 1; i \u003c sizeof(aCodecName) / sizeof(aCodecName[0]); i++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n src/cuvid/NvDecoder/NvDecoder.cpp: In member function ‘int NvDecoder::HandleVideoSequence(CUVIDEOFORMAT*)’:\r\n src/cuvid/NvDecoder/NvDecoder.cpp:293:21: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\r\n 293 | if (m_nMaxWidth \u003c (int)pVideoFormat-\u003ecoded_width)\r\n | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n src/cuvid/NvDecoder/NvDecoder.cpp:295:22: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\r\n 295 | if (m_nMaxHeight \u003c (int)pVideoFormat-\u003ecoded_height)\r\n | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n 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\r\n In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12:\r\n src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void* NvEncoder::GetCompletionEvent(uint32_t)’:\r\n src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector\u003cvoid*\u003e::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]\r\n 305 | void* GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; }\r\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~\r\n 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)’:\r\n src/cuvid/NvEncoder/NvEncoder.h:431:24: warning: ‘NvEncoder::m_eDeviceType’ will be initialized after [-Wreorder]\r\n 431 | NV_ENC_DEVICE_TYPE m_eDeviceType;\r\n | ^~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.h:427:14: warning: ‘uint32_t NvEncoder::m_nWidth’ [-Wreorder]\r\n 427 | uint32_t m_nWidth;\r\n | ^~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder]\r\n 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void *pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat,\r\n | ^~~~~~~~~\r\n In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12:\r\n src/cuvid/NvEncoder/NvEncoder.h:439:14: warning: ‘NvEncoder::m_nMaxEncodeHeight’ will be initialized after [-Wreorder]\r\n 439 | uint32_t m_nMaxEncodeHeight = 0;\r\n | ^~~~~~~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NV_ENC_BUFFER_FORMAT NvEncoder::m_eBufferFormat’ [-Wreorder]\r\n 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat;\r\n | ^~~~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder]\r\n 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void *pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat,\r\n | ^~~~~~~~~\r\n In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12:\r\n src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NvEncoder::m_eBufferFormat’ will be initialized after [-Wreorder]\r\n 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat;\r\n | ^~~~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.h:409:10: warning: ‘bool NvEncoder::m_bMotionEstimationOnly’ [-Wreorder]\r\n 409 | bool m_bMotionEstimationOnly = false;\r\n | ^~~~~~~~~~~~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder]\r\n 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void *pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat,\r\n | ^~~~~~~~~\r\n In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12:\r\n src/cuvid/NvEncoder/NvEncoder.h:435:14: warning: ‘NvEncoder::m_nExtraOutputDelay’ will be initialized after [-Wreorder]\r\n 435 | uint32_t m_nExtraOutputDelay = 3; // To ensure encode and graphics can work in parallel, m_nExtraOutputDelay should be set to at least 1\r\n | ^~~~~~~~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.h:411:11: warning: ‘void* NvEncoder::m_hEncoder’ [-Wreorder]\r\n 411 | void *m_hEncoder = nullptr;\r\n | ^~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder]\r\n 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void *pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat,\r\n | ^~~~~~~~~\r\n 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\r\n In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18,\r\n from src/cuvid/NvEncoder/NvEncoderCuda.cpp:12:\r\n src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void* NvEncoder::GetCompletionEvent(uint32_t)’:\r\n src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector\u003cvoid*\u003e::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]\r\n 305 | void* GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; }\r\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~\r\n 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\r\n In file included from src/decoder.cpp:2:\r\n src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char*, bool)’:\r\n 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]\r\n 193 | if (nSize != st.st_size) {\r\n | ~~~~~~^~~~~~~~~~~~~\r\n In file included from src/decoder.cpp:2:\r\n src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=]\r\n 197 | } catch(std::bad_alloc) {\r\n | ^~~~~~~~~\r\n src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable]\r\n 213 | std::streamsize nRead = fpIn.read(reinterpret_cast\u003cchar*\u003e(pBuf), nSize).gcount();\r\n | ^~~~~\r\n In file included from src/decoder.cpp:5:\r\n src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’:\r\n src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]\r\n 165 | for (int i = 0; i \u003c sizeof(aeCodec) / sizeof(aeCodec[0]); i++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n src/decoder.cpp: In function ‘int videoDecoder_destroy(videoDecoderHandle)’:\r\n src/decoder.cpp:25:23: warning: deleting ‘void*’ is undefined [-Wdelete-incomplete]\r\n 25 | delete(handle-\u003edec);\r\n | ^\r\n src/decoder.cpp: In function ‘videoFrameList* videoDecoder_decode(videoDecoderHandle, u_int8_t*, size_t, char*)’:\r\n src/decoder.cpp:62:20: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]\r\n 62 | error[0] = NULL;\r\n | ^~~~\r\n src/decoder.cpp:66:27: warning: catching polymorphic type ‘class NVDECException’ by value [-Wcatch-value=]\r\n 66 | }catch(NVDECException e){\r\n | ^\r\n src/decoder.cpp:58:14: warning: unused variable ‘pVideo’ [-Wunused-variable]\r\n 58 | uint8_t *pVideo = NULL, *pFrame;\r\n | ^~~~~~\r\n In file included from src/decoder.cpp:5:\r\n src/cuvid/AppDecUtils.h: At global scope:\r\n src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function]\r\n 141 | static void ShowDecoderCapability()\r\n | ^~~~~~~~~~~~~~~~~~~~~\r\n src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char**, char*, char*, int\u0026, bool*, int*)’ defined but not used [-Wunused-function]\r\n 45 | static void ParseCommandLine(int argc, char *argv[], char *szInputFileName,\r\n | ^~~~~~~~~~~~~~~~\r\n 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\r\n In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18,\r\n from src/encoder.cpp:2:\r\n src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void* NvEncoder::GetCompletionEvent(uint32_t)’:\r\n src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector\u003cvoid*\u003e::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]\r\n 305 | void* GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; }\r\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~\r\n In file included from src/encoder.cpp:3:\r\n src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char*, bool)’:\r\n 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]\r\n 193 | if (nSize != st.st_size) {\r\n | ~~~~~~^~~~~~~~~~~~~\r\n In file included from src/encoder.cpp:3:\r\n src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=]\r\n 197 | } catch(std::bad_alloc) {\r\n | ^~~~~~~~~\r\n src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable]\r\n 213 | std::streamsize nRead = fpIn.read(reinterpret_cast\u003cchar*\u003e(pBuf), nSize).gcount();\r\n | ^~~~~\r\n In file included from src/encoder.cpp:6:\r\n src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’:\r\n src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]\r\n 165 | for (int i = 0; i \u003c sizeof(aeCodec) / sizeof(aeCodec[0]); i++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n In file included from src/encoder.cpp:7:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘virtual void NvEncoderInitParam::SetInitParams(NV_ENC_INITIALIZE_PARAMS*, NV_ENC_BUFFER_FORMAT)’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:222:44: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 222 | tokens[i] == \"-codec\" \u0026\u0026 ++i ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:224:44: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 224 | tokens[i] == \"-tuninginfo\" \u0026\u0026 ++i ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:225:67: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 225 | tokens[i] == \"-multipass\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseString(\"-multipass\", tokens[i], vMultiPass, szMultipass, \u0026config.rcParams.multiPass) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:226:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 226 | tokens[i] == \"-profile\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 (IsCodecH264() ?\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:229:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 229 | tokens[i] == \"-rc\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseString(\"-rc\", tokens[i], vRcMode, szRcModeNames, \u0026config.rcParams.rateControlMode) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:230:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 230 | tokens[i] == \"-fps\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseInt(\"-fps\", tokens[i], \u0026pParams-\u003eframeRateNum) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:231:134: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 231 | tokens[i] == \"-bf\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseInt(\"-bf\", tokens[i], \u0026config.frameIntervalP) \u0026\u0026 ++config.frameIntervalP ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:232:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 232 | tokens[i] == \"-bitrate\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseBitRate(\"-bitrate\", tokens[i], \u0026config.rcParams.averageBitRate) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:233:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 233 | tokens[i] == \"-maxbitrate\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseBitRate(\"-maxbitrate\", tokens[i], \u0026config.rcParams.maxBitRate) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:234:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 234 | tokens[i] == \"-vbvbufsize\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseBitRate(\"-vbvbufsize\", tokens[i], \u0026config.rcParams.vbvBufferSize) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:235:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 235 | tokens[i] == \"-vbvinit\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseBitRate(\"-vbvinit\", tokens[i], \u0026config.rcParams.vbvInitialDelay) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:236:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 236 | tokens[i] == \"-cq\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseInt(\"-cq\", tokens[i], \u0026config.rcParams.targetQuality) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:237:140: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 237 | tokens[i] == \"-initqp\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseQp(\"-initqp\", tokens[i], \u0026config.rcParams.initialRCQP) \u0026\u0026 (config.rcParams.enableInitialRCQP = true) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:238:134: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 238 | tokens[i] == \"-qmin\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseQp(\"-qmin\", tokens[i], \u0026config.rcParams.minQP) \u0026\u0026 (config.rcParams.enableMinQP = true) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:239:134: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 239 | tokens[i] == \"-qmax\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseQp(\"-qmax\", tokens[i], \u0026config.rcParams.maxQP) \u0026\u0026 (config.rcParams.enableMaxQP = true) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:240:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 240 | tokens[i] == \"-constqp\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseQp(\"-constqp\", tokens[i], \u0026config.rcParams.constQP) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:241:44: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 241 | tokens[i] == \"-temporalaq\" \u0026\u0026 (config.rcParams.enableTemporalAQ = true)\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseBitRate(const string\u0026, const string\u0026, unsigned int*)’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:338:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n 338 | } catch (std::invalid_argument) {\r\n | ^~~~~~~~~~~~~~~~\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseQp(const string\u0026, const string\u0026, NV_ENC_QP*)’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:365:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n 365 | } catch (std::invalid_argument) {\r\n | ^~~~~~~~~~~~~~~~\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string\u0026, const string\u0026, T*) [with T = unsigned int; std::string = std::__cxx11::basic_string\u003cchar\u003e]’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:230:132: required from here\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n 347 | } catch (std::invalid_argument) {\r\n | ^~~~~\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string\u0026, const string\u0026, T*) [with T = int; std::string = std::__cxx11::basic_string\u003cchar\u003e]’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:231:132: required from here\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string\u0026, const string\u0026, T*) [with T = unsigned char; std::string = std::__cxx11::basic_string\u003cchar\u003e]’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:236:140: required from here\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string\u0026, const string\u0026, T*) [with T = short unsigned int; std::string = std::__cxx11::basic_string\u003cchar\u003e]’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:246:135: required from here\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n In file included from src/encoder.cpp:6:\r\n src/cuvid/AppDecUtils.h: At global scope:\r\n src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function]\r\n 141 | static void ShowDecoderCapability()\r\n | ^~~~~~~~~~~~~~~~~~~~~\r\n src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char**, char*, char*, int\u0026, bool*, int*)’ defined but not used [-Wunused-function]\r\n 45 | static void ParseCommandLine(int argc, char *argv[], char *szInputFileName,\r\n | ^~~~~~~~~~~~~~~~\r\n 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\r\n src/source.cpp: In function ‘videoSource* videoSource_init(char*, int)’:\r\n src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations]\r\n 10 | av_register_all();\r\n | ^\r\n In file included from src/source.h:8,\r\n from src/source.cpp:2:\r\n /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here\r\n 2050 | void av_register_all(void);\r\n | ^~~~~~~~~~~~~~~\r\n src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations]\r\n 10 | av_register_all();\r\n | ^\r\n In file included from src/source.h:8,\r\n from src/source.cpp:2:\r\n /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here\r\n 2050 | void av_register_all(void);\r\n | ^~~~~~~~~~~~~~~\r\n creating build/lib.linux-aarch64-3.9\r\n 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\r\n /usr/bin/ld: cannot find -lnvcuvid\r\n /usr/bin/ld: cannot find -lnvidia-encode\r\n /usr/bin/ld: cannot find -lcudart\r\n /usr/bin/ld: cannot find -lcolor_space\r\n collect2: error: ld returned 1 exit status\r\n error: command '/usr/bin/aarch64-linux-gnu-g++' failed with exit code 1\r\n ----------------------------------------\r\n ERROR: Failed building wheel for pynvcodec\r\n ERROR: Command errored out with exit status 1:\r\n 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\r\n cwd: /tmp/pip-install-j9wh4f2y/pynvcodec_1863374f3ff9407aaadfe261ae6ef2e4/\r\n Complete output (269 lines):\r\n running install\r\n /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.\r\n warnings.warn(\r\n running build\r\n running build_ext\r\n mkdir -p build/tests\r\n mkdir -p build/lib\r\n nvcc -DCUDNN --compiler-options \"-fPIC -lstdc++ -pthread -lm\" -c src/cuvid/Utils/ColorSpace.cu -o build/lib/libcolor_space.a\r\n /bin/sh: 1: nvcc: not found\r\n make: *** [Makefile:45: build/lib/libcolor_space.a] Error 127\r\n creating build/temp.linux-aarch64-3.9\r\n creating build/temp.linux-aarch64-3.9/src\r\n creating build/temp.linux-aarch64-3.9/src/cuvid\r\n creating build/temp.linux-aarch64-3.9/src/cuvid/NvDecoder\r\n creating build/temp.linux-aarch64-3.9/src/cuvid/NvEncoder\r\n 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\r\n nvcodec-python.cpp:98:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null]\r\n 98 | };\r\n | ^\r\n nvcodec-python.cpp: In function ‘PyObject* VideoDecoder_decode(NvCodec*, PyObject*)’:\r\n nvcodec-python.cpp:118:28: warning: NULL used in arithmetic [-Wpointer-arith]\r\n 118 | if(error_str[0] != NULL){\r\n | ^~~~\r\n nvcodec-python.cpp: At global scope:\r\n nvcodec-python.cpp:192:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null]\r\n 192 | };\r\n | ^\r\n nvcodec-python.cpp:286:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null]\r\n 286 | };\r\n | ^\r\n 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\r\n src/cuvid/Logger.cpp:3:30: warning: ‘logger’ initialized and declared ‘extern’\r\n 3 | extern simplelogger::Logger *logger = simplelogger::LoggerFactory::CreateConsoleLogger();\r\n | ^~~~~~\r\n 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\r\n In file included from src/cuvid/NvDecoder/NvDecoder.h:23,\r\n from src/cuvid/NvDecoder/NvDecoder.cpp:18:\r\n src/cuvid/NvDecoder/../Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char*, bool)’:\r\n 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]\r\n 193 | if (nSize != st.st_size) {\r\n | ~~~~~~^~~~~~~~~~~~~\r\n In file included from src/cuvid/NvDecoder/NvDecoder.h:23,\r\n from src/cuvid/NvDecoder/NvDecoder.cpp:18:\r\n src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=]\r\n 197 | } catch(std::bad_alloc) {\r\n | ^~~~~~~~~\r\n src/cuvid/NvDecoder/../Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable]\r\n 213 | std::streamsize nRead = fpIn.read(reinterpret_cast\u003cchar*\u003e(pBuf), nSize).gcount();\r\n | ^~~~~\r\n src/cuvid/NvDecoder/NvDecoder.cpp: In function ‘const char* GetVideoCodecString(cudaVideoCodec)’:\r\n src/cuvid/NvDecoder/NvDecoder.cpp:69:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]\r\n 69 | for (int i = cudaVideoCodec_NumCodecs + 1; i \u003c sizeof(aCodecName) / sizeof(aCodecName[0]); i++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n src/cuvid/NvDecoder/NvDecoder.cpp: In member function ‘int NvDecoder::HandleVideoSequence(CUVIDEOFORMAT*)’:\r\n src/cuvid/NvDecoder/NvDecoder.cpp:293:21: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\r\n 293 | if (m_nMaxWidth \u003c (int)pVideoFormat-\u003ecoded_width)\r\n | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n src/cuvid/NvDecoder/NvDecoder.cpp:295:22: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\r\n 295 | if (m_nMaxHeight \u003c (int)pVideoFormat-\u003ecoded_height)\r\n | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n 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\r\n In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12:\r\n src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void* NvEncoder::GetCompletionEvent(uint32_t)’:\r\n src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector\u003cvoid*\u003e::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]\r\n 305 | void* GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; }\r\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~\r\n 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)’:\r\n src/cuvid/NvEncoder/NvEncoder.h:431:24: warning: ‘NvEncoder::m_eDeviceType’ will be initialized after [-Wreorder]\r\n 431 | NV_ENC_DEVICE_TYPE m_eDeviceType;\r\n | ^~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.h:427:14: warning: ‘uint32_t NvEncoder::m_nWidth’ [-Wreorder]\r\n 427 | uint32_t m_nWidth;\r\n | ^~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder]\r\n 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void *pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat,\r\n | ^~~~~~~~~\r\n In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12:\r\n src/cuvid/NvEncoder/NvEncoder.h:439:14: warning: ‘NvEncoder::m_nMaxEncodeHeight’ will be initialized after [-Wreorder]\r\n 439 | uint32_t m_nMaxEncodeHeight = 0;\r\n | ^~~~~~~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NV_ENC_BUFFER_FORMAT NvEncoder::m_eBufferFormat’ [-Wreorder]\r\n 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat;\r\n | ^~~~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder]\r\n 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void *pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat,\r\n | ^~~~~~~~~\r\n In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12:\r\n src/cuvid/NvEncoder/NvEncoder.h:429:26: warning: ‘NvEncoder::m_eBufferFormat’ will be initialized after [-Wreorder]\r\n 429 | NV_ENC_BUFFER_FORMAT m_eBufferFormat;\r\n | ^~~~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.h:409:10: warning: ‘bool NvEncoder::m_bMotionEstimationOnly’ [-Wreorder]\r\n 409 | bool m_bMotionEstimationOnly = false;\r\n | ^~~~~~~~~~~~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder]\r\n 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void *pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat,\r\n | ^~~~~~~~~\r\n In file included from src/cuvid/NvEncoder/NvEncoder.cpp:12:\r\n src/cuvid/NvEncoder/NvEncoder.h:435:14: warning: ‘NvEncoder::m_nExtraOutputDelay’ will be initialized after [-Wreorder]\r\n 435 | uint32_t m_nExtraOutputDelay = 3; // To ensure encode and graphics can work in parallel, m_nExtraOutputDelay should be set to at least 1\r\n | ^~~~~~~~~~~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.h:411:11: warning: ‘void* NvEncoder::m_hEncoder’ [-Wreorder]\r\n 411 | void *m_hEncoder = nullptr;\r\n | ^~~~~~~~~~\r\n src/cuvid/NvEncoder/NvEncoder.cpp:25:1: warning: when initialized here [-Wreorder]\r\n 25 | NvEncoder::NvEncoder(NV_ENC_DEVICE_TYPE eDeviceType, void *pDevice, uint32_t nWidth, uint32_t nHeight, NV_ENC_BUFFER_FORMAT eBufferFormat,\r\n | ^~~~~~~~~\r\n 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\r\n In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18,\r\n from src/cuvid/NvEncoder/NvEncoderCuda.cpp:12:\r\n src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void* NvEncoder::GetCompletionEvent(uint32_t)’:\r\n src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector\u003cvoid*\u003e::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]\r\n 305 | void* GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; }\r\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~\r\n 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\r\n In file included from src/decoder.cpp:2:\r\n src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char*, bool)’:\r\n 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]\r\n 193 | if (nSize != st.st_size) {\r\n | ~~~~~~^~~~~~~~~~~~~\r\n In file included from src/decoder.cpp:2:\r\n src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=]\r\n 197 | } catch(std::bad_alloc) {\r\n | ^~~~~~~~~\r\n src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable]\r\n 213 | std::streamsize nRead = fpIn.read(reinterpret_cast\u003cchar*\u003e(pBuf), nSize).gcount();\r\n | ^~~~~\r\n In file included from src/decoder.cpp:5:\r\n src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’:\r\n src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]\r\n 165 | for (int i = 0; i \u003c sizeof(aeCodec) / sizeof(aeCodec[0]); i++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n src/decoder.cpp: In function ‘int videoDecoder_destroy(videoDecoderHandle)’:\r\n src/decoder.cpp:25:23: warning: deleting ‘void*’ is undefined [-Wdelete-incomplete]\r\n 25 | delete(handle-\u003edec);\r\n | ^\r\n src/decoder.cpp: In function ‘videoFrameList* videoDecoder_decode(videoDecoderHandle, u_int8_t*, size_t, char*)’:\r\n src/decoder.cpp:62:20: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]\r\n 62 | error[0] = NULL;\r\n | ^~~~\r\n src/decoder.cpp:66:27: warning: catching polymorphic type ‘class NVDECException’ by value [-Wcatch-value=]\r\n 66 | }catch(NVDECException e){\r\n | ^\r\n src/decoder.cpp:58:14: warning: unused variable ‘pVideo’ [-Wunused-variable]\r\n 58 | uint8_t *pVideo = NULL, *pFrame;\r\n | ^~~~~~\r\n In file included from src/decoder.cpp:5:\r\n src/cuvid/AppDecUtils.h: At global scope:\r\n src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function]\r\n 141 | static void ShowDecoderCapability()\r\n | ^~~~~~~~~~~~~~~~~~~~~\r\n src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char**, char*, char*, int\u0026, bool*, int*)’ defined but not used [-Wunused-function]\r\n 45 | static void ParseCommandLine(int argc, char *argv[], char *szInputFileName,\r\n | ^~~~~~~~~~~~~~~~\r\n 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\r\n In file included from src/cuvid/NvEncoder/NvEncoderCuda.h:18,\r\n from src/encoder.cpp:2:\r\n src/cuvid/NvEncoder/NvEncoder.h: In member function ‘void* NvEncoder::GetCompletionEvent(uint32_t)’:\r\n src/cuvid/NvEncoder/NvEncoder.h:305:86: warning: comparison of integer expressions of different signedness: ‘std::vector\u003cvoid*\u003e::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]\r\n 305 | void* GetCompletionEvent(uint32_t eventIdx) { return (m_vpCompletionEvent.size() == m_nEncoderBuffer) ? m_vpCompletionEvent[eventIdx] : nullptr; }\r\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~\r\n In file included from src/encoder.cpp:3:\r\n src/cuvid/Utils/NvCodecUtils.h: In constructor ‘BufferedFileReader::BufferedFileReader(const char*, bool)’:\r\n 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]\r\n 193 | if (nSize != st.st_size) {\r\n | ~~~~~~^~~~~~~~~~~~~\r\n In file included from src/encoder.cpp:3:\r\n src/cuvid/Utils/NvCodecUtils.h:197:26: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=]\r\n 197 | } catch(std::bad_alloc) {\r\n | ^~~~~~~~~\r\n src/cuvid/Utils/NvCodecUtils.h:213:25: warning: unused variable ‘nRead’ [-Wunused-variable]\r\n 213 | std::streamsize nRead = fpIn.read(reinterpret_cast\u003cchar*\u003e(pBuf), nSize).gcount();\r\n | ^~~~~\r\n In file included from src/encoder.cpp:6:\r\n src/cuvid/AppDecUtils.h: In function ‘void ShowDecoderCapability()’:\r\n src/cuvid/AppDecUtils.h:165:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]\r\n 165 | for (int i = 0; i \u003c sizeof(aeCodec) / sizeof(aeCodec[0]); i++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n In file included from src/encoder.cpp:7:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘virtual void NvEncoderInitParam::SetInitParams(NV_ENC_INITIALIZE_PARAMS*, NV_ENC_BUFFER_FORMAT)’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:222:44: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 222 | tokens[i] == \"-codec\" \u0026\u0026 ++i ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:224:44: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 224 | tokens[i] == \"-tuninginfo\" \u0026\u0026 ++i ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:225:67: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 225 | tokens[i] == \"-multipass\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseString(\"-multipass\", tokens[i], vMultiPass, szMultipass, \u0026config.rcParams.multiPass) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:226:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 226 | tokens[i] == \"-profile\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 (IsCodecH264() ?\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:229:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 229 | tokens[i] == \"-rc\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseString(\"-rc\", tokens[i], vRcMode, szRcModeNames, \u0026config.rcParams.rateControlMode) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:230:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 230 | tokens[i] == \"-fps\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseInt(\"-fps\", tokens[i], \u0026pParams-\u003eframeRateNum) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:231:134: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 231 | tokens[i] == \"-bf\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseInt(\"-bf\", tokens[i], \u0026config.frameIntervalP) \u0026\u0026 ++config.frameIntervalP ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:232:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 232 | tokens[i] == \"-bitrate\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseBitRate(\"-bitrate\", tokens[i], \u0026config.rcParams.averageBitRate) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:233:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 233 | tokens[i] == \"-maxbitrate\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseBitRate(\"-maxbitrate\", tokens[i], \u0026config.rcParams.maxBitRate) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:234:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 234 | tokens[i] == \"-vbvbufsize\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseBitRate(\"-vbvbufsize\", tokens[i], \u0026config.rcParams.vbvBufferSize) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:235:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 235 | tokens[i] == \"-vbvinit\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseBitRate(\"-vbvinit\", tokens[i], \u0026config.rcParams.vbvInitialDelay) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:236:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 236 | tokens[i] == \"-cq\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseInt(\"-cq\", tokens[i], \u0026config.rcParams.targetQuality) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:237:140: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 237 | tokens[i] == \"-initqp\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseQp(\"-initqp\", tokens[i], \u0026config.rcParams.initialRCQP) \u0026\u0026 (config.rcParams.enableInitialRCQP = true) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:238:134: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 238 | tokens[i] == \"-qmin\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseQp(\"-qmin\", tokens[i], \u0026config.rcParams.minQP) \u0026\u0026 (config.rcParams.enableMinQP = true) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:239:134: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 239 | tokens[i] == \"-qmax\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseQp(\"-qmax\", tokens[i], \u0026config.rcParams.maxQP) \u0026\u0026 (config.rcParams.enableMaxQP = true) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:240:68: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 240 | tokens[i] == \"-constqp\" \u0026\u0026 ++i != tokens.size() \u0026\u0026 ParseQp(\"-constqp\", tokens[i], \u0026config.rcParams.constQP) ||\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:241:44: warning: suggest parentheses around ‘\u0026\u0026’ within ‘||’ [-Wparentheses]\r\n 241 | tokens[i] == \"-temporalaq\" \u0026\u0026 (config.rcParams.enableTemporalAQ = true)\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseBitRate(const string\u0026, const string\u0026, unsigned int*)’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:338:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n 338 | } catch (std::invalid_argument) {\r\n | ^~~~~~~~~~~~~~~~\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In member function ‘bool NvEncoderInitParam::ParseQp(const string\u0026, const string\u0026, NV_ENC_QP*)’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:365:23: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n 365 | } catch (std::invalid_argument) {\r\n | ^~~~~~~~~~~~~~~~\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string\u0026, const string\u0026, T*) [with T = unsigned int; std::string = std::__cxx11::basic_string\u003cchar\u003e]’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:230:132: required from here\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n 347 | } catch (std::invalid_argument) {\r\n | ^~~~~\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string\u0026, const string\u0026, T*) [with T = int; std::string = std::__cxx11::basic_string\u003cchar\u003e]’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:231:132: required from here\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string\u0026, const string\u0026, T*) [with T = unsigned char; std::string = std::__cxx11::basic_string\u003cchar\u003e]’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:236:140: required from here\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n src/cuvid/Utils/NvEncoderCLIOptions.h: In instantiation of ‘bool NvEncoderInitParam::ParseInt(const string\u0026, const string\u0026, T*) [with T = short unsigned int; std::string = std::__cxx11::basic_string\u003cchar\u003e]’:\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:246:135: required from here\r\n src/cuvid/Utils/NvEncoderCLIOptions.h:347:11: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]\r\n In file included from src/encoder.cpp:6:\r\n src/cuvid/AppDecUtils.h: At global scope:\r\n src/cuvid/AppDecUtils.h:141:13: warning: ‘void ShowDecoderCapability()’ defined but not used [-Wunused-function]\r\n 141 | static void ShowDecoderCapability()\r\n | ^~~~~~~~~~~~~~~~~~~~~\r\n src/cuvid/AppDecUtils.h:45:13: warning: ‘void ParseCommandLine(int, char**, char*, char*, int\u0026, bool*, int*)’ defined but not used [-Wunused-function]\r\n 45 | static void ParseCommandLine(int argc, char *argv[], char *szInputFileName,\r\n | ^~~~~~~~~~~~~~~~\r\n 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\r\n src/source.cpp: In function ‘videoSource* videoSource_init(char*, int)’:\r\n src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations]\r\n 10 | av_register_all();\r\n | ^\r\n In file included from src/source.h:8,\r\n from src/source.cpp:2:\r\n /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here\r\n 2050 | void av_register_all(void);\r\n | ^~~~~~~~~~~~~~~\r\n src/source.cpp:10:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations]\r\n 10 | av_register_all();\r\n | ^\r\n In file included from src/source.h:8,\r\n from src/source.cpp:2:\r\n /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2050:6: note: declared here\r\n 2050 | void av_register_all(void);\r\n | ^~~~~~~~~~~~~~~\r\n creating build/lib.linux-aarch64-3.9\r\n 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\r\n /usr/bin/ld: cannot find -lnvcuvid\r\n /usr/bin/ld: cannot find -lnvidia-encode\r\n /usr/bin/ld: cannot find -lcudart\r\n /usr/bin/ld: cannot find -lcolor_space\r\n collect2: error: ld returned 1 exit status\r\n error: command '/usr/bin/aarch64-linux-gnu-g++' failed with exit code 1\r\n ----------------------------------------\r\nERROR: 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.\r\nWARNING: You are using pip version 21.3.1; however, version 22.3.1 is available.\r\nYou should consider upgrading via the '/home/jetson/PycharmProjects/depthai/venv/bin/python -m pip install --upgrade pip' command.\r\n","author":{"url":"https://github.com/stevefs","@type":"Person","name":"stevefs"},"datePublished":"2022-12-01T20:01:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/7/nvcodec-python/issues/7"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8c22169b-da5c-40c5-c68b-6ee2e94ad1fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0CA:1F64D6:1F0EDD3:2774B0B:6991A55F |
| html-safe-nonce | 9bdb3bc6aa08d3beb01f3be85c42adbed09ce8616dd2f3da75515602ad4f523a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMENBOjFGNjRENjoxRjBFREQzOjI3NzRCMEI6Njk5MUE1NUYiLCJ2aXNpdG9yX2lkIjoiODk3NDE3NjY0MzMwMzExMDA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fafec1964c281ff0222d23b6f4a19d98be2a7a72608b530a08ba13aa52837f58 |
| hovercard-subject-tag | issue:1471882406 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UsingNet/nvcodec-python/7/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8f1257a0ed65c3d407261b692b5f2ae926c8ad087cb85f7840f3c539b693a436/UsingNet/nvcodec-python/issues/7 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8f1257a0ed65c3d407261b692b5f2ae926c8ad087cb85f7840f3c539b693a436/UsingNet/nvcodec-python/issues/7 |
| og:image:alt | 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 l... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stevefs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/UsingNet/nvcodec-python git https://github.com/UsingNet/nvcodec-python.git |
| octolytics-dimension-user_id | 23328403 |
| octolytics-dimension-user_login | UsingNet |
| octolytics-dimension-repository_id | 355603481 |
| octolytics-dimension-repository_nwo | UsingNet/nvcodec-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 355603481 |
| octolytics-dimension-repository_network_root_nwo | UsingNet/nvcodec-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width