MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Calibre (https://www.mobileread.com/forums/forumdisplay.php?f=166)
-   -   Is Calibre compatible with Apple Silicon M1 Macs (using rosetta 2)? (https://www.mobileread.com/forums/showthread.php?t=334876)

kirk8677 11-17-2020 12:28 AM

Is Calibre compatible with Apple Silicon M1 Macs (using rosetta 2)?
 
For those early adopters getting their new ARM based Macs today, I'm really curious if Calibre runs out of the box using Rosetta 2? And also how hard would it be to recompile an ARM native version for the new Macs?

kovidgoyal 11-17-2020 12:55 AM

Cant answer your first question, as to the second, pretty hard, all of calibre's deps would need to be dual compiled. In the past calibre has had dual ppc/x86 builds for os x, so its not impossible, just dont expect it to be anytime soon.

kirk8677 11-17-2020 11:46 AM

Thanks, if anyone buys an M1 Mac and tries it, please do report on whether it works!

Quoth 11-17-2020 01:45 PM

And also if Calibre works :D

binaryhermit 11-17-2020 04:01 PM

I'd think in theory it *should* work, though performance might not be great

kirk8677 11-17-2020 06:42 PM

@Quoth: indeed! The reviews are quite positive so far......

@Binaryhermit: quite the opposite, the initial benchmarks indicate that Intel code running on Mac's ARM actually is faster than many Intel native computers (google it). However, even Apple does not guarantee 100% of Intel code will work, and the exceptions are rather technical. I suspect Calibre will work fine based on what I have read.

kirk8677 11-17-2020 06:54 PM

Quote:

Originally Posted by kovidgoyal (Post 4058876)
Cant answer your first question, as to the second, pretty hard, all of calibre's deps would need to be dual compiled. In the past calibre has had dual ppc/x86 builds for os x, so its not impossible, just dont expect it to be anytime soon.

Here's a link from Apple that describes what is compatible: https://developer.apple.com/document...on_environment

Note specifically this (does Calibre use Kernel extensions?):

What Can't Be Translated?
Rosetta can translate most Intel-based apps, including apps that contain just-in-time (JIT) compilers. However, Rosetta doesn’t translate the following executables:

Kernel extensions

Virtual Machine apps that virtualize x86_64 computer platforms

Rosetta translates all x86_64 instructions, but it doesn’t support the execution of some newer instruction sets and processor features, such as AVX, AVX2, and AVX512 vector instructions. If you include these newer instructions in your code, execute them only after verifying that they are available. For example, to determine if AVX512 vector instructions are available, use the sysctlbyname function to check the hw.optional.avx512f attribute.

kirk8677 11-17-2020 07:56 PM

Quote:

Originally Posted by binaryhermit (Post 4059085)
I'd think in theory it *should* work, though performance might not be great

Here's Lightroom Classic running under Rosetta. I suspect Calibre performance will not be an issue!

https://youtu.be/S-dOB326mlY?t=771

kovidgoyal 11-18-2020 12:14 AM

No calibre does not use kernel extensions/virtual machines. As far as I know it *should* work fine, however, the proof of the pudding is in the eating.

kirk8677 11-18-2020 01:04 AM

Thanks! I'm inspired enough to pick up my M1 Macbook Air tomorrow and try. 14 days to test it, at least!

Quoth 11-18-2020 11:23 AM

Quote:

Originally Posted by kirk8677 (Post 4059118)
@Quoth: indeed! The reviews are quite positive so far......

@Binaryhermit: quite the opposite, the initial benchmarks indicate that Intel code running on Mac's ARM actually is faster than many Intel native computers (google it). However, even Apple does not guarantee 100% of Intel code will work, and the exceptions are rather technical. I suspect Calibre will work fine based on what I have read.

Yes, Apple have done this before, 68K, Power PC, x86-32 and x86-64 with no 32 bit.
I'm sure it's well tested and while the Rossetta 2 might be slower than some non-Apple x86 computers, for a single core, it's faster than most or even all x86 Apple laptops and minis.

However I'd only buy one if I absolutely had to run Mac OS. I remember the 68K with ROM OS, the translucent CRT iMac original and the Mac in half a ball with OS9.

lisainIL 11-21-2020 05:18 PM

I have installed Calibre 4.23 on a new Mac mini with M1 chip. It works fine.
However... if you are using Alf's tool (v6.8) and Kindle for Mac 1.26, Alf's tool is not working properly.
I have posted on the Github (#1369) and in a couple of other threads here, but am having no luck with a solution.

ilovejedd 11-22-2020 02:04 AM

Quote:

Originally Posted by lisainIL (Post 4060527)
I have installed Calibre 4.23 on a new Mac mini with M1 chip. It works fine.
However... if you are using Alf's tool (v6.8) and Kindle for Mac 1.26, Alf's tool is not working properly.
I have posted on the Github (#1369) and in a couple of other threads here, but am having no luck with a solution.

Thanks for the update. Had a feeling Alf might be an issue.

lisainIL 11-22-2020 02:18 PM

Quote:

Originally Posted by ilovejedd (Post 4060617)
Thanks for the update. Had a feeling Alf might be an issue.

FYI - If you have an eInk Kindle device and use the "download & transfer via USB" method, since you're bypassing the Kindle for Mac app in this situation, Alf's tool & Calibre work fine.

Quoth 11-22-2020 02:27 PM

Quote:

Originally Posted by lisainIL (Post 4060807)
FYI - If you have an eInk Kindle device and use the "download & transfer via USB" method, since you're bypassing the Kindle for Mac app in this situation, Alf's tool & Calibre work fine.

Best anyway. KFX is evil and adds DRM even when Publisher selects DRM free.

ilovejedd 11-22-2020 03:04 PM

Quote:

Originally Posted by lisainIL (Post 4060807)
FYI - If you have an eInk Kindle device and use the "download & transfer via USB" method, since you're bypassing the Kindle for Mac app in this situation, Alf's tool & Calibre work fine.

That's a major pain to use when downloading a big batch after a spending spree. It also uses low quality images in comics. The Kindle for desktop apps download the highest quality images available (albeit a bit of pain to combine with separate azw3+azw6 files).

Terry Brown 11-27-2020 12:56 PM

Got my M1 Mac mini (16GB Ram, 1TB SSD) Nov 25 and Calibre works fine. I haven't found anything that doesn't work properly. Performance is fine--maybe just slightly better than my 2018 Mac mini with core-i7, 512GB SSD and 64GB ram.

For benchmarking, I converted Follett's Fall of Giants to kfx and compared the performance to that of the 2018 Mac mini:

kfx conversion 2018 Mac mini: 107 seconds
kfx conversion 2020 M1 Mac mini: 100 seconds

I use a number of plugins, not problems. I also have my own Python programs that access the calibre database remotely to grab information using calibredb and it all works perfectly.

Given the massive change to the hardware on the M1 devices, Apple has been very successful making almost everything compatible without compromising performance.

kovidgoyal 11-27-2020 01:18 PM

The main thing I would suspect of having issues is the Viewer or the preview panel in the editor, as they use a web browser under the hood, which in turn uses a Just in Time compiler for javascript, these tend to be the hardest things to run via emulation.

kirk8677 12-06-2020 08:29 PM

I got my M1 Mac today. No problems with viewer, no problems with preview panel. It works extremely fast and perfectly. I am very pleased. Every Intel app I have tried has performed flawlessly so far. I haven't tried Alf's tool (I am assuming it won't work) but assuming one has a backup computer for that, everything is peachy!

kovidgoyal 12-06-2020 11:17 PM

That's good to know, thanks :)

Dirk-71 12-26-2020 06:56 PM

Quote:

Originally Posted by lisainIL (Post 4060527)
... if you are using Alf's tool (v6.8) and Kindle for Mac 1.26, Alf's tool is not working properly.
I have posted on the Github (#1369) and in a couple of other threads here, but am having no luck with a solution.

A solution could be Crossover 20.

Installation of Calibre 3.48 (32-bit) is working on my Intel MacBook. I guess this will also work on M1 Mac. Then install DeDRM_tools_6.8.1 in plugins and try if it's working.

I have ordered a MacBook Air M1...but will arrive in January 2021. So, I cannot test yet.

lee.hauser 12-30-2020 08:46 PM

I've got a shiny new M1 Macbook Air (8GB, 512GB) and Calibre 4.23 works great. But I'm not able to convert. Books downloaded with the latest Kindle for Mac app don't really even load into Calibre...they just come in as "ebok" files (so maybe I'm doing something wrong there?). Books downloaded for "download and USB" transfer load into Calibre just fine, but don't convert...once again, I think I'm doing something wrong, but I'm not sure what. Something to do with my Kindle key, I'm sure.

I'm coming from Windows, where this all worked pretty well. Still got my Windows machine, but not for much longer (I hope).

odamizu 12-31-2020 01:07 AM

Quote:

Originally Posted by lee.hauser (Post 4075633)
I've got a shiny new M1 Macbook Air (8GB, 512GB) and Calibre 4.23 works great. But I'm not able to convert. Books downloaded with the latest Kindle for Mac app don't really even load into Calibre...they just come in as "ebok" files (so maybe I'm doing something wrong there?). Books downloaded for "download and USB" transfer load into Calibre just fine, but don't convert...once again, I think I'm doing something wrong, but I'm not sure what. Something to do with my Kindle key, I'm sure.

I'm coming from Windows, where this all worked pretty well. Still got my Windows machine, but not for much longer (I hope).

Welcome to macOS! :D

Some tips: https://www.mobileread.com/forums/sh...&postcount=508

DNSB 12-31-2020 01:33 AM

Quote:

Originally Posted by lee.hauser (Post 4075633)
I've got a shiny new M1 Macbook Air (8GB, 512GB) and Calibre 4.23 works great. But I'm not able to convert. Books downloaded with the latest Kindle for Mac app don't really even load into Calibre...they just come in as "ebok" files (so maybe I'm doing something wrong there?). Books downloaded for "download and USB" transfer load into Calibre just fine, but don't convert...once again, I think I'm doing something wrong, but I'm not sure what. Something to do with my Kindle key, I'm sure.

I'm coming from Windows, where this all worked pretty well. Still got my Windows machine, but not for much longer (I hope).

Have you configured K4Mac not to download KFX format? Did you enter your eInk Kindle serial number into the right spot in the DeDRM plugin configuration? You might want to check the Dealing with Kindle for PC/Mac 1.19 and KFX in calibre thread in the stickies.

Good luck!

Dirk-71 01-14-2021 02:35 PM

Meanwhile I have my MacBook Air with M1-processor. Everything is working fine. Also Alf's DRM plugin is working. I didn't find anything not working.

jmmcg9 01-15-2021 01:49 AM

Which version of Calibre?
Regards,
Joe

Dirk-71 01-15-2021 07:37 AM

Quote:

Originally Posted by jmmcg9 (Post 4082318)
Which version of Calibre?
Regards,
Joe

Latest version.

jmmcg9 01-21-2021 01:12 PM

All, I am now successfully using the latest version of Calibre on my M1 MacBook Pro (16M Ram). I initially had issues getting Alf’s plug-in to work. The problem is that Safari unzips the download automatically. I had to download the plug-in file on my Windows PC, then copy on to a flash drive. You have to add the unzipped version of the file for it to load properly.
Sweet!
Joe

rantanplan 01-22-2021 03:41 AM

Using a proper browser like Firefox or Chrome might also have worked ;)

jmmcg9 01-22-2021 08:39 AM

Yeah I use Chrome on my work PC. That would have been my next option. As far as being a “proper” browser, using both, in the Mac OS environment, my preference is Safari.


All times are GMT -4. The time now is 07:29 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.