Bug 421300 - Problem with install.sh script
Summary: Problem with install.sh script
Status: RESOLVED UPSTREAM
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-10 17:50 UTC by Dominic Kolthoff
Modified: 2020-05-10 18:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominic Kolthoff 2020-05-10 17:50:01 UTC
Linux/KDE Plasma: Manjaro KDE (Kernel 5.6.10-3-MANJARO)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.2

SUMMARY
When trying to build latte-dock-master, I was running into an issue with the cmake script. When trying to run the install.sh script, it was pointing to the wrong directory on my system specifically. 

STEPS TO REPRODUCE
1. Download git version of latte-dock
2. Extract components into folder
3. Make sure extra-cmake-modules is installed
4. Run install.sh script

OBSERVED RESULT

CMake Error at /usr/local/share/ECM/cmake/ECMConfig.cmake:11 (message):File or directory /usr/local/include/KF5 referenced by variablePlasmaQuick_INCLUDE_DIR does not exist

!Call Stack (most recent call first):/usr/lib64/cmake/KF5PlasmaQuick/KF5PlasmaQuickConfig.cmake:45 (set_and_check)/usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package)CMakeLists.txt:22 (find_package)


Work Around For My Issue
The problem is that the script references /usr/local/include/KF5 which does not exist. KF5 is located in /usr/include/KF5 on my system. A quick fix I found is just to create a symlink between /usr/include/KF5 and /usr/local/include/KF5

ln -s /usr/include/KF5/ /usr/local/include/KF5/

After this, the install.sh script runs just fine.
 
ADDITIONAL INFORMATION
I'm not sure if this is a bug related to cmake or latte-dock specifically.  
(First bug report. Sorry if anything is wrong & please let me know if I can do anything better)
Comment 1 Michail Vourlakos 2020-05-10 18:39:36 UTC
install script does not contain any such directory reference, the issue is with your distro some cmake kde frameworks directory reference is broken