Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qt-everywhere-5.15.1 build from source fails install phase
Forum Updated to NodeBB v4.3 + New Features

qt-everywhere-5.15.1 build from source fails install phase

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 318 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alamahant
    wrote on last edited by alamahant
    #1

    Hi Guys,
    Having given a go to a very slow online installer I decided to build Qt from source.
    I used "./configure -release"
    There was a warning that Qtdocs, Qtpdf and Qtwebengine would not be built because I had no python2 in my system and also I had deleted llvm.
    Fine so far.I didnt want the qtwebengine anyway because it takes for ever to compile.
    I though maybe build the missing componets at a later time.
    So I proceeded with
    "make -j4"
    The make phase did not fail(although it gave me an exit code of 2 when i run "echo $?") in Gentoo Linux.
    Then at the make install phase in the end I got a bunch of errors.
    Here is the output of the errors:

    In file included from ../../../3rdparty/assimp/unzip/unzip.h:58,
                     from ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:58:
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:38:44: error: expected initializer before ‘OF’
       38 | typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, const char* filename, int mode));
          |                                            ^~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:39:44: error: expected initializer before ‘OF’
       39 | typedef uLong  (ZCALLBACK *read_file_func) OF((voidpf opaque, voidpf stream, void* buf, uLong size));
          |                                            ^~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:40:45: error: expected initializer before ‘OF’
       40 | typedef uLong  (ZCALLBACK *write_file_func) OF((voidpf opaque, voidpf stream, const void* buf, uLong size));
          |                                             ^~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:41:44: error: expected initializer before ‘OF’
       41 | typedef long   (ZCALLBACK *tell_file_func) OF((voidpf opaque, voidpf stream));
          |                                            ^~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:42:44: error: expected initializer before ‘OF’
       42 | typedef long   (ZCALLBACK *seek_file_func) OF((voidpf opaque, voidpf stream, uLong offset, int origin));
          |                                            ^~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:43:45: error: expected initializer before ‘OF’
       43 | typedef int    (ZCALLBACK *close_file_func) OF((voidpf opaque, voidpf stream));
          |                                             ^~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:44:49: error: expected initializer before ‘OF’
       44 | typedef int    (ZCALLBACK *testerror_file_func) OF((voidpf opaque, voidpf stream));
          |                                                 ^~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:48:5: error: ‘open_file_func’ does not name a type
       48 |     open_file_func      zopen_file;
          |     ^~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:49:5: error: ‘read_file_func’ does not name a type
       49 |     read_file_func      zread_file;
          |     ^~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:50:5: error: ‘write_file_func’ does not name a type
       50 |     write_file_func     zwrite_file;
          |     ^~~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:51:5: error: ‘tell_file_func’ does not name a type
       51 |     tell_file_func      ztell_file;
          |     ^~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:52:5: error: ‘seek_file_func’ does not name a type
       52 |     seek_file_func      zseek_file;
          |     ^~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:53:5: error: ‘close_file_func’ does not name a type
       53 |     close_file_func     zclose_file;
          |     ^~~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:54:5: error: ‘testerror_file_func’ does not name a type
       54 |     testerror_file_func zerror_file;
          |     ^~~~~~~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/contrib/unzip/ioapi.h:60:26: error: expected initializer before ‘OF’
       60 | void fill_fopen_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def));
          |                          ^~
    In file included from ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:58:
    ../../../3rdparty/assimp/unzip/unzip.h:123:45: error: expected initializer before ‘OF’
      123 | extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,
          |                                             ^~
    ../../../3rdparty/assimp/unzip/unzip.h:136:32: error: expected initializer before ‘OF’
      136 | extern unzFile ZEXPORT unzOpen OF((const char *path));
          |                                ^~
    ../../../3rdparty/assimp/unzip/unzip.h:147:33: error: expected initializer before ‘OF’
      147 | extern unzFile ZEXPORT unzOpen2 OF((const char *path,
          |                                 ^~
    ../../../3rdparty/assimp/unzip/unzip.h:154:29: error: expected initializer before ‘OF’
      154 | extern int ZEXPORT unzClose OF((unzFile file));
          |                             ^~
    ../../../3rdparty/assimp/unzip/unzip.h:161:37: error: expected initializer before ‘OF’
      161 | extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,
          |                                     ^~
    ../../../3rdparty/assimp/unzip/unzip.h:169:40: error: expected initializer before ‘OF’
      169 | extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
          |                                        ^~
    ../../../3rdparty/assimp/unzip/unzip.h:182:37: error: expected initializer before ‘OF’
      182 | extern int ZEXPORT unzGoToFirstFile OF((unzFile file));
          |                                     ^~
    ../../../3rdparty/assimp/unzip/unzip.h:188:36: error: expected initializer before ‘OF’
      188 | extern int ZEXPORT unzGoToNextFile OF((unzFile file));
          |                                    ^~
    ../../../3rdparty/assimp/unzip/unzip.h:195:34: error: expected initializer before ‘OF’
      195 | extern int ZEXPORT unzLocateFile OF((unzFile file,
          |                                  ^~
    ../../../3rdparty/assimp/unzip/unzip.h:227:42: error: expected initializer before ‘OF’
      227 | extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
          |                                          ^~
    ../../../3rdparty/assimp/unzip/unzip.h:253:39: error: expected initializer before ‘OF’
      253 | extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));
          |                                       ^~
    ../../../3rdparty/assimp/unzip/unzip.h:259:47: error: expected initializer before ‘OF’
      259 | extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file,
          |                                               ^~
    ../../../3rdparty/assimp/unzip/unzip.h:267:40: error: expected initializer before ‘OF’
      267 | extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file,
          |                                        ^~
    ../../../3rdparty/assimp/unzip/unzip.h:280:40: error: expected initializer before ‘OF’
      280 | extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file,
          |                                        ^~
    ../../../3rdparty/assimp/unzip/unzip.h:295:40: error: expected initializer before ‘OF’
      295 | extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));
          |                                        ^~
    ../../../3rdparty/assimp/unzip/unzip.h:301:39: error: expected initializer before ‘OF’
      301 | extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
          |                                       ^~
    ../../../3rdparty/assimp/unzip/unzip.h:315:32: error: expected initializer before ‘OF’
      315 | extern z_off_t ZEXPORT unztell OF((unzFile file));
          |                                ^~
    ../../../3rdparty/assimp/unzip/unzip.h:320:27: error: expected initializer before ‘OF’
      320 | extern int ZEXPORT unzeof OF((unzFile file));
          |                           ^~
    ../../../3rdparty/assimp/unzip/unzip.h:325:42: error: expected initializer before ‘OF’
      325 | extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
          |                                          ^~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp: In static member function ‘static zlib_filefunc_def Assimp::IOSystem2Unzip::get(Assimp::IOSystem*)’:
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:160:17: error: ‘zlib_filefunc_def’ {aka ‘struct zlib_filefunc_def_s’} has no member named ‘zopen_file’
      160 |         mapping.zopen_file = open;
          |                 ^~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:161:17: error: ‘zlib_filefunc_def’ {aka ‘struct zlib_filefunc_def_s’} has no member named ‘zread_file’
      161 |         mapping.zread_file = read;
          |                 ^~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:162:17: error: ‘zlib_filefunc_def’ {aka ‘struct zlib_filefunc_def_s’} has no member named ‘zwrite_file’
      162 |         mapping.zwrite_file = write;
          |                 ^~~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:163:17: error: ‘zlib_filefunc_def’ {aka ‘struct zlib_filefunc_def_s’} has no member named ‘ztell_file’
      163 |         mapping.ztell_file = tell;
          |                 ^~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:164:17: error: ‘zlib_filefunc_def’ {aka ‘struct zlib_filefunc_def_s’} has no member named ‘zseek_file’
      164 |         mapping.zseek_file = seek;
          |                 ^~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:165:17: error: ‘zlib_filefunc_def’ {aka ‘struct zlib_filefunc_def_s’} has no member named ‘zclose_file’
      165 |         mapping.zclose_file = close;
          |                 ^~~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:166:17: error: ‘zlib_filefunc_def’ {aka ‘struct zlib_filefunc_def_s’} has no member named ‘zerror_file’
      166 |         mapping.zerror_file = testerror;
          |                 ^~~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp: In member function ‘Assimp::ZipFile* Assimp::ZipFileInfo::Extract(unzFile) const’:
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:227:13: error: ‘unzOpenCurrentFile’ was not declared in this scope
      227 |         if (unzOpenCurrentFile(zip_handle) != UNZ_OK)
          |             ^~~~~~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:232:13: error: ‘unzReadCurrentFile’ was not declared in this scope
      232 |         if (unzReadCurrentFile(zip_handle, zip_file->m_Buffer.get(), static_cast<unsigned int>(m_Size)) != static_cast<int>(m_Size))
          |             ^~~~~~~~~~~~~~~~~~
    In file included from ../../../3rdparty/assimp/src/include/assimp/ai_assert.h:48,
                     from ../../../3rdparty/assimp/src/include/assimp/BaseImporter.h:54,
                     from ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:48:
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:239:19: error: ‘unzCloseCurrentFile’ was not declared in this scope
      239 |         ai_assert(unzCloseCurrentFile(zip_handle) == UNZ_OK);
          |                   ^~~~~~~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:239:9: note: in expansion of macro ‘ai_assert’
      239 |         ai_assert(unzCloseCurrentFile(zip_handle) == UNZ_OK);
          |         ^~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp: In constructor ‘Assimp::ZipArchiveIOSystem::Implement::Implement(Assimp::IOSystem*, const char*, const char*)’:
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:342:27: error: ‘unzOpen2’ was not declared in this scope
      342 |         m_ZipFileHandle = unzOpen2(pFilename, &mapping);
          |                           ^~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp: In destructor ‘Assimp::ZipArchiveIOSystem::Implement::~Implement()’:
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:349:13: error: ‘unzClose’ was not declared in this scope; did you mean ‘Close’?
      349 |             unzClose(m_ZipFileHandle);
          |             ^~~~~~~~
          |             Close
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp: In member function ‘void Assimp::ZipArchiveIOSystem::Implement::MapArchive()’:
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:362:13: error: ‘unzGoToFirstFile’ was not declared in this scope
      362 |         if (unzGoToFirstFile(m_ZipFileHandle) != UNZ_OK)
          |             ^~~~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:370:17: error: ‘unzGetCurrentFileInfo’ was not declared in this scope
      370 |             if (unzGetCurrentFileInfo(m_ZipFileHandle, &fileInfo, filename, FileNameSize, nullptr, 0, nullptr, 0) == UNZ_OK) {
          |                 ^~~~~~~~~~~~~~~~~~~~~
    ../../../3rdparty/assimp/src/code/Common/ZipArchiveIOSystem.cpp:377:18: error: ‘unzGoToNextFile’ was not declared in this scope
      377 |         } while (unzGoToNextFile(m_ZipFileHandle) != UNZ_END_OF_LIST_OF_FILE);
          |                  ^~~~~~~~~~~~~~~
    make[5]: *** [Makefile:2528: .obj/ZipArchiveIOSystem.o] Error 1
    make[5]: Leaving directory '/home/dharma/shared/qt-everywhere-src-5.15.1/qtquick3d/src/plugins/assetimporters/assimp'
    make[4]: *** [Makefile:85: sub-assimp-install_subtargets] Error 2
    make[4]: Leaving directory '/home/dharma/shared/qt-everywhere-src-5.15.1/qtquick3d/src/plugins/assetimporters'
    make[3]: *** [Makefile:59: sub-assetimporters-install_subtargets] Error 2
    make[3]: Leaving directory '/home/dharma/shared/qt-everywhere-src-5.15.1/qtquick3d/src/plugins'
    make[2]: *** [Makefile:206: sub-plugins-install_subtargets-ordered] Error 2
    make[2]: Leaving directory '/home/dharma/shared/qt-everywhere-src-5.15.1/qtquick3d/src'
    make[1]: *** [Makefile:62: sub-src-install_subtargets] Error 2
    make[1]: Leaving directory '/home/dharma/shared/qt-everywhere-src-5.15.1/qtquick3d'
    make: *** [Makefile:378: module-qtquick3d-install_subtargets] Error 2
    

    How to rectify this problem?
    Thanks a lot for your kind consideration,
    :)

    [edit koahnig, code tags added for output]

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      In fact, it did fail. Try again without the -j option to see exactly where it started to fail.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved