My symlinks look like this: lrwxr-xr-x 1 som users 20B Jan 30 17:15 X11 -> /usr/pkg/include/X11 lrwxr-xr-x 1 som users 19B Jan 30 17:15 Xm -> /usr/pkg/include/Xm
However, I find in cdesktopenv/cde/config/cf/NetBSD.cf the following definitions: #define LibDir /usr/X11R7/lib/X11 #define UsrLibDir /usr/X11R7/lib #define ManDirectoryRoot /usr/X11R7/man #define FontDir /usr/X11R7/lib/X11/fonts #define FontEncDir /usr/X11R7/lib/X11/fonts/encodings This clearly do not point to my X11 installation which is located under /usr/pkg Furthermore, in the file cdesktopenv/cde/config/cf/site.def the definition #ifndef X11ProjectRoot # if defined(LinuxArchitecture) # define X11ProjectRoot /usr # elif defined(FreeBSDArchitecture) # define X11ProjectRoot /usr/local # elif defined(SunArchitecture) # define X11ProjectRoot /usr # elif defined(OpenBSDArchitecture) # define X11ProjectRoot /usr/X11R6 # elif defined(NetBSDArchitecture) # define X11ProjectRoot /usr/X11R7 <-- Not correct # else for NetBSD modular Xorg # define X11ProjectRoot /X11 # endif #endif I assume that all of these definition must be changed in order to build CDE on NetBSD with modular Xorg. Additionally, I get the error making all in programs/dtlogin/config... gcc -O2 -fno-strict-aliasing -pipe -I/usr/X11R7/include/freetype2 -I../.. -I../../exports/include -I/usr/pkg/include -I../../imports/x11/include -I/usr/pkg/include -I/usr/local/include -DCSRG_BASED -DANSICPP -DMULTIBYTE -DNLS16 -DOSMAJORVERSION=6 -DOSMINORVERSION=1 -DUSE_XINERAMA -DFUNCPROTO=15 -DNARROWPROTO -DTCPCONN -DUNIXCONN -DBINDIR=\"/usr/X11R7/bin\" -DXDMDIR=\"/var/dt\" -DOSMAJORVERSION=6 -DOSMINORVERSION=1 -DCDE_INSTALLATION_TOP=\"/usr/dt\" -DCDE_CONFIGURATION_TOP=\"/etc/dt\" -D_NO_PROTO -c vgcallback.c In file included from /usr/pkg/include/Xm/TextFP.h:34:0, from vgcallback.c:66: /usr/pkg/include/X11/Xft/Xft.h:39:22: fatal error: ft2build.h: No such file or directory compilation terminated. *** Error code 1 This seems to point to a problem with the freetype includes which are located in /usr/pkg/include/freetype2 and rather than in the directory /usr/X11R7/include/freetype2. This is related to the XProjectRoot variable pointing to the wrong location when modular Xorg is used on NetBSD. Changes to these include definitions are required when building CDE on NetBSD with modular Xorg. On 01/30/15 06:37, Isaac Dunham wrote: > On Thu, Jan 29, 2015 at 10:32:48PM +0100, Johannes von Rotz wrote: >> On 29.01.2015 19:21, Stephan Marwedel wrote: >>> I tried to build CDE from the latest repository on NetBSD 6.1.5 amd64 >>> according the instructions in the Wiki to no avail. The reason for the >>> problem seems to be my installation of X11. I did install NetBSD without >>> X11 (native Xorg) and later added the X11 installation using pkgsrc >>> (modular Xorg). The X11 installation root is not /usr/X11R7 as the CDE >>> build process apparently assumes, bur rather /usr/pkg. >> >> Well, maybe you just didn't symlink the include directory of the X11 >> headers correctly? >> >> "/usr/pkg" sounds like the prefix for building the X11 binaries or >> something, not the actual installation prefix. Although I do not know >> the ports/packaging system of NetBSD. It seems silly to put X >> binaries/libs/headers in a non-standard place just for the heck of it..? >> (And by standard I mean /usr/{bin,lib,include,...} or >> /usr/X11*/{bin,lib,include,...}. > @Johannes: > Having used NetBSD in the past, I've seen what they do. > > pkgsrc is (typically) installed in /usr/pkgsrc; *all* packages it builds > are installed with prefix=/usr/pkg. > > @Stephan: > When preparing for the build (making the "imports" link), does > s/X11R7/pkg/ do enough, or do you need more changes? > > HTH, > Isaac Dunham > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > cdesktopenv-devel mailing list > cdesktopenv-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel > -- Mail written on NetBSD bernoulli 6.1.4 NetBSD 6.1.4 (GENERIC) i386 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel