unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Cocoa not detected when building on macOS 10.13
@ 2017-09-19 16:43 Aaron Jensen
  2017-09-19 19:39 ` Alan Third
  0 siblings, 1 reply; 3+ messages in thread
From: Aaron Jensen @ 2017-09-19 16:43 UTC (permalink / raw)
  To: emacs-devel

Hi,

I’m not sure what I’m doing wrong, but when I build the emacs-26
branch on macOS 10.13 I don’t get cocoa specific features like
ns-transparent-titlebar

Is detection broken for 10.13?

Fwiw, this is what I ran to configure:

#!/usr/bin/env bash
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
export LDFLAGS="-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib
-lxml2 -lz -lpthread -licucore"
./autogen.sh
./configure CFLAGS="-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2
-I/usr/local/opt/imagemagick@6/include" \
            --disable-dependency-tracking \
            --disable-silent-rules \
            --enable-locallisppath=/usr/local/share/emacs/site-lisp \
            --infodir=/usr/local/Cellar/emacs-plus/HEAD-d4c3669_2/share/info/emacs
\
            --prefix=/usr/local/Cellar/emacs-plus/HEAD-d4c3669_2 \
            --with-ns \
            --disable-ns-self-contained \
            --with-modules \
            --with-xml2 \
            --with-gnutls \
            --with-imagemagick \
            --with-rsvg \
            --without-dbus \
            --without-pop \
            --without-makeinfo



Aaron



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cocoa not detected when building on macOS 10.13
  2017-09-19 16:43 Cocoa not detected when building on macOS 10.13 Aaron Jensen
@ 2017-09-19 19:39 ` Alan Third
  2017-09-19 20:08   ` Aaron Jensen
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Third @ 2017-09-19 19:39 UTC (permalink / raw)
  To: Aaron Jensen; +Cc: emacs-devel

On Tue, Sep 19, 2017 at 06:43:53PM +0200, Aaron Jensen wrote:
> I’m not sure what I’m doing wrong, but when I build the emacs-26
> branch on macOS 10.13 I don’t get cocoa specific features like
> ns-transparent-titlebar
> 
> Is detection broken for 10.13?

I can’t think of any reason it should be.

Are you sure you’re testing the features correctly? Transparent
titlebars are enabled like so:

    (set-frame-parameter nil ’ns-transparent-titlebar t)

And if that’s not working then I wouldn’t expect things like native
fullscreen to work either, and I’d expect a _lot_ of warnings during
compilation.

If it’s definitely not working, try compiling and running this:

#include <stdio.h>
#include <AvailabilityMacros.h>

void main(void)
{
  printf("MAC_OS_X_VERSION_MAX_ALLOWED: %d\nMAC_OS_X_VERSION_MIN_REQUIRED: %d\n",
         MAC_OS_X_VERSION_MAX_ALLOWED, MAC_OS_X_VERSION_MIN_REQUIRED);
}

# clang test.c ; ./a.out

and send the output back to me.

(I realise it would be easier to just look in AvailabilityMacros.h,
but I can never work out where those files are actually kept.)
-- 
Alan Third



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cocoa not detected when building on macOS 10.13
  2017-09-19 19:39 ` Alan Third
@ 2017-09-19 20:08   ` Aaron Jensen
  0 siblings, 0 replies; 3+ messages in thread
From: Aaron Jensen @ 2017-09-19 20:08 UTC (permalink / raw)
  To: Alan Third; +Cc: emacs-devel

On September 19, 2017 at 12:39:29 PM, Alan Third
(alan@idiocy.org(mailto:alan@idiocy.org)) wrote:

> On Tue, Sep 19, 2017 at 06:43:53PM +0200, Aaron Jensen wrote:
> > I’m not sure what I’m doing wrong, but when I build the emacs-26
> > branch on macOS 10.13 I don’t get cocoa specific features like
> > ns-transparent-titlebar
> >
> > Is detection broken for 10.13?
>
> I can’t think of any reason it should be.
>
> Are you sure you’re testing the features correctly? Transparent
> titlebars are enabled like so:
>
> (set-frame-parameter nil ’ns-transparent-titlebar t)

That was my mistake, sorry about the confusion. It’s working now,
thank you. I was also wondering if
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28512 was due to this,
but it seems like it is actually detecting cocoa, so this is likely
just a 10.13 issue.

Thanks,

Aaron



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-19 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-19 16:43 Cocoa not detected when building on macOS 10.13 Aaron Jensen
2017-09-19 19:39 ` Alan Third
2017-09-19 20:08   ` Aaron Jensen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).