Bionus / imgbrd-grabber

Very customizable imageboard/booru downloader with powerful filenaming features.
https://www.bionus.org/imgbrd-grabber/
Apache License 2.0
2.48k stars 216 forks source link

Unable to compile due to Cmake error #3258

Open HurricanePootis opened 1 month ago

HurricanePootis commented 1 month ago

Bug description

Whenever generating the Makefile from cmake, the following error is shown:

CMake Error at /usr/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:259 (message):
  The NetworkAuth target is mentioned as a dependency for lib, but not
  declared.
Call Stack (most recent call first):
  /usr/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:311 (__qt_internal_walk_libs)
  /usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:651 (__qt_internal_collect_all_target_dependencies)
  /usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:774 (_qt_internal_finalize_executable)
  /usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:590:EVAL:1 (qt6_finalize_target)
  gui/CMakeLists.txt:DEFERRED

Steps to reproduce

  1. Try to compile imgbrd-grabber 7.12.2

Expected behavior

For the makefile to be generated.

System information

Additional context

The following is the cmake command:

    cmake -S imgbrd-grabber -B build \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLEXBOR_BUILD_TESTS_CPP=0 \
    -Wno-dev
Bionus commented 1 month ago

From my understanding, and the comment put in the AUR, this should be solved by 8d6b47c846a72fb12360b782e906acee58535451 right? Interestingly, it builds on some platforms and not others, hence why it went undetected by me for a while.

I'll see to release a new version ASAP so it's available in the latest tag.

HurricanePootis commented 1 month ago

Looks like the exact patch I used, but with the addition of adding NetworkAuth to set() instead of just find_package