Sunday, September 5, 2010

How Do Honda Pilots Do In The Snow

AFUTrainer install 3.0 on Mac OS X

The open-source program AFUTrainer
is a good aid in learning, and the amateur radio exam. Unfortunately, there is the download page not an executable file for Mac OS X. Since the installation when I was a little tricky, here's a quick guide:

to self-compile you have to first download the source code of the AFU-Trainer's homepage and unpack it.

also need a
QT
SDK for OSX and zlib library to unpack zip archives. Last but not least, the course must Develloper tools from the OSX DVD is installed. First, the QT SDK.

In AFUTrainer unzipped source code directory is a folder zlib. This unfortunately includes only a Windows library that helps so on OSX are not really. Delete that folder and therefore by the zlib-xxx-folder from the newly downloaded zlib sources replace. (The zlib-xxx folder to rename in zlib!)

In the command line in the zlib directory and. / Configure call. I think I got it also the - static given.

The configure script creates a makefile, which you now opens in Notepad. The line "CFLAGS =- O3" in "CFLAGS =- O3-m32" change. This is necessary because the library is compiled by default as 64-bit version, which means that it can not be linked to the rest of the code. The "-m32" flag forces the creation of a 32-bit version.

The library then translate to "make".

Now go one directory level higher (AFUTrainer back the source code directory) and create using "qmake" a project file for XCode. It appears the warning about "qt" can be ignored. By double to "afutrainer.xcodeproj the Finder should launch XCode and load the project.

The project settings upper left to switch from "Debug" to "release".

now under Project-> Edit Active Target "afutrainer" scroll down to the "Linking" and look for the "Other Linker Flags". Here, the additional flag "-lz" and "Lzlib" be added. The former flag links the libz added, the latter tells the compiler that says library in the subdirectory "zlib" is found.

should thus can build the project by clicking on "Build". The executable file is then under build / release, and can then be moved to the Applications folder be.

who has tried it, now may leave a comment here. Since I wrote the guide roughly from memory, I may have one or the other details have not yet forgotten.

0 comments:

Post a Comment