From 6df25f4c0544b250bc22d7f51bc9b9fa9f346f6c Mon Sep 17 00:00:00 2001 From: "pls.153" Date: Mon, 28 Feb 2022 14:10:20 +0100 Subject: [PATCH] some revisions --- cpp-lib/readme.md | 4 +++- examples/app-template/app.pro | 1 - examples/app-template/readme-build.md | 16 ++++++++-------- readme-qml-live-preview-and-slime.md | 21 ++++++++++++--------- 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/cpp-lib/readme.md b/cpp-lib/readme.md index 32ed5f9..215f7c2 100644 --- a/cpp-lib/readme.md +++ b/cpp-lib/readme.md @@ -19,8 +19,10 @@ Build ``` $ cd cpp -$ qmake lib.pro + +$ qmake $ make + $ cd .. ``` diff --git a/examples/app-template/app.pro b/examples/app-template/app.pro index 572988b..6a33ee0 100644 --- a/examples/app-template/app.pro +++ b/examples/app-template/app.pro @@ -1,4 +1,3 @@ -# changes to these files will re-compile the Lisp library when running 'make' LISP_FILES = $$files(lisp/*) app.asd make.lisp android { diff --git a/examples/app-template/readme-build.md b/examples/app-template/readme-build.md index df2920b..37b5828 100644 --- a/examples/app-template/readme-build.md +++ b/examples/app-template/readme-build.md @@ -33,7 +33,7 @@ Build desktop app ``` $ cd build -$ qmake ../app.pro +$ qmake .. $ make ``` @@ -43,7 +43,7 @@ Build android APK ``` $ cd build-android -$ qmake-android ../app.pro +$ qmake-android .. $ make apk $ ./install-run.sh @@ -57,7 +57,7 @@ Build iOS app ``` $ cd build-ios -$ qmake-ios ../app.pro +$ qmake-ios .. $ ./xcode.sh ``` @@ -65,14 +65,14 @@ The script above first cross-compiles the Lisp code, then opens **Xcode**. Please note: -* before building the app, go to Build Settings / Build Options and set +* before building the app, go to 'Build Settings' / 'Build Options' and set **Enable Bitcode** to **No** -* if it complains about missing source files when first hitting the Run button, - just hit the Run button again (and they will be generated) +* if it complains about missing source files when first hitting the 'Run' + button, just hit the 'Run' button again (and they will be generated) -* using latest Xcode, it may complain about the Legacy Build System; just go to - File / Project Settings and select New Build System +* using latest Xcode, it may complain about the 'Legacy Build System'; just go + to 'File' / 'Project Settings' and select 'New Build System' If you cross-compiled ECL for the simulator, it should work there too, but this is currently only tested on **Intel**. diff --git a/readme-qml-live-preview-and-slime.md b/readme-qml-live-preview-and-slime.md index d6e0469..def27ac 100644 --- a/readme-qml-live-preview-and-slime.md +++ b/readme-qml-live-preview-and-slime.md @@ -4,8 +4,9 @@ QML Preview and Slime (LQML >= 22.2.2, see `lqml -v`) -If you want to be impressed (I certainly was when I first tried it), do the -following: +This shows how to use **QML Preview** (live QML updates while you are typing). + +First you need to apply 2 small changes: * edit `lisp/main.lisp` of an example, and add this line at the end: ``` @@ -16,18 +17,20 @@ following: ``` DEFINES += INI_LISP SWANK ``` -* open `app.pro` in **Qt Creator**, and in 'Build Settings' choose `build/` - from the example as 'Build directory' +* open `app.pro` in **Qt Creator**; under 'Projects' (menu on the left) / + 'Configure Project' choose 'Debug' and change the 'Build directory' to + `build/` from the example -* in the 'Edit' view of Qt Creator choose 'Build / QML Preview' (after a - 'Build / Clean') +* in the 'Edit' view of Qt Creator make sure that 'Debug' is selected (menu on + the left, near the bottom); from the menu at the top choose 'Build / **QML + Preview**' (after a 'Build / Clean') Now the example should compile and start. You may now select any QML file from the tree view on the left, and any change to QML will be shown immediately in -the running app, while you are typing! +the running app. -Additionally you may now also run `M-x slime-connect` from Emacs (the Swank -server should already be running, see 'Application Ouput' at the bottom of Qt +Additionally you may also run `M-x slime-connect` from Emacs (the Swank server +should already be running, see 'Application Ouput' at the bottom of Qt Creator). [Screenshot](screenshots/qml-live-preview-and-slime.jpg)