nutjunkie / IQmol

IQmol is an open source molecular editor and visualization package
GNU General Public License v3.0
99 stars 47 forks source link

CMake files don't work #51

Open mindeye33 opened 3 years ago

mindeye33 commented 3 years ago

Trying to compile with cmake seems to cause a lot of issues, mainly with QT. They seem to constantly mix qt4 and qt5, and it is possible that they might work with a combination of qt 4 and 5 (not good). Some other ones seem to have packages that have a different name on my qt5 such as this one from CMakeLists.txt (notice the prefix Qt is not needed anymore)

-find_package(Qt5 COMPONENTS QtCore QtGui QtNetwork QtOpenGL QtSql QtXml
+find_package(Qt5 COMPONENTS Core Gui Network OpenGL Sql Xml

On the same file, it also has "include(${QT_USE_FILE})", which is not used in QT5 anymore, even though the find_package is using qt5. Fixing these two still didn't work since most of the CMakeLists are still using qt4 and qt5 interchangeably. It might be a good idea to tell other developers to avoid using the cmake for now and stick with the qmake+make compilation, to avoid late-night tear sheds and frustration.