Write, build, and load a QML UI w/ C++ backend module for Logos#283
Conversation
| calc_module.url = "github:logos-co/logos-tutorial?dir=logos-calc-module"; | ||
|
|
||
| # Option B: point to your local checkout (for local development) | ||
| # calc_module.url = "path:../logos-calc-module"; |
There was a problem hiding this comment.
for this I got following error:
error: access to absolute path '/nix/store/logos-calc-module/flake.nix'
and solution was to use --override-input calc_module path:/absolute/path
did it work fine for you @kashepavadan ?
There was a problem hiding this comment.
I haven't tested it. Probably you would need to put the correct path here. Should I put it like
{your path here}?
There was a problem hiding this comment.
I think your path here would do the trick
| nix build 'github:logos-co/logos-basecamp' -o basecamp-result | ||
|
|
||
| # Launch once to preinstall bundled modules, then close it | ||
| ./basecamp-result/bin/logos-basecamp |
There was a problem hiding this comment.
| ./basecamp-result/bin/logos-basecamp | |
| ./basecamp-result/bin/LogosBasecamp |
| install --file result-lgx/*.lgx | ||
|
|
||
| # Launch basecamp -- your modules appear alongside the built-in ones | ||
| ./basecamp-result/bin/logos-basecamp |
There was a problem hiding this comment.
| ./basecamp-result/bin/logos-basecamp | |
| ./basecamp-result/bin/LogosBasecamp |
| test("calc_ui_cpp: loads and shows title", async (app) => { | ||
| await app.waitFor( | ||
| async () => { | ||
| await app.expectTexts(["Calculator C++ UI"]); |
There was a problem hiding this comment.
| await app.expectTexts(["Calculator C++ UI"]); | |
| await app.expectTexts(["Calculator (C++ backend)"]); |
| }); | ||
|
|
||
| test("calc_ui_cpp: shows connection status", async (app) => { | ||
| await app.expectTexts(["Connecting to backend..."]); |
There was a problem hiding this comment.
this does't seem to exist at this point of tutorial as because on step 6 this gets removed, at least how I read it
There was a problem hiding this comment.
Where does this get removed in step 6?
There was a problem hiding this comment.
here Replace the starter Main.qml
|
|
||
| # Subsequent runs: invoke the bundled standalone wrapper directly, | ||
| # skipping nix entirely. DEV_QML_PATH still redirects QML loading. | ||
| DEV_QML_PATH=$PWD/qml ./result/bin/run-logos-standalone-ui |
There was a problem hiding this comment.
| DEV_QML_PATH=$PWD/qml ./result/bin/run-logos-standalone-ui | |
| DEV_QML_PATH=$PWD/src/qml ./result/bin/run-logos-standalone-ui |
From: #219