icub-tech-iit / ergocub-software

Main collector of ergoCub specific SW
https://icub-tech-iit.github.io/ergocub-software/
BSD 3-Clause "New" or "Revised" License
13 stars 18 forks source link

Failed to compile on Windows on fresh conda environment #248

Closed S-Dafarra closed 2 months ago

S-Dafarra commented 3 months ago

I am having the following error

  Performing configure step for 'ergocub-software'
  Not searching for unused variables given on the command line.
  loading initial cache file D:/robotology-superbuild/build/src/ergocub-software/CMakeFiles/YCMTmp/ergocub-software-cac
  he-Release.cmake
  -- Found YCM: D:/robotology-superbuild/build/install/share/cmake/YCM (found version "0.16.2")
  -- Found YARP: D:/robotology-superbuild/build/install/lib/cmake/YARP (found version "3.9.0")
  -- Found YCM: D:/robotology-superbuild/build/install/share/cmake/YCM (found version "0.16.2")
  CMake Error at D:/miniforge/envs/robsub/Library/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (mes
  sage):
  -- Configuring incomplete, errors occurred!
    Could NOT find OpenCV (missing: OpenCV_CONFIG) (Required is at least
    version "4.2.0")
  Call Stack (most recent call first):
    D:/miniforge/envs/robsub/Library/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_M
  ESSAGE)
    D:/robotology-superbuild/build/install/share/YCM/find-modules/FindOpenCV.cmake:99 (find_package_handle_standard_arg
  s)
    src/modules/ergoCubEmotions/CMakeLists.txt:10 (find_package)

C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5):
error MSB8066: Custom build for 'D:\robotology-superbuild\build\CMakeFiles\02e52bd68bfde91f027028f928af572a\ergocub-sof
tware-configure.rule;D:\robotology-superbuild\build\CMakeFiles\02e52bd68bfde91f027028f928af572a\ergocub-software-build.
rule;D:\robotology-superbuild\build\CMakeFiles\02e52bd68bfde91f027028f928af572a\ergocub-software-install.rule;D:\roboto
logy-superbuild\build\CMakeFiles\0a2a271fa810df30c986e1c85f4af500\ergocub-software-complete.rule;D:\robotology-superbui
ld\build\CMakeFiles\c83b3992172f690c7dfa6d73e27a7d25\ergocub-software.rule' exited with code 1. [D:\robotology-superbui
ld\build\ergocub-software.vcxproj]

The version of ergocub-software is

commit e86bde7e2467c776e119761ac89814d0d2dfc3de (HEAD -> master, tag: v0.7.4, origin/master, origin/HEAD)
Author: Nicolò Genesio (二コゲネ) <nicolo.genesio@iit.it>
Date:   Mon May 27 16:17:47 2024 +0200

    Update CHANGELOG.md
Here is the conda list ``` (robsub) D:\robotology-superbuild\src\ergocub-software>conda list # packages in environment at D:\miniforge\envs\robsub: # # Name Version Build Channel ace 8.0.0 he0c23c2_0 conda-forge aiohttp 3.9.5 py312he70551f_0 conda-forge aiosignal 1.3.1 pyhd8ed1ab_0 conda-forge aom 3.8.2 h63175ca_0 conda-forge asio 1.29.0 h63175ca_0 conda-forge assimp 5.4.1 h0dbab56_0 conda-forge asttokens 2.4.1 pyhd8ed1ab_0 conda-forge attrs 23.2.0 pyh71513ae_0 conda-forge blosc 1.21.5 hdccc3a2_0 conda-forge boost 1.84.0 h7e22eef_3 conda-forge brotli 1.0.9 hcfcfb64_9 conda-forge brotli-bin 1.0.9 hcfcfb64_9 conda-forge bzip2 1.0.8 hcfcfb64_5 conda-forge c-compiler 1.7.0 hcfcfb64_1 conda-forge ca-certificates 2024.2.2 h56e8100_0 conda-forge cached-property 1.5.2 hd8ed1ab_1 conda-forge cached_property 1.5.2 pyha770c72_1 conda-forge cairo 1.18.0 h1fef639_0 conda-forge certifi 2024.2.2 pyhd8ed1ab_0 conda-forge clangdev 5.0.0 flang_3 conda-forge cmake 3.28.3 hf0feee3_0 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge compilers 1.7.0 h57928b3_1 conda-forge contourpy 1.2.1 py312h0d7def4_0 conda-forge cxx-compiler 1.7.0 h91493d7_1 conda-forge cycler 0.12.1 pyhd8ed1ab_0 conda-forge dav1d 1.2.1 hcfcfb64_0 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge double-conversion 3.3.0 h63175ca_0 conda-forge eigen 3.4.0 h91493d7_0 conda-forge exceptiongroup 1.2.0 pyhd8ed1ab_2 conda-forge executing 2.0.1 pyhd8ed1ab_0 conda-forge expat 2.5.0 h63175ca_1 conda-forge ffmpeg 6.1.1 gpl_h66c0b5b_108 conda-forge flang 5.0.0 he025d50_20180525 conda-forge flang_win-64 5.0.0 h13ae965_20180526 conda-forge flann 1.9.2 h23e6bae_0 conda-forge fmt 10.2.1 h181d51b_0 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 h77eed37_2 conda-forge fontconfig 2.14.2 hbde0cde_0 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge fonttools 4.52.4 py312h4389bb4_0 conda-forge fortran-compiler 1.7.0 h9655429_1 conda-forge freeglut 3.2.2 h63175ca_2 conda-forge freetype 2.12.1 hdaf720e_2 conda-forge fribidi 1.0.10 h8d14728_0 conda-forge frozenlist 1.4.1 py312he70551f_0 conda-forge getopt-win32 0.1 hcfcfb64_1 conda-forge gettext 0.22.5 h5728263_2 conda-forge gettext-tools 0.22.5 h7d00a51_2 conda-forge gl2ps 1.4.2 h0597ee9_0 conda-forge glew 2.1.0 h39d44d4_2 conda-forge glfw 3.4 hcfcfb64_0 conda-forge glib 2.78.1 h12be248_0 conda-forge glib-networking 2.80.0 hb149071_0 conda-forge glib-tools 2.78.1 h12be248_0 conda-forge glm 0.9.9.8 h181d51b_0 conda-forge graphite2 1.3.13 h63175ca_1003 conda-forge graphviz 9.0.0 h51cb2cd_1 conda-forge gsl 2.7 hdfb1a43_0 conda-forge gst-plugins-bad 1.22.6 ha2afc39_0 conda-forge gst-plugins-base 1.22.7 h001b923_0 conda-forge gst-plugins-good 1.22.7 hdc28085_0 conda-forge gstreamer 1.22.7 hb4038d2_0 conda-forge gts 0.7.6 h6b5321d_4 conda-forge h5py 3.11.0 nompi_py312ha036244_101 conda-forge harfbuzz 8.3.0 h7ab893a_0 conda-forge hdf4 4.2.15 h5557f11_7 conda-forge hdf5 1.14.3 nompi_h2b43c12_102 conda-forge icu 73.2 h63175ca_0 conda-forge idna 3.7 pyhd8ed1ab_0 conda-forge imath 3.1.11 h12be248_0 conda-forge intel-openmp 2024.1.0 h57928b3_966 conda-forge ipopt 3.14.16 ha31d76d_2 conda-forge ipython 8.24.0 pyh7428d3b_0 conda-forge irrlicht 1.8.5 h65f4d7e_4 conda-forge jasper 4.2.4 hcb1a123_0 conda-forge jedi 0.19.1 pyhd8ed1ab_0 conda-forge jsoncpp 1.9.5 h2d74725_1 conda-forge khronos-opencl-icd-loader 2023.04.17 h64bf75a_0 conda-forge kiwisolver 1.4.5 py312h0d7def4_1 conda-forge krb5 1.21.2 heb0366b_0 conda-forge lame 3.100 hcfcfb64_1003 conda-forge lcms2 2.16 h67d730c_0 conda-forge lerc 4.0.0 h63175ca_0 conda-forge libabseil 20240116.2 cxx17_h63175ca_0 conda-forge libaec 1.1.3 h63175ca_0 conda-forge libasprintf 0.22.5 h5728263_2 conda-forge libasprintf-devel 0.22.5 h5728263_2 conda-forge libblas 3.9.0 22_win64_mkl conda-forge libboost 1.84.0 h9a677ad_3 conda-forge libboost-devel 1.84.0 h91493d7_3 conda-forge libboost-headers 1.84.0 h57928b3_3 conda-forge libboost-python 1.84.0 py312hbaa7e33_3 conda-forge libboost-python-devel 1.84.0 py312h7e22eef_3 conda-forge libbrotlicommon 1.0.9 hcfcfb64_9 conda-forge libbrotlidec 1.0.9 hcfcfb64_9 conda-forge libbrotlienc 1.0.9 hcfcfb64_9 conda-forge libcblas 3.9.0 22_win64_mkl conda-forge libccd-double 2.1 h63175ca_3 conda-forge libclang 15.0.7 default_h3a3e6c3_5 conda-forge libclang13 15.0.7 default_hf64faad_5 conda-forge libcurl 8.8.0 hd5e4a3a_0 conda-forge libdeflate 1.20 hcfcfb64_0 conda-forge libexpat 2.5.0 h63175ca_1 conda-forge libffi 3.4.2 h8ffe710_5 conda-forge libflac 1.4.3 h63175ca_0 conda-forge libflang 5.0.0 h6538335_20180525 conda-forge libgd 2.3.3 h312136b_9 conda-forge libgettextpo 0.22.5 h5728263_2 conda-forge libgettextpo-devel 0.22.5 h5728263_2 conda-forge libglib 2.78.1 he8f3873_0 conda-forge libhwloc 2.10.0 default_h8125262_1001 conda-forge libiconv 1.17 hcfcfb64_2 conda-forge libintl 0.22.5 h5728263_2 conda-forge libintl-devel 0.22.5 h5728263_2 conda-forge libjpeg-turbo 3.0.0 hcfcfb64_1 conda-forge liblapack 3.9.0 22_win64_mkl conda-forge liblapacke 3.9.0 22_win64_mkl conda-forge libmatio 1.5.27 h0a2718b_0 conda-forge libnetcdf 4.9.2 nompi_h07c049d_113 conda-forge libode 0.16.2 h53d5487_14 conda-forge libogg 1.3.4 h8ffe710_1 conda-forge libopencv 4.9.0 py312h4c39238_9 conda-forge libopenvino 2023.3.0 hc2557fa_4 conda-forge libopenvino-auto-batch-plugin 2023.3.0 h002f227_4 conda-forge libopenvino-auto-plugin 2023.3.0 h002f227_4 conda-forge libopenvino-hetero-plugin 2023.3.0 h7e3b17c_4 conda-forge libopenvino-intel-cpu-plugin 2023.3.0 hc2557fa_4 conda-forge libopenvino-intel-gpu-plugin 2023.3.0 hc2557fa_4 conda-forge libopenvino-ir-frontend 2023.3.0 h7e3b17c_4 conda-forge libopenvino-onnx-frontend 2023.3.0 h1ef3bed_4 conda-forge libopenvino-paddle-frontend 2023.3.0 h1ef3bed_4 conda-forge libopenvino-pytorch-frontend 2023.3.0 h63175ca_4 conda-forge libopenvino-tensorflow-frontend 2023.3.0 he87eab5_4 conda-forge libopenvino-tensorflow-lite-frontend 2023.3.0 h63175ca_4 conda-forge libopus 1.3.1 h8ffe710_1 conda-forge libpng 1.6.43 h19919ed_0 conda-forge libprotobuf 4.25.2 h503648d_1 conda-forge libpsl 0.21.2 hdd9f3fb_2 conda-forge libsndfile 1.2.2 h81429f1_1 conda-forge libsodium 1.0.18 h8d14728_1 conda-forge libsoup 2.74.3 hef79ac6_1 conda-forge libsqlite 3.45.3 hcfcfb64_0 conda-forge libssh2 1.11.0 h7dfc565_0 conda-forge libtheora 1.1.1 h8d14728_1005 conda-forge libtiff 4.6.0 hddb2be6_3 conda-forge libuv 1.48.0 hcfcfb64_0 conda-forge libvorbis 1.3.7 h0e60522_0 conda-forge libwebp 1.4.0 h2466b09_0 conda-forge libwebp-base 1.4.0 hcfcfb64_0 conda-forge libxcb 1.15 hcd874cb_0 conda-forge libxml2 2.12.7 h283a6d9_0 conda-forge libzip 1.10.1 h1d365fa_3 conda-forge libzlib 1.2.13 h2466b09_6 conda-forge llvm-meta 5.0.0 0 conda-forge loguru 0.7.2 py312h2e8e312_1 conda-forge lua 5.4.6 h2466b09_1 conda-forge lz4-c 1.9.4 hcfcfb64_0 conda-forge m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge make 4.3 h3d2af85_1 conda-forge matplotlib 3.8.4 py312h2e8e312_2 conda-forge matplotlib-base 3.8.4 py312hfee7060_2 conda-forge matplotlib-inline 0.1.7 pyhd8ed1ab_0 conda-forge metis 5.1.0 h63175ca_1007 conda-forge mkl 2024.1.0 h66d3029_692 conda-forge mpg123 1.32.6 h63175ca_0 conda-forge msgpack-python 1.0.8 py312hd5eb7cc_0 conda-forge msys2-conda-epoch 20160418 1 conda-forge multidict 6.0.5 py312he70551f_0 conda-forge mumps-seq 5.7.1 h7c2359a_0 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge ninja 1.12.1 hc790b64_0 conda-forge nlohmann_json 3.11.3 h1537add_0 conda-forge numpy 1.26.4 py312h8753938_0 conda-forge onnxruntime-cpp 1.18.0 h50ebc8d_2_cpu conda-forge opencv 4.9.0 py312h8af15ce_9 conda-forge openexr 3.2.2 h72640d8_1 conda-forge openh264 2.4.1 h63175ca_0 conda-forge openjpeg 2.5.2 h3d672ee_0 conda-forge openmp 5.0.0 vc14_1 conda-forge openssl 3.3.0 h2466b09_3 conda-forge packaging 24.0 pyhd8ed1ab_0 conda-forge pango 1.50.14 h07c897b_2 conda-forge parso 0.8.4 pyhd8ed1ab_0 conda-forge pcl 1.14.1 hadb3925_0 conda-forge pcre2 10.40 h17e33f8_0 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 10.3.0 py312h6f6a607_0 conda-forge pip 24.0 pyhd8ed1ab_0 conda-forge pixman 0.43.4 h63175ca_0 conda-forge pkg-config 0.29.2 h2bf4dc2_1008 conda-forge ply 3.11 pyhd8ed1ab_2 conda-forge portaudio 19.6.0 h63175ca_9 conda-forge proj 9.3.1 he13c7e8_0 conda-forge prompt-toolkit 3.0.42 pyha770c72_0 conda-forge pthread-stubs 0.4 hcd874cb_1001 conda-forge pthreads-win32 2.9.1 hfa6e2cd_3 conda-forge pugixml 1.14 h63175ca_0 conda-forge pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge py-opencv 4.9.0 py312h60b9b89_9 conda-forge pybind11 2.12.0 py312h0d7def4_0 conda-forge pybind11-global 2.12.0 py312h0d7def4_0 conda-forge pygments 2.18.0 pyhd8ed1ab_0 conda-forge pyparsing 3.1.2 pyhd8ed1ab_0 conda-forge pyqt 5.15.9 py312he09f080_5 conda-forge pyqt5-sip 12.12.2 py312h53d5487_5 conda-forge pyqtwebengine 5.15.9 py312hca0710b_5 conda-forge python 3.12.2 h2628c8c_0_cpython conda-forge python-dateutil 2.9.0 pyhd8ed1ab_0 conda-forge python_abi 3.12 4_cp312 conda-forge pyyaml 6.0.1 py312he70551f_1 conda-forge pyzmq 26.0.3 py312hd7027bb_0 conda-forge qhull 2020.2 h70d2c02_2 conda-forge qt-main 5.15.8 h9e85ed6_17 conda-forge qt-webengine 5.15.8 h4bf5c4e_4 conda-forge qt6-main 6.6.1 hc9a02c6_5 conda-forge qtpy 2.4.1 pyhd8ed1ab_0 conda-forge sdl 1.2.68 h21dd15a_0 conda-forge sdl2 2.30.2 h63175ca_0 conda-forge setuptools 70.0.0 pyhd8ed1ab_0 conda-forge sip 6.7.12 py312h53d5487_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge snappy 1.1.10 hfb803bf_1 conda-forge soxr 0.1.3 hcfcfb64_3 conda-forge spdlog 1.13.0 h64d2f7d_0 conda-forge sqlite 3.45.3 hcfcfb64_0 conda-forge stack_data 0.6.2 pyhd8ed1ab_0 conda-forge svt-av1 2.0.0 h63175ca_0 conda-forge swig 4.1.0 h9eeddcc_4 conda-forge tbb 2021.12.0 hc790b64_1 conda-forge tbb-devel 2021.12.0 hb551fcf_1 conda-forge tinyxml 2.6.2 h2d74725_2 conda-forge tinyxml2 10.0.0 h63175ca_0 conda-forge tk 8.6.13 h5226925_1 conda-forge toml 0.10.2 pyhd8ed1ab_0 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge tomlplusplus 3.3.0 h63175ca_0 conda-forge tornado 6.4 py312he70551f_0 conda-forge traitlets 5.14.3 pyhd8ed1ab_0 conda-forge typing_extensions 4.11.0 pyha770c72_0 conda-forge tzdata 2024a h0c530f3_0 conda-forge u-msgpack-python 2.8.0 pyhd8ed1ab_0 conda-forge ucrt 10.0.22621.0 h57928b3_0 conda-forge utfcpp 4.0.5 h57928b3_0 conda-forge vc 14.3 ha32ba9b_20 conda-forge vc14_runtime 14.38.33135 h835141b_20 conda-forge vs2015_runtime 14.38.33135 h22015db_20 conda-forge vs2019_win-64 19.29.30139 he1865b1_20 conda-forge vswhere 3.1.4 h57928b3_0 conda-forge vtk 9.2.6 qt_py312h1234567_220 conda-forge vtk-base 9.2.6 qt_py312h1234567_220 conda-forge wcwidth 0.2.13 pyhd8ed1ab_0 conda-forge wheel 0.43.0 pyhd8ed1ab_1 conda-forge win32_setctime 1.1.0 pyhd8ed1ab_0 conda-forge wslink 2.0.4 pyhd8ed1ab_0 conda-forge x264 1!164.3095 h8ffe710_2 conda-forge x265 3.5 h2d74725_3 conda-forge xorg-kbproto 1.0.7 hcd874cb_1002 conda-forge xorg-libice 1.1.1 hcd874cb_0 conda-forge xorg-libsm 1.2.4 hcd874cb_0 conda-forge xorg-libx11 1.8.9 hefa74cf_0 conda-forge xorg-libxau 1.0.11 hcd874cb_0 conda-forge xorg-libxdmcp 1.1.3 hcd874cb_0 conda-forge xorg-libxext 1.3.4 hcd874cb_2 conda-forge xorg-libxpm 3.5.17 hcd874cb_0 conda-forge xorg-libxt 1.3.0 hcd874cb_1 conda-forge xorg-xextproto 7.3.0 hcd874cb_1003 conda-forge xorg-xproto 7.0.31 hcd874cb_1007 conda-forge xz 5.2.6 h8d14728_0 conda-forge yaml 0.2.5 h8ffe710_2 conda-forge yarl 1.9.4 py312he70551f_0 conda-forge zeromq 4.3.5 he1f189c_4 conda-forge zlib 1.2.13 h2466b09_6 conda-forge zstd 1.5.6 h0ea2cb4_0 conda-forge ```

cc @traversaro @Nicogene

traversaro commented 3 months ago

Sorry @S-Dafarra, can you report the conda list of the environment?

S-Dafarra commented 3 months ago

Sorry @S-Dafarra, can you report the conda list of the environment?

It is already at the end of the comment 😉

traversaro commented 3 months ago

Ah Sorry I missed it, thanks!

Nicogene commented 3 months ago

@S-Dafarra can you confirm that the issue now has been solved?

traversaro commented 3 months ago

Sorry, the fix comment was outdated

S-Dafarra commented 3 months ago

@S-Dafarra can you confirm that the issue now has been solved?

I cannot before next week unfortunately

traversaro commented 3 months ago

@S-Dafarra can you confirm that the issue now has been solved?

I cannot before next week unfortunately

By the way, I do not think this will be solved by https://github.com/robotology/ycm-cmake-modules/pull/449 . Anyhow, https://github.com/robotology/ycm-cmake-modules/pull/449 was a fix that was necessaey (I had no idea how things were working before).

S-Dafarra commented 2 months ago

It seems that it worked. I pulled ycm master, removed ergocub-software build, and let the superbuild compile the ergocub-software target. I did not encounter the issue anymore.

traversaro commented 2 months ago

Great, thanks!

traversaro commented 2 months ago

I wonder if this was related to https://github.com/robotology/robotology-superbuild/issues/1664#issuecomment-2160845262 .