qamel
qamel copied to clipboard
how to build qamel?
Is there any steps covering build process in details?
I've started with 'go build' but got this:
application.cpp:2:10: fatal error: QApplication: No such file or directory #include <QApplication> ^~~~~~~~~~~~~~ compilation terminated.
I'm new to go, but guess I should specify include path somehow?
I've tried to do this:
set CGO_CFLAGS=-ID:\Qt\5.15.0\msvc2019_64\include -ID:\Qt\5.15.0\msvc2019_64\include\QtCore -ID:\Qt\5.15.0\msvc2019_64\include\QtGui
and then 'go build' but it didn't change a lot.
I think I got it, qamel cli is responsible for builds...
Oops, closed to fast..
qamel build -p win64 Starting build process.
Load config file...done Generating vendor files...done Removing old build files...done Generating binding files...done Generating Qt resource file...done Generating syso file...done Generating code for QML objects...done Building app... Failed to build app: exit status 2
github.com/go-qamel/qamel
application.cpp:2:10: fatal error: QApplication: No such file or directory #include <QApplication> ^~~~~~~~~~~~~~ compilation terminated.
Also, how to debug qamel application in VSCode ?
Oops, closed to fast..
qamel build -p win64 Starting build process.
Load config file...done Generating vendor files...done Removing old build files...done Generating binding files...done Generating Qt resource file...done Generating syso file...done Generating code for QML objects...done Building app... Failed to build app: exit status 2
github.com/go-qamel/qamel
application.cpp:2:10: fatal error: QApplication: No such file or directory #include ^~~~~~~~~~~~~~ compilation terminated.
I have encountered this problem before. Don't use the power shell or the CMD terminal that comes with windows. Use Cmder instead. This issue was already mentioned in #18 .
Also, how to debug qamel application in VSCode ?
I also want to know. I tried to comment out part of the code in the internel/cmd/build.go file. I thought of opening the terminal for output debugging, but the terminal still did not appear.