maz-1 / grub2-editor

A KDE Control Module for configuring the GRUB2 bootloader. Unofficial KF5 port.
GNU General Public License v3.0
28 stars 5 forks source link

Problem with compilation #9

Closed SolarAquarion closed 6 years ago

SolarAquarion commented 6 years ago

[ 30%] Linking CXX shared module kcm_grub2.so CMakeFiles/kcm_grub2.dir/convertDlg.cpp.o: In function ConvertDialog::ConvertDialog(QWidget*, QFlags<Qt::WindowType>)': convertDlg.cpp:(.text+0x4e2): undefined reference toGetMagickStealth' CMakeFiles/kcm_grub2.dir/convertDlg.cpp.o: In function ConvertDialog::slotOkButtonClicked()': convertDlg.cpp:(.text+0x192f): undefined reference toMagick::Geometry::Geometry(unsigned long, unsigned long, long, long)' convertDlg.cpp:(.text+0x1949): undefined reference to `Magick::Geometry::aspect(bool)' collect2: error: ld returned 1 exit status make[2]: *** [src/CMakeFiles/kcm_grub2.dir/build.make:325: src/kcm_grub2.so]

pavbaranov commented 6 years ago

This is probably problem with imagemagick 7.0.7.21. I can confirm it (Arch Linux).

maz-1 commented 6 years ago

Im not using plasma desktop now, so cant fix it ATM You can edit CMakeLists.txt to exclude imagemagick for now.

SolarAquarion commented 6 years ago

If I created a patch that tries for both ImageMagick versions that may be on the system

On Feb 2, 2018 10:25 AM, "maz-1" notifications@github.com wrote:

Im not using plasma desktop now, so cant fix it ATM You can edit CMakeLists.txt to exclude imagemagick for now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/maz-1/grub2-editor/issues/9#issuecomment-362603468, or mute the thread https://github.com/notifications/unsubscribe-auth/AFD6iO8ncniY_Osnj6cVMqHfXFnQ4xzgks5tQx3KgaJpZM4Q8UE9 .

maz-1 commented 6 years ago

Reference: https://www.imagemagick.org/script/porting.php https://www.imagemagick.org/Magick++/Documentation.html

SolarAquarion commented 6 years ago

well, i tried imagemagick6 and it's still failing for which version does it compile properly

maz-1 commented 6 years ago

The problem only happens when you have libmagick6 installed (dependency of inkscape) Dont know why cmake prefer libmagick6 over libmagick

maz-1 commented 6 years ago

fixed