unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: "andres.ramirez" <andres.ramirez@kipuamutay.com>
Cc: Dmitry Antipov <dmantipov@yandex.ru>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
Subject: Re: Building Emacs for GNUstep
Date: Sat, 12 Jul 2014 18:30:51 +0200	[thread overview]
Message-ID: <4F7B3B08-DCAE-4527-ABB9-4C08464D87E0@swipnet.se> (raw)
In-Reply-To: <87ion3mzvt.wl%andres.ramirez@kipuamutay.com>

Hello.

A quick net search suggests that some GNUStep versions require -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e.
% CFLAGS='-g -O2 -DGNUSTEP ./configure ...

	Jan D.

11 jul 2014 kl. 21:58 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:

> Hi Jan.
> 
> $ gcc --version
> gcc (GCC) 4.9.0 20140604 (prerelease)
> 
> compiling with gcc the ns port;
> after installing with the package manager (no dev versions):
> gcc-objc
> gnustep-libobjc2-git
> gnustep-make 2.6.6-1
> gnustep-base 1.24.6-1
> gnustep-gui 0.24.0-2
> 
> with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
> 
> checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... no
> checking AppKit/AppKit.h usability... no
> checking AppKit/AppKit.h presence... yes
> configure: WARNING: AppKit/AppKit.h: present but cannot be compiled
> configure: WARNING: AppKit/AppKit.h:     check for missing prerequisite headers?
> configure: WARNING: AppKit/AppKit.h: see the Autoconf documentation
> configure: WARNING: AppKit/AppKit.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: AppKit/AppKit.h: proceeding with the compiler's result
> checking for AppKit/AppKit.h... no
> configure: error: `--with-ns' was specified, but the include
>  files are missing or cannot be compiled.
> 
> checking the cotent of config.log this is found:
> configure:10234: result: no
> configure:10246: checking AppKit/AppKit.h usability
> configure:10246: gcc -std=gnu99 -c -g3 -O2 -x objective-c -I/usr/include -I/usr/include     -x objective-c -I/usr/include -I/usr/include conftest.c >&5
> In file included from /usr/include/AppKit/NSPanel.h:34:0,
>                 from /usr/include/AppKit/NSColorPanel.h:39,
>                 from /usr/include/AppKit/AppKit.h:63,
>                 from conftest.c:101:
> /usr/include/AppKit/NSWindow.h:876:1: error: cannot find protocol declaration for 'NSWindowDelegate'
> @interface NSObject (NSWindowDelegateAdditions) <NSWindowDelegate>
> 
> 
> Any ideas?. Regards
> 
> At Fri, 11 Jul 2014 10:06:37 +0200,
> Jan Djärv wrote:
>> 
>> Hello.
>> 
>> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>> 
>>> Hi Guys. Following this thread.
>>> 
>>> I tried to compile the ns-port on my distro (archlinux)
>>> 
>>> 
>>> nsterm.m:5015: error: undefined reference to 'macfont_get_nsctfont'
>>> nsfns.m:1391: error: undefined reference to 'macfont_get_nsctfont'
>>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>> Makefile:664: recipe for target 'temacs' failed
>>> make[1]: *** [temacs] Error 1
>>> make[1]: Leaving directory '/home/aramirez/abs/emacs/ns/emacs-24.3.92/src'
>>> Makefile:382: recipe for target 'src' failed
>>> make: *** [src] Error 2
>>> 
>>> Any idea how to solve this?.
>> 
>> The clang preprocessor seems to be broken.  Use gcc.
>> 
>> 	Jan D.
>> 




  reply	other threads:[~2014-07-12 16:30 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-09  2:25 Building Emacs for GNUstep Stefan Monnier
2014-07-09  6:47 ` Dmitry Antipov
2014-07-10  7:09   ` Jan Djärv
2014-07-10 22:12   ` andres.ramirez
2014-07-11  8:06     ` Jan Djärv
2014-07-11 19:58       ` andres.ramirez
2014-07-12 16:30         ` Jan Djärv [this message]
2014-07-13  4:37           ` andres.ramirez
2014-07-13  9:08             ` Jan Djärv
2014-07-13 18:15               ` andres.ramirez
2014-07-14  6:18                 ` Jan Djärv
2014-07-14  6:34                   ` andres.ramirez
2014-07-14  7:09                     ` Jan Djärv
2014-07-14 19:26                       ` andres.ramirez
2014-07-15  7:30                         ` Jan Djärv
2014-07-09  8:12 ` martin rudalics
2014-07-09 13:15   ` Stefan Monnier
2014-07-09 14:17     ` martin rudalics
2014-07-09 17:47       ` Stefan Monnier
2014-07-10  7:45         ` martin rudalics
2014-07-11  3:07           ` Glenn Morris
2014-07-11 17:59             ` martin rudalics
2014-07-11 18:09               ` Glenn Morris
2014-07-09  9:34 ` Jan Djärv
2014-07-10 22:23   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F7B3B08-DCAE-4527-ABB9-4C08464D87E0@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=andres.ramirez@kipuamutay.com \
    --cc=dmantipov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).