[FreeNX-kNX] Compiling NX1.5.0 on amd64

Xiong Jiang linuster at gmail.com
Sat Sep 24 12:47:36 UTC 2005


OK, finally managed to build the stuff.

at lib/X11/XlcDL.c:64, I made it like:

#ifdef _LP64
# if defined(__sparcv9)
# define _MACH64_NAME "sparcv9"
# elif defined(__ia64__)
# undef MACH64_NAME
# else
# undef MACH64_NAME
/*# error "Unknown architecture"
*/
# endif /* defined(__sparcv9) */
# ifdef _MACH64_NAME
# define _MACH64_NAME_LEN (sizeof (_MACH64_NAME) - 1)
# endif
#endif /* _LP64 */

I am not sure if it really matters. Just to make it compile.

Now after nxcomp and nxcompext are built, you should be able to 'make World'
under nx-X11. The directory names are hardcoded in makefile so you should
not rename the directories unpacked from .tar.gz tarballs.

Three libs are replaced by NX: libX11, libXext, libXrender.
I changed in Makefile to use LIBNAME=X11-nx and Xext-nx, Xrender-nx for
them. so that it's easier to distinguish it from the libX11 installed. I
don't know much about the Imakefile system so I changed the Makefile and
build again. Some other makefiles are modified accordingly as they will link
with the libX11-nx, libXext-nx, libXrender-nx we just built.

Again, I haven't found out how to change the Imake config files to do this
easily. If you know the trick, please share with us.

nxagent will be built when 'make' under nx-X11/programs. A problem here
again:
lib/freetype2 and fontconfig is not built as shared lib, but nxagent needs
to link to it. Maybe I did something wrong here again by changing it to
build a shared lib. But Imake gurus please point me to the right way.

nxagent/Makefile also got problem that it cannot find the libX11-nx,
libXext-nx, libXrender-nx.

See, a deb source package will save me all the hassle of tampering with
Makefile.
However nx-X11 is not in svn://svn.debian.org/pkg-nx yet.
I am write from my short memory in late night, my words here is so vague. I
need to redo this and find the right answer.

OK here is the story of compiling. It still doesn't work though.

See my next email about the bugs I hit.

Xiong

On 9/24/05, Xiong Jiang <linuster at gmail.com> wrote:
>
> OK, let's start this thread for problems encountered in compiling NX on
> debian-amd64.
> I am trying gcc 3.3.6 first since I had failure with gcc4 on 1.4.0.2<http://1.4.0.2>before.
>
> I have the following source tarballs From
> http://www.nomachine.com/sources.php:
>
> nxagent-1.5.0-90.tar.gz nxesd-1.5.0-3.tar.gz nxssh-1.5.0-21.tar.gz
> nxauth-1.5.0-1.tar.gz nxproxy-1.5.0-9.tar.gz nxuexec-1.5.0-3.tar.gz
> nxcomp-1.5.0-65.tar.gz nxscripts-1.5.0-11.tar.gz nxviewer-1.5.0-14.tar.gz
> nxcompext-1.5.0-16.tar.gz nxsensor-1.5.0-5.tar.gz nxwin-1.5.0-3.tar.gz
> nxdesktop-1.5.0-61.tar.gz nxspool-1.5.0-2.tar.gz nx-X11-1.5.0-15.tar.gz
>
> My progress so far:
>
> nxcomp:
> Need forward declaration patch in RenderExtension.h
> Need -fPIC in Makefile
> It builds after the patches
>
> nxproxy:
> builds OK
>
> nx-X11
> Need to unpack nxagent and nxauth after unpack nx-X11. They will be
> unpacked into
> nx-X11 directory as well.
> make World OK
> When make install, got XlcDL.c:64:4: #error "Unknown architecture"
>
> #ifdef _LP64
> # if defined(__sparcv9)
> # define _MACH64_NAME "sparcv9"
> # elif defined(__ia64__)
> # undef MACH64_NAME
> # else
> # error "Unknown architecture"
> # endif /* defined(__sparcv9) */
> # ifdef _MACH64_NAME
> # define _MACH64_NAME_LEN (sizeof (_MACH64_NAME) - 1)
> # endif
> #endif /* _LP64 */
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20050924/2562f63c/attachment.html>


More information about the FreeNX-kNX mailing list