Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow compilation of the library using CMake #148

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

arcadien
Copy link

  • Added CMakelists.txt control files
  • Remove a QSharedPointer usage which bugs MSVC14

OlivierDelbeke and others added 24 commits April 19, 2016 20:09
Added compatibility with Qt 5.6
Add CMake support for library and tests
Remove QSharedPointer probably incorrecy in xlxdocument
Nullpointer with this sequence:
1. Create new document
2. Insert at exceeding index (i.e. 1 with a new document)
3. Try to write to document
4. Crash while writing, because internal structure has wrong index.

'
    QXlsx::Document xlsx(file_url);
    if(!xlsx.insertSheet(1, "records")){
        qDebug() << "Never here";
    }
    xlsx.write(1, 1, "id");
    xlsx.save();'
NullPointer insertSheet with exceeding index fix
Synchronization with origin
Aurélien Labrosse and others added 5 commits October 1, 2018 14:57
* Debian-based Linux does not have any CMake files for Qt, and
  we rely on it for compilation (we are using private includes of Qt here).
  Script has been updated to add hardcoded pathes for these includes,
  echoing the needed package name.
remove static cache in col_to_name
endif()
if(${_qt_gui_include_dir} MATCHES "include/QtCore")
list(APPEND Qt5Gui_PRIVATE_INCLUDE_DIRS "${_qt_gui_include_dir}/${Qt5Core_VERSION}")
list(APPEND Qt5Gui_PRIVATE_INCLUDE_DIRS "${_qt_gui_include_dir}/${Qt5Core_VERSION}/QtCore")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it Qt5Core_PRIVATE_INCLUDE_DIRS?

endif()
if(NOT Qt5Core_PRIVATE_INCLUDE_DIRS)
message("-- WARNING: No CMake setup for Qt 'Core' private part. You should need qtbase5-private-dev package")
list(APPEND Qt5Gui_PRIVATE_INCLUDE_DIRS "/usr/include/x86_64-linux-gnu/qt5/QtGui/5.5.1/QtCore/")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it Qt5Core_PRIVATE_INCLUDE_DIRS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants