Post ABU6b8RD9Rf93j8eQa by tobtobxx@fosstodon.org
(DIR) More posts by tobtobxx@fosstodon.org
(DIR) Post #ABU6FqGxUj8mdgBpBY by linmob@fosstodon.org
2021-09-18T11:27:09Z
0 likes, 0 repeats
Just building #Anki (https://github.com/ankitects/anki) from AUR on the #PinePhone again because of a question on Reddit. Thought this would be a quick thing, but they've reimplemented a bunch of things in #Rust. At least I can update the Anki entry on #LINMOBapps/#LinuxPhoneApps afterwards.
(DIR) Post #ABU6S14JBId5b54smu by linmob@fosstodon.org
2021-09-18T11:29:15Z
0 likes, 0 repeats
BTW: Usually I use my #GoogleOP1 / #RK3399 powered ASUS Chromebook C101p that runs #ArchLinuxARM from microSDXC for compile tasks like that, but I sadly don't have it with me right now.
(DIR) Post #ABU6b8RD9Rf93j8eQa by tobtobxx@fosstodon.org
2021-09-18T11:31:05Z
0 likes, 0 repeats
@linmob Yeah, I tried to compile anki on musl once. It's a dumpster fire.
(DIR) Post #ABU6kaLojzXUEh7cNU by linmob@fosstodon.org
2021-09-18T11:32:49Z
0 likes, 0 repeats
@tobtobxx I am can't say that yet, with Rust on the PinePhone it might take another hour until I can comment on how well this worked.
(DIR) Post #ABU6pLcKwn2LzM7TaC by tobtobxx@fosstodon.org
2021-09-18T11:33:40Z
0 likes, 0 repeats
@linmob Oh it need Java for the build system too, just so you know...
(DIR) Post #ABU7b4gvBHtFOS1Q2a by fraolt@fosstodon.org
2021-09-18T11:38:11Z
0 likes, 0 repeats
@tobtobxx @linmob Yepp, I gave up on getting the current version of #anki running on #postmarketos #musl. I changed to 2.1.15 which was the last version with a build system that I could at least remotely comprehend: https://pkgs.alpinelinux.org/package/edge/testing/x86/anki
(DIR) Post #ABU7b5KGozMjMUQqNE by linmob@fosstodon.org
2021-09-18T11:42:17Z
0 likes, 0 repeats
@fraolt @tobtobxx Interesting. Just noticed that I am only building 2.1.35, not current. I noticed bazel as a dependency for the anki-git AUR package, glad I didn't try building that. :)
(DIR) Post #ABU8pRJZxpflZEW8XY by fraolt@fosstodon.org
2021-09-18T11:56:04Z
0 likes, 0 repeats
@linmob @tobtobxx good luck and keep us posted!
(DIR) Post #ABUXWh13rPMHcG0tNI by linmob@fosstodon.org
2021-09-18T16:32:51Z
0 likes, 0 repeats
@fraolt @tobtobxx :(
(DIR) Post #ABUfVqo6lsOrKI42Pg by fraolt@fosstodon.org
2021-09-18T18:02:18Z
0 likes, 0 repeats
@linmob @tobtobxx oh noes! 😔 IIRC you'll have to compile the rspy library yourself. This took a really long time for me on the pinephone and ultimately failed (again on musl, so you might be better off with Arch/GNU). See here: https://github.com/ankitects/anki/blob/main/docs/development.mdNote: We're not the only ones having trouble. Debian and NixOS are also still at 2.1.15. See here: https://github.com/ankitects/anki/issues/1378Nevertheless, if you feel up to the task, the Anki forums are a good place to get support.
(DIR) Post #ABW23qs3QvFJWFUJQf by tobtobxx@fosstodon.org
2021-09-19T09:49:42Z
0 likes, 0 repeats
@linmob btw, I'm heavily considering getting a Pinephone to develop on it. Is X-compiling feasable or do I need an arm machine too?I just ordered hardware some three months ago, but the phones are just sooo cheap. Would you recommend the 150$ or the 200$ edition?
(DIR) Post #ABWdhuNpUQPIIgJXNY by linmob@fosstodon.org
2021-09-19T16:51:31Z
0 likes, 0 repeats
@tobtobxx I would recommend spending the extra 50 USD for more RAM and storage, both make life easier.Cross-compiling is feasible (e.g. it's easy for postmarketOS with pmbootstrap), I am just lazy and did not find a current and comprehensible "cross compiling for Arch Linux ARM tutorial" when I looked for it and since I have fast enough ARM hardware around, I did not bother.
(DIR) Post #ABaVbySLqRZ93qTMau by postmarketOS@fosstodon.org
2021-09-21T13:39:05Z
0 likes, 0 repeats
@linmob @tobtobxx Of course the solution to that is just use #postmarketOS for development 😉 If it works on our system, it most probably will work on any other distro too.
(DIR) Post #ABaWCjlHRTqiCVrA0G by xaviers@fosstodon.org
2021-09-21T13:46:16Z
0 likes, 0 repeats
@linmob @tobtobxx I was able to cross-compile some Rust code to ALARM using those instructions: https://relm.antoyo.xyz/documentation/tutorial/10-mobile-linuxYou might want to check it out.