qamel icon indicating copy to clipboard operation
qamel copied to clipboard

how to build qamel?

Open ElderOrb opened this issue 4 years ago • 5 comments

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.

ElderOrb avatar Jun 17 '20 10:06 ElderOrb

I think I got it, qamel cli is responsible for builds...

ElderOrb avatar Jun 17 '20 18:06 ElderOrb

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.

ElderOrb avatar Jun 17 '20 18:06 ElderOrb

Also, how to debug qamel application in VSCode ?

ElderOrb avatar Jun 17 '20 18:06 ElderOrb

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 .

sh1luo avatar Jun 18 '20 07:06 sh1luo

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.

image

sh1luo avatar Jun 18 '20 07:06 sh1luo