I'm pretty sure I'm doing something wrong but cannot see what it is?
I tried to compile the counter.ts sample from the documentation:
import { App, Text, Button, VStack, State } from "perry/ui";
const count = State(0);
App("My Counter", () =>
VStack([
Text(`Count: ${count.get()}`),
Button("Increment", () => {
count.set(count.get() + 1);
}),
Button("Reset", () => {
count.set(0);
}),
])
);
During the compilation I see this:
perry compile counter.ts
Collecting modules...
Found 1 module(s): 1 native, 0 JavaScript
Generating code...
Module init order (0 modules):
Wrote object file: counter_ts.o
Generating stubs for 9 missing symbols (0 data, 9 functions, 0 identity)
- js_new_instance
- js_await_js_promise
- js_set_property
- js_get_export
- js_load_module
- js_call_function
- js_runtime_init
- js_new_from_handle
- js_create_callback
Linking (runtime-only)...
[strip-dedup] Processing: /usr/local/lib/libperry_ui_macos.a
[strip-dedup] ERROR: llvm-ar not found — cannot strip duplicates from libperry_ui_macos.a
[strip-dedup] FAILED for UI lib, using original: llvm-ar not found (install llvm-tools: rustup component add llvm-tools)
Linking perry/ui (native UI) from /usr/local/lib/libperry_ui_macos.a
ld: warning: no platform load command found in '/Users/doberkofler/MyShare/doberkofler/perry_example_new/counter_ts.o', assuming: macOS
ld: warning: no platform load command found in '/Users/doberkofler/MyShare/doberkofler/perry_example_new/_perry_stubs.o', assuming: macOS
Wrote executable: counter
Binary size: 0.6MB
The app window looks like this:

I'm pretty sure I'm doing something wrong but cannot see what it is?
I tried to compile the
counter.tssample from the documentation:During the compilation I see this:
The app window looks like this: