| 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 and later
Install FreeBSD and install/update your ports tree.
For versions of CDE prior to 2.2.4a, you must add your hostname to the localhost line in /etc/hosts. For newer CDE's, this is no longer necessary.
Add to /etc/rc.conf
rpcbind_enable="YES"
inetd_enable="YES"
Reboot
Use the git clone command here:
git clone git://git.code.sf.net/p/cdesktopenv/code cdesktopenv-code
or download the latest source tarball from the Files section:
In case of trouble it is important to have a log file to report problems.
Use the command:
script /tmp/log.txt
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
FreeBSD builds with clang by default, but can optionally be switched back
to gcc by installing a gccXX package as a minimum and by including the following
line in config/cf/host.def:
#define UseGcc XX
The number in the line (XX) must correspond to the version of the installed gcc
package. Renaming of compiler binaries or symlinking from clang or gcc is not necessary
and wouldn't work anyway.
Generally, if clang works properly, you should not bother with using gcc.
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
Type "exit"
/tmp/log.txt should contain recording of all your actions in this terminal.
You can now start CDE login manager as root:
/usr/dt/bin/dtlogin -nodaemon
Alternatively, you can start an X session as a normal user:
startx /usr/dt/bin/Xsession