I have another question, if I want to add a new component, how should I add it, can I add it directly in the QElectrorech software? Or do you add new components through a .elmt file.
The components are the components used in the internal work of our company.
1 2023-11-28 11:29:10
Re: How to debug QElectrotech source code (21 replies, posted in Code)
2 2023-11-28 11:19:38
Re: How to debug QElectrotech source code (21 replies, posted in Code)
Well, I know what to do, now that the climate is getting colder, I wish you good health
3 2023-11-28 09:20:26
Re: How to debug QElectrotech source code (21 replies, posted in Code)
scorpio810 Hello,I would like to ask if QElectrorech will automatically generate a tabular type of terminal block after drawing the circuit diagram in QElectrorech
4 2023-11-22 09:45:57
Re: How to debug QElectrotech source code (21 replies, posted in Code)
I want to translate the names in the framework:"default", "double-logo", etc.
into Chinese, what should I do?
5 2023-11-22 02:55:45
Re: How to debug QElectrotech source code (21 replies, posted in Code)
I don't know how to upload the link, can I contact you guys when I'm done translating the collection?
6 2023-11-21 12:37:38
Re: How to debug QElectrotech source code (21 replies, posted in Code)
I tested the DC relays in the comm_courant_continue.elmt file and changed the DC relays to Chinese > the DC relays of the < name lang="en",</name> which can also be used after compiling with the command indicator. But it seems that it can only modify the English name of the component, not the names Electric, logics, Hydraulic, etc.
7 2023-11-21 10:19:14
Re: How to debug QElectrotech source code (21 replies, posted in Code)
Hello, I carefully read the information in the link you sent me, and downloaded qet_translate-0.0.0.3, looked at the PDF document information inside, it seems that there is no instruction that can be translated into Chinese, I don't know how to use it, can you tell me how to do it?
8 2023-11-21 04:20:50
Re: How to debug QElectrotech source code (21 replies, posted in Code)
Hello, I need to change the name of the component in the QElectrotech collection to Chinese, what should I do, can you please tell me in detail?
9 2023-11-15 05:38:50
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
hello,
I created a file directory called: QElectrotech, and as you instructed me, copy the Elements, lang, tittlebock, misc folders into the Qelectrotech directory, and put the misc file, Lancer QET.bat in the qelectrotech directory. However, I can run Lancer QET .bat on my own computer, and when I run Lancer QET.bat on other computers, I have this problem: because I can't find libKF5CoreAddons.dll, libKF5WidgetsAddons.dll, I can't continue to execute the code.
How can I solve this problem?
10 2023-11-15 03:55:17
Topic: How to debug QElectrotech source code (21 replies, posted in Code)
I want to debug the QElectrotech source code.I downloaded the QT5.15.2 version in windows, how do I get started?
11 2023-11-10 11:58:51
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
Thank you for your reply. I successfully compiled QET, but when I executed qelectrotech.exe in the build file I created, I found that there was no QET collection in its Collections, only a Projet sans titre. Can you tell me what happened?
12 2023-11-10 09:30:25
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
I have seen the source code, in the code there is a: #include <sqlite3.h> header file, this also need to comment out?
13 2023-11-10 09:28:24
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
Instead of downloading the sqlite3 package, I annotated the lines that you've given me, [DEFINES += QET_EXPORT_PROJECT_DB, unix|win32: PKGCONFIG += sqlite3], and after that, my terminal got this problem:..\sources\dataBase\projectdatabase.cpp:32:10: fatal error: sqlite3.h: No such file or directory
#include <sqlite3.h>
^~~~~~~~~~~
compilation terminated.
mingw32-make[1]: *** [Makefile.Release:136089: release/projectdatabase.o] Error 1
mingw32-make[1]: Leaving directory 'D:/QET/qelectrotech-source-mirror/build'
mingw32-make: *** [Makefile:45: release] Error 2
14 2023-11-10 08:23:24
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
I annotated the code [#DEFINES += QET_EXPORT_PROJECT_DB,#unix|win32: PKGCONFIG += sqlite3], and the terminal got this error again:C:\Qt\5.15.2\mingw81_64\bin\qmake.exe -o Makefile ..\qelectrotech.pro
mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'D:/QEleCtroech/qelectrotech-source-mirror/build'
mingw32-make[1]: *** No rule to make target 'D:/QEleCtroech/qelectrotech-source-mirror/SQLite3/libsqlite3.a', needed by 'release/qelectrotech.exe'. Stop.
mingw32-make[1]: Leaving directory 'D:/QEleCtroech/qelectrotech-source-mirror/build'
mingw32-make: *** [Makefile:45: release] Error 2...
15 2023-11-10 04:46:55
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
Thank you for your give directions,when I compile on the terminal,Another bad prompt appeared on the terminal:..\sources\dataBase\projectdatabase.cpp:32:10: fatal error: sqlite3.h: No such file or directory
#include <sqlite3.h>
^~~~~~~~~~~
compilation terminated.
mingw32-make[1]: *** [Makefile.Release:136089: release/projectdatabase.o] Error 1
mingw32-make[1]: Leaving directory 'D:/QEleCtroech/qelectrotech-source-mirror/build'
mingw32-make: *** [Makefile:45: release] Error 2..I clearly logged out all the code related to sqlite3.h in the source code file,why does this still happen.I according to [https://gist.github.com/zeljic/d8b54278 … 169ee28c55] Download and compile the sqlite3 development kit: (sqlite3.def, sqlite3.dll, sqlite3.exp,sqlite3.lib,shell.c, sqlite3.c,sqlite3.h,sqlite3ext.h) I don't know how to add these packets to QElectrotech, can you tell me in detail?
16 2023-11-09 12:50:56
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
I followed the link you gave me to download it[https://download.qelectrotech.org/qet/scorpio/qelectrotech-source-mirror.zip],
Execute in the terminal:C:\Qt\5.15.2\mingw81_64\bin\qmake ..\qelectrotech.pro..
This prompt appears:Info: creating stash file D:\QEleCtroech\qelectrotech-source-mirror\build\.qmake.stash.
I opened the build that I created,Found that the generated debug and release folders are empty.
When I started this step make -j8,me got this message on my terminal:'make' is not an internal or external command, nor is it a executable program
Or batch file.
Can you tell me what I did wrong?
17 2023-11-09 04:12:45
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
hello,
I use it in the terminal:C:\Qt\5.15.2\mingw81_64\bin\qmake ..\qelectrotech.pro.This error occurred:Info: creating stash file D:\QET_Chinese\qelectrotech\build\.qmake.stash.
I think the reason for this error is that I made changes to the source code,And then,I take it from what you gave above [https://github.com/qelectrotech/qelectr … rce-mirror]
Downloaded a source code,Manually unzip it to a folder,Start the following command:
cd D:\QET_Chinese\qelectrotech;mkdir build;cd build;C:\Qt\5.15.2\mingw81_64\bin\qmake ..\qelectrotech.pro;
This error occurred:Info: creating stash file D:\QET_Chinese\qelectrotech-source-mirror-master\build\.qmake.stash
Cannot read D:/QET_Chinese/qelectrotech-source-mirror-master/SingleApplication/singleapplication.pri:
No such file or directory.
Could you tell me the detailed solution?
18 2023-11-08 14:21:32
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
It would be an honor for me to be able to help everyone.
However, according to your instructions, when compiling Qelecotech, because my source code is directly downloaded from github and modified, I skipped the git clone in your instructions https://github.com/qelectrotech/qelectr … or.git,git submodule update --init -- recursive
mkdir build. Go directly to the directory where qelectrotech is located and start the following steps:mkdir build,cd build.But,When I'm doing this step: qmake.. qelectrotech.pro, I get this error: 'qmake' is not an internal or external command, nor is it a runnable program
or batch files.
19 2023-11-08 12:45:34
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
include(ECMQueryQt)
ecm_query_qt(bin_dir QT_INSTALL_BINS)
These two lines of code are at the beginning of the CMakeList.txt file in the kcoreaddons-master directory.This error occurs:
CMake Error at CMakeLists.txt:1 (include):
include could not find load file:
ECMQueryQt
CMake Error at CMakeLists.txt:2 (ecm_query_qt):
Unknown CMake command "ecm_query_qt".
-- Configuring incomplete, errors occurred!
20 2023-11-08 12:20:56
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
Do you mean that I send you the contents of the CMakeOutput.log file?
21 2023-11-08 12:11:27
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
I had this problem when compiling KCoreAddons:
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Qt/Tools/mingw810_64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Qt/Tools/mingw810_64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
--
CMake Error at C:/Qt/5.15.2/mingw81_64/share/ECM/modules/ECMQueryQt.cmake:84 (message):
No executable found. Can't check QT_INSTALL_PREFIX as required
Call Stack (most recent call first):
C:/Qt/5.15.2/mingw81_64/share/ECM/kde-modules/KDEInstallDirs6.cmake:199 (ecm_query_qt)
C:/Qt/5.15.2/mingw81_64/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
CMakeLists.txt:14 (include)
-- Configuring incomplete, errors occurred!
See also "D:/QET_Chinese/kcoreaddons-master/build/CMakeFiles/CMakeOutput.log".
22 2023-11-08 11:12:10
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
Sorry to disturb you.
I installed QT according to the instructions you gave.But,me didn't find it in my installed QT directory:libKF5CoreAddons.dll.a,
KWidgetsAddons KCoreAddons. mkspecs/modules/*.pri..I haven't been able to locate it.Can you please tell us more about it?
23 2023-11-08 09:17:40
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
The reason why the source code is compiled,because I added some pictures and colors to the source code according to the work requirements.But,After modifying the code the QT compiler keeps telling me it's missing Project ERROR: Unknown module (s) in QT: KWidgetsAddons KCoreAddons.
24 2023-11-07 12:31:31
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
hello,
After I corrected the Qt and minGW versions according to the instructions,
after I changed QTPATH in the environment variables, the 5.12.4 folder was automatically generated in my Qt installation directory.But,the above question still arises.
I'm not familiar with LInux and I think the probability of error is probably a little higher.
25 2023-11-07 10:59:51
Re: Use QT Creator to build qelecotech source code under windows (40 replies, posted in Code)
@scorpio810:
It is my great honor to receive your reply.
I followed the link instructions you sent to operate step by step. But, this problem occurred every time, and I did not know what was wrong. Could you please tell me in detail?
Error message:
D:\QET_Chinese\kcoreaddons-master\build>cmake .. -DCMAKE_INSTALL_PREFIX=%QTPATH% -DCMAKE_PREFIX_PATH=$QTPATH -G "MinGW Makefiles" -DZLIB_LIBRARY:FILEPATH=D:\QT\Tools\Tools\mingw730_64\x86_64-w64-mingw32\lib\libz.a
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/QT/Tools/Tools/mingw730_64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/QT/Tools/Tools/mingw730_64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
--
CMake Error at D:/CMake/share/ECM/modules/ECMQueryQt.cmake:84 (message):
No executable found. Can't check QT_INSTALL_PREFIX as required
Call Stack (most recent call first):
D:/CMake/share/ECM/kde-modules/KDEInstallDirs6.cmake:199 (ecm_query_qt)
D:/CMake/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
CMakeLists.txt:14 (include)
-- Configuring incomplete, errors occurred!
See also "D:/QET_Chinese/kcoreaddons-master/build/CMakeFiles/CMakeOutput.log".