• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xvfb linking (Was Re: X11 source code: structure, building)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xvfb linking (Was Re: X11 source code: structure, building)


  • Subject: Re: Xvfb linking (Was Re: X11 source code: structure, building)
  • From: Ben Byer <email@hidden>
  • Date: Wed, 07 Nov 2007 02:42:23 -0800

On Nov 6, 2007, at 9:01 PM, Jeremy Huddleston wrote:

Yeah, I just tried building Xnest and Xvfb and noticed the linking problem Ben mentioned. I'm a bit busy with some deadlines myself, but I can try putting together a patch to get it to build on osx soon. It looks mainly like it needs to be coerced to do -framework OpenGL during linking. I've cleared up most of the missing symbols, but here are a few which I'm not quite sure where they live. Anyone have a suggestion?


Yeah, I found it -- the patch is:

http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commit;h=be688397ef252020565197b4c036cd813d3d7d66

--- a/configure.ac
+++ b/configure.ac
@@ -656,7 +656,7 @@ if test "x$GLX" = xyes && ! test "x$MESA
PKG_CHECK_MODULES([GL], [glproto >= 1.4.8])
AC_SUBST(XLIB_CFLAGS)
AC_DEFINE(GLXEXT, 1, [Build GLX extension])
- GLX_LIBS='$(top_builddir)/GL/apple/indirect.o $(top_builddir)/GL/glx/ libglx.la'
+ GLX_LIBS='$(top_builddir)/GL/glx/libglx.la $(top_builddir)/GL/mesa/ libGLcore.la'
test -d GL || mkdir GL
case $host_os in
solaris*)
@@ -1645,7 +1645,8 @@ return 0;}
# LDFLAGS=$save_LDFLAGS
# ])
xorg_cv_AGL_framework=no
- DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB"
+ DARWIN_GLX_LIBS='$(top_builddir)/GL/apple/indirect.o $(top_builddir)/ GL/glx/libglx.la'
+ DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $DARWIN_GLX_LIBS"
AC_SUBST([DARWIN_LIBS])
AC_CHECK_LIB([Xplugin],[xp_init],[:])
AC_SUBST([APPLE_APPLICATIONS_DIR])
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -338,7 +338,7 @@ extern void XFree86DGAExtensionInit(INIT
#endif
#ifdef GLXEXT
typedef struct __GLXprovider __GLXprovider;
-#if defined(__DARWIN__) && !defined(INXQUARTZ)
+#if defined(__DARWIN__) && defined(INXDARWINAPP)
extern __GLXprovider* __DarwinglXMesaProvider;
extern void DarwinGlxPushProvider(__GLXprovider *impl);
extern void DarwinGlxExtensionInit(INITARGS);
@@ -632,7 +632,7 @@ InitExtensions(argc, argv)
#endif
#endif
#ifdef GLXEXT
-#if defined(__DARWIN__) && !defined(INXQUARTZ)
+#if defined(__DARWIN__) && defined(INXDARWINAPP)
DarwinGlxPushProvider(__DarwinglXMesaProvider);
if (!noGlxExtension) DarwinGlxExtensionInit();
#else


Let me know if that doesn't work for you. -b
--
Ben Byer
CoreOS / BSD Technology Group, XDarwin maintainer

_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
This email sent to email@hidden


References: 
 >X11 source code: structure, building (From: Ben Byer <email@hidden>)
 >Re: X11 source code: structure, building (From: Peter O'Gorman <email@hidden>)
 >Re: X11 source code: structure, building (From: Jeremy Huddleston <email@hidden>)
 >Re: X11 source code: structure, building (From: Jeremy Huddleston <email@hidden>)
 >Re: X11 source code: structure, building (From: Ben Byer <email@hidden>)
 >Re: X11 source code: structure, building (From: "Ambrose Li" <email@hidden>)
 >Xvfb linking (Was Re: X11 source code: structure, building) (From: Jeremy Huddleston <email@hidden>)

  • Prev by Date: Re: 1.2a6 bug: Doesn't handle display config changes
  • Next by Date: X11 debugging pt.1
  • Previous by thread: Xvfb linking (Was Re: X11 source code: structure, building)
  • Next by thread: Click-to-Front Problem
  • Index(es):
    • Date
    • Thread