BSI-OFIQ / OFIQ-Project

Open Source Facial Image Quality
Other
38 stars 12 forks source link

Problems with gtk installation when executing build.sh #18

Closed alexkrz closed 4 months ago

alexkrz commented 4 months ago

Hello,

I am trying to build the project on Ubuntu 20.04 with cmake 3.26.4 and conan 2.0.17. When I execute build.sh, conan wants to install libgtk2.0-dev on system level. I am wondering whether it is possible to perform the build without installing additional packages on system level?

Below you can find the output after executing build.sh:

using conan file conanfile.txt

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
[conf]
tools.system.package_manager:mode=install
tools.system.package_manager:sudo=True

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
[conf]
tools.system.package_manager:mode=install
tools.system.package_manager:sudo=True

======== Computing dependency graph ========
Graph root
    conanfile.txt: {PATH}/conan/conanfile.txt
Requirements
    ade/0.1.2d#f225d0a218a7c9fbb81746806c7de53d - Cache
    eigen/3.4.0#2e192482a8acff96fe34766adca2b24c - Cache
    fmt/8.1.1#75ca545d275563b03150de8439ea0945 - Cache
    gtest/cci.20210126#dafbdf84b58cd687075ace7314651c1a - Cache
    gtk/system#3671596ecc796ec65f881b2cad66ce26 - Cache
    imath/3.1.9#2e7f5802b247baae47235b4c8d5642c9 - Cache
    jasper/4.2.0#bbda6a34e0a3d3e9caff91c15f632902 - Cache
    libdeflate/1.19#3ea74a4549efc14d4b1202dc4bfbf602 - Cache
    libjpeg/9e#68269859e4325ddc3f995d1fd3fc9187 - Cache
    libpng/1.6.43#c219d8f01983bac10c404fc613605eef - Cache
    magic_enum/0.8.1#e6a31d08765746bc5a00faaccd26c7d0 - Cache
    opencv/4.5.5#43a570206e468c76e79dd6886f84e088 - Cache
    openexr/3.2.3#cc76d7ca85ee7dfe03114eaa2a8e8c1b - Cache
    protobuf/3.21.12#ff413e7c6d81724e872661875af83e68 - Cache
    spdlog/1.10.0#cfe51d3f2d018355d39765673b628b01 - Cache
    taocpp-json/1.0.0-beta.13#e76d0755f4defb452686bde7bbafd350 - Cache
    taocpp-pegtl/3.2.7#cf957bd2b27d4e03bcd6136ecfcbcf96 - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
Build requirements
    cmake/3.29.0#a055de871f63a7904aa3dcb9f3c61242 - Cache
    protobuf/3.21.12#ff413e7c6d81724e872661875af83e68 - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
Resolved version ranges
    cmake/[>=3.20 <4]: cmake/3.29.0
    libpng/[>=1.6 <2]: libpng/1.6.43
    zlib/[>=1.2.11 <2]: zlib/1.3.1

I get the following error: dpkg-query: no packages found matching libgtk2.0-dev

m-schaubert commented 4 months ago

I have checked why libgtk is listed as a requirement, and it comes from opencv. We definitely do not use it, and we should explicitly deactivate it in conanfile.txt in opencv options:

[options]
opencv*:with_gtk=False
opencv*:with_qt=False

We'll create a pull request.

m-schaubert commented 4 months ago

@alexkrz please check if it works for you

alexkrz commented 4 months ago

Thanks for addressing the issue so quickly! Now I am able to proceed with the installation without sudo rights. However, I am running into the next problem: CMake Error at {Home}/miniconda3/envs/ofiq/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find LAPACK (missing: LAPACK_LIBRARIES)

Edit: I guess it makes sense to open another issue here. I'll do that now.