[GH-ISSUE #75] unable to build on fedora linux 32 #65

Closed
opened 2026-03-03 01:19:31 +03:00 by kerem · 4 comments
Owner

Originally created by @vodolaz095 on GitHub (Apr 23, 2021).
Original GitHub issue: https://github.com/d99kris/nmail/issues/75

[vodolaz095@steel build]$ cmake ..
-- Using build type 'Debug' (default).
-- Found libetpan: /usr/lib64/libetpan.so
-- Configuring done
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:
MAGIC_LIBRARY
    linked by target "nmail" in directory /home/vodolaz095/projects/nmail

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

how to fix?

all dependencies installed

Originally created by @vodolaz095 on GitHub (Apr 23, 2021). Original GitHub issue: https://github.com/d99kris/nmail/issues/75 ``` [vodolaz095@steel build]$ cmake .. -- Using build type 'Debug' (default). -- Found libetpan: /usr/lib64/libetpan.so -- Configuring done 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: MAGIC_LIBRARY linked by target "nmail" in directory /home/vodolaz095/projects/nmail -- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. ``` how to fix? all dependencies installed
kerem closed this issue 2026-03-03 01:19:31 +03:00
Author
Owner

@Kabouik commented on GitHub (Apr 23, 2021):

all dependencies installed

libmagic-dev is a new dependency that was recently added, do you have it too?

<!-- gh-comment-id:825524761 --> @Kabouik commented on GitHub (Apr 23, 2021): > all dependencies installed `libmagic-dev` is a new dependency that was recently added, do you have it too?
Author
Owner

@vodolaz095 commented on GitHub (Apr 23, 2021):

libmagic-dev is a new dependency that was recently added, do you have it too?

there is no such package in fedora, but this ones are present:

[root@steel aerc]# dnf search magic
Last metadata expiration check: 0:34:47 ago on Fri 23 Apr 2021 12:31:43 PM MSK.
======================================================================== Name Exactly Matched: magic ========================================================================
magic.x86_64 : A very capable VLSI layout tool
======================================================================= Name & Summary Matched: magic =======================================================================
GraphicsMagick.i686 : An ImageMagick fork, offering faster image generation and better quality
GraphicsMagick.x86_64 : An ImageMagick fork, offering faster image generation and better quality
GraphicsMagick-c++.i686 : GraphicsMagick Magick++ library (C++ bindings)
GraphicsMagick-c++.x86_64 : GraphicsMagick Magick++ library (C++ bindings)
GraphicsMagick-c++-devel.i686 : C++ bindings for the GraphicsMagick library
GraphicsMagick-c++-devel.x86_64 : C++ bindings for the GraphicsMagick library
GraphicsMagick-devel.i686 : Libraries and header files for GraphicsMagick app development
GraphicsMagick-devel.x86_64 : Libraries and header files for GraphicsMagick app development
GraphicsMagick-doc.noarch : GraphicsMagick documentation
GraphicsMagick-perl.x86_64 : GraphicsMagick perl bindings
ImageMagick-c++.i686 : ImageMagick Magick++ library (C++ bindings)
ImageMagick-c++.x86_64 : ImageMagick Magick++ library (C++ bindings)
ImageMagick-c++-devel.i686 : C++ bindings for the ImageMagick library
ImageMagick-c++-devel.x86_64 : C++ bindings for the ImageMagick library
ImageMagick-devel.i686 : Library links and header files for ImageMagick app development
ImageMagick-devel.x86_64 : Library links and header files for ImageMagick app development
ImageMagick-djvu.x86_64 : DjVu plugin for ImageMagick
ImageMagick-doc.x86_64 : ImageMagick html documentation
ImageMagick-libs.x86_64 : ImageMagick libraries to link with
ImageMagick-libs.i686 : ImageMagick libraries to link with
ImageMagick-perl.x86_64 : ImageMagick perl bindings
XStatic-Magic-Search-common.noarch : Xstatic-Magic-Search common files
ghc-magic.x86_64 : Interface to C file/magic library
ghc-magic-devel.x86_64 : Haskell magic library development files
ghc-magic-doc.x86_64 : Haskell magic library documentation
ghc-magic-prof.x86_64 : Haskell magic profiling library
magic-doc.x86_64 : Documentation for magic, A very capable VLSI layout tool
meshmagick-devel.i686 : Development files for meshmagick
meshmagick-devel.x86_64 : Development files for meshmagick
meshmagick-libs.i686 : Libraries for meshmagick
meshmagick-libs.x86_64 : Libraries for meshmagick
perl-File-LibMagic.x86_64 : Perl wrapper/interface for libmagic
perl-Variable-Magic.x86_64 : Associate user-defined magic to variables from Perl
pfstools-imgmagick.x86_64 : ImageMagick file import for PFS tools
php-pecl-gmagick.x86_64 : Provides a wrapper to the GraphicsMagick library
php-pecl-imagick.x86_64 : Provides a wrapper to the ImageMagick library
php-pecl-imagick-devel.x86_64 : imagick extension developer files (header)
python-magic-wormhole-doc.noarch : Documentation for python-magic-wormhole
python-magic-wormhole-mailbox-server-doc.noarch : Documentation for python-magic-wormhole-mailbox-server
python3-XStatic-Magic-Search.noarch : Magic-Search (XStatic packaging standard)
python3-importmagic.noarch : Python library to auto-magically add, remove and manage imports
python3-magic.noarch : Python 3 bindings for the libmagic API
python3-magic-wormhole-transit-relay.noarch : Transit Relay server for Magic-Wormhole
q-magick.x86_64 : ImageMagick module for Q
rubygem-mimemagic-doc.noarch : Documentation for rubygem-mimemagic
rubygem-mini_magick.noarch : Manipulate images with minimal use of memory via ImageMagick
rubygem-mini_magick-doc.noarch : Documentation for rubygem-mini_magick
rubygem-rmagick.x86_64 : Ruby binding to ImageMagick
rubygem-rmagick-doc.noarch : Documentation for rubygem-rmagick
wildmagic5.i686 : Wild Magic libraries
wildmagic5.x86_64 : Wild Magic libraries
wildmagic5-data.noarch : wildmagic5 data files
wildmagic5-devel.i686 : Development files for wildmagic5
wildmagic5-devel.x86_64 : Development files for wildmagic5
wildmagic5-samples.x86_64 : Samples files for wildmagic5
============================================================================ Name Matched: magic ============================================================================
ImageMagick.x86_64 : An X application for displaying and manipulating images
ImageMagick.i686 : An X application for displaying and manipulating images
MagicPoint.x86_64 : X based presentation software
R-magick.x86_64 : Advanced Graphics and Image-Processing in R
golang-github-magiconair-properties-devel.noarch : Java properties scanner for Go
golang-github-mholt-certmagic-devel.noarch : Automatic HTTPS for any Go program
gtatool-imagemagick.x86_64 : Module to import/export traditional image formats
magic-wormhole.noarch : Securely transfer data between computers
magicmaze.x86_64 : Board game featuring a maze which the players change each turn
meshmagick.x86_64 : Command line manipulation tool for Ogre meshes
mirrormagic.x86_64 : Puzzle game where you steer a beam of light using mirrors
nodejs-magic-string.noarch : Modify strings, generate sourcemaps
perl-File-MMagic.noarch : A Perl module emulating the file(1) command
perl-File-MMagic-XS.x86_64 : Guess file type with XS
python3-magic-wormhole.noarch : Securely transfer data between computers
python3-magic-wormhole-mailbox-server.noarch : Securely transfer data between computers
rubygem-mimemagic.noarch : Fast mime detection by extension or content
trac-blackmagictickettweaks-plugin.noarch : Various hacks to alter the behavior of the ticket form
========================================================================== Summary Matched: magic ===========================================================================
converseen.x86_64 : A batch image conversion tool written in C++ with Qt5 and Magick++
file-libs.x86_64 : Libraries for applications using libmagic
file-libs.i686 : Libraries for applications using libmagic
gmic.i686 : GREYC's Magic for Image Computing
gmic.x86_64 : GREYC's Magic for Image Computing
nodejs-glob-parent.noarch : Strips glob magic from a string to provide the parent path
perl-Any-Moose.noarch : Use Moose or Mouse automagically (DEPRECATED)
perl-Config-Auto.noarch : Magical config file parser
perl-File-Type.noarch : Determine file type using magic
perl-File-Type-WebImages.noarch : Determine web image file types using magic
python3-mtg.noarch : Console-based access to the Gatherer Magic Card Database
python3-wand.noarch : Ctypes-based simple MagickWand API binding for Python
rubygem-marcel.noarch : Simple mime type detection using magic numbers, file names, and extensions
slashem.x86_64 : Super Lotsa Added Stuff Hack - Extended Magic
vcmi.x86_64 : Heroes of Might and Magic 3 game engine

i think it can be

GraphicsMagick-c++-devel.x86_64 : C++ bindings for the GraphicsMagick library

or

ImageMagick-c++-devel.x86_64 : C++ bindings for the ImageMagick library

yes?

<!-- gh-comment-id:825552734 --> @vodolaz095 commented on GitHub (Apr 23, 2021): > `libmagic-dev` is a new dependency that was recently added, do you have it too? there is no such package in fedora, but this ones are present: ``` [root@steel aerc]# dnf search magic Last metadata expiration check: 0:34:47 ago on Fri 23 Apr 2021 12:31:43 PM MSK. ======================================================================== Name Exactly Matched: magic ======================================================================== magic.x86_64 : A very capable VLSI layout tool ======================================================================= Name & Summary Matched: magic ======================================================================= GraphicsMagick.i686 : An ImageMagick fork, offering faster image generation and better quality GraphicsMagick.x86_64 : An ImageMagick fork, offering faster image generation and better quality GraphicsMagick-c++.i686 : GraphicsMagick Magick++ library (C++ bindings) GraphicsMagick-c++.x86_64 : GraphicsMagick Magick++ library (C++ bindings) GraphicsMagick-c++-devel.i686 : C++ bindings for the GraphicsMagick library GraphicsMagick-c++-devel.x86_64 : C++ bindings for the GraphicsMagick library GraphicsMagick-devel.i686 : Libraries and header files for GraphicsMagick app development GraphicsMagick-devel.x86_64 : Libraries and header files for GraphicsMagick app development GraphicsMagick-doc.noarch : GraphicsMagick documentation GraphicsMagick-perl.x86_64 : GraphicsMagick perl bindings ImageMagick-c++.i686 : ImageMagick Magick++ library (C++ bindings) ImageMagick-c++.x86_64 : ImageMagick Magick++ library (C++ bindings) ImageMagick-c++-devel.i686 : C++ bindings for the ImageMagick library ImageMagick-c++-devel.x86_64 : C++ bindings for the ImageMagick library ImageMagick-devel.i686 : Library links and header files for ImageMagick app development ImageMagick-devel.x86_64 : Library links and header files for ImageMagick app development ImageMagick-djvu.x86_64 : DjVu plugin for ImageMagick ImageMagick-doc.x86_64 : ImageMagick html documentation ImageMagick-libs.x86_64 : ImageMagick libraries to link with ImageMagick-libs.i686 : ImageMagick libraries to link with ImageMagick-perl.x86_64 : ImageMagick perl bindings XStatic-Magic-Search-common.noarch : Xstatic-Magic-Search common files ghc-magic.x86_64 : Interface to C file/magic library ghc-magic-devel.x86_64 : Haskell magic library development files ghc-magic-doc.x86_64 : Haskell magic library documentation ghc-magic-prof.x86_64 : Haskell magic profiling library magic-doc.x86_64 : Documentation for magic, A very capable VLSI layout tool meshmagick-devel.i686 : Development files for meshmagick meshmagick-devel.x86_64 : Development files for meshmagick meshmagick-libs.i686 : Libraries for meshmagick meshmagick-libs.x86_64 : Libraries for meshmagick perl-File-LibMagic.x86_64 : Perl wrapper/interface for libmagic perl-Variable-Magic.x86_64 : Associate user-defined magic to variables from Perl pfstools-imgmagick.x86_64 : ImageMagick file import for PFS tools php-pecl-gmagick.x86_64 : Provides a wrapper to the GraphicsMagick library php-pecl-imagick.x86_64 : Provides a wrapper to the ImageMagick library php-pecl-imagick-devel.x86_64 : imagick extension developer files (header) python-magic-wormhole-doc.noarch : Documentation for python-magic-wormhole python-magic-wormhole-mailbox-server-doc.noarch : Documentation for python-magic-wormhole-mailbox-server python3-XStatic-Magic-Search.noarch : Magic-Search (XStatic packaging standard) python3-importmagic.noarch : Python library to auto-magically add, remove and manage imports python3-magic.noarch : Python 3 bindings for the libmagic API python3-magic-wormhole-transit-relay.noarch : Transit Relay server for Magic-Wormhole q-magick.x86_64 : ImageMagick module for Q rubygem-mimemagic-doc.noarch : Documentation for rubygem-mimemagic rubygem-mini_magick.noarch : Manipulate images with minimal use of memory via ImageMagick rubygem-mini_magick-doc.noarch : Documentation for rubygem-mini_magick rubygem-rmagick.x86_64 : Ruby binding to ImageMagick rubygem-rmagick-doc.noarch : Documentation for rubygem-rmagick wildmagic5.i686 : Wild Magic libraries wildmagic5.x86_64 : Wild Magic libraries wildmagic5-data.noarch : wildmagic5 data files wildmagic5-devel.i686 : Development files for wildmagic5 wildmagic5-devel.x86_64 : Development files for wildmagic5 wildmagic5-samples.x86_64 : Samples files for wildmagic5 ============================================================================ Name Matched: magic ============================================================================ ImageMagick.x86_64 : An X application for displaying and manipulating images ImageMagick.i686 : An X application for displaying and manipulating images MagicPoint.x86_64 : X based presentation software R-magick.x86_64 : Advanced Graphics and Image-Processing in R golang-github-magiconair-properties-devel.noarch : Java properties scanner for Go golang-github-mholt-certmagic-devel.noarch : Automatic HTTPS for any Go program gtatool-imagemagick.x86_64 : Module to import/export traditional image formats magic-wormhole.noarch : Securely transfer data between computers magicmaze.x86_64 : Board game featuring a maze which the players change each turn meshmagick.x86_64 : Command line manipulation tool for Ogre meshes mirrormagic.x86_64 : Puzzle game where you steer a beam of light using mirrors nodejs-magic-string.noarch : Modify strings, generate sourcemaps perl-File-MMagic.noarch : A Perl module emulating the file(1) command perl-File-MMagic-XS.x86_64 : Guess file type with XS python3-magic-wormhole.noarch : Securely transfer data between computers python3-magic-wormhole-mailbox-server.noarch : Securely transfer data between computers rubygem-mimemagic.noarch : Fast mime detection by extension or content trac-blackmagictickettweaks-plugin.noarch : Various hacks to alter the behavior of the ticket form ========================================================================== Summary Matched: magic =========================================================================== converseen.x86_64 : A batch image conversion tool written in C++ with Qt5 and Magick++ file-libs.x86_64 : Libraries for applications using libmagic file-libs.i686 : Libraries for applications using libmagic gmic.i686 : GREYC's Magic for Image Computing gmic.x86_64 : GREYC's Magic for Image Computing nodejs-glob-parent.noarch : Strips glob magic from a string to provide the parent path perl-Any-Moose.noarch : Use Moose or Mouse automagically (DEPRECATED) perl-Config-Auto.noarch : Magical config file parser perl-File-Type.noarch : Determine file type using magic perl-File-Type-WebImages.noarch : Determine web image file types using magic python3-mtg.noarch : Console-based access to the Gatherer Magic Card Database python3-wand.noarch : Ctypes-based simple MagickWand API binding for Python rubygem-marcel.noarch : Simple mime type detection using magic numbers, file names, and extensions slashem.x86_64 : Super Lotsa Added Stuff Hack - Extended Magic vcmi.x86_64 : Heroes of Might and Magic 3 game engine ``` i think it can be ``` GraphicsMagick-c++-devel.x86_64 : C++ bindings for the GraphicsMagick library ``` or ``` ImageMagick-c++-devel.x86_64 : C++ bindings for the ImageMagick library ``` yes?
Author
Owner

@d99kris commented on GitHub (Apr 23, 2021):

Thanks @Kabouik I think you're right about missing libmagic.

To install it on Fedora I think the command is:

sudo yum -y install file-devel

I'll look into adding documentation in the README on how to install dependencies under Fedora / yum.

<!-- gh-comment-id:825553727 --> @d99kris commented on GitHub (Apr 23, 2021): Thanks @Kabouik I think you're right about missing libmagic. To install it on Fedora I think the command is: sudo yum -y install file-devel I'll look into adding documentation in the README on how to install dependencies under Fedora / yum.
Author
Owner

@vodolaz095 commented on GitHub (Apr 23, 2021):

i installed dependencies by this command

dnf install -y cyrus-sasl-devel libetpan-devel sqlite-devel xapian-core-devel xapian-core ncurses-devel file-devel

than i make build/ directory in cloned source and then i run

[vodolaz095@steel ~]$ cd ~/projects/
[vodolaz095@steel projects]$ git clone https://github.com/d99kris/nmail.git
[vodolaz095@steel projects]$ cd ~/projects/nmail
[vodolaz095@steel nmail]$ mkdir build/
[vodolaz095@steel nmail]$ cd build/
[vodolaz095@steel build]$ cmake ..
-- Using build type 'Debug' (default).
-- Found libetpan: /usr/lib64/libetpan.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vodolaz095/projects/nmail

than i run build

[vodolaz095@steel ~]$ cd ~/projects/nmail
[vodolaz095@steel nmail]$ make -s

and i have binary compiled at ~/projects/nmail/nmail

[vodolaz095@steel nmail]$ ls -l
total 13240
drwxrwxr-x. 2 vodolaz095 vodolaz095     4096 Apr 23 10:58 build
-rw-rw-r--. 1 vodolaz095 vodolaz095    20627 Apr 23 13:15 CMakeCache.txt
drwxrwxr-x. 6 vodolaz095 vodolaz095     4096 Apr 23 13:16 CMakeFiles
-rw-rw-r--. 1 vodolaz095 vodolaz095     3229 Apr 23 11:00 cmake_install.cmake
-rw-rw-r--. 1 vodolaz095 vodolaz095     5237 Apr 23 10:54 CMakeLists.txt
drwxrwxr-x. 2 vodolaz095 vodolaz095     4096 Apr 23 10:54 doc
drwxrwxr-x. 2 vodolaz095 vodolaz095     4096 Apr 23 10:54 etc
drwxrwxr-x. 5 vodolaz095 vodolaz095     4096 Apr 23 10:54 ext
-rw-rw-r--. 1 vodolaz095 vodolaz095     1076 Apr 23 10:54 LICENSE
-rw-rw-r--. 1 vodolaz095 vodolaz095    28356 Apr 23 13:15 Makefile
-rwxrwxr-x. 1 vodolaz095 vodolaz095     3225 Apr 23 10:54 make.sh
-rwxrwxr-x. 1 vodolaz095 vodolaz095 13397384 Apr 23 13:16 nmail
-rwxrwxr-x. 1 vodolaz095 vodolaz095     9923 Apr 23 11:00 oauth2nmail
-rw-rw-r--. 1 vodolaz095 vodolaz095    32806 Apr 23 10:54 README.md
drwxrwxr-x. 3 vodolaz095 vodolaz095     4096 Apr 23 11:00 share
drwxrwxr-x. 2 vodolaz095 vodolaz095     4096 Apr 23 10:54 src
drwxrwxr-x. 2 vodolaz095 vodolaz095     4096 Apr 23 10:54 themes
drwxrwxr-x. 2 vodolaz095 vodolaz095     4096 Apr 23 10:54 util
<!-- gh-comment-id:825558896 --> @vodolaz095 commented on GitHub (Apr 23, 2021): i installed dependencies by this command ``` dnf install -y cyrus-sasl-devel libetpan-devel sqlite-devel xapian-core-devel xapian-core ncurses-devel file-devel ``` than i make `build/` directory in cloned source and then i run ``` [vodolaz095@steel ~]$ cd ~/projects/ [vodolaz095@steel projects]$ git clone https://github.com/d99kris/nmail.git [vodolaz095@steel projects]$ cd ~/projects/nmail [vodolaz095@steel nmail]$ mkdir build/ [vodolaz095@steel nmail]$ cd build/ [vodolaz095@steel build]$ cmake .. -- Using build type 'Debug' (default). -- Found libetpan: /usr/lib64/libetpan.so -- Configuring done -- Generating done -- Build files have been written to: /home/vodolaz095/projects/nmail ``` than i run build ``` [vodolaz095@steel ~]$ cd ~/projects/nmail [vodolaz095@steel nmail]$ make -s ``` and i have binary compiled at `~/projects/nmail/nmail` ``` [vodolaz095@steel nmail]$ ls -l total 13240 drwxrwxr-x. 2 vodolaz095 vodolaz095 4096 Apr 23 10:58 build -rw-rw-r--. 1 vodolaz095 vodolaz095 20627 Apr 23 13:15 CMakeCache.txt drwxrwxr-x. 6 vodolaz095 vodolaz095 4096 Apr 23 13:16 CMakeFiles -rw-rw-r--. 1 vodolaz095 vodolaz095 3229 Apr 23 11:00 cmake_install.cmake -rw-rw-r--. 1 vodolaz095 vodolaz095 5237 Apr 23 10:54 CMakeLists.txt drwxrwxr-x. 2 vodolaz095 vodolaz095 4096 Apr 23 10:54 doc drwxrwxr-x. 2 vodolaz095 vodolaz095 4096 Apr 23 10:54 etc drwxrwxr-x. 5 vodolaz095 vodolaz095 4096 Apr 23 10:54 ext -rw-rw-r--. 1 vodolaz095 vodolaz095 1076 Apr 23 10:54 LICENSE -rw-rw-r--. 1 vodolaz095 vodolaz095 28356 Apr 23 13:15 Makefile -rwxrwxr-x. 1 vodolaz095 vodolaz095 3225 Apr 23 10:54 make.sh -rwxrwxr-x. 1 vodolaz095 vodolaz095 13397384 Apr 23 13:16 nmail -rwxrwxr-x. 1 vodolaz095 vodolaz095 9923 Apr 23 11:00 oauth2nmail -rw-rw-r--. 1 vodolaz095 vodolaz095 32806 Apr 23 10:54 README.md drwxrwxr-x. 3 vodolaz095 vodolaz095 4096 Apr 23 11:00 share drwxrwxr-x. 2 vodolaz095 vodolaz095 4096 Apr 23 10:54 src drwxrwxr-x. 2 vodolaz095 vodolaz095 4096 Apr 23 10:54 themes drwxrwxr-x. 2 vodolaz095 vodolaz095 4096 Apr 23 10:54 util ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nmail#65
No description provided.