compiler for linux #19
-
Is there a chance for a compiler that works on Linux anytime soon? Or should I try to get a VM running? :-) (Or do you have a tip to make it work with wine? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
The compiler runs on wine perfectly fine so far, you need to run the compiler binary in src/compiler/compile.exe with wine and with parameters "-b {full path to .fprj} {output folder} {name of file.face} {id}". Id does not matter, you can set it to any number and the compiler simply ignores it. The reason the compiler does not support Linux so far is because the maintainer is willing to compile for Linux. I'll try to get a Linux version of the compiler soon, expect before the final release of 1.0. |
Beta Was this translation helpful? Give feedback.
-
me again :-) the compiler seems to work with the new wine. at least it produces a .face file. Still trying to figure out how to get it onto my watch (I am using gadgetbridge). What I notice is that the .info file generated by the compiler will always say "Type="1" Size="1875887" DeviceType="1" Title="blabla" DeviceVersion="7.1.0" DeciceTypeName="Mi Band 7 Pro"" even when I chose a different device type when setting up the project. I checked the fprj file and the DeviceType there is correct (compared to the DeviceInfo.db file). Can this be a problem? |
Beta Was this translation helpful? Give feedback.
-
ok, update: I used the unpack.exe to maybe find a problem with my .face file and it did indeed have some problem with some of the images on there (image processing err: ImageMagick.MagickCorruptImageErrorException: insufficient image data in file `Z:\home\geraldine\geeband\images\img_0001_2_0.bmp' @ error/bmp.c/ReadBMPImage/963) When I removed the offending images I could successfully upload the watch face to my watch!! Edit: The offending file is a .png file, just like the one that works. I have no idea why unpack.exe thinks it should be a .bmp. File. It acutally does unpack it into a bmp file containing a weirdly distorted version of the original. |
Beta Was this translation helpful? Give feedback.
I use wine-9.13 from the Arch repository. The compiler uses the .NET framework and is written in C#, so you will need to install Wine Mono. Wine should automatically prompt you to install it when running the compiler.
I am also in the process of getting a Linux binary from the maintainer, so hang tight 😁