-
Notifications
You must be signed in to change notification settings - Fork 266
Building on MacOS #350
Comments
You can simply disable the autoreload feature by using the backend "nop", then sxiv will not depend on inotify. Just set "AUTORELOAD=nop" for make. If you're more adventurous you can create a new autoreload-backend that uses the Mac OS FS Events api instead of inotify, to port this feature to mac. |
Thanks. That got me to the next error:
I'll be working on this now, but help is appreciated of course.
That is ambitious for me. I don't know a whole lot about C. As it stands, getting the homebrew formula updated will be challenging since it seems so many changes to xquartz itself are necessary, and I don't know if they will be accepted either. If I can get my own binary compiled (and leave a trail of breadcrumbs for others), that may have to be enough. |
I too have grown very fond of sxiv and would love to find a way to get it to work on macos. I got the same errors as you, but have withered my own error message to just CC commands.o
CC image.o
CC main.o
GEN version.h
CC options.o
CC thumbs.o
thumbs.c:96:32: warning: result of comparison of constant 4294967295 with expression of type 'Imlib_Load_Error' (aka 'enum _imlib_load_error') is always
false [-Wtautological-constant-out-of-range-compare]
if ((err = r_mkdir(cfile)) == -1)
~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
1 warning generated.
CC util.o
CC window.o
LINK sxiv by adding |
Warning generated on MacOS, reported in issue #350.
I tried to resolve the warning in |
Hm, I still have this issue when I haven't hacked up the libraries provided by xquartz:
@muennich in your opinion is this a defect with xquartz? |
Calling |
|
|
That did it. Thank you! I'll take a stab at getting the formula updated in homebrew. |
Warning generated on MacOS, reported in issue xyb3rt#350.
Is it possible to build sxiv 25 on macos? It seems to depend on X11 library:
XQuartz is a thing and can be installed via a homebrew cask. For what it's worth, sxiv 1.3.2 is in homebrew and it does run with xquartz as a runtime dependency. But 1.3.2 does not have X11 as a build dependency and it is coming up on five years old.
I was able to clear the X11 build errors by (perhaps stupidly) editing all the libraries in
/opt/X11/include/
with basicallys#<X11#</opt/X11/include/X11#
, but I was still not able to build because of sxiv build dependency on inotify.h:I don't know of a provider for inotify.h on macos. If anyone has suggestions, or has managed to build sxiv 25 on macos, please let me know.
The text was updated successfully, but these errors were encountered: