Re: Use QT Creator to build qelecotech source code under windows
I put a zip of repository with submodules here:
https://download.qelectrotech.org/qet/s … mirror.zip
You are not logged in. Please login or register.
QElectroTech → Code → Use QT Creator to build qelecotech source code under windows
I put a zip of repository with submodules here:
https://download.qelectrotech.org/qet/s … mirror.zip
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?
mingw32-make
https://stackoverflow.com/questions/237 … nd-operabl
https://stackoverflow.com/questions/738 … and-operab
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?
Comment this line https://github.com/qelectrotech/qelectr … ch.pro#L61 if you don't have sqlite3 package installed.
https://qelectrotech.org/forum/viewtopi … 123#p15123
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...
Comment this line too https://github.com/qelectrotech/qelectr … h.pro#L255
Delete all files in build dir and go away.
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
I have seen the source code, in the code there is a: #include <sqlite3.h> header file, this also need to comment out?
Yes, you can.
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?
use this file to launch qelectrotech https://github.com/qelectrotech/qelectr … %20QET.bat
Create a new directory qelectrotech.
inside create a new bin folder put your qelectrotech.exe here.
copy elements, lang, tittlebock, misc folder in qelectrotech dir.
Put Lancer QET.bat in qelectrotech dir, doodle ckick on Lancer QET.bat to launch program and collections.
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?
https://doc.qt.io/Qt-5/windows-deployment.html
https://wiki.qt.io/Deploy_an_Application_on_Windows
QElectroTech → Code → Use QT Creator to build qelecotech source code under windows
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.040 seconds (33% PHP - 67% DB) with 11 queries