some revisions

This commit is contained in:
pls.153 2022-02-28 14:10:20 +01:00
parent f52c1ec594
commit 6df25f4c05
4 changed files with 23 additions and 19 deletions

View file

@ -19,8 +19,10 @@ Build
``` ```
$ cd cpp $ cd cpp
$ qmake lib.pro
$ qmake
$ make $ make
$ cd .. $ cd ..
``` ```

View file

@ -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 LISP_FILES = $$files(lisp/*) app.asd make.lisp
android { android {

View file

@ -33,7 +33,7 @@ Build desktop app
``` ```
$ cd build $ cd build
$ qmake ../app.pro $ qmake ..
$ make $ make
``` ```
@ -43,7 +43,7 @@ Build android APK
``` ```
$ cd build-android $ cd build-android
$ qmake-android ../app.pro $ qmake-android ..
$ make apk $ make apk
$ ./install-run.sh $ ./install-run.sh
@ -57,7 +57,7 @@ Build iOS app
``` ```
$ cd build-ios $ cd build-ios
$ qmake-ios ../app.pro $ qmake-ios ..
$ ./xcode.sh $ ./xcode.sh
``` ```
@ -65,14 +65,14 @@ The script above first cross-compiles the Lisp code, then opens **Xcode**.
Please note: 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** **Enable Bitcode** to **No**
* if it complains about missing source files when first hitting the Run button, * if it complains about missing source files when first hitting the 'Run'
just hit the Run button again (and they will be generated) 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 * using latest Xcode, it may complain about the 'Legacy Build System'; just go
File / Project Settings and select New Build System to 'File' / 'Project Settings' and select 'New Build System'
If you cross-compiled ECL for the simulator, it should work there too, but this If you cross-compiled ECL for the simulator, it should work there too, but this
is currently only tested on **Intel**. is currently only tested on **Intel**.

View file

@ -4,8 +4,9 @@ QML Preview and Slime
(LQML >= 22.2.2, see `lqml -v`) (LQML >= 22.2.2, see `lqml -v`)
If you want to be impressed (I certainly was when I first tried it), do the This shows how to use **QML Preview** (live QML updates while you are typing).
following:
First you need to apply 2 small changes:
* edit `lisp/main.lisp` of an example, and add this line at the end: * edit `lisp/main.lisp` of an example, and add this line at the end:
``` ```
@ -16,18 +17,20 @@ following:
``` ```
DEFINES += INI_LISP SWANK DEFINES += INI_LISP SWANK
``` ```
* open `app.pro` in **Qt Creator**, and in 'Build Settings' choose `build/` * open `app.pro` in **Qt Creator**; under 'Projects' (menu on the left) /
from the example as 'Build directory' '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 * in the 'Edit' view of Qt Creator make sure that 'Debug' is selected (menu on
'Build / Clean') 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 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 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 Additionally you may also run `M-x slime-connect` from Emacs (the Swank server
server should already be running, see 'Application Ouput' at the bottom of Qt should already be running, see 'Application Ouput' at the bottom of Qt
Creator). Creator).
[Screenshot](screenshots/qml-live-preview-and-slime.jpg) [Screenshot](screenshots/qml-live-preview-and-slime.jpg)