Sude- / lgogdownloader

LGOGDownloader is unofficial downloader to GOG.com for Linux users. It uses the same API as the official GOG Galaxy.
https://sites.google.com/site/gogdownloader/
Do What The F*ck You Want To Public License
698 stars 67 forks source link

Build problems with lib tidy #281

Closed yourfate closed 1 month ago

yourfate commented 1 month ago

I run this cmake command: cmake -B build -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DUSE_QT_GUI=OFF -GNinja

I get this error:

--   Found tidy, version 5.8.0
-- Found Git: /usr/local/bin/git (found version "2.46.0")
-- Configuring done (2.5s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
TIDY_LIBRARY (ADVANCED)
    linked by target "lgogdownloader" in directory /home/yourfate/workspace/lgogdownloader

-- Generating done (0.0s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

I'm on commit 6556dc6a82b4e3d64ef1a7940736be3a7b2ac956 on master.

I'm on freeBSD 14.1, on x86_64. I have built lgogdownloader many times before, tho it has been several months now.

yourfate commented 1 month ago

Update: I was able to fix it by adding this to the cmake call:

-DTIDY_LIBRARY=/usr/local/lib/libtidy5.so

I used this port to install tidy: https://www.freshports.org/www/tidy-html5