Gentoo Wiki


This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc



This wiki page describes how to install Watchtower Library 2005 on Gentoo Linux. Starting assumptions: you have (1) a Gentoo Linux computer, and (2) the Watchtower Library 2005 CD-ROM.

What kind of Linux should I be running, 32- or 64-bit? Simple answer is either. Wine, the Windows emulator, operates on both.

Why is this not just straightforward? Good question! A number of matters complicate the installation, including pop-up scriptures and correct fonts. Watchtower society's wtlib.exe has some special requirements.

What This How-To Does Not Cover

This how-to only describes personal installation, i.e. installing the Watchtower Library in your home directory. If your machine has multiple users, each user must have their own personal installation duplicated. This is not very efficient of course. The installation takes up around 372MB of space. Multiply this by many users and you have a lot of wasted space. However, for the typical scenario where you have one machine, one user, the instructions are simple and straightforward. No need to add complexity where none needed.

Install Wine

If not already installed, start by merging winean Open Source implementation of the Windows API on top of X and Unix.

b1ynn2j ~ # emerge wine -p

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-libs/libuninameslist-20030713
[ebuild  N    ] media-gfx/fontforge-20060703-r1  USE="X jpeg png svg truetype unicode -gif -tiff"
[ebuild  N    ] app-emulation/wine-0.9.22  USE="X alsa arts cups dbus hal jpeg ncurses opengl oss -esd -glut -jack -lcms -ldap -nas -scanner -xml"

Rerun without -p. It downloads Wine, its dependencies, compiles and installs.

After installation, your system is running Wine version 0.9.22! How do you know? As non-root user, enter the following.

royr@b1ynn2j ~ $ wine --version
Wine 0.9.22

Set Up Wine

Try configuring by entering winecfg. It automatically creates the new .wine subdirectory off your home directory with all the necessary initial set-up.

Do not change anything. Just exit, for now.

Install Native COMCTL32.DLL

Before Watchtower Library installation can begin, you need to install COMCTL32.DLL. The Windows emulator already has its own built-in COMCTL32.DLL but wtlib.exe does not play too well with this; it prefers the native version. You can use Windows' own version provided you have a Windows license!

If your machine is dual-boot, Linux and Windows, you can mount your Windows partition. Say for example, your Windows NTFS partition corresponds to /dev/sda2. Enter the following command as root, assuming subdirectory /mnt/windows already exists.

b1ynn2j ~ # mount /dev/sda2 /mnt/windows -o uid=royr

The last option makes the user equal to royr so that my personal login can access the NTFS file space. Change this to your login name.

How to Find COMCTL32.DLL

Interestingly and curiously, there are numerous versions of COMCTL32.DLL in a typical Windows system. Use the following command to search for them.

b1ynn2j ~ # find /mnt/windows -iname comctl32.dll

This searches a Windows XP Professional SP2 installation. Your search results may differ.

Copy the version at WINDOWS/WinSxS/x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a/. Note the size and date:

921088 Aug  4  2004 WINDOWS/WinSxS/x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a/comctl32.dll

Copy this to your Wine subsystem at ~/.wine/drive_c/windows/system32.

royr@b1ynn2j ~ $ cp -b /mnt/windows/WINDOWS/WinSxS/x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a/comctl32.dll ~/.wine/drive_c/windows/system32
royr@b1ynn2j ~ $ chmod +rwx ~/.wine/drive_c/windows/system32/comctl32.dll

Option -b backs up the original. Second command makes the file accessible.

Done with NTFS now.

b1ynn2j ~ # umount /mnt/windows

Switch to Native-Only COMCTL32.DLL

Run winecfg. Go to the Libraries tab. Select a New override for library, comctl32. Click Edit and select Native (Windows).

Copy Special Markup Font

Download this link WtDoWtlibraryDocMarkup02.ttf and copy the little TTF to ~/.wine/drive_c/windows/fonts subdirectory. This small font sets up * and M characters used for cross and marginal references. Without it you will see boxes!

Insert the CD-ROM

Insert the Watchtower Library 2005 CD-ROM. Mount it manually unless your system mounts automatically. KDE typically opens a dialog asking to Open it, automatically. Select OK in this case.

Otherwise, you might need to enter something like:

royr@b1ynn2j ~ $ mount /mnt/cdrom

Run Setup.exe

Just enter:

royr@b1ynn2j ~ $ wine /mnt/cdrom/Setup.exe

Ignore all the following messages appearing in the terminal window. InstallShield Wizard window appears. Click Yes, I have read the letter then Next. Click Yes to accept all the terms of the License Agreement. Next for the standard root directory, c:\Program Files\Watchtower. Choose Hard Disk Install, then Next. Accept the Destination Folder, Next. Next for the Program Folder. Yes to create a shortcut. Review settings then Next!

The progress bar finally appears. Wait until complete. Finally click Finish. The terminal returns.

First Test Run

Installation places an icon on the desktop automatically. Just single-click to run.

Alternatively, you can run it manually from a terminal. Not the easiest way; you need to change the current directory to MEPSCommon before running wine wtlib.exe. See below. The paths are deep and contain spaces so watch your backslashes!

royr@b1ynn2j ~ $ cd .wine/drive_c/Program\ Files/Watchtower/MEPSCommon
royr@b1ynn2j ~/.wine/drive_c/Program Files/Watchtower/MEPSCommon $ wine c:\\Program\ Files\\Watchtower\\Watchtower\ Library\ 2005\\e\\wtlib.exe

It runs! Almost perfectly; scripture pop-ups appear when you hover over * and M, cross and marginal references. Windows sizes may need some adjustments initially. But after that, all is well. Even maps in See the Good Land appear!



Concerns or Compliments? Please use the Discussion section.

Retrieved from ""

Last modified: Fri, 05 Sep 2008 10:20:00 +0000 Hits: 6,843