http://sourceforge.net/p/cdesktopenv/wiki/FreeBSDBuild/
内容を一部翻訳してみました。
WARNING: THIS GUIDE IS FOR ADVANCED USERS FOR USE IN BUILDING AND PORTING.
警告:このガイドは、PORTINGとビルドを使用する上級者向けです。
Note: Compilation with clang is now supported on FreeBSD 10.
注意: clang(コンパイラ)でのコンパイルはFreeBSD 10で現在サポートされています。
Install Freebsd, get ports (and lib32 if you are using FreeBSD-amd64)
Freebsdをインストールし、portsを(もしFreeBSD-amd64を使用していたなら、lib32も)取得します。
Add your hostname to the localhost line in /etc/hosts
/etc/hostsのlocalhostラインにあなたのホストネームを追加します。
(※必ず入れること。 xinit: connection to X server lostとなってCDEが起動しません。)
(例: 192.168.0.8 VMware64)
Update your ports tree with portsnap
Portsnapで、あなたのports treeをアップデートします。
(pkg update && pkg upgrade)
Build OpenMotif from ports using the ports tree updated after 13 September 2012 (open-motif-2.3.2,3):
2012年9月13日以降に更新されたports treeを使用して、portsからOpenMotif(open-motif-2.3.2,3)をビルドしてください。 (# pkg install open-motif)
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
OpenMotifをインストール後、/usr/local/include/Xm/Xm.hファイル(に以下の内容)が含むことを確かめてください。
#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"
Reboot
Use the git clone command here to talk to the [https://sourceforge.net/p/cdesktopenv/code/ Git repository]
[https://sourceforge.net/p/cdesktopenv/code/ Git repository]と通信するため、ここでgit クローンコマンドを使用します。
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:
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 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:
FreeBSD 10のデフォルトでは(新しいコンパイラの)clangでビルドしますが、必要に応じて最低限のgcc47パッケージをインストールし、config/ CF / host.defに次の行を含めることでgccに戻すことができます。
#define UseGcc 47
The number in the line must correspond to the version of the installed gcc package.
ラインの番号がインストールされたgccパッケージのバージョンに対応する必要があります。
Renaming of compiler binaries from clang or gcc is not necessary and wouldn't work.
clangやgccのバイナリ・コンパイラの名前を変更する必要はありません、(変更すると)動作しません。
FreeBSD 10 doesn't need a special package for iconv library.
FreeBSD 10は、iconvライブラリのための特別なパッケージを必要としません。
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 conditions.
そのパッケージ'libiconvが'をインストールする必要があります。しかし、これはまれな条件で発生します。
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
(./installCDE -s ~/cdesktopenv-code/cde)
Replace /path/to/ with the path to the location of your source tree.
あなたのソースツリーのロケーションのパスに /path/to と置き換えてください。
This has to be done as root
mkdir -p /etc/tt
cp cdesktopenv-code/cde/programs/tttypes/types.xdr /etc/tt
(cp ~/cdesktopenv-code/cde/programs/tttypes/types.xdr /etc/tt)
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:
env LANG=C startx /usr/dt/bin/Xsession