Open mattmaddux opened 4 years ago
5 months later I have the same error in Debian. Do we both do something wrong or is it just bugged?
Could you just remove that line locally on source of MailCore?
/home/user/mailcore2/build/src/include/MailCore/MCICUTypes.h, line 16
typedef __CHAR16_TYPE__ UChar;
It should help it build.
Could you just remove that line locally on source of MailCore? /home/user/mailcore2/build/src/include/MailCore/MCICUTypes.h, line 16 typedef CHAR16_TYPE UChar; It should help it build.
I changed "src/core/basetypes/MCICUTypes.h" (not in build) to `
typedef wchar_t UChar;
//#elif defined(__CHAR16_TYPE__)
//typedef __CHAR16_TYPE__ UChar;
//#else
//typedef uint16_t UChar;
` and installed libssl-dev which I was still missing. Then the build run through. Thank you for pointing me into the right direction. Mmm, building does not mean it is now correct.
Fyi: https://github.com/MailCore/mailcore2/pull/1912 explains the build pipeline on Android that works also in 2021 on macOS, building it on linux is probably pretty much the same. The troubleshooting part of this PR also explains how to fix the errors you encountered.
@vonox7 I don't see anything in that PR relating to the aforementioned declaration conflict with UChar.
@vonox7 I don't see anything in that PR relating to the aforementioned declaration conflict with UChar.
Have you tried using the Android NDK and SDK versions as described in the PR? The correct versions fixed at least for me exactly this error. (But probably you encounter a different error that has just the same error message)
@vonox7 Building on Linux (desktop), the Android SDK doesn't even enter into it, mate. See?
Building Mailcore2 fails on Linux (following directions from here).
Outputs this error: