I checked in a patch which seems to allow me to build Xvnc on RHEL 5
using the Xorg server 1.1 branch.  Using this patch, I do:

git clone git://git.freedesktop.org/git/xorg/xserver xorg
cd xorg
git checkout origin/server-1_1-branch
cd ..
cp -r xorg/* xserver
cd xserver
patch -p1 <../xserver11.patch
configure --disable-xvfb --disable-xnest --disable-xorg --disable-dmx
--disable-xprint --disable-xorgcfg --disable-kdrive --disable-lbx
--disable-xevie --disable-dri --enable-xdmcp --enable-composite --host
i686-pc-linux-gnu --with-included-jpeg CFLAGS=-m32 CXXFLAGS=-m32
LDFLAGS=-m32

(NOTE: these flags were mostly lifted from the RealVNC RPM spec file on
RHEL 5.)

--------------------

I had to install the libxkbfile-devel RPM to avoid an error during
configure.

--------------------

I then had to modify hw/vnc/Makefile.am to remove the references to
pixman.  Otherwise I got an error during the build:

make: *** No rule to make target `/usr/local/include/pixman-1/pixman.h',
needed by `pixman.h'.  Stop.

(NOTE:  Does anyone know why the build needs the Pixman includes?  None
of the code appears to use them.)

I could also install the xulrunner-devel RPM and 'sudo ln -fs
/usr/include/xulrunner-sdk-1.9/libpixman /usr/local/include/pixman-1' in
order to avoid this error.  However, best to remove the Pixman
references if they aren't needed.

--------------------

Now I ran into the following issue:

vncHooks.cc:90: error: 'DevPrivateKey' does not name a type
vncHooks.cc:91: error: 'DevPrivateKey' does not name a type

I fixed this by adding the following patch:

--- hw/vnc/vncHooks.cc  (revision 3680)
+++ hw/vnc/vncHooks.cc  (working copy)
@@ -85,6 +85,7 @@
 static DevPrivateKey vncHooksScreenPrivateKey = &vncHooksScreenPrivateKey;
 static DevPrivateKey vncHooksGCPrivateKey = &vncHooksGCPrivateKey;
 #else
+typedef void *DevPrivateKey;
 static int vncHooksScreenPrivateKeyIndex;
 static int vncHooksGCPrivateKeyIndex;
 static DevPrivateKey vncHooksScreenPrivateKey =
&vncHooksScreenPrivateKeyIndex;

However, I suspect this patch would break the Xorg 1.6 build.  I'm
wondering if there is a way to detect the 1.1 release and #ifdef around
it.  It doesn't appear to set the XORG_11 macro.

--------------------

Now I ran into numerous problems regarding undefined functions
"dixLookupPrivate()" and "dixRequestPrivate()" in vncHooks.cc.  I assume
these functions are only available in the later Xorg releases.  I don't
know of a way around this one.


Adam Tkac wrote:
> Well, X codebases differ version from version and it's impossible to
> support all of them. If we decide that we would like to support huge
> range of platforms then we will probably stuck with XFree86 and
> building with the newer Xorg will be nearly impossible even for common
> developers.
>
> Xorg 1.5, which is the least version which is currently supported,
> requires reasonable new libraries and all X related things (like
> proto-s). So you are not able to build Xvnc on RHEL5 as you tried.
>
> We have to decide which is the oldest distro which we should support.
>   
> It is tested and it works fine. But as I wrote above you have to have
> reasonably new libraries and X related things.
>
> Adam
>
>   


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to