a-parhom / LightlyShaders

Rounded window corners and outline effect for KWin.
363 stars 24 forks source link

Failure to compile, Unknown option 'output-dep-file'. #61

Closed behindblackwalls closed 2 years ago

behindblackwalls commented 2 years ago

Upon entering 'make' into the terminal it seems to have some issue with compiling. I'm having a similar issue with the KDE-Rounded-Corners package. I've googled all around but it hasn't gotten me far. Any thoughts?

(base)    lightlyshaders-git   git:(master) makepkg -si
==> Making package: lightlyshaders-git r72.ea8187d-1 (Mon 12 Sep 2022 05:56:55 PM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning LightlyShaders git repo...
Cloning into bare repository '/home/netcrawler/lightlyshaders-git/LightlyShaders'...
remote: Enumerating objects: 499, done.
remote: Counting objects: 100% (129/129), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 499 (delta 124), reused 119 (delta 119), pack-reused 370
Receiving objects: 100% (499/499), 11.18 MiB | 24.51 MiB/s, done.
Resolving deltas: 100% (315/315), done.
==> Validating source files with sha256sums...
    LightlyShaders ... Skipped
==> Extracting sources...
  -> Creating working copy of LightlyShaders git repo...
Cloning into 'LightlyShaders'...
done.
==> Starting pkgver()...
==> Updated version: lightlyshaders-git r123.74298b5-1
==> Starting build()...
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Installing in /usr. Run /home/netcrawler/lightlyshaders-git/src/build/prefix.sh to set the environment for kwin4_effect_lightlyshaders.
-- Setting build type to 'Debug' as none was specified.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Found KF5Config: /usr/lib64/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.97.0") 
-- Found KF5ConfigWidgets: /usr/lib64/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.97.0") 
-- Found KF5CoreAddons: /usr/lib64/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.97.0") 
-- Found KF5Crash: /usr/lib64/cmake/KF5Crash/KF5CrashConfig.cmake (found version "5.97.0") 
-- Found KF5GlobalAccel: /usr/lib64/cmake/KF5GlobalAccel/KF5GlobalAccelConfig.cmake (found version "5.97.0") 
-- Found Gettext: /usr/bin/msgmerge (found version "0.21") 
-- Found KF5I18n: /usr/lib64/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.97.0") 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found KF5KIO: /usr/lib64/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.97.0") 
-- Found KF5Service: /usr/lib64/cmake/KF5Service/KF5ServiceConfig.cmake (found version "5.97.0") 
-- Found KF5Init: /usr/lib64/cmake/KF5Init/KF5InitConfig.cmake (found version "5.97.0") 
-- Found KF5Notifications: /usr/lib64/cmake/KF5Notifications/KF5NotificationsConfig.cmake (found version "5.97.0") 
-- Found KF5WidgetsAddons: /usr/lib64/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake (found version "5.97.0") 
-- Found KF5WindowSystem: /usr/lib64/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.97.0") 
-- Found KF5GuiAddons: /usr/lib64/cmake/KF5GuiAddons/KF5GuiAddonsConfig.cmake (found version "5.97.0") 
-- Found KF5: success (found suitable version "5.97.0", minimum required is "5.9.0") found components: Config ConfigWidgets CoreAddons Crash GlobalAccel I18n KIO Service Init Notifications Service WidgetsAddons WindowSystem GuiAddons 
-- Found XCB_XCB: /usr/lib/libxcb.so (found version "1.15") 
-- Found XCB_RENDER: /usr/lib/libxcb-render.so (found version "1.15") 
-- Found XCB_SHAPE: /usr/lib/libxcb-shape.so (found version "1.15") 
-- Found XCB_XFIXES: /usr/lib/libxcb-xfixes.so (found version "1.15") 
-- Found XCB_SHM: /usr/lib/libxcb-shm.so (found version "1.15") 
-- Found XCB_ATOM: /usr/lib/libxcb-util.so (found version "0.4.0") 
-- Found XCB_AUX: /usr/lib/libxcb-util.so (found version "0.4.0") 
-- Found XCB_COMPOSITE: /usr/lib/libxcb-composite.so (found version "1.15") 
-- Found XCB_CURSOR: /usr/lib/libxcb-cursor.so (found version "0.1.3") 
-- Found XCB_DAMAGE: /usr/lib/libxcb-damage.so (found version "1.15") 
-- Found XCB_DPMS: /usr/lib/libxcb-dpms.so (found version "1.15") 
-- Found XCB_DRI2: /usr/lib/libxcb-dri2.so (found version "1.15") 
-- Found XCB_DRI3: /usr/lib/libxcb-dri3.so (found version "1.15") 
-- Found XCB_EVENT: /usr/lib/libxcb-util.so (found version "0.4.0") 
-- Found XCB_EWMH: /usr/lib/libxcb-ewmh.so (found version "0.4.1") 
-- Found XCB_GLX: /usr/lib/libxcb-glx.so (found version "1.15") 
-- Found XCB_ICCCM: /usr/lib/libxcb-icccm.so (found version "0.4.1") 
-- Found XCB_IMAGE: /usr/lib/libxcb-image.so (found version "0.4.0") 
-- Found XCB_KEYSYMS: /usr/lib/libxcb-keysyms.so (found version "0.4.0") 
-- Found XCB_PRESENT: /usr/lib/libxcb-present.so (found version "1.15") 
-- Found XCB_RANDR: /usr/lib/libxcb-randr.so (found version "1.15") 
-- Found XCB_RECORD: /usr/lib/libxcb-record.so (found version "1.15") 
-- Found XCB_RENDERUTIL: /usr/lib/libxcb-render-util.so (found version "0.3.9") 
-- Found XCB_RES: /usr/lib/libxcb-res.so (found version "1.15") 
-- Found XCB_SCREENSAVER: /usr/lib/libxcb-screensaver.so (found version "1.15") 
-- Found XCB_SYNC: /usr/lib/libxcb-sync.so (found version "1.15") 
-- Found XCB_UTIL: /usr/lib/libxcb-util.so (found version "0.4.0") 
-- Could NOT find XCB_XEVIE (missing: XCB_XEVIE_LIBRARY) (found version "")
-- Found XCB_XF86DRI: /usr/lib/libxcb-xf86dri.so (found version "1.15") 
-- Found XCB_XINERAMA: /usr/lib/libxcb-xinerama.so (found version "1.15") 
-- Found XCB_XKB: /usr/lib/libxcb-xkb.so (found version "1.15") 
-- Could NOT find XCB_XPRINT (missing: XCB_XPRINT_LIBRARY) (found version "")
-- Found XCB_XTEST: /usr/lib/libxcb-xtest.so (found version "1.15") 
-- Found XCB_XV: /usr/lib/libxcb-xv.so (found version "1.15") 
-- Found XCB_XVMC: /usr/lib/libxcb-xvmc.so (found version "1.15") 
-- Found XCB: /usr/lib/libxcb.so;/usr/lib/libxcb-render.so;/usr/lib/libxcb-shape.so;/usr/lib/libxcb-xfixes.so;/usr/lib/libxcb-shm.so;/usr/lib/libxcb-util.so;/usr/lib/libxcb-composite.so;/usr/lib/libxcb-cursor.so;/usr/lib/libxcb-damage.so;/usr/lib/libxcb-dpms.so;/usr/lib/libxcb-dri2.so;/usr/lib/libxcb-dri3.so;/usr/lib/libxcb-ewmh.so;/usr/lib/libxcb-glx.so;/usr/lib/libxcb-icccm.so;/usr/lib/libxcb-image.so;/usr/lib/libxcb-keysyms.so;/usr/lib/libxcb-present.so;/usr/lib/libxcb-randr.so;/usr/lib/libxcb-record.so;/usr/lib/libxcb-render-util.so;/usr/lib/libxcb-res.so;/usr/lib/libxcb-screensaver.so;/usr/lib/libxcb-sync.so;/usr/lib/libxcb-xf86dri.so;/usr/lib/libxcb-xinerama.so;/usr/lib/libxcb-xkb.so;/usr/lib/libxcb-xtest.so;/usr/lib/libxcb-xv.so;/usr/lib/libxcb-xvmc.so (found version "1.15")  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/netcrawler/lightlyshaders-git/src/build
make: Entering directory '/home/netcrawler/lightlyshaders-git/src/build'
make[1]: Entering directory '/home/netcrawler/lightlyshaders-git/src/build'
make[2]: Entering directory '/home/netcrawler/lightlyshaders-git/src/build'
make[2]: Leaving directory '/home/netcrawler/lightlyshaders-git/src/build'
make[2]: Entering directory '/home/netcrawler/lightlyshaders-git/src/build'
[  8%] Automatic MOC for target kwin4_effect_lightlyshaders
AutoMoc warning
---------------
"SRC:/lightlyshaders.cpp"
includes the moc file "lightlyshaders.moc", but does not contain a Q_OBJECT, Q_GADGET, Q_NAMESPACE, Q_NAMESPACE_EXPORT, K_PLUGIN_FACTORY, K_PLUGIN_CLASS, K_PLUGIN_FACTORY_WITH_JSON or K_PLUGIN_CLASS_WITH_JSON macro.

AutoMoc subprocess error
------------------------
The moc process failed to compile
  "SRC:/lightlyshaders.cpp"
into
  "BIN:/kwin4_effect_lightlyshaders_autogen/include/lightlyshaders.moc"
included by
  "SRC:/lightlyshaders.cpp"

Command
-------
/home/netcrawler/anaconda3/bin/moc -DKCOREADDONS_LIB -DKGUIADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dkwin4_effect_lightlyshaders_EXPORTS -I/home/netcrawler/lightlyshaders-git/src/build -I/home/netcrawler/lightlyshaders-git/src/LightlyShaders -I/home/netcrawler/anaconda3/include/qt/QtNetwork -I/home/netcrawler/anaconda3/include/qt/QtOpenGL -I/home/netcrawler/anaconda3/include/qt -I/home/netcrawler/anaconda3/include/qt/QtWidgets -I/home/netcrawler/anaconda3/include/qt/QtGui -I/home/netcrawler/anaconda3/include/qt/QtCore -I/home/netcrawler/anaconda3/mkspecs/linux-g++ -I/home/netcrawler/anaconda3/include/qt/QtX11Extras -I/home/netcrawler/anaconda3/include/qt/QtXml -I/usr/include/qt -I/usr/include/qt/QtDBus -I/usr/include/KF5/KConfig -I/usr/include/KF5/KConfigCore -I/usr/include/KF5 -I/usr/include/KF5/KCoreAddons -I/usr/include/KF5/KConfigWidgets -I/usr/include/KF5/KCodecs -I/usr/include/KF5/KWidgetsAddons -I/usr/include/KF5/KConfigGui -I/usr/include/KF5/KAuthWidgets -I/usr/include/KF5/KAuthCore -I/usr/include/KF5/KAuth -I/usr/include/KF5/KGuiAddons -I/usr/include/KF5/KWindowSystem -I/usr/include -I/usr/include/c++/12.2.0 -I/usr/include/c++/12.2.0/x86_64-pc-linux-gnu -I/usr/include/c++/12.2.0/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include-fixed --include /home/netcrawler/lightlyshaders-git/src/build/kwin4_effect_lightlyshaders_autogen/moc_predefs.h --output-dep-file -o /home/netcrawler/lightlyshaders-git/src/build/kwin4_effect_lightlyshaders_autogen/include/lightlyshaders.moc /home/netcrawler/lightlyshaders-git/src/LightlyShaders/lightlyshaders.cpp

Output
------
Unknown option 'output-dep-file'.

AutoMoc subprocess error
------------------------
The moc process failed to compile
  "SRC:/lightlyshaders.h"
into
  "BIN:/kwin4_effect_lightlyshaders_autogen/EWIEGA46WW/moc_lightlyshaders.cpp"

Command
-------
/home/netcrawler/anaconda3/bin/moc -DKCOREADDONS_LIB -DKGUIADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dkwin4_effect_lightlyshaders_EXPORTS -I/home/netcrawler/lightlyshaders-git/src/build -I/home/netcrawler/lightlyshaders-git/src/LightlyShaders -I/home/netcrawler/anaconda3/include/qt/QtNetwork -I/home/netcrawler/anaconda3/include/qt/QtOpenGL -I/home/netcrawler/anaconda3/include/qt -I/home/netcrawler/anaconda3/include/qt/QtWidgets -I/home/netcrawler/anaconda3/include/qt/QtGui -I/home/netcrawler/anaconda3/include/qt/QtCore -I/home/netcrawler/anaconda3/mkspecs/linux-g++ -I/home/netcrawler/anaconda3/include/qt/QtX11Extras -I/home/netcrawler/anaconda3/include/qt/QtXml -I/usr/include/qt -I/usr/include/qt/QtDBus -I/usr/include/KF5/KConfig -I/usr/include/KF5/KConfigCore -I/usr/include/KF5 -I/usr/include/KF5/KCoreAddons -I/usr/include/KF5/KConfigWidgets -I/usr/include/KF5/KCodecs -I/usr/include/KF5/KWidgetsAddons -I/usr/include/KF5/KConfigGui -I/usr/include/KF5/KAuthWidgets -I/usr/include/KF5/KAuthCore -I/usr/include/KF5/KAuth -I/usr/include/KF5/KGuiAddons -I/usr/include/KF5/KWindowSystem -I/usr/include -I/usr/include/c++/12.2.0 -I/usr/include/c++/12.2.0/x86_64-pc-linux-gnu -I/usr/include/c++/12.2.0/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include-fixed --include /home/netcrawler/lightlyshaders-git/src/build/kwin4_effect_lightlyshaders_autogen/moc_predefs.h --output-dep-file -o /home/netcrawler/lightlyshaders-git/src/build/kwin4_effect_lightlyshaders_autogen/EWIEGA46WW/moc_lightlyshaders.cpp /home/netcrawler/lightlyshaders-git/src/LightlyShaders/lightlyshaders.h

Output
------
Unknown option 'output-dep-file'.

make[2]: *** [CMakeFiles/kwin4_effect_lightlyshaders_autogen.dir/build.make:71: CMakeFiles/kwin4_effect_lightlyshaders_autogen] Error 1
make[2]: Leaving directory '/home/netcrawler/lightlyshaders-git/src/build'
make[1]: *** [CMakeFiles/Makefile2:733: CMakeFiles/kwin4_effect_lightlyshaders_autogen.dir/all] Error 2
make[1]: Leaving directory '/home/netcrawler/lightlyshaders-git/src/build'
make: *** [Makefile:146: all] Error 2
make: Leaving directory '/home/netcrawler/lightlyshaders-git/src/build'
==> ERROR: A failure occurred in build().
    Aborting...
a-parhom commented 2 years ago

Here is the similar issue: https://github.com/zzag/kwin-effects-yet-another-magic-lamp/issues/27

Make sure that you compile against Qt version provided by your distro.

behindblackwalls commented 2 years ago

Here is the similar issue: zzag/kwin-effects-yet-another-magic-lamp#27

Make sure that you compile against Qt version provided by your distro.

I found the issue and had read that already, turned out it was my conda libraries getting in the way of cmake finding the ones needed in /usr/lib. using 'conda deactivate' fixed the issue.