mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-05 18:20:33 -08:00
some revisions
This commit is contained in:
parent
f52c1ec594
commit
6df25f4c05
4 changed files with 23 additions and 19 deletions
|
|
@ -19,8 +19,10 @@ Build
|
|||
|
||||
```
|
||||
$ cd cpp
|
||||
$ qmake lib.pro
|
||||
|
||||
$ qmake
|
||||
$ make
|
||||
|
||||
$ cd ..
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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**.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue