Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ninja error: dependency cycle #36

Closed
utuhiro78 opened this issue Dec 28, 2020 · 6 comments
Closed

ninja error: dependency cycle #36

utuhiro78 opened this issue Dec 28, 2020 · 6 comments

Comments

@utuhiro78
Copy link

I tried to install fcitx5-configtool-git, but it shows the error.

cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON .
ninja
-- Configuring done
-- Generating done
-- Build files have been written to: fcitx5-configtool-master
ninja: error: dependency cycle: src/kcm/package/metadata.desktop -> src/kcm/package/metadata.desktop

fcitx5-configtool-5.0.1 doesn't show the error.

I posted the same comment to #35 (comment)

@wengxt
Copy link
Member

wengxt commented Dec 28, 2020

I'm actually aware of that. please use -G"Unix Makefiles" instead.

@utuhiro78
Copy link
Author

It shows another error.

cmake -G"Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON .
make -j4

[100%] Built target kbd-layout-viewer5
Install the project...
-- Installing: /usr/lib/qt/plugins/kcms/kcm_fcitx5.so
CMake Error at src/kcm/cmake_install.cmake:74 (file):
  file INSTALL cannot find "/package": No such file or directory.
Call Stack (most recent call first):
  src/cmake_install.cmake:47 (include)
  cmake_install.cmake:48 (include)

I copied cmake options from Arch Linux PKGBUILD.

@wengxt
Copy link
Member

wengxt commented Dec 28, 2020

you need to do the out source build.

mkdir build
cd build
cmake [....] ..
make

@wengxt
Copy link
Member

wengxt commented Dec 28, 2020

also you, probably need to clean up all the existing cmake files.

@utuhiro78
Copy link
Author

Thanks! It works fine. And I found a mistranslation. :-)

fcitx5-configtool-2020122902-fs8

mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON ..
make -j4
sudo make install

@utuhiro78
Copy link
Author

I fixed translation. "Restore &Defaults" doesn't mean "Restore and Defaults".
Wengxt, Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants