Closed getlogname closed 1 year ago
That deprecation warning isn't the source of the error, that's just an outdated minimum cmake version from libpng. The issue is that you don't have the patch
program installed. That can be installed with the patch
package.
Thanks, I installed patch
wich resolved my initial problem, but I now have an issue with swc
:
You can try the libpng_system_lib
branch. On there I tried to build with the fedora:latest
docker image (I think that is version 35, not sure though).
I've updated the readme on that branch as well
https://github.com/InfiniTimeOrg/InfiniSim/tree/libpng_system_lib
sudo dnf install cmake SDL2-devel g++ npm patch perl libpng-devel
I'm still getting the swc
errors on the libpng_system_lib
branch, tried on both latest Fedora 38 and fresh Fedora 35 VM. However, it works with cmake -S . -B build -DBUILD_RESOURCES=OFF
.
I'm trying to set-up a safe dev environment to write watch faces and applications without bricking my sealed PineTime, but for this I need -DBUILD_RESOURCES=ON
, right?
Only if you want to write apps which use resources from the littles filesystem. If you write apps just part of the regular firmware you can build without the resources generation. So yes you could develop without the resources.
I tested the fedora image last week. Maybe something in the lv_img_conv tool did change since then? If so this should be addressed as well 🤔 (generally I mean)
OK thanks for your help, I'll check again later if the build passes with the default parameters before closing this issue.
Some other people have reported issues like this, where @swc/core
has received an update that breaks the build. You can apparently fix it by pinning it to an older version.
You're right, I managed to build using swc v1.3.80.
Following the main branch readme steps with npm install ts-node@10.9.1 @swc/core@1.3.80 lv_img_conv@0.3.0
works on latest Fedora.
Does it fail with 1.3.81? If so, we can try to figure out what changed in that version that causes the issue.
I just picked a random version, my bad. It seems 1.3.83 introduced this bug.
Fixed by InfiniTimeOrg/InfiniTime#1863. @NeroBurner could you close this issue?
Hi, I'm trying to build the simulator on Fedora but without success. I also tried on a fresh Ubuntu VM but had similar result, I'm obviously doing something wrong, but what?
Steps: 1)
git clone --recursive https://github.com/InfiniTimeOrg/InfiniSim.git
2)cd InfiniSim/
3)git submodule update --init --recursive
4)sudo dnf install cmake SDL2-devel gcc zlib-devel npm
5)npm install lv_font_conv@1.5.2
6)npm install ts-node@10.9.1 @swc/core lv_img_conv@0.3.0
7)cmake -S . -B build
Here I get a depreciation warning but I'm already using cmake 3.27.4 which is the latest version. 8)cmake --build build -j4
Depreciation warning
``` -- Using CMake version 3.27.4 -- InfiniTime PROJECT_VERSION extracted: 1.13.0 -- The C compiler identification is GNU 13.2.1 -- The CXX compiler identification is GNU 13.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Using default C++ standard 17 -- Using MONITOR_ZOOM=1 -- add subdirectory /home/brixnet/Documents/my-documents/dev/PineTime/InfiniSim/InfiniTime/src/displayapp/fonts for 'infinitime_fonts' target -- Using /home/brixnet/Documents/my-documents/dev/PineTime/InfiniSim/node_modules/.bin/lv_font_conv to generate font files -- Found Python3: /usr/bin/python3.11 (found version "3.11.4") found components: Interpreter -- add subdirectory /home/brixnet/Documents/my-documents/dev/PineTime/InfiniSim/InfiniTime/src/resources for 'GenerateResources' target -- Using /home/brixnet/Documents/my-documents/dev/PineTime/InfiniSim/node_modules/.bin/lv_font_conv to generate font files -- Using /home/brixnet/Documents/my-documents/dev/PineTime/InfiniSim/node_modules/.bin/lv_img_conv to generate font files -- Looking for C++ include filesystem -- Looking for C++ include filesystem - found -- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED -- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED - Success CMake Deprecation Warning at libpng/CMakeLists.txt:27 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argumentFailed build
``` [ 0%] Building C object CMakeFiles/QCBOR.dir/InfiniTime/src/libs/QCBOR/src/ieee754.c.o [ 0%] Generating sim_background.h [ 0%] Building C object CMakeFiles/littlefs.dir/InfiniTime/src/libs/littlefs/lfs_util.c.o [ 1%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_core/lv_disp.c.o [ 1%] Building C object CMakeFiles/QCBOR.dir/InfiniTime/src/libs/QCBOR/src/qcbor_decode.c.o [ 1%] Building C object CMakeFiles/littlefs.dir/InfiniTime/src/libs/littlefs/lfs.c.o [ 1%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_core/lv_group.c.o [ 1%] Built target infinisim_img_background [ 1%] Generate fonts and images for resource package [ 1%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_core/lv_indev.c.o [ 2%] Building C object CMakeFiles/QCBOR.dir/InfiniTime/src/libs/QCBOR/src/qcbor_encode.c.o [ 3%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_core/lv_obj.c.o [ 3%] Building C object CMakeFiles/QCBOR.dir/InfiniTime/src/libs/QCBOR/src/qcbor_err_to_str.c.o [ 3%] Building C object CMakeFiles/QCBOR.dir/InfiniTime/src/libs/QCBOR/src/UsefulBuf.c.o [ 3%] Linking C static library liblittlefs.a [ 3%] Linking C static library libQCBOR.a [ 3%] Built target littlefs [ 3%] Built target QCBOR [ 3%] Generating fontawesome_weathericons.c [ 3%] Generating jetbrains_mono_42.c [ 3%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_core/lv_refr.c.o [ 3%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_core/lv_style.c.o [ 3%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_draw/lv_draw_arc.c.o [ 3%] Built target infinitime_fonts_fontawesome_weathericons [ 4%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_draw/lv_draw_blend.c.o [ 4%] Generating jetbrains_mono_76.c [ 4%] Built target infinitime_fonts_jetbrains_mono_42 [ 5%] Generating jetbrains_mono_bold_20.c [ 5%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_draw/lv_draw_img.c.o [ 5%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_draw/lv_draw_label.c.o [ 5%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_draw/lv_draw_line.c.o [ 6%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_draw/lv_draw_mask.c.o [ 6%] Built target infinitime_fonts_jetbrains_mono_76 [ 6%] Generating jetbrains_mono_extrabold_compressed.c [ 6%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_draw/lv_draw_rect.c.o /usr/bin/env: ‘patch’: No such file or directory [ 6%] Building C object CMakeFiles/sim-base.dir/InfiniTime/src/libs/lvgl/src/lv_draw/lv_draw_triangle.c.o Traceback (most recent call last): File "/home/brixnet/Documents/my-documents/dev/PineTime/InfiniSim/InfiniTime/src/displayapp/fonts/generate.py", line 75, inThanks for reading