Giter VIP home page Giter VIP logo

qtutilities's Introduction

qtutilities

Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models.

Build instructions

Qt utilities depends on c++utilities and is built in the same way. So checkout this repository for further instructions. The documentation for various CMake variables influencing the build is also provided in the c++utilities repository.

The library also depends on the following Qt modules (only the latest Qt 5 and Qt 6 version tested): core, gui, widgets

Some header files also require further Qt modules.

Copyright notice and license

Copyright © 2015-2024 Marius Kittler

All code is licensed under GPL-2-or-later.

qtutilities's People

Contributors

hrittich avatar martchus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qtutilities's Issues

3 tests fail

    Start 1: qtutilities_run_buttonoverlay_tests
1/3 Test #1: qtutilities_run_buttonoverlay_tests ......Subprocess aborted***Exception:   0.02 sec
    Start 2: qtutilities_run_dialogs_tests
2/3 Test #2: qtutilities_run_dialogs_tests ............Subprocess aborted***Exception:   0.02 sec
    Start 3: qtutilities_run_dbusnotification_tests
3/3 Test #3: qtutilities_run_dbusnotification_tests ...Subprocess aborted***Exception:   0.02 sec

0% tests passed, 3 tests failed out of 3

Total Test time (real) =   0.06 sec

The following tests FAILED:
          1 - qtutilities_run_buttonoverlay_tests (Subprocess aborted)
          2 - qtutilities_run_dialogs_tests (Subprocess aborted)
          3 - qtutilities_run_dbusnotification_tests (Subprocess aborted)
Errors while running CTest
Output from these tests are in: /usr/ports/devel/qtutilities/work/.build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
FAILED: CMakeFiles/test.util 
cd /usr/ports/devel/qtutilities/work/.build && /usr/local/bin/ctest --force-new-ctest-process
ninja: build stopped: subcommand failed.
*** Error code 1

Version: 6.13.5
clang-16
FreeBSD 14.0

a lot of includes are missing

A lot if includes are missing:
#include <c++utilities/io/path.h>
#include <c++utilities/application/argumentparser.h>
#include <c++utilities/conversion/stringconversion.h>
#include <c++utilities/io/ansiescapecodes.h>
#include <c++utilities/application/global.h>
#include <c++utilities/application/argumentparser.h>

How to build on macOS using Qt6?

-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Checking for one of the modules 'cppunit>=1.13.0'
CMake Warning at /Users/magnus/Downloads/tageditor-3.7.4/c++utilities/cmake/modules/TestTarget.cmake:49 (message):
  Unable to add test target because cppunit could not be located.
Call Stack (most recent call first):
  /Users/magnus/Downloads/tageditor-3.7.4/c++utilities/CMakeLists.txt:200 (include)


-- Using template for doxygen from own (c++utilities) source directory.
CMake Warning at /Users/magnus/Downloads/tageditor-3.7.4/c++utilities/cmake/modules/Doxygen.cmake:32 (message):
  Doxygen not found, unable to add target for generating API documentation
  for c++utilities
Call Stack (most recent call first):
  /Users/magnus/Downloads/tageditor-3.7.4/c++utilities/CMakeLists.txt:201 (include)


-- Using template for config.h from own (c++utilities) source directory.
-- D-Bus notifications disabled
-- Configuring project qtutilities
-- Using default CXX11 ABI  of libstdc++ (not forcing old CX11 ABI).
-- For the check target to work, it is required to call enable_testing() on the source directory root.
-- Building with Qt Widgets GUI.
-- Building WITHOUT Qt Quick GUI.
CMake Error at /Users/magnus/Downloads/tageditor-3.7.4/qtutilities/cmake/modules/QtLinkage.cmake:67 (find_package):
  By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Gui", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Gui" (requested
  version 5.6) with any of the following names:

    Qt5GuiConfig.cmake
    qt5gui-config.cmake

  Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
  "Qt5Gui_DIR" to a directory containing one of the above files.  If "Qt5Gui"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /Users/magnus/Downloads/tageditor-3.7.4/qtutilities/cmake/modules/QtConfig.cmake:80 (use_qt_module)
  /Users/magnus/Downloads/tageditor-3.7.4/qtutilities/CMakeLists.txt:193 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/magnus/Downloads/tageditor-3.7.4/bin/CMakeFiles/CMakeOutput.log".
See also "/Users/magnus/Downloads/tageditor-3.7.4/bin/CMakeFiles/CMakeError.log".
Warning: Already linked: /usr/local/Cellar/qt/6.3.1_1
To relink, run:
  brew unlink qt && brew link qt

RSVP GPL-2-only or GPL-2-or-later?

Hi @Martchus,

I got an email from Debian ftpmasters saying they'd rejected qtutilities because they believed it was GPL-2-only rather than GPL-2-or-later, eg the "(at your option) any later version" clause. Conventionally including the GPL-2 as a COPYING or LICENSE file has implied "(at your option) any later version", so I'm shocked.

For the record, which do you intend, and would you be willing document this somewhere in each repository?

Thanks,
Nicholas

please consider prefixing under "martchus-" namespace

Hi @Martchus,

Thank you for syncthingtray, and its dependencies. I have been planning to package them for Debian for some time. All derivatives such as Ubuntu will also benefit. Would you please consider prefixing cpp-utilities under "martchus-" namespace? eg: marchus-qtutilities rather than qtutilities. Providing a mechanism to do this during built-time would also work. The issue is that Debian has many packages, and names like qtutilities will eventually cause conflicts between packages. No need to rename the project, of course!

Thank you for your consideration,
Nicholas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.