Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

No matter how many times i install node:utils it refuses to work any ideas? #4

Closed
Spaghetti-Cat opened this issue Jan 28, 2024 · 23 comments

Comments

@Spaghetti-Cat
Copy link

LINUX MINT

`> [email protected] start

node index.js

internal/modules/cjs/loader.js:818
throw err;
^

Error: Cannot find module 'node:util'
Require stack:

  • /home/spaghetti/Documents/Flipper/flippulator/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/home/spaghetti/Documents/Flipper/flippulator/index.js:3:14)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/home/spaghetti/Documents/Flipper/flippulator/index.js' ]
    }`
@Milk-Cool
Copy link
Owner

do not use the apt version, it's too outdated. instead use https://github.com/nvm-sh/nvm

@Spaghetti-Cat
Copy link
Author

Thank you, and do i just git clone it to usr/share/doc

@Spaghetti-Cat
Copy link
Author

Nvm got it thanks

@Milk-Cool
Copy link
Owner

do i just git clone it to usr/share/doc

do you mean nvm? you should follow the instructions in their readme, it's as simple as running two commands

@Spaghetti-Cat
Copy link
Author

Okay Thanks

@Spaghetti-Cat
Copy link
Author

New Error While Compiling

[email protected] start
node index.js

Enter the application folder name: FlipperZeroExampleApp
mkdir out_example_app_milkcool/
touch timestamps.json
if [ ! -s timestamps.json ]; then
echo '{}' > timestamps.json;
fi
for file in flippulator_app_copy/example_app_milkcool.c flipper/storage/storage_external_api.c flipper/storage/storage_glue.c flipper/storage/storage.c flipper/storage/filesystem_api.c flipper/storage/storage_processing.c flipper/storage/storage_sd_api.c flipper/storage/storages/sd_notify.c flipper/storage/storages/storage_ext.c flipper/storage/storages/storage_int.c flipper/storage/storage_internal_api.c flipper/furi.c flipper/ptr_dict.c flipper/core/semaphore.c flipper/core/event_flag.c flipper/core/string.c flipper/core/mutex.c flipper/core/pubsub.c flipper/core/timer.c flipper/core/kernel.c flipper/core/record.c flipper/core/thread.c flipper/core/message_queue.c flipper/notification/notification_messages.c flipper/notification/notification_messages_notes.c flipper/notification/notification_app_api.c flipper/notification/notification_app.c flipper/gui/gui.c flipper/gui/icon_animation.c flipper/gui/canvas.c flipper/gui/icon.c flipper/gui/view_port.c flipper/cli/cli_commands.c flipper/cli/cli.c flipper/cli/cli_vcp.c flipper/globals/sound.c flipper/globals/backlight.c flipper/globals/led.c flipper/globals/vibro.c flipper/globals/termios.c flipper/input/input.c flipper_hal/furi_hal_rtc.c flipper_hal/furi_hal_light.c flipper_hal/furi_hal_vibro.c flipper_hal/furi_hal_speaker.c helpers/toolbox/hex.c helpers/toolbox/args.c helpers/toolbox/compress.c helpers/toolbox/dir_walk.c helpers/toolbox/path.c helpers/toolbox/stream/stream.c helpers/toolbox/stream/buffered_file_stream.c helpers/toolbox/stream/file_stream.c helpers/toolbox/stream/string_stream.c helpers/toolbox/stream/stream_cache.c helpers/crash.c helpers/h_recursive_mkdir.c lib/u8g2/u8g2_line.c lib/u8g2/u8x8_gpio.c lib/u8g2/u8g2_font.c lib/u8g2/u8x8_capture.c lib/u8g2/u8g2_glue.c lib/u8g2/u8x8_byte.c lib/u8g2/u8g2_hvline.c lib/u8g2/u8g2_bitmap.c lib/u8g2/u8g2_intersection.c lib/u8g2/u8g2_setup.c lib/u8g2/u8g2_buffer.c lib/u8g2/u8g2_circle.c lib/u8g2/u8g2_ll_hvline.c lib/u8g2/csrc/u8x8_u16toa.c lib/u8g2/u8x8_setup.c lib/u8g2/u8x8_8x8.c lib/u8g2/u8g2_d_memory.c lib/u8g2/u8g2_box.c lib/u8g2/u8x8_cad.c lib/u8g2/u8x8_display.c lib/u8g2/u8g2_kerning.c lib/u8g2/u8g2_fonts.c lib/heatshrink/heatshrink.c lib/heatshrink/test_heatshrink_static.c lib/heatshrink/heatshrink_encoder.c lib/heatshrink/heatshrink_decoder.c lib/heatshrink/test_heatshrink_dynamic_theft.c lib/heatshrink/test_heatshrink_dynamic.c; do
jsout=$(node compile.js $file);
objname=$(echo $jsout | jq -r '.obj');
dateextr=$(echo $jsout | jq -r '.time');
if [ $objname ]; then
gcc -O2 -Wall -Wno-main -g -m32 -DFLIPPULATOR_APP_ID="example_app_milkcool" -D_FLIPPULATOR -c "-DFLIPPULATOR_APP_NAME="Example"" -Iflipper/ -Iflipper_hal/ -Ihelpers/ -Ilib/ "$file" -o $objname -lSDL2 -lSDL2_ttf -lm -lbsd;
echo CC: $file = $objname;
jq '.["'$file'"] = "'$dateextr'"' timestamps.json > /tmp/flippulator_timestamps.json; mv /tmp/flippulator_timestamps.json timestamps.json;
fi;
done
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
/bin/sh: 3: jq: not found
/bin/sh: 4: jq: not found
gcc -O2 -Wall -Wno-main -g -m32 -DFLIPPULATOR_APP_ID="example_app_milkcool" -D_FLIPPULATOR flipper/storage/storage_external_api.o flipper/storage/storage_glue.o flipper/storage/storage.o flipper/storage/filesystem_api.o flipper/storage/storage_processing.o flipper/storage/storage_sd_api.o flipper/storage/storages/sd_notify.o flipper/storage/storages/storage_ext.o flipper/storage/storages/storage_int.o flipper/storage/storage_internal_api.o flipper/furi.o flipper/ptr_dict.o flipper/core/semaphore.o flipper/core/event_flag.o flipper/core/string.o flipper/core/mutex.o flipper/core/pubsub.o flipper/core/timer.o flipper/core/kernel.o flipper/core/record.o flipper/core/thread.o flipper/core/message_queue.o flipper/notification/notification_messages.o flipper/notification/notification_messages_notes.o flipper/notification/notification_app_api.o flipper/notification/notification_app.o flipper/gui/gui.o flipper/gui/icon_animation.o flipper/gui/canvas.o flipper/gui/icon.o flipper/gui/view_port.o flipper/cli/cli_commands.o flipper/cli/cli.o flipper/cli/cli_vcp.o flipper/globals/sound.o flipper/globals/backlight.o flipper/globals/led.o flipper/globals/vibro.o flipper/globals/termios.o flipper/input/input.o flipper_hal/furi_hal_rtc.o flipper_hal/furi_hal_light.o flipper_hal/furi_hal_vibro.o flipper_hal/furi_hal_speaker.o helpers/toolbox/hex.o helpers/toolbox/args.o helpers/toolbox/compress.o helpers/toolbox/dir_walk.o helpers/toolbox/path.o helpers/toolbox/stream/stream.o helpers/toolbox/stream/buffered_file_stream.o helpers/toolbox/stream/file_stream.o helpers/toolbox/stream/string_stream.o helpers/toolbox/stream/stream_cache.o helpers/crash.o helpers/h_recursive_mkdir.o lib/u8g2/u8g2_line.o lib/u8g2/u8x8_gpio.o lib/u8g2/u8g2_font.o lib/u8g2/u8x8_capture.o lib/u8g2/u8g2_glue.o lib/u8g2/u8x8_byte.o lib/u8g2/u8g2_hvline.o lib/u8g2/u8g2_bitmap.o lib/u8g2/u8g2_intersection.o lib/u8g2/u8g2_setup.o lib/u8g2/u8g2_buffer.o lib/u8g2/u8g2_circle.o lib/u8g2/u8g2_ll_hvline.o lib/u8g2/csrc/u8x8_u16toa.o lib/u8g2/u8x8_setup.o lib/u8g2/u8x8_8x8.o lib/u8g2/u8g2_d_memory.o lib/u8g2/u8g2_box.o lib/u8g2/u8x8_cad.o lib/u8g2/u8x8_display.o lib/u8g2/u8g2_kerning.o lib/u8g2/u8g2_fonts.o lib/heatshrink/heatshrink.o lib/heatshrink/test_heatshrink_static.o lib/heatshrink/heatshrink_encoder.o lib/heatshrink/heatshrink_decoder.o lib/heatshrink/test_heatshrink_dynamic_theft.o lib/heatshrink/test_heatshrink_dynamic.o flippulator_app_copy/example_app_milkcool.o -o out_example_app_milkcool/example_app_milkcool -lSDL2 -lSDL2_ttf -lm -lbsd
/usr/bin/ld: cannot find flipper/storage/storage_external_api.o: No such file or directory
/usr/bin/ld: cannot find flipper/storage/storage_glue.o: No such file or directory
/usr/bin/ld: cannot find flipper/storage/storage.o: No such file or directory
/usr/bin/ld: cannot find flipper/storage/filesystem_api.o: No such file or directory
/usr/bin/ld: cannot find flipper/storage/storage_processing.o: No such file or directory
/usr/bin/ld: cannot find flipper/storage/storage_sd_api.o: No such file or directory
/usr/bin/ld: cannot find flipper/storage/storages/sd_notify.o: No such file or directory
/usr/bin/ld: cannot find flipper/storage/storages/storage_ext.o: No such file or directory
/usr/bin/ld: cannot find flipper/storage/storages/storage_int.o: No such file or directory
/usr/bin/ld: cannot find flipper/storage/storage_internal_api.o: No such file or directory
/usr/bin/ld: cannot find flipper/furi.o: No such file or directory
/usr/bin/ld: cannot find flipper/ptr_dict.o: No such file or directory
/usr/bin/ld: cannot find flipper/core/semaphore.o: No such file or directory
/usr/bin/ld: cannot find flipper/core/event_flag.o: No such file or directory
/usr/bin/ld: cannot find flipper/core/string.o: No such file or directory
/usr/bin/ld: cannot find flipper/core/mutex.o: No such file or directory
/usr/bin/ld: cannot find flipper/core/pubsub.o: No such file or directory
/usr/bin/ld: cannot find flipper/core/timer.o: No such file or directory
/usr/bin/ld: cannot find flipper/core/kernel.o: No such file or directory
/usr/bin/ld: cannot find flipper/core/record.o: No such file or directory
/usr/bin/ld: cannot find flipper/core/thread.o: No such file or directory
/usr/bin/ld: cannot find flipper/core/message_queue.o: No such file or directory
/usr/bin/ld: cannot find flipper/notification/notification_messages.o: No such file or directory
/usr/bin/ld: cannot find flipper/notification/notification_messages_notes.o: No such file or directory
/usr/bin/ld: cannot find flipper/notification/notification_app_api.o: No such file or directory
/usr/bin/ld: cannot find flipper/notification/notification_app.o: No such file or directory
/usr/bin/ld: cannot find flipper/gui/gui.o: No such file or directory
/usr/bin/ld: cannot find flipper/gui/icon_animation.o: No such file or directory
/usr/bin/ld: cannot find flipper/gui/canvas.o: No such file or directory
/usr/bin/ld: cannot find flipper/gui/icon.o: No such file or directory
/usr/bin/ld: cannot find flipper/gui/view_port.o: No such file or directory
/usr/bin/ld: cannot find flipper/cli/cli_commands.o: No such file or directory
/usr/bin/ld: cannot find flipper/cli/cli.o: No such file or directory
/usr/bin/ld: cannot find flipper/cli/cli_vcp.o: No such file or directory
/usr/bin/ld: cannot find flipper/globals/sound.o: No such file or directory
/usr/bin/ld: cannot find flipper/globals/backlight.o: No such file or directory
/usr/bin/ld: cannot find flipper/globals/led.o: No such file or directory
/usr/bin/ld: cannot find flipper/globals/vibro.o: No such file or directory
/usr/bin/ld: cannot find flipper/globals/termios.o: No such file or directory
/usr/bin/ld: cannot find flipper/input/input.o: No such file or directory
/usr/bin/ld: cannot find flipper_hal/furi_hal_rtc.o: No such file or directory
/usr/bin/ld: cannot find flipper_hal/furi_hal_light.o: No such file or directory
/usr/bin/ld: cannot find flipper_hal/furi_hal_vibro.o: No such file or directory
/usr/bin/ld: cannot find flipper_hal/furi_hal_speaker.o: No such file or directory
/usr/bin/ld: cannot find helpers/toolbox/hex.o: No such file or directory
/usr/bin/ld: cannot find helpers/toolbox/args.o: No such file or directory
/usr/bin/ld: cannot find helpers/toolbox/compress.o: No such file or directory
/usr/bin/ld: cannot find helpers/toolbox/dir_walk.o: No such file or directory
/usr/bin/ld: cannot find helpers/toolbox/path.o: No such file or directory
/usr/bin/ld: cannot find helpers/toolbox/stream/stream.o: No such file or directory
/usr/bin/ld: cannot find helpers/toolbox/stream/buffered_file_stream.o: No such file or directory
/usr/bin/ld: cannot find helpers/toolbox/stream/file_stream.o: No such file or directory
/usr/bin/ld: cannot find helpers/toolbox/stream/string_stream.o: No such file or directory
/usr/bin/ld: cannot find helpers/toolbox/stream/stream_cache.o: No such file or directory
/usr/bin/ld: cannot find helpers/crash.o: No such file or directory
/usr/bin/ld: cannot find helpers/h_recursive_mkdir.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_line.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8x8_gpio.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_font.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8x8_capture.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_glue.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8x8_byte.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_hvline.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_bitmap.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_intersection.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_setup.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_buffer.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_circle.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_ll_hvline.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/csrc/u8x8_u16toa.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8x8_setup.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8x8_8x8.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_d_memory.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_box.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8x8_cad.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8x8_display.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_kerning.o: No such file or directory
/usr/bin/ld: cannot find lib/u8g2/u8g2_fonts.o: No such file or directory
/usr/bin/ld: cannot find lib/heatshrink/heatshrink.o: No such file or directory
/usr/bin/ld: cannot find lib/heatshrink/test_heatshrink_static.o: No such file or directory
/usr/bin/ld: cannot find lib/heatshrink/heatshrink_encoder.o: No such file or directory
/usr/bin/ld: cannot find lib/heatshrink/heatshrink_decoder.o: No such file or directory
/usr/bin/ld: cannot find lib/heatshrink/test_heatshrink_dynamic_theft.o: No such file or directory
/usr/bin/ld: cannot find lib/heatshrink/test_heatshrink_dynamic.o: No such file or directory
/usr/bin/ld: cannot find flippulator_app_copy/example_app_milkcool.o: No such file or directory
/usr/bin/ld: cannot find -lSDL2_ttf: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:43: out_example_app_milkcool/example_app_milkcool] Error 1
Done!

@Milk-Cool
Copy link
Owner

jq is not installed on your system. https://jqlang.github.io/jq/download/

thank you, i'll add it to the readme

@Spaghetti-Cat
Copy link
Author

Yippee more errors (sorry)

[email protected] start
node index.js

Enter the application folder name: FlipperZeroExampleApp
mkdir out_example_app_milkcool/
touch timestamps.json
if [ ! -s timestamps.json ]; then
echo '{}' > timestamps.json;
fi
for file in flippulator_app_copy/example_app_milkcool.c flipper/storage/storage_external_api.c flipper/storage/storage_glue.c flipper/storage/storage.c flipper/storage/filesystem_api.c flipper/storage/storage_processing.c flipper/storage/storage_sd_api.c flipper/storage/storages/sd_notify.c flipper/storage/storages/storage_ext.c flipper/storage/storages/storage_int.c flipper/storage/storage_internal_api.c flipper/furi.c flipper/ptr_dict.c flipper/core/semaphore.c flipper/core/event_flag.c flipper/core/string.c flipper/core/mutex.c flipper/core/pubsub.c flipper/core/timer.c flipper/core/kernel.c flipper/core/record.c flipper/core/thread.c flipper/core/message_queue.c flipper/notification/notification_messages.c flipper/notification/notification_messages_notes.c flipper/notification/notification_app_api.c flipper/notification/notification_app.c flipper/gui/gui.c flipper/gui/icon_animation.c flipper/gui/canvas.c flipper/gui/icon.c flipper/gui/view_port.c flipper/cli/cli_commands.c flipper/cli/cli.c flipper/cli/cli_vcp.c flipper/globals/sound.c flipper/globals/backlight.c flipper/globals/led.c flipper/globals/vibro.c flipper/globals/termios.c flipper/input/input.c flipper_hal/furi_hal_rtc.c flipper_hal/furi_hal_light.c flipper_hal/furi_hal_vibro.c flipper_hal/furi_hal_speaker.c helpers/toolbox/hex.c helpers/toolbox/args.c helpers/toolbox/compress.c helpers/toolbox/dir_walk.c helpers/toolbox/path.c helpers/toolbox/stream/stream.c helpers/toolbox/stream/buffered_file_stream.c helpers/toolbox/stream/file_stream.c helpers/toolbox/stream/string_stream.c helpers/toolbox/stream/stream_cache.c helpers/crash.c helpers/h_recursive_mkdir.c lib/u8g2/u8g2_line.c lib/u8g2/u8x8_gpio.c lib/u8g2/u8g2_font.c lib/u8g2/u8x8_capture.c lib/u8g2/u8g2_glue.c lib/u8g2/u8x8_byte.c lib/u8g2/u8g2_hvline.c lib/u8g2/u8g2_bitmap.c lib/u8g2/u8g2_intersection.c lib/u8g2/u8g2_setup.c lib/u8g2/u8g2_buffer.c lib/u8g2/u8g2_circle.c lib/u8g2/u8g2_ll_hvline.c lib/u8g2/csrc/u8x8_u16toa.c lib/u8g2/u8x8_setup.c lib/u8g2/u8x8_8x8.c lib/u8g2/u8g2_d_memory.c lib/u8g2/u8g2_box.c lib/u8g2/u8x8_cad.c lib/u8g2/u8x8_display.c lib/u8g2/u8g2_kerning.c lib/u8g2/u8g2_fonts.c lib/heatshrink/heatshrink.c lib/heatshrink/test_heatshrink_static.c lib/heatshrink/heatshrink_encoder.c lib/heatshrink/heatshrink_decoder.c lib/heatshrink/test_heatshrink_dynamic_theft.c lib/heatshrink/test_heatshrink_dynamic.c; do
jsout=$(node compile.js $file);
objname=$(echo $jsout | jq -r '.obj');
dateextr=$(echo $jsout | jq -r '.time');
if [ $objname ]; then
gcc -O2 -Wall -Wno-main -g -m32 -DFLIPPULATOR_APP_ID="example_app_milkcool" -D_FLIPPULATOR -c "-DFLIPPULATOR_APP_NAME="Example"" -Iflipper/ -Iflipper_hal/ -Ihelpers/ -Ilib/ "$file" -o $objname -lSDL2 -lSDL2_ttf -lm -lbsd;
echo CC: $file = $objname;
jq '.["'$file'"] = "'$dateextr'"' timestamps.json > /tmp/flippulator_timestamps.json; mv /tmp/flippulator_timestamps.json timestamps.json;
fi;
done
CC: flippulator_app_copy/example_app_milkcool.c = flippulator_app_copy/example_app_milkcool.o
CC: flipper/storage/storage_external_api.c = flipper/storage/storage_external_api.o
CC: flipper/storage/storage_glue.c = flipper/storage/storage_glue.o
CC: flipper/storage/storage.c = flipper/storage/storage.o
CC: flipper/storage/filesystem_api.c = flipper/storage/filesystem_api.o
CC: flipper/storage/storage_processing.c = flipper/storage/storage_processing.o
CC: flipper/storage/storage_sd_api.c = flipper/storage/storage_sd_api.o
CC: flipper/storage/storages/sd_notify.c = flipper/storage/storages/sd_notify.o
CC: flipper/storage/storages/storage_ext.c = flipper/storage/storages/storage_ext.o
CC: flipper/storage/storages/storage_int.c = flipper/storage/storages/storage_int.o
CC: flipper/storage/storage_internal_api.c = flipper/storage/storage_internal_api.o
CC: flipper/furi.c = flipper/furi.o
CC: flipper/ptr_dict.c = flipper/ptr_dict.o
CC: flipper/core/semaphore.c = flipper/core/semaphore.o
CC: flipper/core/event_flag.c = flipper/core/event_flag.o
CC: flipper/core/string.c = flipper/core/string.o
CC: flipper/core/mutex.c = flipper/core/mutex.o
CC: flipper/core/pubsub.c = flipper/core/pubsub.o
CC: flipper/core/timer.c = flipper/core/timer.o
CC: flipper/core/kernel.c = flipper/core/kernel.o
CC: flipper/core/record.c = flipper/core/record.o
CC: flipper/core/thread.c = flipper/core/thread.o
CC: flipper/core/message_queue.c = flipper/core/message_queue.o
CC: flipper/notification/notification_messages.c = flipper/notification/notification_messages.o
CC: flipper/notification/notification_messages_notes.c = flipper/notification/notification_messages_notes.o
CC: flipper/notification/notification_app_api.c = flipper/notification/notification_app_api.o
CC: flipper/notification/notification_app.c = flipper/notification/notification_app.o
flipper/gui/gui.c:10:10: fatal error: SDL2/SDL_ttf.h: No such file or directory
10 | #include <SDL2/SDL_ttf.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
CC: flipper/gui/gui.c = flipper/gui/gui.o
CC: flipper/gui/icon_animation.c = flipper/gui/icon_animation.o
CC: flipper/gui/canvas.c = flipper/gui/canvas.o
CC: flipper/gui/icon.c = flipper/gui/icon.o
CC: flipper/gui/view_port.c = flipper/gui/view_port.o
CC: flipper/cli/cli_commands.c = flipper/cli/cli_commands.o
CC: flipper/cli/cli.c = flipper/cli/cli.o
CC: flipper/cli/cli_vcp.c = flipper/cli/cli_vcp.o
CC: flipper/globals/sound.c = flipper/globals/sound.o
CC: flipper/globals/backlight.c = flipper/globals/backlight.o
CC: flipper/globals/led.c = flipper/globals/led.o
CC: flipper/globals/vibro.c = flipper/globals/vibro.o
CC: flipper/globals/termios.c = flipper/globals/termios.o
CC: flipper/input/input.c = flipper/input/input.o
CC: flipper_hal/furi_hal_rtc.c = flipper_hal/furi_hal_rtc.o
CC: flipper_hal/furi_hal_light.c = flipper_hal/furi_hal_light.o
CC: flipper_hal/furi_hal_vibro.c = flipper_hal/furi_hal_vibro.o
CC: flipper_hal/furi_hal_speaker.c = flipper_hal/furi_hal_speaker.o
CC: helpers/toolbox/hex.c = helpers/toolbox/hex.o
CC: helpers/toolbox/args.c = helpers/toolbox/args.o
CC: helpers/toolbox/compress.c = helpers/toolbox/compress.o
CC: helpers/toolbox/dir_walk.c = helpers/toolbox/dir_walk.o
CC: helpers/toolbox/path.c = helpers/toolbox/path.o
CC: helpers/toolbox/stream/stream.c = helpers/toolbox/stream/stream.o
CC: helpers/toolbox/stream/buffered_file_stream.c = helpers/toolbox/stream/buffered_file_stream.o
CC: helpers/toolbox/stream/file_stream.c = helpers/toolbox/stream/file_stream.o
CC: helpers/toolbox/stream/string_stream.c = helpers/toolbox/stream/string_stream.o
CC: helpers/toolbox/stream/stream_cache.c = helpers/toolbox/stream/stream_cache.o
CC: helpers/crash.c = helpers/crash.o
CC: helpers/h_recursive_mkdir.c = helpers/h_recursive_mkdir.o
CC: lib/u8g2/u8g2_line.c = lib/u8g2/u8g2_line.o
CC: lib/u8g2/u8x8_gpio.c = lib/u8g2/u8x8_gpio.o
CC: lib/u8g2/u8g2_font.c = lib/u8g2/u8g2_font.o
CC: lib/u8g2/u8x8_capture.c = lib/u8g2/u8x8_capture.o
CC: lib/u8g2/u8g2_glue.c = lib/u8g2/u8g2_glue.o
CC: lib/u8g2/u8x8_byte.c = lib/u8g2/u8x8_byte.o
CC: lib/u8g2/u8g2_hvline.c = lib/u8g2/u8g2_hvline.o
CC: lib/u8g2/u8g2_bitmap.c = lib/u8g2/u8g2_bitmap.o
CC: lib/u8g2/u8g2_intersection.c = lib/u8g2/u8g2_intersection.o
CC: lib/u8g2/u8g2_setup.c = lib/u8g2/u8g2_setup.o
CC: lib/u8g2/u8g2_buffer.c = lib/u8g2/u8g2_buffer.o
CC: lib/u8g2/u8g2_circle.c = lib/u8g2/u8g2_circle.o
CC: lib/u8g2/u8g2_ll_hvline.c = lib/u8g2/u8g2_ll_hvline.o
CC: lib/u8g2/csrc/u8x8_u16toa.c = lib/u8g2/csrc/u8x8_u16toa.o
CC: lib/u8g2/u8x8_setup.c = lib/u8g2/u8x8_setup.o
CC: lib/u8g2/u8x8_8x8.c = lib/u8g2/u8x8_8x8.o
CC: lib/u8g2/u8g2_d_memory.c = lib/u8g2/u8g2_d_memory.o
CC: lib/u8g2/u8g2_box.c = lib/u8g2/u8g2_box.o
CC: lib/u8g2/u8x8_cad.c = lib/u8g2/u8x8_cad.o
CC: lib/u8g2/u8x8_display.c = lib/u8g2/u8x8_display.o
CC: lib/u8g2/u8g2_kerning.c = lib/u8g2/u8g2_kerning.o
CC: lib/u8g2/u8g2_fonts.c = lib/u8g2/u8g2_fonts.o
CC: lib/heatshrink/heatshrink.c = lib/heatshrink/heatshrink.o
CC: lib/heatshrink/test_heatshrink_static.c = lib/heatshrink/test_heatshrink_static.o
CC: lib/heatshrink/heatshrink_encoder.c = lib/heatshrink/heatshrink_encoder.o
CC: lib/heatshrink/heatshrink_decoder.c = lib/heatshrink/heatshrink_decoder.o
CC: lib/heatshrink/test_heatshrink_dynamic_theft.c = lib/heatshrink/test_heatshrink_dynamic_theft.o
CC: lib/heatshrink/test_heatshrink_dynamic.c = lib/heatshrink/test_heatshrink_dynamic.o
gcc -O2 -Wall -Wno-main -g -m32 -DFLIPPULATOR_APP_ID="example_app_milkcool" -D_FLIPPULATOR flipper/storage/storage_external_api.o flipper/storage/storage_glue.o flipper/storage/storage.o flipper/storage/filesystem_api.o flipper/storage/storage_processing.o flipper/storage/storage_sd_api.o flipper/storage/storages/sd_notify.o flipper/storage/storages/storage_ext.o flipper/storage/storages/storage_int.o flipper/storage/storage_internal_api.o flipper/furi.o flipper/ptr_dict.o flipper/core/semaphore.o flipper/core/event_flag.o flipper/core/string.o flipper/core/mutex.o flipper/core/pubsub.o flipper/core/timer.o flipper/core/kernel.o flipper/core/record.o flipper/core/thread.o flipper/core/message_queue.o flipper/notification/notification_messages.o flipper/notification/notification_messages_notes.o flipper/notification/notification_app_api.o flipper/notification/notification_app.o flipper/gui/gui.o flipper/gui/icon_animation.o flipper/gui/canvas.o flipper/gui/icon.o flipper/gui/view_port.o flipper/cli/cli_commands.o flipper/cli/cli.o flipper/cli/cli_vcp.o flipper/globals/sound.o flipper/globals/backlight.o flipper/globals/led.o flipper/globals/vibro.o flipper/globals/termios.o flipper/input/input.o flipper_hal/furi_hal_rtc.o flipper_hal/furi_hal_light.o flipper_hal/furi_hal_vibro.o flipper_hal/furi_hal_speaker.o helpers/toolbox/hex.o helpers/toolbox/args.o helpers/toolbox/compress.o helpers/toolbox/dir_walk.o helpers/toolbox/path.o helpers/toolbox/stream/stream.o helpers/toolbox/stream/buffered_file_stream.o helpers/toolbox/stream/file_stream.o helpers/toolbox/stream/string_stream.o helpers/toolbox/stream/stream_cache.o helpers/crash.o helpers/h_recursive_mkdir.o lib/u8g2/u8g2_line.o lib/u8g2/u8x8_gpio.o lib/u8g2/u8g2_font.o lib/u8g2/u8x8_capture.o lib/u8g2/u8g2_glue.o lib/u8g2/u8x8_byte.o lib/u8g2/u8g2_hvline.o lib/u8g2/u8g2_bitmap.o lib/u8g2/u8g2_intersection.o lib/u8g2/u8g2_setup.o lib/u8g2/u8g2_buffer.o lib/u8g2/u8g2_circle.o lib/u8g2/u8g2_ll_hvline.o lib/u8g2/csrc/u8x8_u16toa.o lib/u8g2/u8x8_setup.o lib/u8g2/u8x8_8x8.o lib/u8g2/u8g2_d_memory.o lib/u8g2/u8g2_box.o lib/u8g2/u8x8_cad.o lib/u8g2/u8x8_display.o lib/u8g2/u8g2_kerning.o lib/u8g2/u8g2_fonts.o lib/heatshrink/heatshrink.o lib/heatshrink/test_heatshrink_static.o lib/heatshrink/heatshrink_encoder.o lib/heatshrink/heatshrink_decoder.o lib/heatshrink/test_heatshrink_dynamic_theft.o lib/heatshrink/test_heatshrink_dynamic.o flippulator_app_copy/example_app_milkcool.o -o out_example_app_milkcool/example_app_milkcool -lSDL2 -lSDL2_ttf -lm -lbsd
/usr/bin/ld: cannot find flipper/gui/gui.o: No such file or directory
/usr/bin/ld: cannot find -lSDL2_ttf: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:43: out_example_app_milkcool/example_app_milkcool] Error 1
Done!

@Milk-Cool
Copy link
Owner

now you don't have SDL2 installed. it was in the readme:

Packages make, gcc, libsdl2-dev:i386, gcc-12-multilib (or an alternative that's compatible with your current gcc version), libbsd-dev:i386

@Spaghetti-Cat
Copy link
Author

Oh whoops sorry man i swear i ran that many times
ill run them each by themselfs

@Spaghetti-Cat
Copy link
Author

It also refuses to install

@Milk-Cool
Copy link
Owner

Milk-Cool commented Jan 28, 2024

It also refuses to install

what's the command output?
also did you try adding the 32-bit architecture to apt?

@Spaghetti-Cat
Copy link
Author

Well not really refuses to install but refuses to work

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libsdl2-dev:i386 is already the newest version (2.0.20+dfsg-2ubuntu1.22.04.1).
The following packages were automatically installed and are no longer required:
gconf-service gconf-service-backend gconf2-common libgconf-2-4
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

@Milk-Cool
Copy link
Owner

and have you tried compiling again?

@Spaghetti-Cat
Copy link
Author

Ill try again

@Spaghetti-Cat
Copy link
Author

[email protected] start
node index.js

Enter the application folder name: FlipperZeroExampleApp
mkdir out_example_app_milkcool/
touch timestamps.json
if [ ! -s timestamps.json ]; then
echo '{}' > timestamps.json;
fi
for file in flippulator_app_copy/example_app_milkcool.c flipper/storage/storage_external_api.c flipper/storage/storage_glue.c flipper/storage/storage.c flipper/storage/filesystem_api.c flipper/storage/storage_processing.c flipper/storage/storage_sd_api.c flipper/storage/storages/sd_notify.c flipper/storage/storages/storage_ext.c flipper/storage/storages/storage_int.c flipper/storage/storage_internal_api.c flipper/furi.c flipper/ptr_dict.c flipper/core/semaphore.c flipper/core/event_flag.c flipper/core/string.c flipper/core/mutex.c flipper/core/pubsub.c flipper/core/timer.c flipper/core/kernel.c flipper/core/record.c flipper/core/thread.c flipper/core/message_queue.c flipper/notification/notification_messages.c flipper/notification/notification_messages_notes.c flipper/notification/notification_app_api.c flipper/notification/notification_app.c flipper/gui/gui.c flipper/gui/icon_animation.c flipper/gui/canvas.c flipper/gui/icon.c flipper/gui/view_port.c flipper/cli/cli_commands.c flipper/cli/cli.c flipper/cli/cli_vcp.c flipper/globals/sound.c flipper/globals/backlight.c flipper/globals/led.c flipper/globals/vibro.c flipper/globals/termios.c flipper/input/input.c flipper_hal/furi_hal_rtc.c flipper_hal/furi_hal_light.c flipper_hal/furi_hal_vibro.c flipper_hal/furi_hal_speaker.c helpers/toolbox/hex.c helpers/toolbox/args.c helpers/toolbox/compress.c helpers/toolbox/dir_walk.c helpers/toolbox/path.c helpers/toolbox/stream/stream.c helpers/toolbox/stream/buffered_file_stream.c helpers/toolbox/stream/file_stream.c helpers/toolbox/stream/string_stream.c helpers/toolbox/stream/stream_cache.c helpers/crash.c helpers/h_recursive_mkdir.c lib/u8g2/u8g2_line.c lib/u8g2/u8x8_gpio.c lib/u8g2/u8g2_font.c lib/u8g2/u8x8_capture.c lib/u8g2/u8g2_glue.c lib/u8g2/u8x8_byte.c lib/u8g2/u8g2_hvline.c lib/u8g2/u8g2_bitmap.c lib/u8g2/u8g2_intersection.c lib/u8g2/u8g2_setup.c lib/u8g2/u8g2_buffer.c lib/u8g2/u8g2_circle.c lib/u8g2/u8g2_ll_hvline.c lib/u8g2/csrc/u8x8_u16toa.c lib/u8g2/u8x8_setup.c lib/u8g2/u8x8_8x8.c lib/u8g2/u8g2_d_memory.c lib/u8g2/u8g2_box.c lib/u8g2/u8x8_cad.c lib/u8g2/u8x8_display.c lib/u8g2/u8g2_kerning.c lib/u8g2/u8g2_fonts.c lib/heatshrink/heatshrink.c lib/heatshrink/test_heatshrink_static.c lib/heatshrink/heatshrink_encoder.c lib/heatshrink/heatshrink_decoder.c lib/heatshrink/test_heatshrink_dynamic_theft.c lib/heatshrink/test_heatshrink_dynamic.c; do
jsout=$(node compile.js $file);
objname=$(echo $jsout | jq -r '.obj');
dateextr=$(echo $jsout | jq -r '.time');
if [ $objname ]; then
gcc -O2 -Wall -Wno-main -g -m32 -DFLIPPULATOR_APP_ID="example_app_milkcool" -D_FLIPPULATOR -c "-DFLIPPULATOR_APP_NAME="Example"" -Iflipper/ -Iflipper_hal/ -Ihelpers/ -Ilib/ "$file" -o $objname -lSDL2 -lSDL2_ttf -lm -lbsd;
echo CC: $file = $objname;
jq '.["'$file'"] = "'$dateextr'"' timestamps.json > /tmp/flippulator_timestamps.json; mv /tmp/flippulator_timestamps.json timestamps.json;
fi;
done
CC: flippulator_app_copy/example_app_milkcool.c = flippulator_app_copy/example_app_milkcool.o
flipper/gui/gui.c:10:10: fatal error: SDL2/SDL_ttf.h: No such file or directory
10 | #include <SDL2/SDL_ttf.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
CC: flipper/gui/gui.c = flipper/gui/gui.o
gcc -O2 -Wall -Wno-main -g -m32 -DFLIPPULATOR_APP_ID="example_app_milkcool" -D_FLIPPULATOR flipper/storage/storage_external_api.o flipper/storage/storage_glue.o flipper/storage/storage.o flipper/storage/filesystem_api.o flipper/storage/storage_processing.o flipper/storage/storage_sd_api.o flipper/storage/storages/sd_notify.o flipper/storage/storages/storage_ext.o flipper/storage/storages/storage_int.o flipper/storage/storage_internal_api.o flipper/furi.o flipper/ptr_dict.o flipper/core/semaphore.o flipper/core/event_flag.o flipper/core/string.o flipper/core/mutex.o flipper/core/pubsub.o flipper/core/timer.o flipper/core/kernel.o flipper/core/record.o flipper/core/thread.o flipper/core/message_queue.o flipper/notification/notification_messages.o flipper/notification/notification_messages_notes.o flipper/notification/notification_app_api.o flipper/notification/notification_app.o flipper/gui/gui.o flipper/gui/icon_animation.o flipper/gui/canvas.o flipper/gui/icon.o flipper/gui/view_port.o flipper/cli/cli_commands.o flipper/cli/cli.o flipper/cli/cli_vcp.o flipper/globals/sound.o flipper/globals/backlight.o flipper/globals/led.o flipper/globals/vibro.o flipper/globals/termios.o flipper/input/input.o flipper_hal/furi_hal_rtc.o flipper_hal/furi_hal_light.o flipper_hal/furi_hal_vibro.o flipper_hal/furi_hal_speaker.o helpers/toolbox/hex.o helpers/toolbox/args.o helpers/toolbox/compress.o helpers/toolbox/dir_walk.o helpers/toolbox/path.o helpers/toolbox/stream/stream.o helpers/toolbox/stream/buffered_file_stream.o helpers/toolbox/stream/file_stream.o helpers/toolbox/stream/string_stream.o helpers/toolbox/stream/stream_cache.o helpers/crash.o helpers/h_recursive_mkdir.o lib/u8g2/u8g2_line.o lib/u8g2/u8x8_gpio.o lib/u8g2/u8g2_font.o lib/u8g2/u8x8_capture.o lib/u8g2/u8g2_glue.o lib/u8g2/u8x8_byte.o lib/u8g2/u8g2_hvline.o lib/u8g2/u8g2_bitmap.o lib/u8g2/u8g2_intersection.o lib/u8g2/u8g2_setup.o lib/u8g2/u8g2_buffer.o lib/u8g2/u8g2_circle.o lib/u8g2/u8g2_ll_hvline.o lib/u8g2/csrc/u8x8_u16toa.o lib/u8g2/u8x8_setup.o lib/u8g2/u8x8_8x8.o lib/u8g2/u8g2_d_memory.o lib/u8g2/u8g2_box.o lib/u8g2/u8x8_cad.o lib/u8g2/u8x8_display.o lib/u8g2/u8g2_kerning.o lib/u8g2/u8g2_fonts.o lib/heatshrink/heatshrink.o lib/heatshrink/test_heatshrink_static.o lib/heatshrink/heatshrink_encoder.o lib/heatshrink/heatshrink_decoder.o lib/heatshrink/test_heatshrink_dynamic_theft.o lib/heatshrink/test_heatshrink_dynamic.o flippulator_app_copy/example_app_milkcool.o -o out_example_app_milkcool/example_app_milkcool -lSDL2 -lSDL2_ttf -lm -lbsd
/usr/bin/ld: cannot find flipper/gui/gui.o: No such file or directory
/usr/bin/ld: cannot find -lSDL2_ttf: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:43: out_example_app_milkcool/example_app_milkcool] Error 1
Done!

@Milk-Cool
Copy link
Owner

oh right... you're also supposed to install libsdl2-ttf-dev with sudo apt install libsdl2-ttf-dev. sorry about that

@Spaghetti-Cat
Copy link
Author

Its all good

@Spaghetti-Cat
Copy link
Author

[email protected] start
node index.js

Enter the application folder name: FlipperZeroExampleApp
mkdir out_example_app_milkcool/
touch timestamps.json
if [ ! -s timestamps.json ]; then
echo '{}' > timestamps.json;
fi
for file in flippulator_app_copy/example_app_milkcool.c flipper/storage/storage_external_api.c flipper/storage/storage_glue.c flipper/storage/storage.c flipper/storage/filesystem_api.c flipper/storage/storage_processing.c flipper/storage/storage_sd_api.c flipper/storage/storages/sd_notify.c flipper/storage/storages/storage_ext.c flipper/storage/storages/storage_int.c flipper/storage/storage_internal_api.c flipper/furi.c flipper/ptr_dict.c flipper/core/semaphore.c flipper/core/event_flag.c flipper/core/string.c flipper/core/mutex.c flipper/core/pubsub.c flipper/core/timer.c flipper/core/kernel.c flipper/core/record.c flipper/core/thread.c flipper/core/message_queue.c flipper/notification/notification_messages.c flipper/notification/notification_messages_notes.c flipper/notification/notification_app_api.c flipper/notification/notification_app.c flipper/gui/gui.c flipper/gui/icon_animation.c flipper/gui/canvas.c flipper/gui/icon.c flipper/gui/view_port.c flipper/cli/cli_commands.c flipper/cli/cli.c flipper/cli/cli_vcp.c flipper/globals/sound.c flipper/globals/backlight.c flipper/globals/led.c flipper/globals/vibro.c flipper/globals/termios.c flipper/input/input.c flipper_hal/furi_hal_rtc.c flipper_hal/furi_hal_light.c flipper_hal/furi_hal_vibro.c flipper_hal/furi_hal_speaker.c helpers/toolbox/hex.c helpers/toolbox/args.c helpers/toolbox/compress.c helpers/toolbox/dir_walk.c helpers/toolbox/path.c helpers/toolbox/stream/stream.c helpers/toolbox/stream/buffered_file_stream.c helpers/toolbox/stream/file_stream.c helpers/toolbox/stream/string_stream.c helpers/toolbox/stream/stream_cache.c helpers/crash.c helpers/h_recursive_mkdir.c lib/u8g2/u8g2_line.c lib/u8g2/u8x8_gpio.c lib/u8g2/u8g2_font.c lib/u8g2/u8x8_capture.c lib/u8g2/u8g2_glue.c lib/u8g2/u8x8_byte.c lib/u8g2/u8g2_hvline.c lib/u8g2/u8g2_bitmap.c lib/u8g2/u8g2_intersection.c lib/u8g2/u8g2_setup.c lib/u8g2/u8g2_buffer.c lib/u8g2/u8g2_circle.c lib/u8g2/u8g2_ll_hvline.c lib/u8g2/csrc/u8x8_u16toa.c lib/u8g2/u8x8_setup.c lib/u8g2/u8x8_8x8.c lib/u8g2/u8g2_d_memory.c lib/u8g2/u8g2_box.c lib/u8g2/u8x8_cad.c lib/u8g2/u8x8_display.c lib/u8g2/u8g2_kerning.c lib/u8g2/u8g2_fonts.c lib/heatshrink/heatshrink.c lib/heatshrink/test_heatshrink_static.c lib/heatshrink/heatshrink_encoder.c lib/heatshrink/heatshrink_decoder.c lib/heatshrink/test_heatshrink_dynamic_theft.c lib/heatshrink/test_heatshrink_dynamic.c; do
jsout=$(node compile.js $file);
objname=$(echo $jsout | jq -r '.obj');
dateextr=$(echo $jsout | jq -r '.time');
if [ $objname ]; then
gcc -O2 -Wall -Wno-main -g -m32 -DFLIPPULATOR_APP_ID="example_app_milkcool" -D_FLIPPULATOR -c "-DFLIPPULATOR_APP_NAME="Example"" -Iflipper/ -Iflipper_hal/ -Ihelpers/ -Ilib/ "$file" -o $objname -lSDL2 -lSDL2_ttf -lm -lbsd;
echo CC: $file = $objname;
jq '.["'$file'"] = "'$dateextr'"' timestamps.json > /tmp/flippulator_timestamps.json; mv /tmp/flippulator_timestamps.json timestamps.json;
fi;
done
CC: flippulator_app_copy/example_app_milkcool.c = flippulator_app_copy/example_app_milkcool.o

CC: flipper/gui/gui.c = flipper/gui/gui.o
gcc -O2 -Wall -Wno-main -g -m32 -DFLIPPULATOR_APP_ID="example_app_milkcool" -D_FLIPPULATOR flipper/storage/storage_external_api.o flipper/storage/storage_glue.o flipper/storage/storage.o flipper/storage/filesystem_api.o flipper/storage/storage_processing.o flipper/storage/storage_sd_api.o flipper/storage/storages/sd_notify.o flipper/storage/storages/storage_ext.o flipper/storage/storages/storage_int.o flipper/storage/storage_internal_api.o flipper/furi.o flipper/ptr_dict.o flipper/core/semaphore.o flipper/core/event_flag.o flipper/core/string.o flipper/core/mutex.o flipper/core/pubsub.o flipper/core/timer.o flipper/core/kernel.o flipper/core/record.o flipper/core/thread.o flipper/core/message_queue.o flipper/notification/notification_messages.o flipper/notification/notification_messages_notes.o flipper/notification/notification_app_api.o flipper/notification/notification_app.o flipper/gui/gui.o flipper/gui/icon_animation.o flipper/gui/canvas.o flipper/gui/icon.o flipper/gui/view_port.o flipper/cli/cli_commands.o flipper/cli/cli.o flipper/cli/cli_vcp.o flipper/globals/sound.o flipper/globals/backlight.o flipper/globals/led.o flipper/globals/vibro.o flipper/globals/termios.o flipper/input/input.o flipper_hal/furi_hal_rtc.o flipper_hal/furi_hal_light.o flipper_hal/furi_hal_vibro.o flipper_hal/furi_hal_speaker.o helpers/toolbox/hex.o helpers/toolbox/args.o helpers/toolbox/compress.o helpers/toolbox/dir_walk.o helpers/toolbox/path.o helpers/toolbox/stream/stream.o helpers/toolbox/stream/buffered_file_stream.o helpers/toolbox/stream/file_stream.o helpers/toolbox/stream/string_stream.o helpers/toolbox/stream/stream_cache.o helpers/crash.o helpers/h_recursive_mkdir.o lib/u8g2/u8g2_line.o lib/u8g2/u8x8_gpio.o lib/u8g2/u8g2_font.o lib/u8g2/u8x8_capture.o lib/u8g2/u8g2_glue.o lib/u8g2/u8x8_byte.o lib/u8g2/u8g2_hvline.o lib/u8g2/u8g2_bitmap.o lib/u8g2/u8g2_intersection.o lib/u8g2/u8g2_setup.o lib/u8g2/u8g2_buffer.o lib/u8g2/u8g2_circle.o lib/u8g2/u8g2_ll_hvline.o lib/u8g2/csrc/u8x8_u16toa.o lib/u8g2/u8x8_setup.o lib/u8g2/u8x8_8x8.o lib/u8g2/u8g2_d_memory.o lib/u8g2/u8g2_box.o lib/u8g2/u8x8_cad.o lib/u8g2/u8x8_display.o lib/u8g2/u8g2_kerning.o lib/u8g2/u8g2_fonts.o lib/heatshrink/heatshrink.o lib/heatshrink/test_heatshrink_static.o lib/heatshrink/heatshrink_encoder.o lib/heatshrink/heatshrink_decoder.o lib/heatshrink/test_heatshrink_dynamic_theft.o lib/heatshrink/test_heatshrink_dynamic.o flippulator_app_copy/example_app_milkcool.o -o out_example_app_milkcool/example_app_milkcool -lSDL2 -lSDL2_ttf -lm -lbsd
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libSDL2_ttf.so when searching for -lSDL2_ttf
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libSDL2_ttf.a when searching for -lSDL2_ttf
/usr/bin/ld: cannot find -lSDL2_ttf: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libSDL2_ttf.so when searching for -lSDL2_ttf
collect2: error: ld returned 1 exit status
make: *** [Makefile:43: out_example_app_milkcool/example_app_milkcool] Error 1
Done!

@Milk-Cool
Copy link
Owner

ohhhh sorry, you need to install sudo apt install libsdl2-ttf-dev:i386 (the 32-bit version)

@Spaghetti-Cat
Copy link
Author

Its okk

@Spaghetti-Cat
Copy link
Author

IT WORKS THANK YOU SM

@Milk-Cool
Copy link
Owner

you're welcome! closing the issue now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants