Installing Kitlist on Mac OS X
Overview
Kitlist can be installed using a MacPorts portfile or compiled and installed from source code. Once you have installed MacPorts you should only need to execute the following command to install Kitlist:
$ sudo port install kitlist
The MacPorts method is the most straight-forward, but a portfile for the latest version may not be currently available. The remainder of this document describes how to manually compile and install Kitlist from source code.
Another alternative is to create a portfile for the specific release and set up a local portfile repository containing the portfile. This is described in the MacPorts Guide.
For instructions on installing MacPorts, see Installing MacPorts.
Installing Required Libraries
To install Kitlist on Mac OS X you must have the following libraries installed:
- gtkmm 2.4
- libxml++ 2.6
- libglademm 2.4
- intltool
To install the libraries using MacPorts, enter the following command:
$ sudo port install gtkmm libxmlxx2 libglademm
This will download all source code and their dependent packages, compiling and installing each package in turn. This is likely to take many hours. On an iBook G4 it took about 8 or 9 hours.
Once this process has finished successfully, you can install [Kitlist].
Note: libglademm can be built from source with:
CXXFLAGS='-std=c++11' ./configure --prefix=/opt/local
-- Frank Dean - 29 Mar 2018
Installing Kitlist from Source
Download the latest version of Kitlist from the Kitlist Source Download Directory, e.g. kitlist-0.6.10.tar.gz
Extract the source code to a working directory
$ mkdir ~/projects $ cd ~/projects $ tar -zxf ~/Desktop/kitlist-0.6.10.tar.gz $ cd kitlist-0.6.10
Run the GNU configure command which checks the environment and that all required libraries are installed. If configure completes without error, you can move onto the next step.
$ CXXFLAGS='-g -O0 -fno-inline -std=c++11' ./configure --prefix=/opt/local --disable-build-docs
Note: the
--prefix=/opt/local
parameter. This is the location that the package contents will be installed to. This is the default location for a MacPorts installation. If you use a location other than /opt/local, e.g./sw
for Fink users, specify that instead.Build the package:
$ make
Install the package as root:
$ sudo make install
You should now be able to run Kitlist after starting the X11 package. On Tiger, the X11.app package can be found under /Applications/Utilities/X11.app.
By default, when X11 first runs it opens an XTerm window. This isn't ordinarily setup with the correct PATH statement. Subsequent XTerm windows should have the correct PATH. Start another XTerm window and conform that /opt/local/bin is in your PATH statement.
$ echo $PATH
If not, temporarily add it to your path as follows:
$ export PATH=/opt/local/bin:/opt/local/sbin:$PATH
To include it in future XTerm sessions, add it to your ~/.profile
startup file.
$ echo "export PATH=/opt/local/bin:/opt/local/sbin:$PATH" >>~/.profile
If /opt/local/bin is in your path, you can start Kitlist with:
$ kitlist
If it's not in your path, you have to type in the entire path to the kitlist executable:
$ /opt/local/bin/kitlist
The Kitlist GUI should now be displayed on your Desktop.
Adding Kitlist to the X11 Applications Menu
In the X11 application, select the "Customize Menu..." option from the "Applications" menu
Click the "Add" button
A blank row opens up
Double click in the "Menu Name" column of the blank row
Enter a name for the application, e.g. "Kitlist"
Press the tab key to move to the Command column
Enter the command as /opt/local/bin/kitlsit
Press the tab key to move to the shortcut column
Optionally, add a short cut key of perhaps "k" by typing the letter k in this column
Click "Done"
The application has been added to the "Applications" menu, and can optionally be executed by pressing the Command key in combination with the chosen shortcut letter.
Adding a Startup Script to the Desktop
Start the AppleScript Script Editor The Script Editor.app file is installed under /Applications/AppleScript.
If there isn't already a new script window, choose the "New" option from the "File" menu
Choose the "AppleScript Script File" option under the "AppleScript" section.
Choose a name and location for the script
Paste the following script into the top section of the window:
tell application "Finder" launch application "X11" end tell set results to do shell script "(cd ~; open-x11 /opt/local/bin/kitlist -display :0.0) >/dev/null 2>&1 &"
Choose "Compile" from the "Script" menu
Choose "Save As..." from the "File" menu
Choose a location to save the file. E.g. Desktop
Choose a filename and set the "File Format" to "application"
Choose "Save"
Setting the Application Icon
Use Finder to navigate to the location of the Kitlist source code. E.g. ~/projects/kitlist
Double click the kitlist.128.png file which should open up the Apple Preview application
Select "Copy" from the "Edit" menu of the Preview application
Use Finder to bring up the info page on the application we're setting. E.g. select ~/Desktop/kitlist.app, right-click and select "Get Info" from the pop-up window. Click the icon at the top left of the info pain, and choose "Paste" from the "Edit" menu. The icon should change to the chosen one.
-- Frank Dean - 07 Feb 2010
Related Topics: AppleMaciBook, InstallingMacPorts, MacKeyboardTips