MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.58k stars 623 forks source link

[Bug] - Building on Linux fedora #1994

Open OmarTheMostWanted opened 5 months ago

OmarTheMostWanted commented 5 months ago

Summary I faced multiple issues trying to build this on linux fedora, first finding all the dependencies was not easy, here is the dnf command to get all of them:

sudo dnf install ctemplate-devel libicu-devel cyrus-sasl-devel libtidy-devel \
    libuuid-devel libxml2-devel glib2-devel autoconf automake libtool openssl-devel

Next issue was a conflicting declaration in MCICUTypes.h

typedef __CHAR16_TYPE__ UChar

replacing it with:

typedef char16_t UChar;

seems to fix it. next was linking issues, two libraries where not find and I was unable to locate them:

/usr/bin/ld: cannot find -licule: No such file or directory
/usr/bin/ld: cannot find -liculx: No such file or directory

however I removed them in CMakeLists.txt and it builds now

changed:

set(icu_libraries icudata icui18n icuio icule iculx icutest icutu icuuc)

to:

set(icu_libraries icudata icui18n icuio icutest icutu icuuc)

so I assume those were not needed anyways?!

Platform(s)

<Fedora>
OmarTheMostWanted commented 5 months ago

apologies if my issue doesn't use the correct template, but it's my first time doing this on github.