pdftoimage icon indicating copy to clipboard operation
pdftoimage copied to clipboard

Troubles with iconv with M1/M2 mac

Open boogolli opened this issue 1 year ago • 3 comments

Hi,

There is an issue with iconv after the latest osx upgrades on M1/M2 macs, the Iconv errors and the solution is to install iconv separately with command gem install iconv -- --with-cflags="-Wno-incompatible-function-pointer-types"

Solution grapped from https://github.com/ruby/iconv/issues/25

No idea if anything besides refactoring the gem out can solve it properly here.

boogolli avatar Mar 20 '24 07:03 boogolli

Thank you for the report, I mess around with this a bit on my m2.

robflynn avatar Mar 26 '24 16:03 robflynn

Looks like this repeats with M3 also with Sonoma 14.3, just fyi.

boogolli avatar Apr 25 '24 11:04 boogolli

This was fixed in https://github.com/ruby/iconv/pull/26

But iconv maintainers did not release a new version with the fix, so in the meantime you can point to iconv's master branch

# Gemfile

gem 'iconv', github: 'ruby/iconv', branch: 'master'

chaadow avatar Sep 08 '24 08:09 chaadow