|We are currently requesting that all contributions to the project are licenced under the MIT licence. Find out why?|
WARNING: THIS GUIDE IS FOR ADVANCED USERS FOR USE IN BUILDING AND PORTING.
Note: Compilation with clang is now supported on FreeBSD 10.
Install Freebsd, get ports (and lib32 if you are using FreeBSD-amd64)
Add your hostname to the localhost line in /etc/hosts
Update your ports tree with portsnap
Build OpenMotif from ports using the ports tree updated after 13 September 2012 (open-motif-2.3.2,3):
cd /usr/ports/x11-toolkits/open-motif make make install
After OpenMotif is installed, please make sure that /usr/local/include/Xm/Xm.h file contains
#ifndef PRINTING_SUPPORTED #define PRINTING_SUPPORTED 1 #endif
Otherwise something is wrong with the libXp installation and its dependencies or you are using an old ports tree (with port's Makefile older than 1.58).
Add to /etc/rc.conf
hald_enable="YES" dbus_enable="YES" rpcbind_enable="YES"
Use the git clone command here to talk to the [https://sourceforge.net/p/cdesktopenv/code/ Git repository]
git clone git://git.code.sf.net/p/cdesktopenv/code cdesktopenv-code
In case of trouble it is important to have a log file to report problems.
Use the command:
to open a log file that will log everything in your terminal (also all letters
and passwords that you might type!) into the /tmp/log.txt file.
After install is complete, you can close the log file using the command "exit".
cd cdesktopenv-code/cde mkdir -p imports/x11/include ln -s /usr/local/include/X11 imports/x11/include ln -s /usr/local/include/Xm imports/x11/include ln -s /usr/local/include/fontconfig imports/x11/include ln -s /usr/local/include/freetype2 imports/x11/include
FreeBSD 10 builds with clang by default, but can optionally be switched back
to gcc by installing gcc47 package as a minimum and by including the following
line in config/cf/host.def:
#define UseGcc 47
The number in the line must correspond to the version of the installed gcc
package. Renaming of compiler binaries from clang or gcc is not necessary
and wouldn't work.
FreeBSD 10 doesn't need a special package for iconv library. Only if you get
build errors like
... undefined reference to 'libiconv' ...
then the package 'libiconv' must be installed. But this will only happen in rare
cd cdesktopenv-code/cde make World
This has to be done as root
cd cdesktopenv-code/cde/admin/IntegTools/dbTools ./installCDE -s /path/to/cdesktopenv-code/cde
This has to be done as root
mkdir -p /etc/tt cp cdesktopenv-code/cde/programs/tttypes/types.xdr /etc/tt
/tmp/log.txt should contain recording of all your actions in this terminal.
You can now start CDE login manager as root:
Alternatively, you can start an X session as a normal user:
env LANG=C startx /usr/dt/bin/Xsession
Please check if your logfile (/tmp/log.txt) does not contain sensitive information
and feel free to send it to us.