Linux Compile does not works in ubuntu 18.04

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
arevir
Posts: 4
Joined: Mon Aug 20, 2018 3:40 am

Linux Compile does not works in ubuntu 18.04

Post by arevir »

Hi,

I have been trying to compile Luxcore with LinuxCompile, both of release 2.0. The issue is that it fails during the Qt compilation.

Here is the console output:

Code: Select all

gcc -c -w -mtune=generic -std=gnu++98 -mmmx -msse -msse2 -O2 -pipe -mfpmath=sse -fPIC -I/home/ernesto/luxcorerender/LinuxCompile-luxcorerender_v2.0/target-64-sse2/include/libpng -fno-exceptions -O2 -fvisibility=hidden -Wall -W -D_REENTRANT -fPIC -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQLIBRARYINFO_EPOCROOT -DQT_USE_ICU -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-static -Iglobal -I../../tools/shared -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-static -o .obj/release-static/harfbuzz-open.o ../3rdparty/harfbuzz/src/harfbuzz-open.c
In file included from /usr/include/unicode/uversion.h:30:0,
                 from tools/qlocale_icu.cpp:46:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type; did you mean ‘wchar_t’?
     typedef char16_t UChar;
             ^~~~~~~~
             wchar_t
In file included from tools/qlocale_icu.cpp:46:0:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^~~~~
                                                       QChar
In file included from /usr/include/unicode/unorm.h:24:0,
                 from /usr/include/unicode/ucol.h:17,
                 from tools/qlocale_icu.cpp:47:
/usr/include/unicode/uiter.h:594:44: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uiter_setString(UCharIterator *iter, const UChar *s, int32_t length);
                                            ^~~~~
                                            QChar
In file included from /usr/include/unicode/uset.h:33:0,
                 from /usr/include/unicode/unorm2.h:36,
                 from /usr/include/unicode/unorm.h:25,
                 from /usr/include/unicode/ucol.h:17,
                 from tools/qlocale_icu.cpp:47:
/usr/include/unicode/uchar.h:3724:33: error: ‘UChar’ has not been declared
 u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode);
                                 ^~~~~
In file included from /usr/include/unicode/unorm2.h:36:0,
                 from /usr/include/unicode/unorm.h:25,
                 from /usr/include/unicode/ucol.h:17,
                 from tools/qlocale_icu.cpp:47:
/usr/include/unicode/uset.h:285:24: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uset_openPattern(const UChar* pattern, int32_t patternLength,
                        ^~~~~
                        QChar
/usr/include/unicode/uset.h:300:31: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uset_openPatternOptions(const UChar* pattern, int32_t patternLength,
                               ^~~~~
                               QChar
/usr/include/unicode/uset.h:422:25: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                   const UChar *pattern, int32_t patternLength,
                         ^~~~~
                         QChar
/usr/include/unicode/uset.h:489:31: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                         const UChar *prop, int32_t propLength,
                               ^~~~~
                               QChar
/usr/include/unicode/uset.h:490:31: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                         const UChar *value, int32_t valueLength,
                               ^~~~~
                               QChar
/usr/include/unicode/uset.h:503:29: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uset_resemblesPattern(const UChar *pattern, int32_t patternLength,
                             ^~~~~
                             QChar
/usr/include/unicode/uset.h:523:16: error: ‘UChar’ has not been declared
                UChar* result, int32_t resultCapacity,
                ^~~~~
/usr/include/unicode/uset.h:575:33: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uset_addString(USet* set, const UChar* str, int32_t strLen);
                                 ^~~~~
                                 QChar
/usr/include/unicode/uset.h:587:40: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uset_addAllCodePoints(USet* set, const UChar *str, int32_t strLen);
                                        ^~~~~
                                        QChar
/usr/include/unicode/uset.h:622:36: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uset_removeString(USet* set, const UChar* str, int32_t strLen);
                                    ^~~~~
                                    QChar
/usr/include/unicode/uset.h:796:44: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uset_containsString(const USet* set, const UChar* str, int32_t strLen);
                                            ^~~~~
                                            QChar
/usr/include/unicode/uset.h:867:14: error: ‘UChar’ has not been declared
              UChar* str, int32_t strCapacity,
              ^~~~~
/usr/include/unicode/uset.h:892:51: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uset_containsAllCodePoints(const USet* set, const UChar *str, int32_t strLen);
                                                   ^~~~~
                                                   QChar
/usr/include/unicode/uset.h:936:34: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
                                  ^~~~~
                                  QChar
/usr/include/unicode/uset.h:957:38: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
                                      ^~~~~
                                      QChar
In file included from /usr/include/unicode/unorm.h:25:0,
                 from /usr/include/unicode/ucol.h:17,
                 from tools/qlocale_icu.cpp:47:
/usr/include/unicode/unorm2.h:285:24: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                  const UChar *src, int32_t length,
                        ^~~~~
                        QChar
/usr/include/unicode/unorm2.h:286:18: error: ‘UChar’ has not been declared
                  UChar *dest, int32_t capacity,
                  ^~~~~
/usr/include/unicode/unorm2.h:308:33: error: ‘UChar’ has not been declared
                                 UChar *first, int32_t firstLength, int32_t firstCapacity,
                                 ^~~~~
/usr/include/unicode/unorm2.h:309:39: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                                 const UChar *second, int32_t secondLength,
                                       ^~~~~
                                       QChar
/usr/include/unicode/unorm2.h:331:15: error: ‘UChar’ has not been declared
               UChar *first, int32_t firstLength, int32_t firstCapacity,
               ^~~~~
/usr/include/unicode/unorm2.h:332:21: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
               const UChar *second, int32_t secondLength,
                     ^~~~~
                     QChar
/usr/include/unicode/unorm2.h:356:36: error: ‘UChar’ has not been declared
                         UChar32 c, UChar *decomposition, int32_t capacity,
                                    ^~~~~
/usr/include/unicode/unorm2.h:390:39: error: ‘UChar’ has not been declared
                            UChar32 c, UChar *decomposition, int32_t capacity,
                                       ^~~~~
/usr/include/unicode/unorm2.h:441:27: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                     const UChar *s, int32_t length,
                           ^~~~~
                           QChar
/usr/include/unicode/unorm2.h:463:25: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                   const UChar *s, int32_t length,
                         ^~~~~
                         QChar
/usr/include/unicode/unorm2.h:492:32: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                          const UChar *s, int32_t length,
                                ^~~~~
                                QChar
/usr/include/unicode/unorm2.h:597:21: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 unorm_compare(const UChar *s1, int32_t length1,
                     ^~~~~
                     QChar
/usr/include/unicode/unorm2.h:598:21: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
               const UChar *s2, int32_t length2,
                     ^~~~~
                     QChar
In file included from /usr/include/unicode/ucol.h:17:0,
                 from tools/qlocale_icu.cpp:47:
/usr/include/unicode/unorm.h:214:23: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 unorm_normalize(const UChar *source, int32_t sourceLength,
                       ^~~~~
                       QChar
/usr/include/unicode/unorm.h:216:17: error: ‘UChar’ has not been declared
                 UChar *result, int32_t resultLength,
                 ^~~~~
/usr/include/unicode/unorm.h:240:24: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 unorm_quickCheck(const UChar *source, int32_t sourcelength,
                        ^~~~~
                        QChar
/usr/include/unicode/unorm.h:261:35: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 unorm_quickCheckWithOptions(const UChar *src, int32_t srcLength,
                                   ^~~~~
                                   QChar
/usr/include/unicode/unorm.h:287:26: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 unorm_isNormalized(const UChar *src, int32_t srcLength,
                          ^~~~~
                          QChar
/usr/include/unicode/unorm.h:309:37: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 unorm_isNormalizedWithOptions(const UChar *src, int32_t srcLength,
                                     ^~~~~
                                     QChar
/usr/include/unicode/unorm.h:388:12: error: ‘UChar’ has not been declared
            UChar *dest, int32_t destCapacity,
            ^~~~~
/usr/include/unicode/unorm.h:421:16: error: ‘UChar’ has not been declared
                UChar *dest, int32_t destCapacity,
                ^~~~~
/usr/include/unicode/unorm.h:464:25: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 unorm_concatenate(const UChar *left, int32_t leftLength,
                         ^~~~~
                         QChar
/usr/include/unicode/unorm.h:465:25: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                   const UChar *right, int32_t rightLength,
                         ^~~~~
                         QChar
/usr/include/unicode/unorm.h:466:19: error: ‘UChar’ has not been declared
                   UChar *dest, int32_t destCapacity,
                   ^~~~~
In file included from /usr/include/unicode/ucol.h:19:0,
                 from tools/qlocale_icu.cpp:47:
/usr/include/unicode/parseerr.h:83:5: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
     UChar          preContext[U_PARSE_CONTEXT_LEN];
     ^~~~~
     QChar
/usr/include/unicode/parseerr.h:90:5: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
     UChar          postContext[U_PARSE_CONTEXT_LEN];
     ^~~~~
     QChar
In file included from /usr/include/unicode/uloc.h:27:0,
                 from /usr/include/unicode/ucol.h:20,
                 from tools/qlocale_icu.cpp:47:
/usr/include/unicode/uenum.h:112:16: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 U_STABLE const UChar* U_EXPORT2
                ^~~~~
                QChar
In file included from /usr/include/unicode/uloc.h:27:0,
                 from /usr/include/unicode/ucol.h:20,
                 from tools/qlocale_icu.cpp:47:
/usr/include/unicode/uenum.h:190:41: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count,
                                         ^~~~~
                                         QChar
In file included from /usr/include/unicode/ucol.h:20:0,
                 from tools/qlocale_icu.cpp:47:
/usr/include/unicode/uloc.h:571:13: error: ‘UChar’ has not been declared
             UChar* language,
             ^~~~~
/usr/include/unicode/uloc.h:594:13: error: ‘UChar’ has not been declared
             UChar* script,
             ^~~~~
/usr/include/unicode/uloc.h:619:24: error: ‘UChar’ has not been declared
                        UChar* country,
                        ^~~~~
/usr/include/unicode/uloc.h:643:24: error: ‘UChar’ has not been declared
                        UChar* variant,
                        ^~~~~
/usr/include/unicode/uloc.h:690:24: error: ‘UChar’ has not been declared
                        UChar* dest,
                        ^~~~~
/usr/include/unicode/uloc.h:717:32: error: ‘UChar’ has not been declared
                                UChar* dest,
                                ^~~~~
/usr/include/unicode/uloc.h:739:13: error: ‘UChar’ has not been declared
             UChar* result,
             ^~~~~
In file included from /usr/include/unicode/ucol.h:22:0,
                 from tools/qlocale_icu.cpp:47:
/usr/include/unicode/uscript.h:607:45: error: ‘UChar’ has not been declared
 uscript_getSampleString(UScriptCode script, UChar *dest, int32_t capacity, UErrorCode *pErrorCode);
                                             ^~~~~
In file included from tools/qlocale_icu.cpp:47:0:
/usr/include/unicode/ucol.h:428:23: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 ucol_openRules( const UChar        *rules,
                       ^~~~~
                       QChar
/usr/include/unicode/ucol.h:561:18: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
         const    UChar        *source,
                  ^~~~~
                  QChar
/usr/include/unicode/ucol.h:563:18: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
         const    UChar        *target,
                  ^~~~~
                  QChar
/usr/include/unicode/ucol.h:609:20: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
              const UChar     *source, int32_t sourceLength,
                    ^~~~~
                    QChar
/usr/include/unicode/ucol.h:610:20: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
              const UChar     *target, int32_t targetLength);
                    ^~~~~
                    QChar
/usr/include/unicode/ucol.h:628:27: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                     const UChar     *source, int32_t sourceLength,
                           ^~~~~
                           QChar
/usr/include/unicode/ucol.h:629:27: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                     const UChar     *target, int32_t targetLength);
                           ^~~~~
                           QChar
/usr/include/unicode/ucol.h:647:18: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
            const UChar     *source, int32_t sourceLength,
                  ^~~~~
                  QChar
/usr/include/unicode/ucol.h:648:18: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
            const UChar     *target, int32_t targetLength);
                  ^~~~~
                  QChar
/usr/include/unicode/ucol.h:800:13: error: ‘UChar’ has not been declared
             UChar             *result,
             ^~~~~
/usr/include/unicode/ucol.h:932:16: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 U_STABLE const UChar* U_EXPORT2
                ^~~~~
                QChar
/usr/include/unicode/ucol.h:1017:18: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
         const    UChar        *source,
                  ^~~~~
                  QChar
/usr/include/unicode/ucol.h:1272:27: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
                     const UChar *varTop, int32_t len,
                           ^~~~~
                           QChar
/usr/include/unicode/ucol.h:1361:62: error: ‘UChar’ has not been declared
 ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen);
                                                              ^~~~~
tools/qlocale_icu.cpp:53:75: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 typedef UCollationResult (*Ptr_ucol_strcoll)(const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength);
                                                                           ^~~~~
                                                                           QChar
tools/qlocale_icu.cpp:53:118: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
 _strcoll)(const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength);
                                                                                   ^~~~~
                                                                                                                      QChar
tools/qlocale_icu.cpp:54:36: error: typedef ‘Ptr_u_strToCase’ is initialized (use decltype instead)
 typedef int32_t (*Ptr_u_strToCase)(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                    ^~~~~
tools/qlocale_icu.cpp:54:36: error: ‘UChar’ was not declared in this scope
tools/qlocale_icu.cpp:54:36: note: suggested alternative: ‘QChar’
 typedef int32_t (*Ptr_u_strToCase)(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                    ^~~~~
                                    QChar
tools/qlocale_icu.cpp:54:43: error: ‘dest’ was not declared in this scope
 typedef int32_t (*Ptr_u_strToCase)(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                           ^~~~
tools/qlocale_icu.cpp:54:43: note: suggested alternative: ‘reset’
 typedef int32_t (*Ptr_u_strToCase)(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                           ^~~~
                                           reset
tools/qlocale_icu.cpp:54:57: error: expected primary-expression before ‘destCapacity’
 typedef int32_t (*Ptr_u_strToCase)(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                                         ^~~~~~~~~~~~
tools/qlocale_icu.cpp:54:71: error: expected primary-expression before ‘const’
 typedef int32_t (*Ptr_u_strToCase)(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                                                       ^~~~~
tools/qlocale_icu.cpp:54:97: error: expected primary-expression before ‘srcLength’
 t (*Ptr_u_strToCase)(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                                                                   ^~~~~~~~~
tools/qlocale_icu.cpp:54:108: error: expected primary-expression before ‘const’
 trToCase)(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                                                                   ^~~~~
tools/qlocale_icu.cpp:54:139: error: expected primary-expression before ‘*’ token
 destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                                                                   ^
tools/qlocale_icu.cpp:54:140: error: ‘pErrorCode’ was not declared in this scope
 estCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                                                                   ^~~~~~~~~~
tools/qlocale_icu.cpp:54:140: note: suggested alternative: ‘UErrorCode’
 estCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);
                                                                                   ^~~~~~~~~~
                                                                                                                                            UErrorCode
tools/qlocale_icu.cpp:59:8: error: ‘Ptr_u_strToCase’ does not name a type; did you mean ‘u_strFoldCase’?
 static Ptr_u_strToCase ptr_u_strToUpper = 0;
        ^~~~~~~~~~~~~~~
        u_strFoldCase
tools/qlocale_icu.cpp:60:8: error: ‘Ptr_u_strToCase’ does not name a type; did you mean ‘u_strFoldCase’?
 static Ptr_u_strToCase ptr_u_strToLower = 0;
        ^~~~~~~~~~~~~~~
        u_strFoldCase
tools/qlocale_icu.cpp: In function ‘bool qt_initIcu(const QString&)’:
tools/qlocale_icu.cpp:122:9: error: ‘ptr_u_strToUpper’ was not declared in this scope
         ptr_u_strToUpper = (Ptr_u_strToCase)ucLib.resolve("u_strToUpper");
         ^~~~~~~~~~~~~~~~
tools/qlocale_icu.cpp:122:9: note: suggested alternative: ‘u_strToUpper’
         ptr_u_strToUpper = (Ptr_u_strToCase)ucLib.resolve("u_strToUpper");
         ^~~~~~~~~~~~~~~~
         u_strToUpper
tools/qlocale_icu.cpp:122:29: error: ‘Ptr_u_strToCase’ was not declared in this scope
         ptr_u_strToUpper = (Ptr_u_strToCase)ucLib.resolve("u_strToUpper");
                             ^~~~~~~~~~~~~~~
tools/qlocale_icu.cpp:122:29: note: suggested alternative: ‘u_strFoldCase’
         ptr_u_strToUpper = (Ptr_u_strToCase)ucLib.resolve("u_strToUpper");
                             ^~~~~~~~~~~~~~~
                             u_strFoldCase
tools/qlocale_icu.cpp:123:9: error: ‘ptr_u_strToLower’ was not declared in this scope
         ptr_u_strToLower = (Ptr_u_strToCase)ucLib.resolve("u_strToLower");
         ^~~~~~~~~~~~~~~~
tools/qlocale_icu.cpp:123:9: note: suggested alternative: ‘u_strToLower’
         ptr_u_strToLower = (Ptr_u_strToCase)ucLib.resolve("u_strToLower");
         ^~~~~~~~~~~~~~~~
         u_strToLower
tools/qlocale_icu.cpp: In function ‘bool qt_ucol_strcoll(const QChar*, int, const QChar*, int, int*)’:
tools/qlocale_icu.cpp:168:68: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
     *result = ptr_ucol_strcoll(icuCollator, reinterpret_cast<const UChar *>(source), int32_t(sourceLength),
                                                                    ^~~~~
tools/qlocale_icu.cpp:168:68: error: expected ‘>’ before ‘UChar’
tools/qlocale_icu.cpp:168:68: error: expected ‘(’ before ‘UChar’
tools/qlocale_icu.cpp:168:68: error: ‘UChar’ was not declared in this scope
tools/qlocale_icu.cpp:168:68: note: suggested alternative: ‘QChar’
     *result = ptr_ucol_strcoll(icuCollator, reinterpret_cast<const UChar *>(source), int32_t(sourceLength),
                                                                    ^~~~~
                                                                    QChar
tools/qlocale_icu.cpp:168:75: error: expected primary-expression before ‘>’ token
     *result = ptr_ucol_strcoll(icuCollator, reinterpret_cast<const UChar *>(source), int32_t(sourceLength),
                                                                           ^
tools/qlocale_icu.cpp:169:55: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
                                reinterpret_cast<const UChar *>(target), int32_t(targetLength));
                                                       ^~~~~
tools/qlocale_icu.cpp:169:55: error: expected ‘>’ before ‘UChar’
tools/qlocale_icu.cpp:169:55: error: expected ‘(’ before ‘UChar’
tools/qlocale_icu.cpp:169:62: error: expected primary-expression before ‘>’ token
                                reinterpret_cast<const UChar *>(target), int32_t(targetLength));
                                                              ^
tools/qlocale_icu.cpp:169:95: error: expected ‘)’ before ‘;’ token
                              reinterpret_cast<const UChar *>(target), int32_t(targetLength));
                                                                                             ^
tools/qlocale_icu.cpp: At global scope:
tools/qlocale_icu.cpp:175:85: error: ‘Ptr_u_strToCase’ has not been declared
 atic bool qt_u_strToCase(const QString &str, QString *out, const QLocale &locale, Ptr_u_strToCase caseFunc)
                                                                                   ^~~~~~~~~~~~~~~
tools/qlocale_icu.cpp: In function ‘bool qt_u_strToCase(const QString&, QString*, const QLocale&, int)’:
tools/qlocale_icu.cpp:186:46: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
     int32_t size = caseFunc(reinterpret_cast<UChar *>(result.data()), result.size(),
                                              ^~~~~
                                              QChar
tools/qlocale_icu.cpp:186:52: error: expected ‘>’ before ‘*’ token
     int32_t size = caseFunc(reinterpret_cast<UChar *>(result.data()), result.size(),
                                                    ^
tools/qlocale_icu.cpp:186:52: error: expected ‘(’ before ‘*’ token
tools/qlocale_icu.cpp:186:53: error: expected primary-expression before ‘>’ token
     int32_t size = caseFunc(reinterpret_cast<UChar *>(result.data()), result.size(),
                                                     ^
tools/qlocale_icu.cpp:187:36: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
             reinterpret_cast<const UChar *>(str.constData()), str.size(),
                                    ^~~~~
tools/qlocale_icu.cpp:187:36: error: expected ‘>’ before ‘UChar’
tools/qlocale_icu.cpp:187:36: error: expected ‘(’ before ‘UChar’
tools/qlocale_icu.cpp:187:36: error: ‘UChar’ was not declared in this scope
tools/qlocale_icu.cpp:187:36: note: suggested alternative: ‘QChar’
             reinterpret_cast<const UChar *>(str.constData()), str.size(),
                                    ^~~~~
                                    QChar
tools/qlocale_icu.cpp:187:43: error: expected primary-expression before ‘>’ token
             reinterpret_cast<const UChar *>(str.constData()), str.size(),
                                           ^
tools/qlocale_icu.cpp:188:64: error: expected ‘)’ before ‘;’ token
             locale.bcp47Name().toLatin1().constData(), &status);
                                                                ^
tools/qlocale_icu.cpp:200:42: error: ‘UChar’ does not name a type; did you mean ‘QChar’?
         size = caseFunc(reinterpret_cast<UChar *>(result.data()), result.size(),
                                          ^~~~~
                                          QChar
tools/qlocale_icu.cpp:200:48: error: expected ‘>’ before ‘*’ token
         size = caseFunc(reinterpret_cast<UChar *>(result.data()), result.size(),
                                                ^
tools/qlocale_icu.cpp:200:48: error: expected ‘(’ before ‘*’ token
tools/qlocale_icu.cpp:200:49: error: expected primary-expression before ‘>’ token
         size = caseFunc(reinterpret_cast<UChar *>(result.data()), result.size(),
                                                 ^
tools/qlocale_icu.cpp:201:36: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
             reinterpret_cast<const UChar *>(str.constData()), str.size(),
                                    ^~~~~
tools/qlocale_icu.cpp:201:36: error: expected ‘>’ before ‘UChar’
tools/qlocale_icu.cpp:201:36: error: expected ‘(’ before ‘UChar’
tools/qlocale_icu.cpp:201:43: error: expected primary-expression before ‘>’ token
             reinterpret_cast<const UChar *>(str.constData()), str.size(),
                                           ^
tools/qlocale_icu.cpp:202:64: error: expected ‘)’ before ‘;’ token
             locale.bcp47Name().toLatin1().constData(), &status);
                                                                ^
tools/qlocale_icu.cpp: In function ‘bool qt_u_strToUpper(const QString&, QString*, const QLocale&)’:
tools/qlocale_icu.cpp:218:45: error: ‘ptr_u_strToUpper’ was not declared in this scope
     return qt_u_strToCase(str, out, locale, ptr_u_strToUpper);
                                             ^~~~~~~~~~~~~~~~
tools/qlocale_icu.cpp:218:45: note: suggested alternative: ‘qt_u_strToUpper’
     return qt_u_strToCase(str, out, locale, ptr_u_strToUpper);
                                             ^~~~~~~~~~~~~~~~
                                             qt_u_strToUpper
tools/qlocale_icu.cpp: In function ‘bool qt_u_strToLower(const QString&, QString*, const QLocale&)’:
tools/qlocale_icu.cpp:223:45: error: ‘ptr_u_strToLower’ was not declared in this scope
     return qt_u_strToCase(str, out, locale, ptr_u_strToLower);
                                             ^~~~~~~~~~~~~~~~
tools/qlocale_icu.cpp:223:45: note: suggested alternative: ‘qt_u_strToLower’
     return qt_u_strToCase(str, out, locale, ptr_u_strToLower);
                                             ^~~~~~~~~~~~~~~~
                                             qt_u_strToLower
Makefile:14356: recipe for target '.obj/release-static/qlocale_icu.o' failed
make[1]: *** [.obj/release-static/qlocale_icu.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/luxbuild/qt-everywhere-opensource-src-4.8.6/src/corelib'
Makefile:194: recipe for target 'sub-corelib-make_default-ordered' failed
make: *** [sub-corelib-make_default-ordered] Error 2
 !!! Qt compilation failed
From what I have read, this happens because Ubuntu 18.04 uses ICU version 61.

What can I do in order to be able to compile in Ubuntu 18.04?

The same happens if I try to compile the master branch.

Thanks in advance for your help.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Linux Compile does not works in ubuntu 18.04

Post by Dade »

It is a strange error because it is in a system header. I will try to compile on a VM with 18.04.

P.S. A somewhat similar problem: https://github.com/openstreetmap/mod_tile/issues/179
Support LuxCoreRender project with salts and bounties
arevir
Posts: 4
Joined: Mon Aug 20, 2018 3:40 am

Re: Linux Compile does not works in ubuntu 18.04

Post by arevir »

Thanks, your help will be highly appreciated!
arevir
Posts: 4
Joined: Mon Aug 20, 2018 3:40 am

Re: Linux Compile does not works in ubuntu 18.04

Post by arevir »

Hi,

Were you able to make it compile in Ubuntu 18.04??? I tried several stuff but I couldn't.

Thanks in advance.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Linux Compile does not works in ubuntu 18.04

Post by Dade »

arevir wrote: Fri Sep 07, 2018 6:57 pm Were you able to make it compile in Ubuntu 18.04??? I tried several stuff but I couldn't.
Yes, I had a different problem compiling Qt on Ubtuntu 18.04LTS but it is required only to compile LuxMark, something I assume you don't need so I have just edited the build script to skip Qt compilation it worked fine.

You just need to edit the "build" file and comment the following lines by prefixing a "#":

Code: Select all

# STAGE 3 -- Qt
NEXT=3.1
if [[ $STAGE && $STAGE < $NEXT ]] ; then
        begin_stage Qt qt-everywhere-opensource*.tar.gz

#        if echo $TARGET | grep -q '\-32' ; then
#                QT_PLATFORM="-platform linux-g++-32"
#        fi
#        if ! echo 'yes' | ./configure -prefix $TARGET $QT_PLATFORM \
#                -prefix-install -release -opensource -static -reduce-relocations -no-opengl \
#                -no-ssse3 -fast -no-3dnow -no-sse2 -no-exceptions -stl -no-qt3support \
#                -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend \
#                -no-webkit -no-svg -no-javascript-jit -no-script -no-scripttools -qt-zlib -no-gif \
#                -system-libtiff -system-libpng -no-libmng -system-libjpeg -no-openssl -optimized-qmake \
#                -no-nis -no-cups -no-iconv -no-pch -no-dbus -no-mitshm -gtkstyle -no-glib \
#                -make libs -make tools -nomake examples -nomake demos -nomake docs -nomake translations \
#                -I${TARGET}/include/libpng -L${TARGET}/lib -lpng -ltiff -llzma -lbz2 ; then
#                echo " !!! Qt configuration failed"
#                exit 1
#        fi
#        sleep $PAUSE
#        COMMAND=`which gmake 2>/dev/null || which make 2>/dev/null`
#        if $COMMAND $MAKEOPTS && sleep $PAUSE && $COMMAND install ; then
#                echo " * Qt compiled and installed successfully"
#        else
#                echo " !!! Qt compilation failed"
#                exit 1
#        fi

        complete_stage $NEXT
fi
Support LuxCoreRender project with salts and bounties
arevir
Posts: 4
Joined: Mon Aug 20, 2018 3:40 am

Re: Linux Compile does not works in ubuntu 18.04

Post by arevir »

Great, thanks!
Post Reply