Amber Web Authorization not available in qtCreator

Back to the basics. Perhaps repeating things will help.

I reinstalled Sailfish sdk 3.9.6 in my windows laptop.

When I open main.cpp of the amberwebauthcppexample in qtCreator, the editor complains about not finding the header files oauth2.h and redirectlistener.h.
kirjastoja_ei_löydy_main_cpp
As a result there are type errors also:


Should I do something to make the editor recognize types OAuth2 and RedirectListener?

In the pro-file I have

CONFIG += link_pkgconfig
PKGCONFIG += amberwebauthorization

If I try sb2 -t SailfishOS-4.4.0.58-aarch64 -m sdk-install -R zypper in amber-web-authorization libamberwebauthorization in the command prompt, I get error 'sb2' is not recognized.

In the yaml-file I have:

PkgConfigBR:
  - sailfishapp >= 1.0.2
  - Qt5Core
  - Qt5Qml
  - Qt5Quick

Requires:
  - sailfishsilica-qt5 >= 0.10.9
  - qml(org.freedesktop.contextkit)
  - amber-web-authorization
  - libamberwebauthorization

Compiling gives errors - oauth2.h and redirectlistener.h not found.

If I try amberwebauthqmlexample the editor complans about line import Amber.Web.Authorization 1.0 - QML module not found. And building the project ends in errors

RPM build errors:
Error on file “/home/deploy/installroot/usr/share/applications/*.desktop”: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.y3VmMJ (%install)

And the app window does not open in the sfos device running in the virtual box.