Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no open Cam detection #65

Open
MikelAngel910 opened this issue Apr 5, 2024 · 16 comments
Open

no open Cam detection #65

MikelAngel910 opened this issue Apr 5, 2024 · 16 comments
Assignees

Comments

@MikelAngel910
Copy link

I installed the SW but when tried to use ./camera.bat cant open the cam detection:

(yolo) PS C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement> .\camera.bat

C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement>set XLNX_VART_FIRMWARE=C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement..\1x4.xclbin

C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement>set VITISAI_EP_JSON_CONFIG=C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement..\vaip_config.json

C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement>set ENV_PATH=C:\Users\Lenovo\anaconda3\envs\yolo

C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement>set PATH=C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement..\lib;C:\Users\Lenovo\anaconda3\envs\yolo;C:\Users\Lenovo\anaconda3\envs\yolo;C:\Users\Lenovo\anaconda3\envs\yolo\Library\mingw-w64\bin;C:\Users\Lenovo\anaconda3\envs\yolo\Library\usr\bin;C:\Users\Lenovo\anaconda3\envs\yolo\Library\bin;C:\Users\Lenovo\anaconda3\envs\yolo\Scripts;C:\Users\Lenovo\anaconda3\envs\yolo\bin;C:\Users\Lenovo\anaconda3\condabin;C:\Windows\System32\AMD;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\Lenovo\AppData\Local\Microsoft\WindowsApps;C:\Program Files\CMake\bin;C:\Program Files\PowerShell\7;C:\Program Files\Git\cmd;C:\Users\Lenovo\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Lenovo\AppData\Local\Programs\Python\Python312;C:\Users\Lenovo\anaconda3;C:\Users\Lenovo\anaconda3\Library\mingw-w64\bin;C:\Users\Lenovo\anaconda3\Library\usr\bin;C:\Users\Lenovo\anaconda3\Library\bin;C:\Users\Lenovo\anaconda3\Scripts

C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement>set PATHONHOME=C:\Users\Lenovo\anaconda3\envs\yolo

C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement>set PYTHONPATH=C:\Users\Lenovo\anaconda3\envs\yolo\Lib;C:\Users\Lenovo\anaconda3\envs\yolo\DLLs

C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement>set NUM_OF_DPU_RUNNERS=4

C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement>C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement..\bin\camera_yolov8_nx1x4 -c 5 -x 1 -y 1 -s 0 -D -R 1920x1080 -r 2560x1440
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20240406 03:18:53.926563 5636 demo_nx1x4.hpp:544] Setting parallelism to 5
I20240406 03:18:53.926563 5636 demo_nx1x4.hpp:548] Setting intra_op_num_threads to 1
I20240406 03:18:53.926563 5636 demo_nx1x4.hpp:552] Setting inter_op_num_threads to 1
I20240406 03:18:53.926563 5636 demo_nx1x4.hpp:575] stream: 0
I20240406 03:18:53.926563 5636 demo_nx1x4.hpp:557] [Disable thread spinning]
I20240406 03:18:53.942196 5636 demo_nx1x4.hpp:582] [Set camera resolution]: 1920x1080
I20240406 03:18:53.942196 5636 demo_nx1x4.hpp:588] [Set display resolution]: 2560x1440
Setting intra_op_num_threads to 1
Setting inter_op_num_threads to 1
Disabling intra-op thread spinning entirely
2024-04-06 03:18:56.8644029 [W:onnxruntime:DetectionModel_int.onnx, vitisai_provider_factory.cc:48 onnxruntime::VitisAIProviderFactory::CreateProvider] Construting a FlexML EP instance in Vitis AI EP
2024-04-06 03:18:56.8903007 [W:onnxruntime:DetectionModel_int.onnx, vitisai_execution_provider.cc:117 onnxruntime::VitisAIExecutionProvider::SetFlexMLEPPtr] Assigning the FlexML EP pointer in Vitis AI EP
2024-04-06 03:18:57.1089813 [W:onnxruntime:DetectionModel_int.onnx, vitisai_execution_provider.cc:137 onnxruntime::VitisAIExecutionProvider::GetCapability] Trying FlexML EP GetCapability
2024-04-06 03:18:57.1114426 [W:onnxruntime:DetectionModel_int.onnx, flexml_execution_provider.cc:180 onnxruntime::FlexMLExecutionProvider::GetCapability] FlexMLExecutionProvider::GetCapability, C:\amd\voe\binary-modules\ResNet.flexml\flexml_bm.signature can't not be found!
2024-04-06 03:18:57.1151299 [W:onnxruntime:DetectionModel_int.onnx, vitisai_execution_provider.cc:153 onnxruntime::VitisAIExecutionProvider::GetCapability] FlexML EP ignoring a non-ResNet50 graph
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20240406 03:18:57.165781 5636 vitisai_compile_model.cpp:346] Vitis AI EP Load ONNX Model Success
I20240406 03:18:57.165781 5636 vitisai_compile_model.cpp:347] Graph Input Node Name/Shape (1)
I20240406 03:18:57.165781 5636 vitisai_compile_model.cpp:351] DetectionModel::input_0 : [-1x3x640x640]
I20240406 03:18:57.165781 5636 vitisai_compile_model.cpp:357] Graph Output Node Name/Shape (4)
I20240406 03:18:57.165781 5636 vitisai_compile_model.cpp:361] 3604 : [1x84x8400]
I20240406 03:18:57.165781 5636 vitisai_compile_model.cpp:361] 3152 : [-1x144x80x80]
I20240406 03:18:57.165781 5636 vitisai_compile_model.cpp:361] 3341 : [-1x144x40x40]
I20240406 03:18:57.165781 5636 vitisai_compile_model.cpp:361] 3530 : [-1x144x20x20]
[Vitis AI EP] No. of Operators : CPU 55 IPU 1237 95.74%
[Vitis AI EP] No. of Subgraphs :Actually running on IPU 1
2024-04-06 03:18:57.4651225 [W:onnxruntime:, session_state.cc:1169 onnxruntime::VerifyEachNodeIsAssignedToAnEp] Some nodes were not assigned to the preferred execution providers which may or may not have an negative impact on performance. e.g. ORT explicitly assigns shape related ops to CPU to improve perf.
2024-04-06 03:18:57.5085635 [W:onnxruntime:, session_state.cc:1171 onnxruntime::VerifyEachNodeIsAssignedToAnEp] Rerunning with verbose output on a non-minimal build will show node assignments.
W20240406 03:18:57.652791 5636 tool_function.cpp:171] The operator named 3531, type: :Shape, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.652791 5636 tool_function.cpp:171] The operator named 3533, type: :Gather, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.652791 5636 tool_function.cpp:171] The operator named 3536, type: :Unsqueeze, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.652791 5636 tool_function.cpp:171] The operator named 3539, type: :Concat, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3540_pre_q, type: :Reshape, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3540_q_to_dq, type: :QuantizeLinear, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3540_post_dq, type: :DequantizeLinear, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named :3562:3563, type: :Split, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3562, type: Selector, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3603, type: :Sigmoid, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3578, type: :Transpose, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3579, type: :Softmax, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3582, type: :Conv, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3594, type: :Add, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3592, type: :Sub, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3598, type: :Div, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20240406 03:18:57.668411 5636 tool_function.cpp:171] The operator named 3602, type: :Mul, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
I20240406 03:18:58.392455 5636 demo_nx1x4.hpp:383] DPU model size=640x640
(yolo) PS C:\Users\Lenovo\Desktop\Yolo\RyzenAI-SW\tutorial\yolov8_e2e\implement>

@fanz-xlnx
Copy link
Collaborator

Thanks for the feedback.
Does it work with single image?

@ikaros45625
Copy link

same issue

@fanz-xlnx
Copy link
Collaborator

same issue

Thanks for the feedback. I don't see any error message from the log, and wonder whether it works with single image input.
If it works, the issue may come from the video decoder

@ikaros45625
Copy link

Yes, " run_jpeg.bat " can get result without problem

@fanz-xlnx
Copy link
Collaborator

Yes, " run_jpeg.bat " can get result without problem

OK. So it would be either the camera or the decoder issue. You may try to input with a video file like:

%cd%..\bin\camera_yolov8_nx1x4 -c 5 -x 1 -y 1 -s video/test.mp4 -D

If it works, it would be the camera issue, otherwise it will be the decoder.

@ikaros45625
Copy link

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\RyzenAI-SW\tutorial\yolov8_e2e\bin>camera_yolov8_nx1x4.exe -c 5 -x 1 -y 1 -s WIN_20240425_01_54_05_Pro.mp4 -D
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20240425 01:56:48.252390 14164 demo_nx1x4.hpp:544] Setting parallelism to 5
I20240425 01:56:48.252390 14164 demo_nx1x4.hpp:548] Setting intra_op_num_threads to 1
I20240425 01:56:48.252390 14164 demo_nx1x4.hpp:552] Setting inter_op_num_threads to 1
I20240425 01:56:48.253389 14164 demo_nx1x4.hpp:575] stream: WIN_20240425_01_54_05_Pro.mp4
I20240425 01:56:48.253389 14164 demo_nx1x4.hpp:557] [Disable thread spinning]
Setting intra_op_num_threads to 1
Setting inter_op_num_threads to 1
Disabling intra-op thread spinning entirely

nothing happened

@fanz-xlnx
Copy link
Collaborator

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\RyzenAI-SW\tutorial\yolov8_e2e\bin>camera_yolov8_nx1x4.exe -c 5 -x 1 -y 1 -s WIN_20240425_01_54_05_Pro.mp4 -D WARNING: Logging before InitGoogleLogging() is written to STDERR I20240425 01:56:48.252390 14164 demo_nx1x4.hpp:544] Setting parallelism to 5 I20240425 01:56:48.252390 14164 demo_nx1x4.hpp:548] Setting intra_op_num_threads to 1 I20240425 01:56:48.252390 14164 demo_nx1x4.hpp:552] Setting inter_op_num_threads to 1 I20240425 01:56:48.253389 14164 demo_nx1x4.hpp:575] stream: WIN_20240425_01_54_05_Pro.mp4 I20240425 01:56:48.253389 14164 demo_nx1x4.hpp:557] [Disable thread spinning] Setting intra_op_num_threads to 1 Setting inter_op_num_threads to 1 Disabling intra-op thread spinning entirely

nothing happened

It could be a video encode/decode issue then. Thanks for the feedback, I will get back to you as soon as I can.

@fanz-xlnx
Copy link
Collaborator

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\RyzenAI-SW\tutorial\yolov8_e2e\bin>camera_yolov8_nx1x4.exe -c 5 -x 1 -y 1 -s WIN_20240425_01_54_05_Pro.mp4 -D WARNING: Logging before InitGoogleLogging() is written to STDERR I20240425 01:56:48.252390 14164 demo_nx1x4.hpp:544] Setting parallelism to 5 I20240425 01:56:48.252390 14164 demo_nx1x4.hpp:548] Setting intra_op_num_threads to 1 I20240425 01:56:48.252390 14164 demo_nx1x4.hpp:552] Setting inter_op_num_threads to 1 I20240425 01:56:48.253389 14164 demo_nx1x4.hpp:575] stream: WIN_20240425_01_54_05_Pro.mp4 I20240425 01:56:48.253389 14164 demo_nx1x4.hpp:557] [Disable thread spinning] Setting intra_op_num_threads to 1 Setting inter_op_num_threads to 1 Disabling intra-op thread spinning entirely
nothing happened

It could be a video encode/decode issue then. Thanks for the feedback, I will get back to you as soon as I can.

Do you see the same problem when running the multi-model demo below?
https://github.com/amd/RyzenAI-SW/tree/main/demo/multi-model-exec

@ikaros45625
Copy link

Yes, i can run multi-model demo normally

@fanz-xlnx
Copy link
Collaborator

Yes, i can run multi-model demo normally

Interesting. You mean it runs well with video input?

@ikaros45625
Copy link

Yes,and i try replace multi-model-exec\ipu_modulesx4_demo\resource\detection.avi with other video file, it can also run by "run_modelx4.bat",but if i use the "detection.avi" to run camera_yolov8_nx1x4.exe -c 5 -x 1 -y 1 -s detection.avi -D, it still nothing.

@fanz-xlnx
Copy link
Collaborator

Yes,and i try replace multi-model-exec\ipu_modulesx4_demo\resource\detection.avi with other video file, it can also run by "run_modelx4.bat",but if i use the "detection.avi" to run camera_yolov8_nx1x4.exe -c 5 -x 1 -y 1 -s detection.avi -D, it still nothing.

Thanks for the feedback. Which laptop you are currently using?

@ikaros45625
Copy link

i use desktop system,CPU:R7 8700G

@fanz-xlnx
Copy link
Collaborator

i use desktop system,CPU:R7 8700G

I believe the root cause is the glog and gflags are not properly found, although those files are provided in the repo.
I will suggest you to reinstall those libs from source like following, then rebuild the yolov8 project.

git clone https://github.com/gflags/gflags.git
cd gflags
mkdir mybuild
cd mybuild
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CONFIGURATION_TYPES=Release -A x64 -T host=x64 -G "Visual Studio 16 2019" '-DCMAKE_INSTALL_PREFIX=C:\Program Files\gflags' '-DCMAKE_PREFIX_PATH=.\gflags' -DCMAKE_BUILD_TYPE=Release -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_WITH_STATIC_CRT=OFF -B build -S ../
cmake --build build --config Release
cmake --install build --config Release

cd ../..

git clone https://github.com/google/glog.git
cd glog
mkdir mybuild
cd mybuild
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CONFIGURATION_TYPES=Release -A x64 -T host=x64 -G "Visual Studio 16 2019" '-DCMAKE_INSTALL_PREFIX=C:\Program Files\glog' '-DCMAKE_PREFIX_PATH=.\glog' -DCMAKE_BUILD_TYPE=Release -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_WITH_STATIC_CRT=OFF -B build -S ../
cmake --build build --config Release
cmake --install build --config Release

@ikaros45625
Copy link

When install glog ,I get some error as blow

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU>git clone https://github.com/google/glog.git
Cloning into 'glog'...
remote: Enumerating objects: 4959, done.
remote: Counting objects: 100% (30/30), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 4959 (delta 16), reused 15 (delta 8), pack-reused 4929
Receiving objects: 100% (4959/4959), 2.45 MiB | 4.18 MiB/s, done.
Resolving deltas: 100% (3554/3554), done.

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU>cd glog

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\glog>mkdir mybuild

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\glog>cd mybuild

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild>cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CONFIGURATION_TYPES=Release -A x64 -T host=x64 -G "Visual Studio 16 2019" '-DCMAKE_INSTALL_PREFIX=C:\Program Files\glog' '-DCMAKE_PREFIX_PATH=.\glog' -DCMAKE_BUILD_TYPE=Release -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_WITH_STATIC_CRT=OFF -B build -S ../
CMake Warning:
Ignoring extra path from command line:

"C:/Users/AM5/Desktop/AMD_IPU/glog/mybuild/'-DCMAKE_INSTALL_PREFIX=C:/Program"

CMake Warning:
Ignoring extra path from command line:

"'-DCMAKE_PREFIX_PATH=.\glog'"

-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631.
-- The CXX compiler identification is MSVC 19.29.30154.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for gflags namespace
-- Looking for gflags namespace - gflags
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Could NOT find Unwind (missing: Unwind_INCLUDE_DIR Unwind_LIBRARY)
-- Looking for C++ include dlfcn.h
-- Looking for C++ include dlfcn.h - not found
-- Looking for C++ include elf.h
-- Looking for C++ include elf.h - not found
-- Looking for C++ include glob.h
-- Looking for C++ include glob.h - not found
-- Looking for C++ include link.h
-- Looking for C++ include link.h - not found
-- Looking for C++ include pwd.h
-- Looking for C++ include pwd.h - not found
-- Looking for C++ include sys/exec_elf.h
-- Looking for C++ include sys/exec_elf.h - not found
-- Looking for C++ include sys/syscall.h
-- Looking for C++ include sys/syscall.h - not found
-- Looking for C++ include sys/time.h
-- Looking for C++ include sys/time.h - not found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include sys/utsname.h
-- Looking for C++ include sys/utsname.h - not found
-- Looking for C++ include sys/wait.h
-- Looking for C++ include sys/wait.h - not found
-- Looking for C++ include syscall.h
-- Looking for C++ include syscall.h - not found
-- Looking for C++ include syslog.h
-- Looking for C++ include syslog.h - not found
-- Looking for C++ include ucontext.h
-- Looking for C++ include ucontext.h - not found
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - not found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of mode_t
-- Check size of mode_t - failed
-- Check size of ssize_t
-- Check size of ssize_t - failed
-- Looking for dladdr
-- Looking for dladdr - not found
-- Looking for fcntl
-- Looking for fcntl - not found
-- Looking for posix_fadvise
-- Looking for posix_fadvise - not found
-- Looking for pread
-- Looking for pread - not found
-- Looking for pwrite
-- Looking for pwrite - not found
-- Looking for sigaction
-- Looking for sigaction - not found
-- Looking for sigaltstack
-- Looking for sigaltstack - not found
-- Looking for backtrace
-- Looking for backtrace - not found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - not found
-- Looking for _chsize_s
-- Looking for _chsize_s - found
-- Looking for UnDecorateSymbolName
-- Looking for UnDecorateSymbolName - found
-- Looking for abi::__cxa_demangle
-- Looking for abi::__cxa_demangle - not found
-- Looking for __argv
-- Looking for __argv - found
-- Looking for getprogname
-- Looking for getprogname - not found
-- Looking for program_invocation_short_name
-- Looking for program_invocation_short_name - not found
-- Performing Test HAVE___PROGNAME
-- Performing Test HAVE___PROGNAME - Failed
-- Performing Test HAVE_SYMBOLIZE
-- Performing Test HAVE_SYMBOLIZE - Success
-- Looking for gmtime_r
-- Looking for gmtime_r - not found
-- Looking for localtime_r
-- Looking for localtime_r - not found
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
-- Configuring done (23.4s)
-- Generating done (0.1s)
CMake Warning:
Manually-specified variables were not used by the project:

BUILD_WITH_STATIC_CRT
BUILD_opencv_python2
BUILD_opencv_python3

-- Build files have been written to: C:/Users/AM5/Desktop/AMD_IPU/glog/mybuild/build

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild>cmake --build build --config Release
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

1>Checking Build System
Building Custom Rule C:/Users/AM5/Desktop/AMD_IPU/glog/CMakeLists.txt
demangle.cc
flags.cc
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(63,1): error C2370: 'fLB::FLAGS_timestamp_in_logfile_name': redefinition
; different storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(115): message : see declaration of 'fLB::FLAGS_timestamp_in_logfile_
name' [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(66,1): error C2370: 'fLB::FLAGS_logtostderr': redefinition; different st
orage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(124): message : see declaration of 'fLB::FLAGS_logtostderr' [C:\User
s\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(68,1): error C2370: 'fLB::FLAGS_alsologtostderr': redefinition; differen
t storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(127): message : see declaration of 'fLB::FLAGS_alsologtostderr' [C:
Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(70,1): error C2370: 'fLB::FLAGS_colorlogtostderr': redefinition; differe
nt storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(130): message : see declaration of 'fLB::FLAGS_colorlogtostderr' [C:
\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(72,1): error C2370: 'fLB::FLAGS_colorlogtostdout': redefinition; differe
nt storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(121): message : see declaration of 'fLB::FLAGS_colorlogtostdout' [C:
\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(74,1): error C2370: 'fLB::FLAGS_logtostdout': redefinition; different st
orage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(118): message : see declaration of 'fLB::FLAGS_logtostdout' [C:\User
s\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(90,1): error C2370: 'fLI::FLAGS_stderrthreshold': redefinition; differen
t storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(134): message : see declaration of 'fLI::FLAGS_stderrthreshold' [C:
Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(95,1): error C2370: 'fLS::FLAGS_alsologtoemail': redefinition; different
storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(111): message : see declaration of 'fLS::FLAGS_alsologtoemail' [C:\U
sers\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(98,1): error C2370: 'fLB::FLAGS_log_file_header': redefinition; differen
t storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(137): message : see declaration of 'fLB::FLAGS_log_file_header' [C:
Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(100,1): error C2370: 'fLB::FLAGS_log_prefix': redefinition; different st
orage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(140): message : see declaration of 'fLB::FLAGS_log_prefix' [C:\Users
\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(102,1): error C2370: 'fLB::FLAGS_log_year_in_prefix': redefinition; diff
erent storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(143): message : see declaration of 'fLB::FLAGS_log_year_in_prefix' [
C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(104,1): error C2370: 'fLI::FLAGS_minloglevel': redefinition; different s
torage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(154): message : see declaration of 'fLI::FLAGS_minloglevel' [C:\User
s\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(107,1): error C2370: 'fLI::FLAGS_logbuflevel': redefinition; different s
torage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(147): message : see declaration of 'fLI::FLAGS_logbuflevel' [C:\User
s\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(111,1): error C2370: 'fLI::FLAGS_logbufsecs': redefinition; different st
orage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(150): message : see declaration of 'fLI::FLAGS_logbufsecs' [C:\Users
\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(114,1): error C2370: 'fLI::FLAGS_logcleansecs': redefinition; different
storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(106): message : see declaration of 'fLI::FLAGS_logcleansecs' [C:\Use
rs\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(117,1): error C2370: 'fLI::FLAGS_logemaillevel': redefinition; different
storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(105): message : see declaration of 'fLI::FLAGS_logemaillevel' [C:\Us
ers\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(121,1): error C2370: 'fLS::FLAGS_logmailer': redefinition; different sto
rage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(181): message : see declaration of 'fLS::FLAGS_logmailer' [C:\Users
AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(123,1): error C2370: 'fLI::FLAGS_logfile_mode': redefinition; different
storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(161): message : see declaration of 'fLI::FLAGS_logfile_mode' [C:\Use
rs\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(125,1): error C2370: 'fLS::FLAGS_log_dir': redefinition; different stora
ge class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(158): message : see declaration of 'fLS::FLAGS_log_dir' [C:\Users\AM
5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(129,1): error C2370: 'fLS::FLAGS_log_link': redefinition; different stor
age class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(165): message : see declaration of 'fLS::FLAGS_log_link' [C:\Users\A
M5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(133,1): error C2370: 'fLU::FLAGS_max_log_size': redefinition; different
storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(172): message : see declaration of 'fLU::FLAGS_max_log_size' [C:\Use
rs\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(137,1): error C2370: 'fLB::FLAGS_stop_logging_if_full_disk': redefinitio
n; different storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(175): message : see declaration of 'fLB::FLAGS_stop_logging_if_full_
disk' [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(140,1): error C2370: 'fLS::FLAGS_log_backtrace_at': redefinition; differ
ent storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(112): message : see declaration of 'fLS::FLAGS_log_backtrace_at' [C:
\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(143,1): error C2370: 'fLB::FLAGS_log_utc_time': redefinition; different
storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(178): message : see declaration of 'fLB::FLAGS_log_utc_time' [C:\Use
rs\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(145,1): error C2370: 'fLI::FLAGS_v': redefinition; different storage cla
ss [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(167): message : see declaration of 'fLI::FLAGS_v' [C:\Users\AM5\Desk
top\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(149,1): error C2370: 'fLS::FLAGS_vmodule': redefinition; different stora
ge class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(169): message : see declaration of 'fLS::FLAGS_vmodule' [C:\Users\AM
5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(157,1): error C2370: 'fLB::FLAGS_symbolize_stacktrace': redefinition; di
fferent storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(183): message : see declaration of 'fLB::FLAGS_symbolize_stacktrace'
[C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj]
logging.cc
raw_logging.cc
signalhandler.cc
stacktrace.cc
symbolize.cc
utilities.cc
vlog_is_on.cc
port.cc
Generating Code...

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild>cmake --install build --config Release
CMake Error at build/cmake_install.cmake:37 (file):
file INSTALL cannot find
"C:/Users/AM5/Desktop/AMD_IPU/glog/mybuild/build/Release/glog.lib": File
exists.

@fanz-xlnx
Copy link
Collaborator

When install glog ,I get some error as blow

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU>git clone https://github.com/google/glog.git Cloning into 'glog'... remote: Enumerating objects: 4959, done. remote: Counting objects: 100% (30/30), done. remote: Compressing objects: 100% (22/22), done. remote: Total 4959 (delta 16), reused 15 (delta 8), pack-reused 4929 Receiving objects: 100% (4959/4959), 2.45 MiB | 4.18 MiB/s, done. Resolving deltas: 100% (3554/3554), done.

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU>cd glog

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\glog>mkdir mybuild

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\glog>cd mybuild

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild>cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CONFIGURATION_TYPES=Release -A x64 -T host=x64 -G "Visual Studio 16 2019" '-DCMAKE_INSTALL_PREFIX=C:\Program Files\glog' '-DCMAKE_PREFIX_PATH=.\glog' -DCMAKE_BUILD_TYPE=Release -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_WITH_STATIC_CRT=OFF -B build -S ../ CMake Warning: Ignoring extra path from command line:

"C:/Users/AM5/Desktop/AMD_IPU/glog/mybuild/'-DCMAKE_INSTALL_PREFIX=C:/Program"

CMake Warning: Ignoring extra path from command line:

"'-DCMAKE_PREFIX_PATH=.\glog'"

-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631. -- The CXX compiler identification is MSVC 19.29.30154.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for gflags namespace -- Looking for gflags namespace - gflags -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - not found -- Found Threads: TRUE -- Could NOT find Unwind (missing: Unwind_INCLUDE_DIR Unwind_LIBRARY) -- Looking for C++ include dlfcn.h -- Looking for C++ include dlfcn.h - not found -- Looking for C++ include elf.h -- Looking for C++ include elf.h - not found -- Looking for C++ include glob.h -- Looking for C++ include glob.h - not found -- Looking for C++ include link.h -- Looking for C++ include link.h - not found -- Looking for C++ include pwd.h -- Looking for C++ include pwd.h - not found -- Looking for C++ include sys/exec_elf.h -- Looking for C++ include sys/exec_elf.h - not found -- Looking for C++ include sys/syscall.h -- Looking for C++ include sys/syscall.h - not found -- Looking for C++ include sys/time.h -- Looking for C++ include sys/time.h - not found -- Looking for C++ include sys/types.h -- Looking for C++ include sys/types.h - found -- Looking for C++ include sys/utsname.h -- Looking for C++ include sys/utsname.h - not found -- Looking for C++ include sys/wait.h -- Looking for C++ include sys/wait.h - not found -- Looking for C++ include syscall.h -- Looking for C++ include syscall.h - not found -- Looking for C++ include syslog.h -- Looking for C++ include syslog.h - not found -- Looking for C++ include ucontext.h -- Looking for C++ include ucontext.h - not found -- Looking for C++ include unistd.h -- Looking for C++ include unistd.h - not found -- Looking for C++ include stdint.h -- Looking for C++ include stdint.h - found -- Looking for C++ include stddef.h -- Looking for C++ include stddef.h - found -- Check size of mode_t -- Check size of mode_t - failed -- Check size of ssize_t -- Check size of ssize_t - failed -- Looking for dladdr -- Looking for dladdr - not found -- Looking for fcntl -- Looking for fcntl - not found -- Looking for posix_fadvise -- Looking for posix_fadvise - not found -- Looking for pread -- Looking for pread - not found -- Looking for pwrite -- Looking for pwrite - not found -- Looking for sigaction -- Looking for sigaction - not found -- Looking for sigaltstack -- Looking for sigaltstack - not found -- Looking for backtrace -- Looking for backtrace - not found -- Looking for backtrace_symbols -- Looking for backtrace_symbols - not found -- Looking for _chsize_s -- Looking for _chsize_s - found -- Looking for UnDecorateSymbolName -- Looking for UnDecorateSymbolName - found -- Looking for abi::__cxa_demangle -- Looking for abi::__cxa_demangle - not found -- Looking for __argv -- Looking for __argv - found -- Looking for getprogname -- Looking for getprogname - not found -- Looking for program_invocation_short_name -- Looking for program_invocation_short_name - not found -- Performing Test HAVE___PROGNAME -- Performing Test HAVE___PROGNAME - Failed -- Performing Test HAVE_SYMBOLIZE -- Performing Test HAVE_SYMBOLIZE - Success -- Looking for gmtime_r -- Looking for gmtime_r - not found -- Looking for localtime_r -- Looking for localtime_r - not found -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed -- Performing Test COMPILER_HAS_DEPRECATED -- Performing Test COMPILER_HAS_DEPRECATED - Success -- Configuring done (23.4s) -- Generating done (0.1s) CMake Warning: Manually-specified variables were not used by the project:

BUILD_WITH_STATIC_CRT
BUILD_opencv_python2
BUILD_opencv_python3

-- Build files have been written to: C:/Users/AM5/Desktop/AMD_IPU/glog/mybuild/build

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild>cmake --build build --config Release Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

1>Checking Build System Building Custom Rule C:/Users/AM5/Desktop/AMD_IPU/glog/CMakeLists.txt demangle.cc flags.cc C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(63,1): error C2370: 'fLB::FLAGS_timestamp_in_logfile_name': redefinition ; different storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(115): message : see declaration of 'fLB::FLAGS_timestamp_in_logfile_ name' [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(66,1): error C2370: 'fLB::FLAGS_logtostderr': redefinition; different st orage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(124): message : see declaration of 'fLB::FLAGS_logtostderr' [C:\User s\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(68,1): error C2370: 'fLB::FLAGS_alsologtostderr': redefinition; differen t storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(127): message : see declaration of 'fLB::FLAGS_alsologtostderr' [C: Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(70,1): error C2370: 'fLB::FLAGS_colorlogtostderr': redefinition; differe nt storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(130): message : see declaration of 'fLB::FLAGS_colorlogtostderr' [C: \Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(72,1): error C2370: 'fLB::FLAGS_colorlogtostdout': redefinition; differe nt storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(121): message : see declaration of 'fLB::FLAGS_colorlogtostdout' [C: \Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(74,1): error C2370: 'fLB::FLAGS_logtostdout': redefinition; different st orage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(118): message : see declaration of 'fLB::FLAGS_logtostdout' [C:\User s\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(90,1): error C2370: 'fLI::FLAGS_stderrthreshold': redefinition; differen t storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(134): message : see declaration of 'fLI::FLAGS_stderrthreshold' [C: Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(95,1): error C2370: 'fLS::FLAGS_alsologtoemail': redefinition; different storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(111): message : see declaration of 'fLS::FLAGS_alsologtoemail' [C:\U sers\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(98,1): error C2370: 'fLB::FLAGS_log_file_header': redefinition; differen t storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(137): message : see declaration of 'fLB::FLAGS_log_file_header' [C: Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(100,1): error C2370: 'fLB::FLAGS_log_prefix': redefinition; different st orage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(140): message : see declaration of 'fLB::FLAGS_log_prefix' [C:\Users \AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(102,1): error C2370: 'fLB::FLAGS_log_year_in_prefix': redefinition; diff erent storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(143): message : see declaration of 'fLB::FLAGS_log_year_in_prefix' [ C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(104,1): error C2370: 'fLI::FLAGS_minloglevel': redefinition; different s torage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(154): message : see declaration of 'fLI::FLAGS_minloglevel' [C:\User s\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(107,1): error C2370: 'fLI::FLAGS_logbuflevel': redefinition; different s torage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(147): message : see declaration of 'fLI::FLAGS_logbuflevel' [C:\User s\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(111,1): error C2370: 'fLI::FLAGS_logbufsecs': redefinition; different st orage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(150): message : see declaration of 'fLI::FLAGS_logbufsecs' [C:\Users \AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(114,1): error C2370: 'fLI::FLAGS_logcleansecs': redefinition; different storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(106): message : see declaration of 'fLI::FLAGS_logcleansecs' [C:\Use rs\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(117,1): error C2370: 'fLI::FLAGS_logemaillevel': redefinition; different storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(105): message : see declaration of 'fLI::FLAGS_logemaillevel' [C:\Us ers\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(121,1): error C2370: 'fLS::FLAGS_logmailer': redefinition; different sto rage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(181): message : see declaration of 'fLS::FLAGS_logmailer' [C:\Users AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(123,1): error C2370: 'fLI::FLAGS_logfile_mode': redefinition; different storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(161): message : see declaration of 'fLI::FLAGS_logfile_mode' [C:\Use rs\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(125,1): error C2370: 'fLS::FLAGS_log_dir': redefinition; different stora ge class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(158): message : see declaration of 'fLS::FLAGS_log_dir' [C:\Users\AM 5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(129,1): error C2370: 'fLS::FLAGS_log_link': redefinition; different stor age class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(165): message : see declaration of 'fLS::FLAGS_log_link' [C:\Users\A M5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(133,1): error C2370: 'fLU::FLAGS_max_log_size': redefinition; different storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(172): message : see declaration of 'fLU::FLAGS_max_log_size' [C:\Use rs\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(137,1): error C2370: 'fLB::FLAGS_stop_logging_if_full_disk': redefinitio n; different storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(175): message : see declaration of 'fLB::FLAGS_stop_logging_if_full_ disk' [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(140,1): error C2370: 'fLS::FLAGS_log_backtrace_at': redefinition; differ ent storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(112): message : see declaration of 'fLS::FLAGS_log_backtrace_at' [C: \Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(143,1): error C2370: 'fLB::FLAGS_log_utc_time': redefinition; different storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(178): message : see declaration of 'fLB::FLAGS_log_utc_time' [C:\Use rs\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(145,1): error C2370: 'fLI::FLAGS_v': redefinition; different storage cla ss [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(167): message : see declaration of 'fLI::FLAGS_v' [C:\Users\AM5\Desk top\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(149,1): error C2370: 'fLS::FLAGS_vmodule': redefinition; different stora ge class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(169): message : see declaration of 'fLS::FLAGS_vmodule' [C:\Users\AM 5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\flags.cc(157,1): error C2370: 'fLB::FLAGS_symbolize_stacktrace': redefinition; di fferent storage class [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] C:\Users\AM5\Desktop\AMD_IPU\glog\src\glog/flags.h(183): message : see declaration of 'fLB::FLAGS_symbolize_stacktrace' [C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild\build\glog_internal.vcxproj] logging.cc raw_logging.cc signalhandler.cc stacktrace.cc symbolize.cc utilities.cc vlog_is_on.cc port.cc Generating Code...

(ryzenai) C:\Users\AM5\Desktop\AMD_IPU\glog\mybuild>cmake --install build --config Release CMake Error at build/cmake_install.cmake:37 (file): file INSTALL cannot find "C:/Users/AM5/Desktop/AMD_IPU/glog/mybuild/build/Release/glog.lib": File exists.

I can't reproduce this issue. Maybe you can try to follow the instructions on https://github.com/google/glog to install the glog.

savitha-srinivasan added a commit to savitha-srinivasan/RyzenAI-SW that referenced this issue Jul 29, 2024
Updates to NPU-GPU example to use environment variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants