another newbie question #115
Closed
jmeloranta
started this conversation in
General
Replies: 2 comments 1 reply
|
Hi again! If you're using Zig, you can use the library in a client application just like in the examples or the demo. If you're not using Zig for your application, you would use whatever build system similar to the gcc instructions at either the examples or the demo. If you're completely at the beginning, spend some time with the demo and the READMEs. |
0 replies
|
On 2/21/26 11:14 PM, Rick Calixte wrote:
If you're using Zig, you can use the library in a client application
just like in the examples
<https://github.com/rcalixte/libqt6c-examples> or the demo
<https://github.com/rcalixte/libqt6c-demo>. If you're not using Zig
for your application, you would use whatever build system similar to
the gcc instructions at either the examples or the demo. If you're
completely at the beginning, spend some time with the demo and the
READMEs.
After running "zig build install" I had to manually copy the include
files to /usr/include/qt6. After this I could compile with:
cc -I/usr/include/qt6 helloworld.c -o helloworld -march=native
-lqapplication -lqpushbutton -lqwidget -lqabstractbutton -lqobject
-lqcoreevent -lqpaintdevice -lqcoreapplication -lqguiapplication
-lQt6Widgets -lQt6Core -lQt6Gui -lstdc++
So, I am all set :-)
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
OK, I have compiled it now but how do I install it? I did zig build install but that only seemed to copy the library files (.a) to /usr/lib. Where should the include files go?
And after installing, what libraries (-l) do I need to specify for linking?
All reactions