all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* libxpm-3.5.7-w32-src package on website
@ 2010-02-21  2:58 Christoph
  2010-02-21  6:48 ` Jason Rumney
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph @ 2010-02-21  2:58 UTC (permalink / raw)
  To: emacs-devel

I was trying to compile Emacs Pretest 23.1.92 on Windows with the 
libxpm-3.5.7-w32-src from the website and configure always showed this 
error:

XPM support is missing. It is required for color icons in the toolbar.
Install libXpm development files or use --without-xpm
Important libraries are missing. Fix these issues before running make.

I investigated further and found two things:

1. When compiling on Windows simx.h is included by xpm.h but simx.h is 
not included in the source package. It is not needed to compile libxmp 
itself but when compiling emacs with xpm support it is needed.

After including simx.h in the include path, the config log shows this:

In file included from junk.c:2:
D:/devel/emacs/libXpm-3.5.7/include/X11/xpm.h:320: error: syntax error 
before "extern"
junk.c:3: error: syntax error before "main"
The failed program was:
#define FOR_MSW 1
#include "X11/xpm.h"
main (){}

2. The version of xpm.h included in the libxpm-3.5.7-w32-src package 
(v1.2) contains _XFUNCPROTOBEGIN and _XFUNCPROTOEND. However, these 
macros are not defined anywhere, that's why configure fails.

xpm.h v1.3, which I got from the libxpm source package from the GnuWin32 
website, does not contain the _XFUNCPROTOBEGIN/END macros but 
explicitely uses

#ifdef __cplusplus
extern "C" {
#endif

and

#ifdef __cplusplus
} /* for C++ V2.0 */
#endif

With this version 1.3 of xpm.h configure works fine without any other 
dependencies. BTW, these are the only differences between v1.2 and v1.3 
of xpm.h.

So, I am wondering, would it be possible to

a) include simx.h in the libxpm package provided at 
http://alpha.gnu.org/gnu/emacs/pretest/windows/?
b) upgrade xpm.h to v1.3?

Thanks,
Christoph




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

end of thread, other threads:[~2010-02-24 17:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-21  2:58 libxpm-3.5.7-w32-src package on website Christoph
2010-02-21  6:48 ` Jason Rumney
2010-02-24 17:22   ` Sean Sieger

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.