@ Simon,
you can compile last 0.9-dev on Qt6.X without error?, or saw like me:
../sources/ElementsCollection/elementslocation.cpp: In member function ‘bool ElementsLocation::setXml(const QDomDocument&) const’:
../sources/ElementsCollection/elementslocation.cpp:783:11: error: ‘class QRegularExpression’ has no member named ‘exactMatch’; did you mean ‘NoMatch’?
if (rx.exactMatch(path_))
^~~~~~~~~~
NoMatch
../sources/ElementsCollection/elementslocation.cpp:788:10: error: ‘class QRegularExpression’ has no member named ‘cap’; did you mean ‘swap’?
rx.cap(1),
^~~
swap
../sources/ElementsCollection/elementslocation.cpp:789:10: error: ‘class QRegularExpression’ has no member named ‘cap’; did you mean ‘swap’?
rx.cap(2),
^~~
swap
2,251 2022-01-16 21:08:59
Re: Linux compile with Qt online versions (14 replies, posted in Code)
2,252 2022-01-16 20:39:51
Re: Régulation vanne 3 voies automate programmable (86 replies, posted in Chez nous les Pros)
Oui ouverture/fermeture de la porte avec l'heure.
J'ai demandé autour de moi + les forums, l'ensoleillement sur le papier c'est bien mais en pratique pas vraiment et de toute façon les poules se couchent un peu avant la nuit, donc même si la porte se ferme 15/20 minutes après le couché du soleil c'est pas bien grave.
J'ai pris un arduino avec un écran + pad et un petit moteur pas à pas. Le plus chiant en fait c'est de faire un montage qui tient à peu près dans le temps avec le maximum de récup.
L'autre solution pas cher serais d’investir dans un programmateur 24V et un moteur 24V genre moteur de portail électrique (j'ai la possibilité d'avoir les batteries). 0 programmation juste quelques fil peut être un ou deux relais et un peu de mécanique de bourrin (tasseau de bois pour faire des glissières et une planche ou un bout de tôle pour la porte).A voir.... (me connaissant c'est pas encore fait :-p )
2,253 2022-01-16 09:31:03
Re: Linux compile with Qt online versions (14 replies, posted in Code)
CMake Warning at build/_deps/kcoreaddons-src/CMakeLists.txt:7 (find_package):
Could not find a configuration file for package "ECM" that is compatible
with requested version "5.77.0". ..... What the fuck ...
laurent@debian:~$ apt-cache policy libkf5coreaddons-dev
libkf5coreaddons-dev:
Installé : 5.78.0-4
Candidat : 5.78.0-4
Table de version :
*** 5.78.0-4 500
500 http://deb.debian.org/debian bullseye/main amd64 Packages
100 /var/lib/dpkg/status
laurent@debian:~$ apt-cache policy libkf5widgetsaddons-dev
libkf5widgetsaddons-dev:
Installé : 5.78.0-2
Candidat : 5.78.0-2
Table de version :
*** 5.78.0-2 500
500 http://deb.debian.org/debian bullseye/main amd64 Packages
100 /var/lib/dpkg/statuslaurent@debian:~/kde/mkspecs/modules$ cat qt_KCoreAddons.pri
QT.KCoreAddons.VERSION = 5.91.0
QT.KCoreAddons.MAJOR_VERSION = 5
QT.KCoreAddons.MINOR_VERSION = 91
QT.KCoreAddons.PATCH_VERSION = 0
QT.KCoreAddons.name = KF5CoreAddons
QT.KCoreAddons.module = KF5CoreAddons
QT.KCoreAddons.defines =
QT.KCoreAddons.includes = $$PWD/../../include/KF6/KCoreAddons
QT.KCoreAddons.private_includes =
QT.KCoreAddons.libs = $$PWD/../../lib/x86_64-linux-gnu
QT.KCoreAddons.depends = core
QT.KCoreAddons.module_config = laurent@debian:~/Qt/6.2.2/gcc_64/mkspecs/modules$ cat qt_KCoreAddons.pri
QT.KCoreAddons.VERSION = 5.91.0
QT.KCoreAddons.MAJOR_VERSION = 5
QT.KCoreAddons.MINOR_VERSION = 91
QT.KCoreAddons.PATCH_VERSION = 0
QT.KCoreAddons.name = KF5CoreAddons
QT.KCoreAddons.module = KF5CoreAddons
QT.KCoreAddons.defines =
QT.KCoreAddons.includes = ~/kde/include/KF6/KCoreAddons
QT.KCoreAddons.private_includes =
QT.KCoreAddons.libs = ~/kde/lib/x86_64-linux-gnu
QT.KCoreAddons.depends = core
QT.KCoreAddons.module_config = laurent@debian:~/qet_git/build$ /usr/local/bin/cmake .. -G Ninja -DBUILD_WITH_QT6=ON -DEXCLUDE_DEPRECATED_BEFORE_AND_AT=CURRENT
-- The CXX compiler identification is GNU 8.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
_____________________________________________________________________
Copyright 2006 The QElectroTech Team
This file is part of QElectroTech.
QElectroTech is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
QElectroTech is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
_____________________________________________________________________
Add sub directorie tests
.____________________________________________________________________
. PROJECT_NAME :unittests
. PROJECT_SOURCE_DIR :/home/laurent/qet_git/tests
. Add sub directorie catch
..___________________________________________________________________
.. PROJECT_NAME :C_unittests
.. PROJECT_SOURCE_DIR :/home/laurent/qet_git/tests/catch
.. QET_DIR :/home/laurent/qet_git
.. QET_COMPONENTS is not set !!! I set them up !!!
- qet_compilation_vars
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
.. QT_VERSION_MAJOR :6
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
-- Found WrapVulkanHeaders: /usr/include
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1d")
-- Found WrapOpenSSLHeaders: /usr/include (found version "1.1.1d")
- fetch_kdeaddons
- fetch_singleapplication
- fetch_pugixml
.. CATCH_INCLUDE_DIR is not set,assuming Catch2 can be found automatically in your system
. Add sub directorie googletest
..___________________________________________________________________
.. PROJECT_NAME :G_unittests
.. PROJECT_SOURCE_DIR :/home/laurent/qet_git/tests/googletest
.. QET_DIR :/home/laurent/qet_git
.. QET_COMPONENTS is not set !!! I set them up !!!
- qet_compilation_vars
.. QT_VERSION_MAJOR :6
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
CMake Deprecation Warning at build/_deps/gtest-src/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 8.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Deprecation Warning at build/_deps/gtest-src/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at build/_deps/gtest-src/googletest/CMakeLists.txt:56 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found PythonInterp: /usr/bin/python (found version "2.7.16")
- fetch_kdeaddons
- fetch_singleapplication
- fetch_pugixml
. Add sub directorie googlemock
..___________________________________________________________________
.. PROJECT_NAME :G_unitmocktests
.. PROJECT_SOURCE_DIR :/home/laurent/qet_git/tests/googlemock
.. QET_DIR :/home/laurent/qet_git
.. QET_COMPONENTS is not set !!! I set them up !!!
- qet_compilation_vars
.. QT_VERSION_MAJOR :6
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
- fetch_kdeaddons
- fetch_singleapplication
- fetch_pugixml
. Add sub directorie qttest
..___________________________________________________________________
.. PROJECT_NAME :qt_unittests
.. PROJECT_SOURCE_DIR :/home/laurent/qet_git/tests/qttest
.. QET_DIR :/home/laurent/qet_git
.. QET_COMPONENTS is not set !!! I set them up !!!
- qet_compilation_vars
.. QT_VERSION_MAJOR :6
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
- fetch_kdeaddons
- fetch_singleapplication
- fetch_pugixml
- paths_compilation_installation
- start_options
- developer_options
- git_update_submodules
- git_last_commit_sha
- fetch_kdeaddons
CMake Warning at build/_deps/ecm-src/docs/CMakeLists.txt:10 (find_package):
No "FindSphinx.cmake" found in CMAKE_MODULE_PATH.
CMake Warning (dev) at build/_deps/ecm-src/docs/CMakeLists.txt:10 (find_package):
FindSphinx.cmake must either be part of this project itself, in this case
adjust CMAKE_MODULE_PATH so that it points to the correct location inside
its source tree.
Or it must be installed by a package which has already been found via
find_package(). In this case make sure that package has indeed been found
and adjust CMAKE_MODULE_PATH to contain the location where that package has
installed FindSphinx.cmake. This must be a location provided by that
package. This error in general means that the buildsystem of this project
is relying on a Find-module without ensuring that it is actually available.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning at build/_deps/ecm-src/docs/CMakeLists.txt:20 (find_package):
No "FindQCollectionGenerator.cmake" found in CMAKE_MODULE_PATH.
CMake Warning (dev) at build/_deps/ecm-src/docs/CMakeLists.txt:20 (find_package):
FindQCollectionGenerator.cmake must either be part of this project itself,
in this case adjust CMAKE_MODULE_PATH so that it points to the correct
location inside its source tree.
Or it must be installed by a package which has already been found via
find_package(). In this case make sure that package has indeed been found
and adjust CMAKE_MODULE_PATH to contain the location where that package has
installed FindQCollectionGenerator.cmake. This must be a location provided
by that package. This error in general means that the buildsystem of this
project is relying on a Find-module without ensuring that it is actually
available.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The following OPTIONAL packages have been found:
* PythonInterp
* Qt6LinguistTools
* Qt6CoreTools (required version >= 6.2.2)
* OpenGL
* WrapVulkanHeaders
* Qt6GuiTools (required version >= 6.2.2)
* Qt6DBusTools (required version >= 6.2.2)
* Qt6DBus (required version >= 6.2.2)
* Qt6Gui (required version >= 6.2.2)
* Qt6PrintSupport
* Qt6Xml
* Qt6Svg
* Qt6Sql
* OpenSSL
* WrapOpenSSLHeaders
* Qt6Network
* Qt6WidgetsTools (required version >= 6.2.2)
* Qt6Widgets
* Qt6Concurrent
* Qt6Test
-- The following REQUIRED packages have been found:
* QT
* Threads
* Qt6
-- The following features have been disabled:
* BUILD_HTML_DOCS, Generate HTML documentation for installed modules.
* BUILD_MAN_DOCS, Generate man page documentation for installed modules.
* BUILD_QTHELP_DOCS, Generate QtHelp documentation for installed modules.
* BUILD_TESTING, Build automated tests.
-- The following OPTIONAL packages have not been found:
* XKB (required version >= 0.5.0), XKB API common to servers and clients., <http://xkbcommon.org>
* Sphinx (required version >= 1.2), Tool to generate documentation., <https://www.sphinx-doc.org/>
Required to build documentation for Extra CMake Modules.
* QCollectionGenerator, Qt help collection generator., <https://www.qt.io/>
Required to build Extra CMake Modules documentation in Qt Help format.
CMake Warning at build/_deps/kcoreaddons-src/CMakeLists.txt:7 (find_package):
Could not find a configuration file for package "ECM" that is compatible
with requested version "5.77.0".
The following configuration files were considered but not accepted:
/usr/share/ECM/cmake/ECMConfig.cmake, version: 5.54.0
--
* ECM (required version >= 5.77.0), Extra CMake Modules., <https://commits.kde.org/extra-cmake-modules>
CMake Error at /usr/local/share/cmake-3.22/Modules/FeatureSummary.cmake:464 (message):
feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
run.
Call Stack (most recent call first):
build/_deps/kcoreaddons-src/CMakeLists.txt:9 (feature_summary)
-- Configuring incomplete, errors occurred!
See also "/home/laurent/qet_git/build/CMakeFiles/CMakeOutput.log".
See also "/home/laurent/qet_git/build/CMakeFiles/CMakeError.log".
2,254 2022-01-15 21:08:17
Re: Linux compile with Qt online versions (14 replies, posted in Code)
https://doc-snapshots.qt.io/qt6-dev/qre … ssion.html
https://doc.qt.io/qt-5/qregularexpressi … gexp-users
Porting from QRegExp's Exact Matching
Exact matching indicates whether the regular expression matches the entire subject string. For example, the classes yield on the subject string "abc123":QRegExp::exactMatch() QRegularExpressionMatch::hasMatch()
"\\d+" false true
"[a-z]+\\d+" true true
Exact matching is not reflected in QRegularExpression. If you want to be sure that the subject string matches the regular expression exactly, you can wrap the pattern using the anchoredPattern() function:QString p("a .*|pattern");
// re matches exactly the pattern string p
QRegularExpression re(QRegularExpression::anchoredPattern(p));
Porting from QRegExp's Partial Matching
When using QRegExp::exactMatch(), if an exact match was not found, one could still find out how much of the subject string was matched by the regular expression by calling QRegExp::matchedLength(). If the returned length was equal to the subject string's length, then one could conclude that a partial match was found.QRegularExpression supports partial matching explicitly by means of the appropriate MatchType.
https://stackoverflow.com/questions/685 … tch-in-qt6
https://github.com/Komet/MediaElch/issues/1086
bugwelle commented on 16 Dec 2020 •
edited
QRegEx is deprecated and was removed in Qt 6. If we want to upgrade, we need to replace it.Notable differences:
https://doc.qt.io/qt-5/qregularexpressi … gexp-users
Upgrade step by step. We use similar regex names throughout MediaElch. So we could:replace rx.cap( by match.captured(
replace QRegEx by QRegularExpression
replace if (rx.indexIn( by QRegularExpressionMatch match = rx.match(searchString); if (match.hasMatch()) and update the invalid code parts
replace .setCaseSensitivity by .setPatternOptions
For lastIndexIn patterns, we can rewrite it using QString::lastIndexIn:rx.setPattern("[-\\s_]");
while (name.length() > 0 && rx.lastIndexIn(name) == name.length() - 1) {
name.chop(1);
}
becomesrx.setPattern("[-\\s_]");
while (name.length() > 0 && name.lastIndexOf(rx) == name.length() - 1) {
name.chop(1);
}
2,255 2022-01-15 19:51:21
Re: Linux compile with Qt online versions (14 replies, posted in Code)
@Simon :
or for Qt6
cp ~/kde/usr/mkspecs/modules/*.pri ~/Qt/6.0.0/gcc_64/mkspecs/modules/ cp -r ~/kde/usr/include/* ~/Qt/6.0.0/gcc_64/include/ cp -r ~/kde/usr/lib64 ~/Qt/6.0.0/gcc_64/ cp -r ~/kde/usr/bin ~/Qt/6.0.0/gcc_64/
Install Qt6.2 before with MaintenanceTool
Edit ~/.bashrc :
PATH=.:~/Qt/6.2.2/gcc_64/bin:$PATH
export PATH=~/kde/src/kdesrc-build:$PATHApply change
source ~/.bashrcEdit qt5.conf
sudo nano /usr/lib/x86_64-linux-gnu/qtchooser/qt5.confVerify:
qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/home/laurent/Qt/6.2.2/gcc_64/bin"
QTLIBDIR="/home/laurent/Qt/6.2.2/gcc_64/lib"qmake --version
QMake version 3.1
Using Qt version 6.2.2 in /home/laurent/Qt/6.2.2/gcc_64/libUpdate Cmake :
https://github.com/Kitware/CMake/
laurent@debian:~/Téléchargements/CMake-master$
./bootstrap && make && sudo make installUpdate ~/.kdesrc-buildrc
laurent@debian:~$ cat ~/.kdesrc-buildrc # This is a sample kdesrc-build configuration file appropriate for KDE
# Frameworks 5-based build environments.
#
# See the kdesrc-buildrc-sample for explanations of what the options do, or
# view the manpage or kdesrc-build documentation at
# https://docs.kde.org/trunk5/en/extragea … index.html
global
branch-group kf5-qt5
kdedir ~/kde # Where to install KF5-based software
# Uncomment this and edit value to choose a different Qt5
qtdir ~/Qt/6.2.2/gcc_64 # Where to find Qt5# Where to download source code. By default the build directory and
# logs will be kept under this directory as well.
source-dir ~/kde
end global# Instead of specifying modules here, the current best practice is to refer to
# KF5 module lists maintained with kdesrc-build by the KF5 developers. As new
# modules are added or modified, the kdesrc-build KF5 module list is altered to
# suit, and when you update kdesrc-build you will automatically pick up the
# needed changes.# NOTE: You MUST change the path below to include the actual path to your
# kdesrc-build installation.
#include ~/kde/src/kdesrc-build/kf6-qt6-build-include
include ~/kde/src/kdesrc-build/kf6-frameworks-build-include
# If you wish to maintain the module list yourself that is possible, simply
# look at the files pointed to above and use the "module-set" declarations that
# they use, with your own changes.# It is possible to change the options for modules loaded from the file
# included above (since it's not possible to add a module that's already been
# included), e.g.
options kcoreaddons
make-options -j16
end options
--initial-setup and build with kdesrc-build kwidgetsaddons karchive kcoreaddons
laurent@debian:~$ ./kdesrc-build --initial-setup
laurent@debian:~$ ./kdesrc-build kwidgetsaddons karchive kcoreaddons --include-dependencies
Updating sysadmin-repo-metadata (to branch master)
git gave error exit code 129
Building extra-cmake-modules from frameworks (1/4)
No source update, but the last configure failed
Updating extra-cmake-modules (to branch master)
git gave error exit code 129
Source update complete for extra-cmake-modules: no files affected
Preparing build system for extra-cmake-modules.
Removing files in build directory for extra-cmake-modules
Old build system cleaned, starting new build system.
Running cmake targeting Unix Makefiles...
Compiling... succeeded (after 0 seconds)
Installing.. succeeded (after 0 seconds)
Building karchive from frameworks (2/4)
No source update, but the last configure failed
Updating karchive (to branch master)
git gave error exit code 129
Source update complete for karchive: no files affected
Preparing build system for karchive.
Removing files in build directory for karchive
Old build system cleaned, starting new build system.
Running cmake targeting Unix Makefiles...
Compiling... succeeded (after 30 seconds)
Note: - 1 - compile warnings
Installing.. succeeded (after 0 seconds)
Building kcoreaddons from frameworks (3/4)
No source update, but the last configure failed
Updating kcoreaddons (to branch master)
git gave error exit code 129
Source update complete for kcoreaddons: no files affected
Preparing build system for kcoreaddons.
Removing files in build directory for kcoreaddons
Old build system cleaned, starting new build system.
Running cmake targeting Unix Makefiles...
Compiling... succeeded (after 12 seconds)
Note: --- 21 --- compile warnings
Installing.. succeeded (after 0 seconds)
Building kwidgetsaddons from frameworks (4/4)
No source update, but the last configure failed
Updating kwidgetsaddons (to branch master)
git gave error exit code 129
Source update complete for kwidgetsaddons: no files affected
Preparing build system for kwidgetsaddons.
Removing files in build directory for kwidgetsaddons
Old build system cleaned, starting new build system.
Running cmake targeting Unix Makefiles...
Compiling... succeeded (after 3 minutes, and 48 seconds)
Note: ---- 86 ---- compile warnings
Installing.. succeeded (after 0 seconds)
<<< PACKAGES SUCCESSFULLY BUILT >>>
extra-cmake-modules
karchive
kcoreaddons
kwidgetsaddons
* Installing "sample-kde-env-master.sh" would overwrite an existing file:
* /home/laurent/.config/kde-env-master.sh
* If this is acceptable, please delete the existing file and re-run,
* or pass --delete-my-settings and re-run.
:-)
Your logs are saved in file:///home/laurent/kde/log/2022-01-15-02Setup Qt6.2.2:
cp ~/kde/mkspecs/modules/*.pri ~/Qt/6.2.2/gcc_64/mkspecs/modules/
cp -r ~/kde/include/KF6 ~/Qt/6.2.2/gcc_64/include/
cp -r ~/kde/lib/x86_64-linux-gnu ~/Qt/6.2.2/gcc_64/
cp -r ~/kde/bin ~/Qt/6.2.2/gcc_64/Go to QET source directory
mkdir build && cd build
#/usr/local/bin/cmake .. -G Ninja ## not working yet
qmake ../qelectrotech.pro
make -j24Compile error ..with Qt6.2.2 and KF6
../sources/ElementsCollection/elementslocation.cpp: In member function ‘bool ElementsLocation::setXml(const QDomDocument&) const’:
../sources/ElementsCollection/elementslocation.cpp:783:11: error: ‘class QRegularExpression’ has no member named ‘exactMatch’; did you mean ‘NoMatch’?
if (rx.exactMatch(path_))
^~~~~~~~~~
NoMatch
../sources/ElementsCollection/elementslocation.cpp:788:10: error: ‘class QRegularExpression’ has no member named ‘cap’; did you mean ‘swap’?
rx.cap(1),
^~~
swap
../sources/ElementsCollection/elementslocation.cpp:789:10: error: ‘class QRegularExpression’ has no member named ‘cap’; did you mean ‘swap’?
rx.cap(2),
^~~
swap
g++ -c -pipe -std=c++17 -O2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQET_ALLOW_OVERRIDE_CED_OPTION -DQET_ALLOW_OVERRIDE_CTBTD_OPTION -DQET_ALLOW_OVERRIDE_CD_OPTION -DQAPPLICATION_CLASS=QApplication -DQT_MESSAGELOGCONTEXT -DGIT_COMMIT_SHA=\"d7e2ef283a6c9b48f2e405fa7bd0f46dd3500c0a\" -DQET_LANG_PATH=/usr/local/share/qelectrotech/lang/ -DQET_COMMON_COLLECTION_PATH=/usr/local/share/qelectrotech/elements/ -DQET_COMMON_TBT_PATH=/usr/local/share/qelectrotech/titleblocks/ -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I../../qet_git -I. -I../SingleApplication -I../sources/ui -I../sources/TerminalStrip/ui -I../../Qt/6.2.2/gcc_64/include -I../../Qt/6.2.2/gcc_64/include/QtSvg -I../../Qt/6.2.2/gcc_64/include/QtPrintSupport -I../../Qt/6.2.2/gcc_64/include/KF6/KWidgetsAddons -I../../Qt/6.2.2/gcc_64/include/QtWidgets -I../../Qt/6.2.2/gcc_64/include/QtGui -I../../Qt/6.2.2/gcc_64/include/QtNetwork -I../../Qt/6.2.2/gcc_64/include/QtXml -I../../Qt/6.2.2/gcc_64/include/QtSql -I../../Qt/6.2.2/gcc_64/include/QtConcurrent -I../../Qt/6.2.2/gcc_64/include/KF6/KCoreAddons -I../../Qt/6.2.2/gcc_64/include/QtCore -Irelease -I. -I../../Qt/6.2.2/gcc_64/mkspecs/linux-g++ -o release/xmlprojectelementcollectionitem.o ../sources/ElementsCollection/xmlprojectelementcollectionitem.cpp
make[1]: *** [Makefile.Release:62978: release/elementslocation.o] Error 1
make[1]: *** Attente des tâches non terminées....
make[1] : on quitte le répertoire « /home/laurent/qet_git/build »
make: *** [Makefile:42: release] Error 2
2,256 2022-01-15 16:19:09
Re: Qt 6.0 development and qelectrotech (157 replies, posted in Code)
2,257 2022-01-15 11:29:24
Re: QElectroTech howto found on the WWW (53 replies, posted in Videos howto)
2,258 2022-01-13 17:13:24
Re: Position du texte pour les éléments liés (ex:3/3-C4) et rep de contact (5 replies, posted in FR : Aide, suggestions, discussions, ...)
2,259 2022-01-13 14:11:00
Re: Einstellung Sprache (21 replies, posted in DE : Hilfe, Vorschläge, Unterhaltungen...)
Launch directly with double click on qelectrotech.exe again launches program with French language UI
Chain to translate is hard coded in French in the code, So when you double click on qelectrotec.exe you bypass the binary translations (qet_*.qm files contained in the lang folder) and launches program with French language UI.
set command=bin\qelectrotech.exe -platform windows:fontengine=freetype --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ --config-dir=conf/ -style plastique %*
@start %command%
2,260 2022-01-13 14:04:56
Re: Position du texte pour les éléments liés (ex:3/3-C4) et rep de contact (5 replies, posted in FR : Aide, suggestions, discussions, ...)
Tu as un réglage séparé de l'emplacement des xref suivant le type d'esclave.
2,261 2022-01-12 14:05:31
Re: Einstellung Sprache (21 replies, posted in DE : Hilfe, Vorschläge, Unterhaltungen...)
If you create a new shortcut to launch QET, make link to Lancer QET.bat file.
laurent@debian:~/Qet-svn/git/qet/misc$ cat Lancer\ QET.bat
@echo off
rem Se rend dans le dossier qui convient
set current_dir=%~dp0
cd /d %current_dir%
rem Met la collection QET en lecture seule
attrib +r elements/* /S /D
rem lance QElectroTech
set command=bin\qelectrotech.exe -platform windows:fontengine=freetype --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ --config-dir=conf/ -style plastique %*
@start %command%
2,262 2022-01-12 14:01:44
Re: electro-pneumatic diagramm (2 replies, posted in EN : Help, suggestions, discussions, ...)
2,263 2022-01-12 12:23:02
Re: Qt 6.0 development and qelectrotech (157 replies, posted in Code)
Hi Simon,
Yes I read it, but didn't have time to look.
I had to reply to other more important emails.
I resumed my work following a sick leave of 2 months because of a big burn out and other health problem.
When I leave work I am exhausted and not always have the time or strength to address these issues.
2,264 2022-01-11 13:13:18
Re: Nouveautés de la version de développement 0.9 (236 replies, posted in News)
WoW ;-)
What a pleasant surprise this morning when I opened my mailbox...
It is the world's most populous country, with a population of more than 1.4 billion.
Good morning,
I have recently discovered your project and like to introduce this to my
workmates as an alternative to the currently used software to do our
electrical drawings (which costs us money and has some flaws,
unfortunately).Given the fact that our guys are mostly Chinese and would rather like to use
a GUI in their language, I'd like to ask about the possibility to add a
Chinese translation to the software.Is there a process already going on? If not, do you think I could contribute
to your project in that way or isn't it on your roadmap?I'd be glad to hear your opinion about this!
Best regards from Zhongshan (near Hongkong),
Stephan
2,265 2022-01-08 16:08:53
Re: Qt 6.0 development and qelectrotech (157 replies, posted in Code)
Hi Simon,
for now, I saw no support for Qt6.x on MXE cross-compile for Windows,
https://github.com/mxe/mxe/issues/2594
No Debian maintainers for Qt 6.x and no volunteers to package it yet.
https://lists.qt-project.org/pipermail/ … 40110.html
https://www.phoronix.com/scan.php?page= … aintainers
About KF5 to KF6 only KCoreAddons seem compatible for now
https://www.volkerkrause.eu/2021/12/11/ … t-qt6.html
Nothing is ready yet.
I think 0.9 wil be released when Joshua was finish new terminal block, but the road is long.
2,266 2022-01-07 15:03:11
Re: Snap packages (8 replies, posted in News)
13:16:18.851 Info: "QElectroTech V 0.90-DEV~d932f8ea.snap"
13:16:18.851 Info: "Compilation : GCC 9.3.0"
13:16:18.852 Info: "Built with Qt 5.15.3 - Date : Jan 5 2022 : 11:05:49"
13:16:18.852 Info: "Run with Qt 5.15.3 using 8 thread(s)"
13:16:18.852 Info: "CPU : model name\t: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz\n"
13:16:18.852 Info: "RAM Total : 15828 MB"
13:16:18.852 Info: "RAM Available : 12145 MB"
13:16:18.852 Info: "GPU : "
13:16:18.852 Info: "GPU RAM : @ToDo"
13:16:18.852 Info: "OS : linux - x86_64 - Version : Ubuntu Core 20 - Kernel : 5.4.0-90-generic"
13:16:18.852 Info: *** Qt screens ***
13:16:18.852 Info: "( 1 : 3840 x 2160 )"
13:16:19.142 Info: Elements collection reload
13:16:19.164 Info: Elements collection finished to be loaded
13:53:59.488 Info: Start-up
13:53:59.526 Info: debugging enabled: false
13:53:59.526 Info: Qt library version: 5.15.3
13:53:59.526 Info: Qt library location default prefix: "/usr"
13:53:59.527 Info: Qt library location documentation: "/usr/share/qt5/doc"
13:53:59.527 Info: Qt library location headers: "/usr/include/x86_64-linux-gnu/qt5"
13:53:59.527 Info: Qt library location libraries: "/usr/lib/x86_64-linux-gnu"
13:53:59.527 Info: Qt library location executables: "/usr/lib/x86_64-linux-gnu/qt5/libexec"
13:53:59.527 Info: Qt library location Qt binaries: "/usr/lib/qt5/bin"
13:53:59.527 Info: Qt library location Qt plugins: "/usr/lib/x86_64-linux-gnu/qt5/plugins"
13:53:59.527 Info: Qt library location installed QML extensions: "/usr/lib/x86_64-linux-gnu/qt5/imports"
13:53:59.527 Info: Qt library location installed QML extensions: "/usr/lib/x86_64-linux-gnu/qt5/qml"
13:53:59.527 Info: Qt library location dependent Qt data: "/usr/lib/x86_64-linux-gnu/qt5"
13:53:59.527 Info: Qt library location independent Qt data: "/usr/share/qt5"
13:53:59.527 Info: Qt library location translation: "/usr/share/qt5/translations"
13:53:59.527 Info: Qt library location examples: "/usr/lib/x86_64-linux-gnu/qt5/examples"
13:53:59.527 Info: Qt library location Qt testcases: "/usr/tests"
13:53:59.527 Info: Qt library location Qt settings: "/etc/xdg"
13:53:59.527 Info: "GitRevision d932f8ea01963f8f505714835f2ee24d029ef5fb"
13:53:59.527 Info: "QElectroTech V 0.90-DEV~d932f8ea.snap"
13:53:59.528 Info: "Compilation : GCC 9.3.0"
13:53:59.528 Info: "Built with Qt 5.15.3 - Date : Jan 5 2022 : 11:05:49"
13:53:59.528 Info: "Run with Qt 5.15.3 using 8 thread(s)"
13:53:59.528 Info: "CPU : model name\t: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz\n"
13:53:59.528 Info: "RAM Total : 15828 MB"
13:53:59.528 Info: "RAM Available : 12445 MB"
13:53:59.528 Info: "GPU : "
13:53:59.528 Info: "GPU RAM : @ToDo"
13:53:59.528 Info: "OS : linux - x86_64 - Version : Ubuntu Core 20 - Kernel : 5.4.0-90-generic"
13:53:59.528 Info: *** Qt screens ***
13:53:59.528 Info: "( 1 : 3840 x 2160 )"
13:53:59.817 Info: Elements collection reload
13:53:59.838 Info: Elements collection finished to be loaded
13:59:05.122 Info: Start-up
13:59:05.161 Info: debugging enabled: false
13:59:05.161 Info: Qt library version: 5.15.3
13:59:05.161 Info: Qt library location default prefix: "/usr"
13:59:05.161 Info: Qt library location documentation: "/usr/share/qt5/doc"
13:59:05.161 Info: Qt library location headers: "/usr/include/x86_64-linux-gnu/qt5"
13:59:05.161 Info: Qt library location libraries: "/usr/lib/x86_64-linux-gnu"
13:59:05.161 Info: Qt library location executables: "/usr/lib/x86_64-linux-gnu/qt5/libexec"
13:59:05.162 Info: Qt library location Qt binaries: "/usr/lib/qt5/bin"
13:59:05.162 Info: Qt library location Qt plugins: "/usr/lib/x86_64-linux-gnu/qt5/plugins"
13:59:05.162 Info: Qt library location installed QML extensions: "/usr/lib/x86_64-linux-gnu/qt5/imports"
13:59:05.162 Info: Qt library location installed QML extensions: "/usr/lib/x86_64-linux-gnu/qt5/qml"
13:59:05.162 Info: Qt library location dependent Qt data: "/usr/lib/x86_64-linux-gnu/qt5"
13:59:05.162 Info: Qt library location independent Qt data: "/usr/share/qt5"
13:59:05.162 Info: Qt library location translation: "/usr/share/qt5/translations"
13:59:05.162 Info: Qt library location examples: "/usr/lib/x86_64-linux-gnu/qt5/examples"
13:59:05.162 Info: Qt library location Qt testcases: "/usr/tests"
13:59:05.162 Info: Qt library location Qt settings: "/etc/xdg"
13:59:05.162 Info: "GitRevision d932f8ea01963f8f505714835f2ee24d029ef5fb"
13:59:05.162 Info: "QElectroTech V 0.90-DEV~d932f8ea.snap"
13:59:05.162 Info: "Compilation: GCC 9.3.0"
13:59:05.162 Info: "Built with Qt 5.15.3 - Date : Jan 5 2022 : 11:05:49"
13:59:05.162 Info: "Run with Qt 5.15.3 using 8 thread(s)"
13:59:05.162 Info: "CPU : model name\t: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz\n"
13:59:05.162 Info: "RAM Total : 15828 MB"
13:59:05.162 Info: "RAM Available : 12407 MB"
13:59:05.162 Info: "GPU : "
13:59:05.162 Info: "GPU RAM : @ToDo"
13:59:05.162 Info: "OS : linux - x86_64 - Version : Ubuntu Core 20 - Kernel : 5.4.0-90-generic"
13:59:05.162 Info: *** Qt screens ***
13:59:05.162 Info: "( 1 : 3840 x 2160 )"
13:59:05.473 Info: Elements collection reload
13:59:05.826 Info: Elements collection finished to be loaded 13:59:05.473 Info: Elements collection reload
13:59:05.826 Info: Elements collection finished to be loaded
~8 000 Elements in collection loaded in 0.353 seconds
2,267 2022-01-07 14:53:29
Re: Snap packages (8 replies, posted in News)
If you don't have common collection with Snap repository on QET 0.9-dev.
Edit file
~/snap/qelectrotech/current/.config/QElectroTech/Change common-collection-path=defaut to /snap/qelectrotech/current/usr/local/share/qelectrotech/elements/
[elements-collections]
common-collection-path=/snap/qelectrotech/current/usr/local/share/qelectrotech/elements/
custom-collection-path=default
custom-tbt-path=default
2,268 2022-01-07 11:09:49
Re: QElectroTech howto found on the WWW (53 replies, posted in Videos howto)
2,269 2022-01-07 11:08:41
Re: elements cellule MT (4 replies, posted in FR : Aide, suggestions, discussions, ...)
S'il en manque ou que tu en crée de nouveaux n'hésites pas à nous les envoyer.
2,270 2022-01-06 16:32:22
Re: Flatpak packages 0.100-dev (32 replies, posted in News)
https://flathub.org/apps/details/org.qe … lectroTech
Additional information
Updated
January 6, 2022
Version
0.8.0
2,271 2022-01-06 16:11:49
Re: elements cellule MT (4 replies, posted in FR : Aide, suggestions, discussions, ...)
Tu as le choix, j'en avais crée pas mal de symboles à l'époque pour mes schémas :
[15:09:44] laurent@debian:~/Qet-svn/git/qet/elements/10_electric/10_allpole/450_high_voltage$ tree
.
├── appareil_ferme_cle_prisonniere.elmt
├── appareil_ouvert_cle_prisonniere.elmt
├── cle_absente_pene_rentree_manoeuvre_libre.elmt
├── cle_absente_pene_sorti.elmt
├── cle_libre_pene_rentree_manoeuvre_libre.elmt
├── cle_libre_pene_sorti.elmt
├── cle_prisioniere_pene_rentree_manoeuvre_libre.elmt
├── cle_prisionniere_pene_rentree_manoeuvre_bloquee.elmt
├── contacteur_crm.elmt
├── contacteur_f_crm.elmt
├── disj_debrochable_dm1-w.elmt
├── disj_debrochable_dm1-z.elmt
├── disjoncteur_dm1-a.elmt
├── disjoncteur_dm1-d.elmt
├── disjoncteur_dm1-s.elmt
├── disjoncteur_dm2.elmt
├── eclateur_double.elmt
├── eclateur_simple.elmt
├── element_flexible.elmt
├── hvpole.elmt
├── interrupteur_imb.elmt
├── interrupteur_imc.elmt
├── interrupteur_im.elmt
├── interrupteur_pm.elmt
├── interrupteur_qmb.elmt
├── interrupteur_qmc.elmt
├── interrupteur_qm.elmt
├── interrupteur_sectionneur_de_terre.elmt
├── ligne_aerienne.elmt
├── ligne_immergee.elmt
├── ligne_souterraine.elmt
├── ligne_triphase_2.elmt
├── ligne_triphase.elmt
├── qet_directory
├── serrure_cle_tjs_libre.elmt
├── serrure_cle_tjs_prisionniere.elmt
├── signal_capacitif.elmt
└── transf_cm.elmt
0 directories, 38 files
2,272 2022-01-06 13:10:15
Re: Dons (13 replies, posted in Bar Fourre-tout)
Renew qelectrotech.org domain for 5 years 93,96 EUR (It costs much less than paying annually).
Send 400€ to Joshua to motivate him to continue the hard work on the new terminal block generator ^^.
Thanks for your support.
2,273 2022-01-06 11:02:35
Re: Nouveautés de la version de développement 0.9 (236 replies, posted in News)
Bonjour je pense qu'il serait utile de rajouter un onglet "Ouvrir Example"
Bonne idée, mais tres compliqué à mettre en place.
Les chemin d’accès selon le système d'exploitation, le paquage seront très différents, exemple:
Paquets Linux Debian, Ubuntu, etc
/usr/share/qelectrotech/examplesFlatpak
/var/lib/flatpak/app/org.qelectrotech.QElectroTech/current/active/files/share/qelectrotech/examplesSnap
/snap/qelectrotech/current/usr/local/share/qelectrotech/examples/Linux Compile
/usr/local/share/qelectrotech/examplesWindows installer
C:\Program Files\QElectroTech\examplesMacOS
Il n'est pas installé automatiquement par le bundle, il faut prendre le dossier examples apres montage du bundle et le copier sur le bureau par exemple.
2,274 2022-01-06 10:55:17
Re: Flatpak packages 0.100-dev (32 replies, posted in News)
09:50:35.855 Info: "QElectroTech V 0.90-DEV+d932f8ea0"
09:50:35.855 Info: "Compilation: GCC 10.2.0"
09:50:35.855 Info: "Built with Qt 5.15.3 - Date : Jan 5 2022 : 10:18:34"
09:50:35.855 Info: "Run with Qt 5.15.3 using 48 thread(s)"
09:50:35.855 Info: "CPU : model name\t: AMD Ryzen Threadripper 3960X 24-Core Processor\n"
09:50:35.855 Info: "RAM Total : 15640 MB"
09:50:35.855 Info: "RAM Available : 14490 MB"
09:50:35.856 Info: "GPU : Red Hat, Inc. Virtio GPU (rev 01)\n"
09:50:35.856 Info: "GPU RAM : @ToDo"
09:50:35.856 Info: "OS : linux - x86_64 - Version : KDE Flatpak runtime - Kernel : 5.10.0-10-amd64"
09:50:35.856 Info: *** Qt screens ***
09:50:35.856 Info: "( 1 : 1920 x 1200 )"
09:50:36.084 Info: Elements collection reload
09:50:36.642 Info: Elements collection finished to be loaded ~8 000 Elements in collection loaded in 0.558 s ...
2,275 2022-01-06 10:39:31
Re: Flatpak packages 0.100-dev (32 replies, posted in News)
Add fix for network printer on flathub QET stable (0.8)
https://github.com/flathub/org.qelectro … 29e2fdfb5f

