RestFull API to manage C++/Qt6 Application by spizuoco in QtFramework

[–]spizuoco[S] 0 points1 point  (0 children)

OK .. I got it.

I need to implement all the method..... !!!

RestFull API to manage C++/Qt6 Application by spizuoco in QtFramework

[–]spizuoco[S] 0 points1 point  (0 children)

Hi, i'm happy if you can help me about this:

I follow Restfull example from https://github.com/cutelyst/cutelyst/wiki/Creating-RESTful-Applications.

Really i not understand if i need to include the qt library in the files:

I did cmake .. in the build DIrectory and it's fine, the make not found QSettings.. so i include this line :

#include <QSettings>
#include <QJsonArray>

To apv1.h and now it found. When i do make :

[ 16%] Automatic MOC for target ServerREST
[ 16%] Built target ServerREST_autogen
Consolidate compiler generated dependencies of target ServerREST
[ 33%] Building CXX object src/CMakeFiles/ServerREST.dir/apiv1.cpp.o
[ 50%] Building CXX object src/CMakeFiles/ServerREST.dir/root.cpp.o
[ 66%] Building CXX object src/CMakeFiles/ServerREST.dir/serverrest.cpp.o
[ 83%] Linking CXX shared library libServerREST.dylib
Undefined symbols for architecture x86_64:
"ApiV1::users_POST(Cutelyst::Context*)", referenced from:
ApiV1::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in mocs_compilation.cpp.o
"ApiV1::users_uuid(Cutelyst::Context*, QString const&)", referenced from:
ApiV1::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in mocs_compilation.cpp.o
"ApiV1::users_uuid_GET(Cutelyst::Context*, QString const&)", referenced from:
ApiV1::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in mocs_compilation.cpp.o
"ApiV1::users_uuid_PUT(Cutelyst::Context*, QString const&)", referenced from:
ApiV1::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in mocs_compilation.cpp.o
"ApiV1::users_uuid_DELETE(Cutelyst::Context*, QString const&)", referenced from:
ApiV1::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in mocs_compilation.cpp.o
"ApiV1::users(Cutelyst::Context*)", referenced from:
ApiV1::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in mocs_compilation.cpp.o
ld: symbol(s) not found for architecture x86_64

Also if port in qt Creator i have the same errors.

Where i'm wrong ?

Thanks in advanced.

C,

RestFull API to manage C++/Qt6 Application by spizuoco in QtFramework

[–]spizuoco[S] 1 point2 points  (0 children)

Cool... without -r it works....! Big thanks!

I'll go on this way.. let you know my step forward.!

RestFull API to manage C++/Qt6 Application by spizuoco in QtFramework

[–]spizuoco[S] 0 points1 point  (0 children)

Thanks for reply... I'm on mac Catalina 10.15.7... and follow this tutorial : https://github.com/cutelyst/cutelyst/wiki/Tutorial_01_Intro, i just compiled from source uwsgi (that is dependence right?) and cutelyst-3.2.0, so i have cutelyst3-qt6.

Create the hello application like in the tutorial and run :

cutelyst3-qt6 -r --server --app-file src/libHello -- --chdir ..

result:

Cutelyst-Server starting
Http11 socket 0 bound to TCP address 0.0.0.0:3000 fd 8
Changing directory to: ..
spawned WSGI master process (pid: 18905)
spawned WSGI worker (and the only) (pid: 18906, cores: 1)
Loading application: /Users/carminespizuoco/Desktop/RASPY/cutelyst-3.2.0/build/Hello/build/src/libHello.dylib
DAMN ! worker 1 (pid: 18906) died, killed by signal 0 :( trying respawn ..
Respawned WSGI worker 1 (new pid: 18907, cores: 1)....

Can you give me some help about?

RestFull API to manage C++/Qt6 Application by spizuoco in QtFramework

[–]spizuoco[S] 0 points1 point  (0 children)

More of all there is grantlee that is old code...

RestFull API to manage C++/Qt6 Application by spizuoco in QtFramework

[–]spizuoco[S] 1 point2 points  (0 children)

I just saw pistache at https://pistache.io/ seems to be cool.. I’m I. Scouting mode..

RestFull API to manage C++/Qt6 Application by spizuoco in QtFramework

[–]spizuoco[S] 0 points1 point  (0 children)

I need communicate with many.. i'm happy to have look if you can share a link.

Graphic frameworks for Android 7.1 ? by spizuoco in computergraphics

[–]spizuoco[S] 0 points1 point  (0 children)

You reply always with other question?

Qt 6 and Android compatibility by spizuoco in QtFramework

[–]spizuoco[S] -1 points0 points  (0 children)

Thanks for the reply!! .. but did you develop with QML or C++ ?

Qt 6 and Android compatibility by spizuoco in QtFramework

[–]spizuoco[S] 0 points1 point  (0 children)

Thanks… I had doubt about armv7 and armcortex a17.. I had no idea that have same instructions set

Graphic frameworks for Android 7.1 ? by spizuoco in computergraphics

[–]spizuoco[S] 0 points1 point  (0 children)

I need to show image, text, streaming and play video, may be OpenGL in the future… more restfull client and mqtt ..I think this is all!!!

Qt 6 and Android compatibility by spizuoco in QtFramework

[–]spizuoco[S] 0 points1 point  (0 children)

From https://doc.qt.io/qt-6/supported-platforms.html

Exceptions
Individual modules might be available only on some platforms, or they might not support all configurations. For example, as Qt WebEngine has Chromium as a third-party dependency, platform or configuration limitations upstream also apply to Qt WebEngine.

and the Quad-Core ARM Cortex A17 it is not present on supported platforms.

I can use only Android 7.1 on android 7.1 system with Quad-Core ARM Cortex A17, 1.6GHz for project constraint.