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

Libraries are not found #2082

Closed
7 tasks done
AreaScout opened this issue Aug 20, 2023 · 32 comments
Closed
7 tasks done

Libraries are not found #2082

AreaScout opened this issue Aug 20, 2023 · 32 comments
Labels
help wanted We accept pull requests!

Comments

@AreaScout
Copy link

AreaScout commented Aug 20, 2023

Environment

  • OS Version: Windows 11
  • Binary build 7.5.0
    • Rendering plugin: ogre2
      • running on a dual GPU machine (integrated GPU + discrete GPU)
      • running on real hardware
      • GPU is concurrently used for other tasks
        • desktop acceleration
        • video decoding (i.e. a playing Youtube video)
        • video encoding
        • CUDA/ROCm computations (Tensorflow, Torch, Caffe running)
    • Rendering system info:
      DxDiag.txt

Description

  • Expected behavior: gz sim should start with world simulation
  • Actual behavior: It does not find the gz-sim library although the search path is right and the file exists

Output

gz sim -s -r --iterations 2 worlds\example_photo_shoot.sdf -v 3
Library error for [D:/gazebo_sim-main/workspace/install/bin/gz-sim7-gz.dll]: No such file or directory

@azeey azeey moved this from Inbox to To do in Core development Aug 21, 2023
@azeey azeey added the help wanted We accept pull requests! label Aug 21, 2023
@AreaScout
Copy link
Author

Ok I will close this as this doesn't happen anymore with latest git, despite from that working on Windows with the Gazebo GUI would be great, I hope this will get fixed soon.

@github-project-automation github-project-automation bot moved this from To do to Done in Core development Aug 24, 2023
@traversaro
Copy link
Contributor

Hello @AreaScout, what error do you have in running gz sim -g? I opened an issue dedicated to fix gz sim -g on Windows at #2089, it could be helpful if you provided the error you are obtaining there, thanks!

@AreaScout
Copy link
Author

AreaScout commented Aug 26, 2023

@traversaro Ok I have to reopen this, again I have troubles with the library not found error message, Importer.dlload fails every time inside gz script, no matter what path I add to it, even if I directly copy the dll to the location gz starts, it does not dlopen it, what could that be? On my PC in my company this does not happen but that environment is screwed up with an unresolvable package conflict. I still got this

Library error for [D:/gazebo_sim-main/ws/install/bin/gz-sim7-gz.dll]: No such file or directory

(gz-test) D:\gazebo_sim-main\ws\install\bin>

and if I start simple_demo_qml.exe a window opens and closes immediately with this console output:

2023-08-26 (3)
(gz-test) D:\gazebo_sim-main\ws\install\bin>D:\gazebo_sim-main\ws\src\gz-rendering\examples\simple_demo_qml\build\Release\simple_demo_qml.exe
[Msg] Loading plugin [gz-rendering-ogre2]
Error while loading the library [D:\gazebo_sim-main\ws\install\lib\gz-rendering-7\engine-plugins\gz-rendering-ogre2.dll]: "D:\gazebo_sim-main\ws\install\lib\gz-rendering-7\engine-plugins\gz-rendering-ogre2.dll": Das angegebene Modul wurde nicht gefunden.
[Err] [D:\gazebo_sim-main\ws\src\gz-rendering\src\RenderEngineManager.cc:534] Failed to load plugin [gz-rendering-ogre2] : couldn't load library on path [D:\gazebo_sim-main\ws\install\lib\gz-rendering-7\engine-plugins\gz-rendering-ogre2.dll].
Engine 'ogre2' is not supported
[Err] [D:\gazebo_sim-main\ws\src\gz-rendering\examples\simple_demo_qml\GzRenderer.cc:272] No cameras found. Scene will not be rendered 

But all files claimed to be not in that folder or the folder does not exist are there!

Please help

@AreaScout AreaScout reopened this Aug 26, 2023
@github-project-automation github-project-automation bot moved this from Done to Inbox in Core development Aug 26, 2023
@traversaro
Copy link
Contributor

How did you installed gz-sim ? Can you report the output of conda info and conda list of your environment? Thanks.

@traversaro
Copy link
Contributor

Also, it would be useful to know how the simple_demo_qml you are trying to compile was produced.

@AreaScout
Copy link
Author

I didn't install it, I build the whole project from source

(gz-test) D:\gazebo_sim-main\ws\install\bin>conda info

     active environment : base
    active env location : C:\Users\Area\miniconda3\envs\gz-test
            shell level : 2
       user config file : C:\Users\Area\.condarc
 populated config files : C:\Users\Area\.condarc
          conda version : 23.1.0
    conda-build version : not installed
         python version : 3.7.9.final.0
       virtual packages : __archspec=1=x86_64
                          __cuda=12.2=0
                          __win=0=0
       base environment : C:\Users\Area\miniconda3\envs\gz-test  (writable)
      conda av data dir : C:\Users\Area\miniconda3\envs\gz-test\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\Area\miniconda3\envs\gz-test\pkgs
                          C:\Users\Area\.conda\pkgs
                          C:\Users\Area\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\Area\miniconda3\envs\gz-test\envs
                          C:\Users\Area\.conda\envs
                          C:\Users\Area\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.1.0 requests/2.28.1 CPython/3.7.9 Windows/10 Windows/10.0.22621
          administrator : False
             netrc file : None
           offline mode : False
(gz-test) D:\gazebo_sim-main\ws\install\bin>conda list
# packages in environment at C:\Users\Area\miniconda3\envs\gz-test:
#
# Name                    Version                   Build  Channel
aom                       3.4.0                h0e60522_1    conda-forge
assimp                    5.0.1                h5510ddc_6
atomicwrites              1.4.0                      py_0
attrs                     22.1.0           py37haa95532_0
benchmark                 1.4.1                he025d50_3    conda-forge
blas                      1.0                         mkl
blosc                     1.21.0               h19a0ad4_1
boost-cpp                 1.74.0               h9f4b32c_8    conda-forge
brotlipy                  0.7.0           py37h2bbff1b_1003
bullet-cpp                3.21                 h3182a2c_3    conda-forge
bzip2                     1.0.8                he774522_0
ca-certificates           2023.7.22            h56e8100_0    conda-forge
cairo                     1.16.0               he04af86_2
catkin_pkg                0.5.2              pyhd8ed1ab_0    conda-forge
certifi                   2023.7.22          pyhd8ed1ab_0    conda-forge
cffi                      1.15.1           py37h2bbff1b_3
cfitsio                   4.1.0                h5a969a9_0    conda-forge
charset-normalizer        2.0.4              pyhd3eb1b0_0
cmake                     3.24.1               h39d44d4_0    conda-forge
colcon-cmake              0.2.27             pyhd8ed1ab_0    conda-forge
colcon-common-extensions  0.3.0            py37h03978a9_0    conda-forge
colcon-core               0.12.1             pyhd8ed1ab_0    conda-forge
colcon-defaults           0.2.8              pyhd8ed1ab_0    conda-forge
colcon-devtools           0.2.2                      py_0    conda-forge
colcon-library-path       0.2.1                      py_0    conda-forge
colcon-metadata           0.2.5                      py_0    conda-forge
colcon-notification       0.2.14           py37h03978a9_0    conda-forge
colcon-output             0.2.13             pyhd8ed1ab_0    conda-forge
colcon-package-information 0.3.3                      py_0    conda-forge
colcon-package-selection  0.2.10                     py_0    conda-forge
colcon-parallel-executor  0.2.4                      py_0    conda-forge
colcon-pkg-config         0.1.0                      py_0    conda-forge
colcon-powershell         0.3.6                      py_0    conda-forge
colcon-python-setup-py    0.2.7                      py_0    conda-forge
colcon-recursive-crawl    0.2.1                      py_0    conda-forge
colcon-ros                0.3.23             pyhd8ed1ab_0    conda-forge
colcon-test-result        0.3.8                      py_0    conda-forge
colorama                  0.4.6            py37haa95532_0
coloredlogs               15.0.1           py37haa95532_1
conda                     23.1.0           py37haa95532_0
conda-package-handling    2.0.2            py37haa95532_0
conda-package-streaming   0.7.0            py37haa95532_0
console_bridge            1.0.2                h5362a0b_1    conda-forge
coverage                  6.3.2            py37h2bbff1b_0
cppzmq                    4.8.1                h4324990_0    conda-forge
cryptography              39.0.1           py37h21b164f_0
curl                      7.83.1               h789b8ee_0    conda-forge
dartsim                   6.9.5                h943c0c4_5    conda-forge
distlib                   0.3.6            py37haa95532_0
dlfcn-win32               1.3.0                h0e60522_0    conda-forge
docutils                  0.18.1           py37haa95532_3
eigen                     3.4.0                h2d74725_0    conda-forge
empy                      3.3.4              pyh9f0ad1d_1    conda-forge
expat                     2.4.9                h6c2663c_0
fcl                       0.6.1                hbf27b1e_3    conda-forge
ffmpeg                    5.1.0           gpl_hbb6702b_101    conda-forge
flann                     1.9.1             h075982a_1010    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hd3eb1b0_0
font-ttf-inconsolata      2.001                hcb22688_0
font-ttf-source-code-pro  2.030                hd3eb1b0_0
font-ttf-ubuntu           0.83                 h8b1ccd4_0
fontconfig                2.14.0               hce3cb01_0    conda-forge
fonts-anaconda            1                    h8fa9717_0
fonts-conda-ecosystem     1                    hd3eb1b0_0
freeglut                  3.2.2                h0e60522_1    conda-forge
freeimage                 3.18.0              h064cf08_10    conda-forge
freetype                  2.12.1               h546665d_0    conda-forge
freexl                    1.0.6                h2bbff1b_0
gdal                      3.4.2            py37hd4e592b_5    conda-forge
geos                      3.10.2               h39d44d4_0    conda-forge
geotiff                   1.7.1                h38b14a8_1    conda-forge
gettext                   0.21.1               h5728263_0    conda-forge
giflib                    5.2.1                h8cc25b3_3
git                       2.41.0               h57928b3_0    conda-forge
glib                      2.72.1               h7755175_0    conda-forge
glib-tools                2.72.1               h7755175_0    conda-forge
gst-plugins-base          1.18.5               h9e645db_0
gstreamer                 1.18.5               hd78058f_0
gts                       0.7.6                h7c369d9_2    conda-forge
hdf4                      4.2.15               h0e5069d_4    conda-forge
hdf5                      1.12.1          nompi_h2a0e4a3_104    conda-forge
humanfriendly             10.0             py37haa95532_1
icu                       69.1                 h0e60522_0    conda-forge
idna                      3.4              py37haa95532_0
imath                     3.1.5                h12d4b20_0    conda-forge
importlib-metadata        2.0.0                      py_1
importlib_metadata        1.5.0                    py37_0
iniconfig                 1.1.1              pyhd3eb1b0_0
intel-openmp              2021.4.0          haa95532_3556
jpeg                      9e                   h2bbff1b_1
jsoncpp                   1.9.5                h2d74725_1    conda-forge
jxrlib                    1.1                  he774522_2
kealib                    1.4.15               h8995ca9_0    conda-forge
krb5                      1.19.4               h5b6d351_0
lcms2                     2.12                 h83e58a3_0
lerc                      3.0                  hd77b12b_0
libccd                    2.1                  h0e60522_1    conda-forge
libclang                  13.0.1          default_h81446c8_0    conda-forge
libcurl                   7.83.1               h789b8ee_0    conda-forge
libdeflate                1.17                 h2bbff1b_0
libffi                    3.4.4                hd77b12b_0
libgdal                   3.4.2                h0bdba65_5    conda-forge
libglib                   2.72.1               h3be07f2_0    conda-forge
libiconv                  1.17                 h8ffe710_0    conda-forge
libkml                    1.3.0             h9859afa_1014    conda-forge
libnetcdf                 4.8.1           nompi_h1cc8e9d_102    conda-forge
libode                    0.16.2              hf2a7229_10    conda-forge
libogg                    1.3.5                h2bbff1b_1
libpng                    1.6.37               h2a8f88b_0
libpq                     14.5                 hfcc5ef8_0    conda-forge
libprotobuf               3.21.1               h7755175_0    conda-forge
libraw                    0.20.2               hee1bdec_1    conda-forge
librttopo                 1.1.0                hb1df466_9    conda-forge
libsodium                 1.0.18               h62dcd97_0
libspatialite             5.0.1               h36c16d9_15    conda-forge
libssh2                   1.10.0               hcd4344a_2
libtiff                   4.4.0                h8a3f274_2
libvorbis                 1.3.7                he774522_0
libwebp                   1.2.4                hbc33d0d_1
libwebp-base              1.2.4                h2bbff1b_1
libxml2                   2.9.14               h0ad7f3c_0
libzip                    1.9.2                hfed4ece_1    conda-forge
libzlib                   1.2.12               h8ffe710_2    conda-forge
lz4-c                     1.9.3                h2bbff1b_1
menuinst                  1.4.19           py37h59b6b97_0
mkl                       2021.4.0           haa95532_640
mkl-service               2.4.0            py37h2bbff1b_0
mkl_fft                   1.3.1            py37h277e83a_0
mkl_random                1.2.2            py37hf11a4ad_0
numpy                     1.21.5           py37h7a0a035_3
numpy-base                1.21.5           py37hca35cd5_3
octomap                   1.9.7                h5362a0b_0    conda-forge
ogre                      1.10.12              hab73eff_9    conda-forge
ogre-next                 2.3.1                hdef13af_2    conda-forge
openexr                   3.1.5                hab3b255_0    conda-forge
openh264                  2.3.0                h0e60522_0    conda-forge
openjpeg                  2.5.0                hc9384bd_1    conda-forge
openssl                   1.1.1v               h2bbff1b_0
packaging                 22.0             py37haa95532_0
pcre                      8.45                 hd77b12b_0
pip                       22.3.1           py37haa95532_0
pixman                    0.40.0               h2bbff1b_1
pkg-config                0.29.2            h2bf4dc2_1008    conda-forge
pluggy                    1.0.0            py37haa95532_1
poppler                   22.01.0              h24fffdf_2    conda-forge
poppler-data              0.4.11               haa95532_1
postgresql                14.5                 h1c22c4f_0    conda-forge
proj                      9.0.0                h1cfcee9_1    conda-forge
protobuf                  4.21.1           py37h03978a9_0    conda-forge
psutil                    5.9.5                    pypi_0    pypi
pugixml                   1.11.4               hd77b12b_1
py                        1.11.0             pyhd3eb1b0_0
pybind11                  2.10.0           py37h8c56517_0    conda-forge
pybind11-global           2.10.0           py37h8c56517_0    conda-forge
pycosat                   0.6.4            py37h2bbff1b_0
pycparser                 2.21               pyhd3eb1b0_0
pyopenssl                 23.0.0           py37haa95532_0
pyparsing                 3.0.9            py37haa95532_0
pyreadline                2.1                      py37_1
pysocks                   1.7.1                    py37_1
pytest                    7.1.2            py37haa95532_0
pytest-cov                3.0.0              pyhd3eb1b0_0
pytest-repeat             0.9.1              pyhd8ed1ab_0    conda-forge
pytest-rerunfailures      10.1               pyhd3eb1b0_0
python                    3.7.9                h60c2a47_0
python-dateutil           2.8.2              pyhd3eb1b0_0
python_abi                3.7                     2_cp37m    conda-forge
pywin32                   305              py37h2bbff1b_0
pyyaml                    6.0              py37h2bbff1b_1
qt                        5.15.2               h2d74725_0    conda-forge
qt-main                   5.15.2               hb84c757_2    conda-forge
qt-webengine              5.15.4               ha014ca1_1    conda-forge
requests                  2.28.1           py37haa95532_0
ruamel.yaml               0.17.21          py37h2bbff1b_0
ruamel.yaml.clib          0.2.6            py37h2bbff1b_1
ruby                      3.1.2                h1d9c0f5_0    conda-forge
sdl2                      2.0.22               h0e60522_2    conda-forge
setuptools                65.6.3           py37haa95532_0
six                       1.16.0             pyhd3eb1b0_1
sqlite                    3.41.2               h2bbff1b_0
svt-av1                   1.2.1                h0e60522_0    conda-forge
swig                      4.1.0                h57928b3_0    conda-forge
tiledb                    2.7.2                h95dad36_0    conda-forge
tinyxml                   2.6.2                h2d74725_2    conda-forge
tinyxml2                  8.0.0                h39d44d4_1    conda-forge
toml                      0.10.2             pyhd3eb1b0_0
tomli                     2.0.1            py37haa95532_0
toolz                     0.12.0           py37haa95532_0
tqdm                      4.64.1           py37haa95532_0
urdfdom                   2.3.5                h2d74725_0    conda-forge
urdfdom_headers           1.1.0                h5362a0b_0    conda-forge
urllib3                   1.26.14          py37haa95532_0
vc                        14.2                 h21ff451_1
vcstool                   0.3.0                    pypi_0    pypi
vs2015_runtime            14.27.29016          h5e58377_2
websockets                10.3             py37hcc03f2d_0    conda-forge
wheel                     0.38.4           py37haa95532_0
win_inet_pton             1.1.0            py37haa95532_0
wincertstore              0.2              py37haa95532_2
x264                      1!164.3095           h8ffe710_2    conda-forge
x265                      3.5                  h2d74725_3    conda-forge
xerces-c                  3.2.4                hd77b12b_0
xz                        5.2.10               h8cc25b3_1
yaml                      0.2.5                he774522_0
zeromq                    4.3.4                h0e60522_1    conda-forge
zipp                      3.11.0           py37haa95532_0
zlib                      1.2.12               h8cc25b3_2
zstandard                 0.19.0           py37h2bbff1b_0
zstd                      1.5.2                h19a0ad4_0
zziplib                   0.13.69              h1d00b33_1    conda-forge

Regards,
Daniel

@traversaro
Copy link
Contributor

Apparently your conda environment gz-test has a mixture of conda-forge and anaconda/defaults packages, that is not a supported workflow (see https://conda-forge.org/docs/user/tipsandtricks.html#why-does-that-happen). Which command did you use to create that environment? A possible solution is to create a new environment passing also the -c nodefaults option to make sure that the defaults channel is not used.

@AreaScout
Copy link
Author

Well some packages needed I only found from anaconda packages, but that was not much or even wrong, but I don't think that this is the reason I have this path problems, what else could that cause ?

@AreaScout
Copy link
Author

I just followed this instructions

https://gazebosim.org/docs/garden/install_windows_src

@traversaro
Copy link
Contributor

Well some packages needed I only found from anaconda packages, but that was not much or even wrong, but I don't think that this is the reason I have this path problems, what else could that cause ?

I am not sure if the problem are independent. Anyhow, probably you can debug the loading problems by installing https://github.com/lucasg/Dependencies, launching it in the environment, load the dll that is causing loading problems and check if more information are printed.

@traversaro
Copy link
Contributor

I just followed this instructions

https://gazebosim.org/docs/garden/install_windows_src

Good point, I will double check, but probably -c nodefaults should be added there as well, probably it went unnoticed as most gz users actually use miniforge or mambaforge .

@AreaScout
Copy link
Author

Well I did a new environment and even with the -c nodefaults switch it added non conda-forge packages

# packages in environment at C:\Users\Area\miniconda3\envs\gz-bin:
#
# Name                    Version                   Build  Channel
aom                       3.5.0                h63175ca_0    conda-forge
blosc                     1.21.4               hdccc3a2_0    conda-forge
boost-cpp                 1.78.0               h9f4b32c_4    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
ca-certificates           2023.7.22            h56e8100_0    conda-forge
cairo                     1.16.0            h63a05c6_1001    conda-forge
catkin_pkg                0.5.2              pyhd8ed1ab_0    conda-forge
cfitsio                   3.470                h2bbff1b_7
cmake                     3.26.4               h1537add_0    conda-forge
colcon-cmake              0.2.27             pyhd8ed1ab_0    conda-forge
colcon-common-extensions  0.3.0           py311h1ea47a8_1    conda-forge
colcon-core               0.12.1             pyhd8ed1ab_0    conda-forge
colcon-defaults           0.2.8              pyhd8ed1ab_0    conda-forge
colcon-devtools           0.2.2                      py_0    conda-forge
colcon-library-path       0.2.1                      py_0    conda-forge
colcon-metadata           0.2.5                      py_0    conda-forge
colcon-notification       0.2.15          py311h1ea47a8_1    conda-forge
colcon-output             0.2.13             pyhd8ed1ab_0    conda-forge
colcon-package-information 0.3.3                      py_0    conda-forge
colcon-package-selection  0.2.10                     py_0    conda-forge
colcon-parallel-executor  0.2.4                      py_0    conda-forge
colcon-pkg-config         0.1.0                      py_0    conda-forge
colcon-powershell         0.3.6                      py_0    conda-forge
colcon-python-setup-py    0.2.7                      py_0    conda-forge
colcon-recursive-crawl    0.2.1                      py_0    conda-forge
colcon-ros                0.3.23             pyhd8ed1ab_0    conda-forge
colcon-test-result        0.3.8                      py_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
coloredlogs               15.0.1             pyhd8ed1ab_3    conda-forge
console_bridge            1.0.2                h5362a0b_1    conda-forge
coverage                  7.3.0           py311ha68e1ae_0    conda-forge
cppzmq                    4.10.0               h449d27f_0    conda-forge
curl                      8.2.1                hd5e4a3a_0    conda-forge
dav1d                     1.2.0                hcfcfb64_0    conda-forge
distlib                   0.3.7              pyhd8ed1ab_0    conda-forge
dlfcn-win32               1.3.0                h0e60522_0    conda-forge
docutils                  0.20.1          py311h1ea47a8_0    conda-forge
eigen                     3.4.0                h91493d7_0    conda-forge
empy                      3.3.4              pyh9f0ad1d_1    conda-forge
exceptiongroup            1.1.3              pyhd8ed1ab_0    conda-forge
expat                     2.5.0                h63175ca_1    conda-forge
ffmpeg                    6.0.0           gpl_h3a5b8a7_100    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                 hab24e00_0    conda-forge
fontconfig                2.14.2               hbde0cde_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
freeimage                 3.18.0               h33f27b4_0    conda-forge
freetype                  2.12.1               h546665d_1    conda-forge
freexl                    1.0.6                h67ca5e6_1    conda-forge
gdal                      3.6.2           py311h4e7b5b2_3
geos                      3.8.0                h33f27b4_0
geotiff                   1.7.0                h4545760_1
git                       2.42.0               h57928b3_0    conda-forge
glib                      2.69.1               h5dc1a3c_2
gst-plugins-base          1.18.5               h9e645db_0
gstreamer                 1.18.5               hd78058f_0
gts                       0.7.6                h69fa6b1_0    conda-forge
hdf4                      4.2.13               h712560f_2
hdf5                      1.12.1          nompi_h57737ce_104    conda-forge
humanfriendly             10.0            py311h1ea47a8_4    conda-forge
icu                       58.2                 ha925a31_3
importlib-metadata        6.8.0              pyha770c72_0    conda-forge
iniconfig                 2.0.0              pyhd8ed1ab_0    conda-forge
intel-openmp              2023.2.0         h57928b3_49496    conda-forge
jpeg                      9e                   hcfcfb64_3    conda-forge
jsoncpp                   1.9.5                h2d74725_1    conda-forge
kealib                    1.5.0                hde4a422_1
krb5                      1.21.2               heb0366b_0    conda-forge
lcms2                     2.15                 ha5c8aab_0    conda-forge
lerc                      3.0                  hd77b12b_0
libabseil                 20230125.3      cxx17_h63175ca_0    conda-forge
libblas                   3.9.0                     8_mkl    conda-forge
libcblas                  3.9.0                     8_mkl    conda-forge
libclang                  12.0.0          default_h627e005_2
libcurl                   8.2.1                hd5e4a3a_0    conda-forge
libdeflate                1.17                 h2bbff1b_0
libexpat                  2.5.0                h63175ca_1    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libgdal                   3.6.2                h676b171_3
libiconv                  1.17                 h8ffe710_0    conda-forge
libkml                    1.3.0             hf2ab4e4_1015    conda-forge
liblapack                 3.9.0                     8_mkl    conda-forge
libnetcdf                 4.8.1                h6685c40_4
libogg                    1.3.4                h8ffe710_1    conda-forge
libopus                   1.3.1                h8ffe710_1    conda-forge
libpng                    1.6.39               h19919ed_0    conda-forge
libpq                     12.15                h906ac69_0
libprotobuf               4.23.4               h1975477_1    conda-forge
libsodium                 1.0.18               h8d14728_1    conda-forge
libspatialite             4.3.0a              h6ec8781_23
libsqlite                 3.43.0               hcfcfb64_0    conda-forge
libssh2                   1.11.0               h7dfc565_0    conda-forge
libtiff                   4.5.0                h6c2663c_2
libvorbis                 1.3.7                h0e60522_0    conda-forge
libwebp-base              1.3.1                hcfcfb64_0    conda-forge
libxml2                   2.10.4               hc3477c8_0    conda-forge
libzip                    1.10.1               h1d365fa_0    conda-forge
libzlib                   1.2.13               hcfcfb64_5    conda-forge
lz4-c                     1.9.4                hcfcfb64_0    conda-forge
mkl                       2020.4             hb70f87d_311    conda-forge
numpy                     1.25.2          py311h0b4df5a_0    conda-forge
openh264                  2.3.1                h63175ca_2    conda-forge
openjpeg                  2.5.0                ha2aaf27_2    conda-forge
openssl                   3.1.2                hcfcfb64_0    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
pcre                      8.45                 h0e60522_0    conda-forge
pcre2                     10.42                h0ff8eda_0
pip                       23.2.1             pyhd8ed1ab_0    conda-forge
pixman                    0.38.0            hfa6e2cd_1003    conda-forge
pkg-config                0.29.2            hc3f28c7_1007    conda-forge
pluggy                    1.2.0              pyhd8ed1ab_0    conda-forge
poppler                   22.12.0              h268424c_0
poppler-data              0.4.12               hd8ed1ab_0    conda-forge
proj                      6.2.1                h3758d61_0
protobuf                  4.23.4          py311h03b55d4_0    conda-forge
pybind11                  2.11.1          py311h005e61a_0    conda-forge
pybind11-global           2.11.1          py311h005e61a_0    conda-forge
pyparsing                 3.1.1              pyhd8ed1ab_0    conda-forge
pyreadline3               3.4.1           py311h1ea47a8_2    conda-forge
pytest                    7.4.0              pyhd8ed1ab_0    conda-forge
pytest-cov                4.1.0              pyhd8ed1ab_0    conda-forge
pytest-repeat             0.9.1              pyhd8ed1ab_0    conda-forge
pytest-rerunfailures      12.0               pyhd8ed1ab_0    conda-forge
python                    3.11.4          h2628c8c_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.11                    3_cp311    conda-forge
pywin32                   304             py311h12c1d0e_2    conda-forge
pyyaml                    6.0.1           py311ha68e1ae_0    conda-forge
qhull                     2020.2               h70d2c02_2    conda-forge
qt                        5.15.7               haa95532_0
qt-main                   5.15.2               he8e5bd7_7
qt-webengine              5.15.9               h5bd16bc_7
ruby                      3.2.2                h20ad4f3_0    conda-forge
setuptools                68.1.2             pyhd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
snappy                    1.1.10               hfb803bf_0    conda-forge
sqlite                    3.43.0               hcfcfb64_0    conda-forge
svt-av1                   1.5.0                h63175ca_0    conda-forge
tiledb                    2.3.3                hd8964de_3
tinyxml                   2.6.2                h2d74725_2    conda-forge
tinyxml2                  9.0.0                h0e60522_2    conda-forge
tk                        8.6.12               h8ffe710_0    conda-forge
toml                      0.10.2             pyhd8ed1ab_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_0    conda-forge
urdfdom                   3.1.1                h33150cf_0    conda-forge
urdfdom_headers           1.1.0                h5362a0b_0    conda-forge
vc                        14.3                h64f974e_17    conda-forge
vc14_runtime              14.36.32532         hfdfe4a8_17    conda-forge
vs2015_runtime            14.36.32532         h05e6639_17    conda-forge
wheel                     0.41.2             pyhd8ed1ab_0    conda-forge
x264                      1!164.3095           h8ffe710_2    conda-forge
x265                      3.5                  h2d74725_3    conda-forge
xerces-c                  3.2.4                h63175ca_3    conda-forge
xz                        5.4.2                h8cc25b3_0
yaml                      0.2.5                h8ffe710_2    conda-forge
zeromq                    4.3.4                h0e60522_1    conda-forge
zipp                      3.16.2             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hcfcfb64_5    conda-forge
zstd                      1.5.2                h12be248_7    conda-forge

@traversaro
Copy link
Contributor

Well I did a new environment and even with the -c nodefaults switch it added non conda-forge packages

That is quite strange. Can you provide exactly the commands you use to create this environment? From the docs in https://gazebosim.org/docs/garden/install_windows_src it seems that the commands should be:

conda create -n gz-ws
conda activate gz-ws
conda install cmake git vcstool curl pkg-config colcon-common-extensions eigen freeimage gdal gts glib dlfcn-win32 ffmpeg ruby tinyxml2 tinyxml  protobuf urdfdom zeromq cppzmq ogre jsoncpp libzip qt pybind11 --channel conda-forge

However, the fact that in your environemnts pybind11 and ogre are missing suggest me that probably another command was used.

@AreaScout
Copy link
Author

pybind11 is installed, ogre and ogre-next as well for the envs\gz-test, for the new one envs\gz-bin I didn't install ogre because I only wanted to test if all packages got installed from conda-forge channel and by the way pybind11 is installed on both environments gz-test and gz-bin

Regards,

Daniel

@traversaro
Copy link
Contributor

Right, I missed the pybind11, sorry about that . Can you share the commands you used to create the env? I tried with a miniconda install and the instructions from the tutorial and in my case all the packages got installed from conda-forge.

@AreaScout
Copy link
Author

Sure, I reinstalled the environment, here are my commands!

create --name gz-bin python=3.10 -c nodefaults
conda activate gz-bin
conda install cmake git curl pkg-config colcon-common-extensions eigen freeimage gdal gts glib dlfcn-win32 ffmpeg ruby tinyxml2 tinyxml protobuf urdfdom zeromq cppzmq jsoncpp libzip qt pybind11 ogre-next ogre=1.10.12 --channel nodefaults
conda list
# packages in environment at C:\Users\Area\miniconda3\envs\gz-bin:
#
# Name                    Version                   Build  Channel
aom                       3.5.0                h63175ca_0    conda-forge
blosc                     1.21.4               hdccc3a2_0    conda-forge
boost-cpp                 1.78.0               h9f4b32c_4    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
ca-certificates           2023.7.22            h56e8100_0    conda-forge
cairo                     1.16.0            h63a05c6_1001    conda-forge
catkin_pkg                0.5.2              pyhd8ed1ab_0    conda-forge
cfitsio                   3.470                h2bbff1b_7
cmake                     3.26.4               h1537add_0    conda-forge
colcon-cmake              0.2.27             pyhd8ed1ab_0    conda-forge
colcon-common-extensions  0.3.0           py310h5588dad_1    conda-forge
colcon-core               0.12.1             pyhd8ed1ab_0    conda-forge
colcon-defaults           0.2.8              pyhd8ed1ab_0    conda-forge
colcon-devtools           0.2.2                      py_0    conda-forge
colcon-library-path       0.2.1                      py_0    conda-forge
colcon-metadata           0.2.5                      py_0    conda-forge
colcon-notification       0.2.15          py310h5588dad_1    conda-forge
colcon-output             0.2.13             pyhd8ed1ab_0    conda-forge
colcon-package-information 0.3.3                      py_0    conda-forge
colcon-package-selection  0.2.10                     py_0    conda-forge
colcon-parallel-executor  0.2.4                      py_0    conda-forge
colcon-pkg-config         0.1.0                      py_0    conda-forge
colcon-powershell         0.3.6                      py_0    conda-forge
colcon-python-setup-py    0.2.7                      py_0    conda-forge
colcon-recursive-crawl    0.2.1                      py_0    conda-forge
colcon-ros                0.3.23             pyhd8ed1ab_0    conda-forge
colcon-test-result        0.3.8                      py_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
coloredlogs               15.0.1             pyhd8ed1ab_3    conda-forge
console_bridge            1.0.2                h5362a0b_1    conda-forge
coverage                  7.3.0           py310h8d17308_0    conda-forge
cppzmq                    4.10.0               h449d27f_0    conda-forge
curl                      8.2.1                hd5e4a3a_0    conda-forge
dav1d                     1.2.0                hcfcfb64_0    conda-forge
distlib                   0.3.7              pyhd8ed1ab_0    conda-forge
dlfcn-win32               1.3.0                h0e60522_0    conda-forge
docutils                  0.20.1          py310h5588dad_0    conda-forge
eigen                     3.4.0                h91493d7_0    conda-forge
empy                      3.3.4              pyh9f0ad1d_1    conda-forge
exceptiongroup            1.1.3              pyhd8ed1ab_0    conda-forge
expat                     2.5.0                h63175ca_1    conda-forge
ffmpeg                    6.0.0           gpl_h3a5b8a7_100    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                 hab24e00_0    conda-forge
fontconfig                2.14.2               hbde0cde_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
freeimage                 3.18.0               h33f27b4_0    conda-forge
freetype                  2.12.1               h546665d_1    conda-forge
freexl                    1.0.6                h67ca5e6_1    conda-forge
gdal                      3.6.2           py310h7670e6c_3
geos                      3.8.0                h33f27b4_0
geotiff                   1.7.0                h4545760_1
git                       2.42.0               h57928b3_0    conda-forge
glib                      2.69.1               h5dc1a3c_2
gst-plugins-base          1.18.5               h9e645db_0
gstreamer                 1.18.5               hd78058f_0
gts                       0.7.6                h69fa6b1_0    conda-forge
hdf4                      4.2.13               h712560f_2
hdf5                      1.12.1          nompi_h57737ce_104    conda-forge
humanfriendly             10.0            py310h5588dad_4    conda-forge
icu                       58.2                 ha925a31_3
imath                     3.1.9                h12be248_0    conda-forge
importlib-metadata        6.8.0              pyha770c72_0    conda-forge
iniconfig                 2.0.0              pyhd8ed1ab_0    conda-forge
intel-openmp              2023.2.0         h57928b3_49496    conda-forge
jpeg                      9e                   hcfcfb64_3    conda-forge
jsoncpp                   1.9.5                h2d74725_1    conda-forge
kealib                    1.5.0                hde4a422_1
krb5                      1.21.2               heb0366b_0    conda-forge
lcms2                     2.15                 ha5c8aab_0    conda-forge
lerc                      3.0                  hd77b12b_0
libabseil                 20230125.3      cxx17_h63175ca_0    conda-forge
libblas                   3.9.0                     8_mkl    conda-forge
libcblas                  3.9.0                     8_mkl    conda-forge
libclang                  12.0.0          default_h627e005_2
libcurl                   8.2.1                hd5e4a3a_0    conda-forge
libdeflate                1.17                 h2bbff1b_0
libexpat                  2.5.0                h63175ca_1    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libgdal                   3.6.2                h676b171_3
libiconv                  1.17                 h8ffe710_0    conda-forge
libkml                    1.3.0             hf2ab4e4_1015    conda-forge
liblapack                 3.9.0                     8_mkl    conda-forge
libnetcdf                 4.8.1                h6685c40_4
libogg                    1.3.4                h8ffe710_1    conda-forge
libopus                   1.3.1                h8ffe710_1    conda-forge
libpng                    1.6.39               h19919ed_0    conda-forge
libpq                     12.15                h906ac69_0
libprotobuf               4.23.4               h1975477_1    conda-forge
libsodium                 1.0.18               h8d14728_1    conda-forge
libspatialite             4.3.0a              h6ec8781_23
libsqlite                 3.43.0               hcfcfb64_0    conda-forge
libssh2                   1.11.0               h7dfc565_0    conda-forge
libtiff                   4.5.0                h6c2663c_2
libvorbis                 1.3.7                h0e60522_0    conda-forge
libwebp-base              1.3.1                hcfcfb64_0    conda-forge
libxml2                   2.10.4               hc3477c8_0    conda-forge
libzip                    1.10.1               h1d365fa_0    conda-forge
libzlib                   1.2.13               hcfcfb64_5    conda-forge
lz4-c                     1.9.4                hcfcfb64_0    conda-forge
mkl                       2020.4             hb70f87d_311    conda-forge
numpy                     1.25.2          py310hd02465a_0    conda-forge
ogre                      1.10.12             h4c42d57_11    conda-forge
ogre-next                 2.3.1                h606bb5d_4    conda-forge
openexr                   3.1.11               h5fba010_0    conda-forge
openh264                  2.3.1                h63175ca_2    conda-forge
openjpeg                  2.5.0                ha2aaf27_2    conda-forge
openssl                   3.1.2                hcfcfb64_0    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
pcre                      8.45                 h0e60522_0    conda-forge
pcre2                     10.42                h0ff8eda_0
pip                       23.2.1             pyhd8ed1ab_0    conda-forge
pixman                    0.38.0            hfa6e2cd_1003    conda-forge
pkg-config                0.29.2            hc3f28c7_1007    conda-forge
pluggy                    1.3.0              pyhd8ed1ab_0    conda-forge
poppler                   22.12.0              h268424c_0
poppler-data              0.4.12               hd8ed1ab_0    conda-forge
proj                      6.2.1                h3758d61_0
protobuf                  4.23.4          py310ha3d488f_0    conda-forge
pugixml                   1.13                 h63175ca_1    conda-forge
pybind11                  2.11.1          py310h232114e_0    conda-forge
pybind11-global           2.11.1          py310h232114e_0    conda-forge
pyparsing                 3.1.1              pyhd8ed1ab_0    conda-forge
pyreadline3               3.4.1           py310h5588dad_2    conda-forge
pytest                    7.4.0              pyhd8ed1ab_0    conda-forge
pytest-cov                4.1.0              pyhd8ed1ab_0    conda-forge
pytest-repeat             0.9.1              pyhd8ed1ab_0    conda-forge
pytest-rerunfailures      12.0               pyhd8ed1ab_0    conda-forge
python                    3.10.12         h4de0772_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.10                    3_cp310    conda-forge
pywin32                   304             py310h00ffb61_2    conda-forge
pyyaml                    6.0.1           py310h8d17308_0    conda-forge
qhull                     2020.2               h70d2c02_2    conda-forge
qt                        5.15.7               haa95532_0
qt-main                   5.15.2               he8e5bd7_7
qt-webengine              5.15.9               h5bd16bc_7
ruby                      3.2.2                h20ad4f3_0    conda-forge
sdl2                      2.26.5               h63175ca_0    conda-forge
setuptools                68.1.2             pyhd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
snappy                    1.1.10               hfb803bf_0    conda-forge
sqlite                    3.43.0               hcfcfb64_0    conda-forge
svt-av1                   1.5.0                h63175ca_0    conda-forge
tiledb                    2.3.3                hd8964de_3
tinyxml                   2.6.2                h2d74725_2    conda-forge
tinyxml2                  9.0.0                h0e60522_2    conda-forge
tk                        8.6.12               h8ffe710_0    conda-forge
toml                      0.10.2             pyhd8ed1ab_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_0    conda-forge
urdfdom                   3.1.1                h33150cf_0    conda-forge
urdfdom_headers           1.1.0                h5362a0b_0    conda-forge
vc                        14.3                h64f974e_17    conda-forge
vc14_runtime              14.36.32532         hfdfe4a8_17    conda-forge
vs2015_runtime            14.36.32532         h05e6639_17    conda-forge
wheel                     0.41.2             pyhd8ed1ab_0    conda-forge
x264                      1!164.3095           h8ffe710_2    conda-forge
x265                      3.5                  h2d74725_3    conda-forge
xerces-c                  3.2.4                h63175ca_3    conda-forge
xz                        5.4.2                h8cc25b3_0
yaml                      0.2.5                h8ffe710_2    conda-forge
zeromq                    4.3.4                h0e60522_1    conda-forge
zipp                      3.16.2             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hcfcfb64_5    conda-forge
zstd                      1.5.5                h12be248_0    conda-forge
zziplib                   0.13.69              h1d00b33_1    conda-forge

Regards,
Daniel

@traversaro
Copy link
Contributor

traversaro commented Aug 28, 2023

Sorry, did you tried specifying --channel conda-forge --channel nodefaults ? For me, only conda-forge packages get installed by just specifying --channel conda-forge (as specified in https://gazebosim.org/docs/garden/install_windows_src).

@AreaScout
Copy link
Author

For me, only conda-forge packages get installed by just specifying --channel conda-forge (as specified in https://gazebosim.org/docs/garden/install_windows_src).

For me not, that doesn't bring us forward, the error Libraries are not found still exist and I don't think that packages only from conda-forge channel will fix it, or do you thing it is purposed to do so?

Regards,
Daniel

@traversaro
Copy link
Contributor

For me, only conda-forge packages get installed by just specifying --channel conda-forge (as specified in https://gazebosim.org/docs/garden/install_windows_src).

For me not, that doesn't bring us forward, the error Libraries are not found still exist and I don't think that packages only from conda-forge channel will fix it, or do you thing it is purposed to do so?

Regards, Daniel

The error message seems that D:\gazebo_sim-main\ws\install\lib\gz-rendering-7\engine-plugins\gz-rendering-ogre2.dll can't be loaded, this could be due to a missing dependendant .dll, that could be related to conda-forge/defaults conflcts. For that, I wanted to understand why non-conda-forge are installed. So, passing --channel conda-forge to the conda install results in exactly the same packages installed in #2082 (comment) ?

Anyhow, if you want to debug directly the causes of the problem in loading the dll, you can use Dependencies as mentioned in #2082 (comment) .

@AreaScout
Copy link
Author

Ah! sorry didn't report that back, yes I did check already and all dependencies are there, here is the output

dumpbin /dependents gz-rendering7-ogre2.dll
Microsoft (R) COFF/PE Dumper Version 14.37.32822.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file gz-rendering7-ogre2.dll

File Type: DLL

  Image has the following dependencies:

    gz-rendering7.dll
    OgreHlmsPbs.dll
    OgreHlmsUnlit.dll
    OgreMain.dll
    OgreOverlay.dll
    gz-common5-events.dll
    gz-common5-graphics.dll
    gz-common5.dll
    gz-math7.dll
    gz-plugin2.dll
    MSVCP140.dll
    VCRUNTIME140_1.dll
    VCRUNTIME140.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    api-ms-win-crt-string-l1-1-0.dll
    api-ms-win-crt-math-l1-1-0.dll
    api-ms-win-crt-stdio-l1-1-0.dll
    api-ms-win-crt-convert-l1-1-0.dll
    api-ms-win-crt-environment-l1-1-0.dll
    api-ms-win-crt-heap-l1-1-0.dll
    KERNEL32.dll

  Summary

        D000 .data
        9000 .pdata
       94000 .rdata
        5000 .reloc
        1000 .rsrc
       F1000 .text
       

And the output from the tool you mentioned ->

(gz-bin) D:\gazebo_sim-main\ws\install\bin>Dependencies.exe -chain gz-rendering7-ogre2.dll -depth 1
├ gz-rendering7-ogre2.dll (ROOT) : gz-rendering7-ogre2.dll
|  ├ gz-rendering7.dll (ApplicationDirectory) : gz-rendering7.dll
|  ├ OgreHlmsPbs.dll (Environment) : C:\Users\Area\miniconda3\envs\gz-bin\Library\bin\OgreHlmsPbs.dll
|  ├ OgreHlmsUnlit.dll (Environment) : C:\Users\Area\miniconda3\envs\gz-bin\Library\bin\OgreHlmsUnlit.dll
|  ├ OgreMain.dll (Environment) : C:\Users\Area\miniconda3\envs\gz-bin\Library\bin\OgreMain.dll
|  ├ OgreOverlay.dll (Environment) : C:\Users\Area\miniconda3\envs\gz-bin\Library\bin\OgreOverlay.dll
|  ├ gz-common5-events.dll (ApplicationDirectory) : gz-common5-events.dll
|  ├ gz-common5-graphics.dll (ApplicationDirectory) : gz-common5-graphics.dll
|  ├ gz-common5.dll (ApplicationDirectory) : gz-common5.dll
|  ├ gz-math7.dll (ApplicationDirectory) : gz-math7.dll
|  ├ gz-plugin2.dll (ApplicationDirectory) : gz-plugin2.dll
|  ├ MSVCP140.dll (ApplicationDirectory) : MSVCP140.dll
|  ├ VCRUNTIME140_1.dll (ApplicationDirectory) : VCRUNTIME140_1.dll
|  ├ VCRUNTIME140.dll (ApplicationDirectory) : VCRUNTIME140.dll
|  ├ api-ms-win-crt-runtime-l1-1-0.dll (ApiSetSchema) : C:\WINDOWS\system32\ucrtbase.dll
|  ├ api-ms-win-crt-string-l1-1-0.dll (ApiSetSchema) : C:\WINDOWS\system32\ucrtbase.dll
|  ├ api-ms-win-crt-math-l1-1-0.dll (ApiSetSchema) : C:\WINDOWS\system32\ucrtbase.dll
|  ├ api-ms-win-crt-stdio-l1-1-0.dll (ApiSetSchema) : C:\WINDOWS\system32\ucrtbase.dll
|  ├ api-ms-win-crt-convert-l1-1-0.dll (ApiSetSchema) : C:\WINDOWS\system32\ucrtbase.dll
|  ├ api-ms-win-crt-environment-l1-1-0.dll (ApiSetSchema) : C:\WINDOWS\system32\ucrtbase.dll
|  ├ api-ms-win-crt-heap-l1-1-0.dll (ApiSetSchema) : C:\WINDOWS\system32\ucrtbase.dll
|  ├ KERNEL32.dll (WellKnownDlls) : C:\WINDOWS\system32\kernel32.dll

@AreaScout
Copy link
Author

So, passing --channel conda-forge to the conda install results in exactly the same packages installed in #2082 (comment) ?

Of course, I did it several times now and the outcome was always the same

@traversaro
Copy link
Contributor

traversaro commented Aug 29, 2023

So, passing --channel conda-forge to the conda install results in exactly the same packages installed in #2082 (comment) ?

Of course, I did it several times now and the outcome was always the same

Can you try to also add --channel conda-forge do the create step? I missed from your instructions that in the creation of the environment you are already installing python. In general installing all the dependencies at once may be convenient to avoid confusions on the used channels.

@AreaScout
Copy link
Author

Still the same:

(gz-bin) C:\Users\Area>conda list
# packages in environment at C:\Users\Area\miniconda3\envs\gz-bin:
#
# Name                    Version                   Build  Channel
aom                       3.5.0                h63175ca_0    conda-forge
blosc                     1.21.4               hdccc3a2_0    conda-forge
boost-cpp                 1.78.0               h9f4b32c_4    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
ca-certificates           2023.7.22            h56e8100_0    conda-forge
cairo                     1.16.0            h63a05c6_1001    conda-forge
catkin_pkg                0.5.2              pyhd8ed1ab_0    conda-forge
cfitsio                   3.470                h2bbff1b_7
cmake                     3.26.4               h1537add_0    conda-forge
colcon-cmake              0.2.27             pyhd8ed1ab_0    conda-forge
colcon-common-extensions  0.3.0           py311h1ea47a8_1    conda-forge
colcon-core               0.12.1             pyhd8ed1ab_0    conda-forge
colcon-defaults           0.2.8              pyhd8ed1ab_0    conda-forge
colcon-devtools           0.2.2                      py_0    conda-forge
colcon-library-path       0.2.1                      py_0    conda-forge
colcon-metadata           0.2.5                      py_0    conda-forge
colcon-notification       0.2.15          py311h1ea47a8_1    conda-forge
colcon-output             0.2.13             pyhd8ed1ab_0    conda-forge
colcon-package-information 0.3.3                      py_0    conda-forge
colcon-package-selection  0.2.10                     py_0    conda-forge
colcon-parallel-executor  0.2.4                      py_0    conda-forge
colcon-pkg-config         0.1.0                      py_0    conda-forge
colcon-powershell         0.3.6                      py_0    conda-forge
colcon-python-setup-py    0.2.7                      py_0    conda-forge
colcon-recursive-crawl    0.2.1                      py_0    conda-forge
colcon-ros                0.3.23             pyhd8ed1ab_0    conda-forge
colcon-test-result        0.3.8                      py_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
coloredlogs               15.0.1             pyhd8ed1ab_3    conda-forge
console_bridge            1.0.2                h5362a0b_1    conda-forge
coverage                  7.3.0           py311ha68e1ae_0    conda-forge
cppzmq                    4.10.0               h449d27f_0    conda-forge
curl                      8.2.1                hd5e4a3a_0    conda-forge
dav1d                     1.2.0                hcfcfb64_0    conda-forge
distlib                   0.3.7              pyhd8ed1ab_0    conda-forge
dlfcn-win32               1.3.0                h0e60522_0    conda-forge
docutils                  0.20.1          py311h1ea47a8_0    conda-forge
eigen                     3.4.0                h91493d7_0    conda-forge
empy                      3.3.4              pyh9f0ad1d_1    conda-forge
exceptiongroup            1.1.3              pyhd8ed1ab_0    conda-forge
expat                     2.5.0                h63175ca_1    conda-forge
ffmpeg                    6.0.0           gpl_h3a5b8a7_100    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                 hab24e00_0    conda-forge
fontconfig                2.14.2               hbde0cde_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
freeimage                 3.18.0               h33f27b4_0    conda-forge
freetype                  2.12.1               h546665d_1    conda-forge
freexl                    1.0.6                h67ca5e6_1    conda-forge
gdal                      3.6.2           py311h4e7b5b2_3
geos                      3.8.0                h33f27b4_0
geotiff                   1.7.0                h4545760_1
git                       2.42.0               h57928b3_0    conda-forge
glib                      2.69.1               h5dc1a3c_2
gst-plugins-base          1.18.5               h9e645db_0
gstreamer                 1.18.5               hd78058f_0
gts                       0.7.6                h69fa6b1_0    conda-forge
hdf4                      4.2.13               h712560f_2
hdf5                      1.12.1          nompi_h57737ce_104    conda-forge
humanfriendly             10.0            py311h1ea47a8_4    conda-forge
icu                       58.2                 ha925a31_3
imath                     3.1.9                h12be248_0    conda-forge
importlib-metadata        6.8.0              pyha770c72_0    conda-forge
iniconfig                 2.0.0              pyhd8ed1ab_0    conda-forge
intel-openmp              2023.2.0         h57928b3_49496    conda-forge
jpeg                      9e                   hcfcfb64_3    conda-forge
jsoncpp                   1.9.5                h2d74725_1    conda-forge
kealib                    1.5.0                hde4a422_1
krb5                      1.21.2               heb0366b_0    conda-forge
lcms2                     2.15                 ha5c8aab_0    conda-forge
lerc                      3.0                  hd77b12b_0
libabseil                 20230125.3      cxx17_h63175ca_0    conda-forge
libblas                   3.9.0                     8_mkl    conda-forge
libcblas                  3.9.0                     8_mkl    conda-forge
libclang                  12.0.0          default_h627e005_2
libcurl                   8.2.1                hd5e4a3a_0    conda-forge
libdeflate                1.17                 h2bbff1b_0
libexpat                  2.5.0                h63175ca_1    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libgdal                   3.6.2                h676b171_3
libiconv                  1.17                 h8ffe710_0    conda-forge
libkml                    1.3.0             hf2ab4e4_1015    conda-forge
liblapack                 3.9.0                     8_mkl    conda-forge
libnetcdf                 4.8.1                h6685c40_4
libogg                    1.3.4                h8ffe710_1    conda-forge
libopus                   1.3.1                h8ffe710_1    conda-forge
libpng                    1.6.39               h19919ed_0    conda-forge
libpq                     12.15                h906ac69_0
libprotobuf               4.23.4               h1975477_1    conda-forge
libsodium                 1.0.18               h8d14728_1    conda-forge
libspatialite             4.3.0a              h6ec8781_23
libsqlite                 3.43.0               hcfcfb64_0    conda-forge
libssh2                   1.11.0               h7dfc565_0    conda-forge
libtiff                   4.5.0                h6c2663c_2
libvorbis                 1.3.7                h0e60522_0    conda-forge
libwebp-base              1.3.1                hcfcfb64_0    conda-forge
libxml2                   2.10.4               hc3477c8_0    conda-forge
libzip                    1.10.1               h1d365fa_0    conda-forge
libzlib                   1.2.13               hcfcfb64_5    conda-forge
lz4-c                     1.9.4                hcfcfb64_0    conda-forge
mkl                       2020.4             hb70f87d_311    conda-forge
numpy                     1.25.2          py311h0b4df5a_0    conda-forge
ogre                      1.10.12             h0408007_12    conda-forge
ogre-next                 2.3.1                h606bb5d_4    conda-forge
openexr                   3.1.11               h5fba010_0    conda-forge
openh264                  2.3.1                h63175ca_2    conda-forge
openjpeg                  2.5.0                ha2aaf27_2    conda-forge
openssl                   3.1.2                hcfcfb64_0    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
pcre                      8.45                 h0e60522_0    conda-forge
pcre2                     10.42                h0ff8eda_0
pip                       23.2.1             pyhd8ed1ab_0    conda-forge
pixman                    0.38.0            hfa6e2cd_1003    conda-forge
pkg-config                0.29.2            hc3f28c7_1007    conda-forge
pluggy                    1.3.0              pyhd8ed1ab_0    conda-forge
poppler                   22.12.0              h268424c_0
poppler-data              0.4.12               hd8ed1ab_0    conda-forge
proj                      6.2.1                h3758d61_0
protobuf                  4.23.4          py311h03b55d4_0    conda-forge
pugixml                   1.13                 h63175ca_1    conda-forge
pybind11                  2.11.1          py311h005e61a_0    conda-forge
pybind11-global           2.11.1          py311h005e61a_0    conda-forge
pyparsing                 3.1.1              pyhd8ed1ab_0    conda-forge
pyreadline3               3.4.1           py311h1ea47a8_2    conda-forge
pytest                    7.4.0              pyhd8ed1ab_0    conda-forge
pytest-cov                4.1.0              pyhd8ed1ab_0    conda-forge
pytest-repeat             0.9.1              pyhd8ed1ab_0    conda-forge
pytest-rerunfailures      12.0               pyhd8ed1ab_0    conda-forge
python                    3.11.5          h2628c8c_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.11                    3_cp311    conda-forge
pywin32                   304             py311h12c1d0e_2    conda-forge
pyyaml                    6.0.1           py311ha68e1ae_0    conda-forge
qhull                     2020.2               h70d2c02_2    conda-forge
qt                        5.15.7               haa95532_0
qt-main                   5.15.2               he8e5bd7_7
qt-webengine              5.15.9               h5bd16bc_7
ruby                      3.2.2                h20ad4f3_0    conda-forge
sdl2                      2.26.5               h63175ca_0    conda-forge
setuptools                68.1.2             pyhd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
snappy                    1.1.10               hfb803bf_0    conda-forge
sqlite                    3.43.0               hcfcfb64_0    conda-forge
svt-av1                   1.5.0                h63175ca_0    conda-forge
tiledb                    2.3.3                hd8964de_3
tinyxml                   2.6.2                h2d74725_2    conda-forge
tinyxml2                  9.0.0                h0e60522_2    conda-forge
tk                        8.6.12               h8ffe710_0    conda-forge
toml                      0.10.2             pyhd8ed1ab_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_0    conda-forge
urdfdom                   3.1.1                h33150cf_0    conda-forge
urdfdom_headers           1.1.0                h5362a0b_0    conda-forge
vc                        14.3                h64f974e_17    conda-forge
vc14_runtime              14.36.32532         hfdfe4a8_17    conda-forge
vs2015_runtime            14.36.32532         h05e6639_17    conda-forge
wheel                     0.41.2             pyhd8ed1ab_0    conda-forge
x264                      1!164.3095           h8ffe710_2    conda-forge
x265                      3.5                  h2d74725_3    conda-forge
xerces-c                  3.2.4                h63175ca_3    conda-forge
xz                        5.4.2                h8cc25b3_0
yaml                      0.2.5                h8ffe710_2    conda-forge
zeromq                    4.3.4                h0e60522_1    conda-forge
zipp                      3.16.2             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hcfcfb64_5    conda-forge
zstd                      1.5.5                h12be248_0    conda-forge
zziplib                   0.13.69              h1d00b33_1    conda-forge

@traversaro
Copy link
Contributor

Sorry, I am out of ideas on why this is happening. Probably you can try to create the environment in one shot or similar, in general anyhow mixing defaults and conda-forge can lead to ABI and other linking problems such as the one you are experiencing here.

@AreaScout
Copy link
Author

AreaScout commented Aug 29, 2023

I will do some more tests, It could also be the way that search path is generated by cmake maybe there is some clash with some hard coded path, something like here:

#define GZ_RENDERING_RESOURCE_PATH _Pragma ("GCC warning \"'GZ_RENDERING_RESOURCE_PATH' macro is deprecated, use gz::rendering::getResourcePath() function instead. \"") "D:/gazebo_sim-main/ws/install/share/gz/gz-rendering7"

#define GZ_RENDERING_ENGINE_INSTALL_DIR _Pragma ("GCC warning \"'GZ_RENDERING_ENGINE_INSTALL_DIR' macro is deprecated, use gz::rendering::getEngineInstallDir() function instead. \"") "D:/gazebo_sim-main/ws/install/lib/gz-rendering-7/engine-plugins"

also I will check if I ruby is able to load a dll in general, test some windows API calls from kernel32.dll or so, will report back if I found something

Regards,
Daniel

@traversaro
Copy link
Contributor

If you are installing from source the hardcoded path should be ok. If you need to have relocatable packages, you can enable the GZ_ENABLE_RELOCATABLE_INSTALL CMake option, see #626 and the linked PRs.

@AreaScout
Copy link
Author

Hmm I found something interesting, the only dynamic link library able to load from ruby which was generated by the gazebo project was gz-tools2-backward.dll, all others fail to load, so it is proved that it has something to do with the libraries itself, I will try to recompile that project and look into that GZ_ENABLE_RELOCATABLE_INSTALL CMake option. Also all other libraries I have testet are able to be loaded 'kernel32.dll' etc.

@AreaScout
Copy link
Author

AreaScout commented Aug 30, 2023

@traversaro Ok, I got it running and I know now what causes the Libraries are not found message, at least for my package configuration, I did a recompile yesterday and after this it was working, for a self written plugin I had to install opencv dependency and this package was downgrading protobuf, after this I had to recompile gazebo, when it was finished the same error popped up again (Libraries are not found), remove opencv and install newer protobuf and recompile it again did make it work again.

So here is a console output from it working:

(gz-test) D:\gazebo_sim-main\ws\install>gz sim -s --verbose
[Wrn] [D:\gazebo_sim-main\ws\src\gz-common\src\Filesystem.cc:50] Failed common::createDirectories (ec: system:123 Die Syntax f³r den Dateinamen, Verzeichnisnamen oder die Datentrõgerbezeichnung ist falsch.)
Error opening log file: C:\Users\Area\.gz\sim\log\2023-08-30T08:29:46.276456400\server_console.log
[Msg] Gazebo Sim Server v7.5.0
[Msg] Loading default world.
[Msg] Serving entity system service on [/entity/system/add]
[Msg] Loaded level [3]
[Msg] No systems loaded from SDF, loading defaults
[Wrn] [D:\gazebo_sim-main\ws\src\gz-common\src\Util.cc:380] Reading environment variable with _allowEmpty==true is unsupported on Windows.
[Wrn] [D:\gazebo_sim-main\ws\src\gz-common\src\Util.cc:380] Reading environment variable with _allowEmpty==true is unsupported on Windows.
[Msg] Create service on [/world/default/create]
[Msg] Remove service on [/world/default/remove]
[Msg] Pose service on [/world/default/set_pose]
[Msg] Pose service on [/world/default/set_pose_vector]
[Msg] Light configuration service on [/world/default/light_config]
[Msg] Physics service on [/world/default/set_physics]
[Msg] SphericalCoordinates service on [/world/default/set_spherical_coordinates]
[Msg] Enable collision service on [/world/default/enable_collision]
[Msg] Disable collision service on [/world/default/disable_collision]
[Msg] Material service on [/world/default/visual_config]
[Msg] Material service on [/world/default/wheel_slip]
[Msg] Serving world controls on [/world/default/control], [/world/default/control/state] and [/world/default/playback/control]
[Msg] Serving GUI information on [/world/default/gui/info]
[Msg] World [default] initialized with [default_physics] physics profile.
[Msg] Serving world SDF generation service on [/world/default/generate_world_sdf]
[Msg] Serving world names on [/gazebo/worlds]
[Msg] Resource path add service on [/gazebo/resource_paths/add].
[Msg] Resource path get service on [/gazebo/resource_paths/get].
[Msg] Resource path resolve service on [/gazebo/resource_paths/resolve].
[Msg] Resource paths published on [/gazebo/resource_paths].
[Msg] Server control service on [/server_control].
[Msg] Found no publishers on /stats, adding root stats topic
[Msg] Found no publishers on /clock, adding root clock topic
[Msg] Serving scene information on [/world/default/scene/info]
[Msg] Serving graph information on [/world/default/scene/graph]
[Msg] Serving full state on [/world/default/state]
[Msg] Serving full state (async) on [/world/default/state_async]
[Msg] Publishing scene information on [/world/default/scene/info]
[Msg] Publishing entity deletions on [/world/default/scene/deletion]
[Msg] Publishing state changes on [/world/default/state]
[Msg] Publishing pose messages on [/world/default/pose/info]
[Msg] Publishing dynamic pose messages on [/world/default/dynamic_pose/info]

I will now test with GUI, for this I will compile either OGRE1.x or OGRE2.x into Gazebo as both of them compiled in seems to make problems --> Will report back.

Regards,
Daniel

@AreaScout
Copy link
Author

Running the GUI fails for me on both OGRE1.x and OGRE2.x, a window opens but does not respond anymore after a few seconds, sadly there are no more error messages to collect from console.

I will close this now and I hope it will help someone who also has problems with libraries not found.

@traversaro thanks for your help

For anyone wondering, to build gz-rendering7-ogre2.dll I was using this SDK package https://github.com/OGRECave/ogre-next/releases/download/v2.3.1/ogre-sdk-v2.3.1-vc19-x64.7z and installed it manually in my environment, as the package provided by conda seems to be library incomplete but the library naming is the same like OGRE1.x is using so you can eighter build with OGRE1.x or OGRE2.x if you want to do it that way.

And I used VS 2022 to build it, however the supported platform is VS 2019

Regards,
Daniel

@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Aug 30, 2023
@traversaro
Copy link
Contributor

Running the GUI fails for me on both OGRE1.x and OGRE2.x, a window opens but does not respond anymore after a few seconds, sadly there are no more error messages to collect from console.

I will close this now and I hope it will help someone who also has problems with libraries not found.

I guess this is similar to #2089, even if nothing is printed on the console probably you can get some useful info from the file <home>/.gz/rendering/ogre2.log or <home>/.gz/rendering/ogre.log.

@AreaScout
Copy link
Author

I guess this is similar to #2089, even if nothing is printed on the console probably you can get some useful info from the file <home>/.gz/rendering/ogre2.log or <home>/.gz/rendering/ogre.log.

I don't have a ogre2 or ogre.log, I have auto_default.log with endless entries of

(2023-08-30T18:06:54.862715500) (2023-08-30T18:06:54.862789100) [GUI] [Dbg] [D:\gazebo_sim-main\ws\src\gz-sim\src\gui\Gui.cc:341] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.

So that's why my GUI is busy all the time!

@AreaScout
Copy link
Author

Ok finally I did it:

2023-08-31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We accept pull requests!
Projects
Archived in project
Development

No branches or pull requests

3 participants