Menu

#894 Can't compile Tulip with QT6 enabled

3.5.x
closed-fixed
nobody
None
5
2023-12-13
2023-12-12
Andre Maute
No

On a recently updated Fedora 38 with installed GLEW libs I encounter build errors
when compiling with QT6 enabled

Best Regards
Andre

essentially I'm doing

tar xvfz tulip-5.7.3_src.tar.gz 
cd tulip-5.7.3/
mkdir build
cd build/
cmake -DTULIP_USE_QT6=ON -DCMAKE_INSTALL_PREFIX=/home/user/opt/tulip-5.7.3 ..
cmake --build .

this will error with

[ 40%] Building CXX object library/tulip-gui/src/CMakeFiles/tulip-gui-5.7.dir/__/include/tulip/moc_GlSimpleEntityItemModel.cpp.o
/home/user/Downloads/tulip-5.7.3/build/library/tulip-gui/src/__/include/tulip/moc_GlSimpleEntityItemModel.cpp:94:98: error: type/value mismatch at argument 1 in template parameter list for template<class T, class ForceComplete_> struct QtPrivate::TypeAndForceComplete
   94 |         QtPrivate::TypeAndForceComplete<GlSimpleEntityItemModel::SimpleEntityRole, std::true_type>,
      |                                                                                                  ^
/home/user/Downloads/tulip-5.7.3/build/library/tulip-gui/src/__/include/tulip/moc_GlSimpleEntityItemModel.cpp:94:98: note:   expected a type, got tlp::GlSimpleEntityItemModel::SimpleEntityRole
/home/user/Downloads/tulip-5.7.3/build/library/tulip-gui/src/__/include/tulip/moc_GlSimpleEntityItemModel.cpp:92:5: error: template argument 2 is invalid
   92 |     qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASStlpSCOPEGlSimpleEntityItemModelENDCLASS_t,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   93 |         // enum 'SimpleEntityRole'
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~
   94 |         QtPrivate::TypeAndForceComplete<GlSimpleEntityItemModel::SimpleEntityRole, std::true_type>,
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   95 |         // Q_OBJECT / Q_GADGET
      |         ~~~~~~~~~~~~~~~~~~~~~~
   96 |         QtPrivate::TypeAndForceComplete<GlSimpleEntityItemModel, std::true_type>
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   97 |     >,
      |     ~

Discussion

  • Patrick Mary

    Patrick Mary - 2023-12-13

    I will be out of my office until the beginning of January.
    As we have only validated the Tulip build with Qt 6 up to the 6.4 version,
    I may just suggest you to try to replace the file library/tulip/gui/include/tulip/GlSimpleEntityItemModel.h by the one in attachment.

     
    • Andre Maute

      Andre Maute - 2023-12-13

      This worked, thank you very much
      And somehow I can't reproduce the Crash which I reported here
      https://sourceforge.net/p/auber/bugs/893/
      any more.

       
      • Andre Maute

        Andre Maute - 2023-12-13

        no it is still still somehow reproducible, QT6 doesn't help!

         
  • Patrick Mary

    Patrick Mary - 2023-12-13
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB