Replies: 4 comments
-
Hi, I'm not very familiar with the MacOS development, so here I can rely only on my common sense. But we can try move step-by-step, don't hesitate to ask. The FreeBSD port was made in this mode, there was a long conversation finished with the successful port :-) First thing that I see:
I heavily rely on the
It looks like errors, caused by preceding changes in the
No, it definitely builds by clang |
Beta Was this translation helpful? Give feedback.
-
BTW, I expect problems with avahi, because MacOS has its own DNS-SD infrastructure, and Avahi may conflict with it, and expect problems in the If you will have to add some OS-specific We may communicate it, when things will get more specific. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your answers ! I've been able to go further in the build by removing The state of the modifications, for now, is :
I was able to build way more files, and am now facing a conflict in
I'll stop here for tonight and keep you posted on how it goes in the coming days ! I've also realised I might need to find a better way to build I've also taken note of the Thank you again a lot for your help ! |
Beta Was this translation helpful? Give feedback.
-
Converting it to discussion, because it doesn't contain any bug report or feature request... |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm currently looking into building this for macOS and haven't been very successful yet.
The first thing I noticed was that I'd need to build
avahi
first, as it is not available by default for macOS. I was able to do so using the following commands :As expected the required header and library files appeared in
./build
:I then went on to build
airscan
, and to add some defines inairscan.h
:memrchr
was added from https://github.com/st3fan/osx-10.9/blob/master/sudo-72/src/memrchr.c .I also had to rename the
sane_*
functions since__attribute__ ((alias ("function_name")))
doesn't seem to compile properly on macOS.The build command looks like this :
I am now face with the following errors :
I'm weirdly surprised by this, as the
log_ctx
andhttp_uri
forward declarations and the static inline functions seem valid, but I haven't done C development in a while and may probably have missing something. Maybe it only builds with gcc and I should try to build using it instead of clang ?Thank you for your input
Beta Was this translation helpful? Give feedback.
All reactions