Other platforms have only 2 or 3 such packages. On Redhat/Fedora the wx packages are called
wxGTK and wxGTK-dev.
We recommend Unicode packages if your platform provides Ansi and Unicode
versions of the software. If not mentioned, Unicode will most likely be the default.
You can also compile wx from source code, see the wxWidgets Site.
Additional dependencies are
Required: a C/C++ compiler, GNU compiler including g++ (C++ extension) wil be the default on most systems.
clang compiler should work as well.
Development headers of fontconfig package
flex and byacc for compilation of Lex and Yacc sources (only required after make clean or for experts).
aclocal, automake and autoconf (only if you want to dive deeper into the compilation details).
configure
Default installation directory ("prefix") is according to GNU conventions under /usr/local.
Data directory would bei /usr/share/maitreya8, the binaries would be located at /usr/local/bin.
If you want to change this, type
./configure --prefix=<directory>
where <directory> could be something like '/usr' or '/opt'.
If the configure script complains about a wrong automake version you can run the autogen.sh script to create the
automake stuff from scratch. Automake and aclocal must be installed in that case.
The wx-config script is essential for the platform dependent compiler switches.
configure must find it, otherwise the program will not compile.
wx-config is searched in various standard directories. If configure
doesn't find your wx-config, start configure with the option
--with-wx-config=<name>
The resulting executable (src/gui/maitreya8.bin) will be quite big. You can strip if you don't
want debugging informations (strip src/gui/maitreya8.bin).
The font "Saravali.ttf" from
the directory "src/fonts" must be installed on your system.
This is done automatically by 'make install' and can be done manually as follows
install the font with your system's configuration tools
copy the font to the default True Type font directory (e.g. /usr/share/fonts/truetype).
Data files for the swiss ephemeris are available in the packages
swe-standard-data
swe-extra-data
The data files will be installed under /usr/share/ephe. Maitreya will recognize the data files on startup and set the
path to the directory automatically, see General Configuration/Ephemeris.
wxGTK must be installed. It can be found in the section x11-toolkits. Unicode version of wxgtk 3.0 is recommended.
The script wx-config is named wxgtk2u-3.0-config. The configure command looks like
./configure --with-wx-config=wxgtk2u-3.0-config
If configure complains about missing fontconfig installation you can set these environment variables and call configure again.
See note below (C shell syntax, use export command for bash or ksh).
setenv FONTCONFIG_CFLAGS "-I/usr/include"
setenv FONTCONFIG_LIBS "-lfontconfig"
./configure --with-wx-config=wxgtk2u-3.0-config
make
If font installation with make install does not work you can install it manually instead:
copy the font Saravali.ttf from the source directory src/fonts to /usr/local/lib/X11/fonts/TTF and restart the application.
Windows Systems
Visual Studio is not supported any more.
MinGW
The compilation with MinGW is a bit more complicated.
First step: install MinGW. This is straight forward. Read the corresponding MingGW documentation.
Second step: Installation of wxWidgets
Get the source code for wxWidgets from wxWidgets.org. You can fetch either the
windows packages (like wx-msw) or the wxAll package. Unpack the source code.
Documentation is under doc/msw.
Go to the the root directory of the wxWidgets source code distribution.
Type
./configure --disable-shared --enable-unicode
make
make install
You can also leave the option --disable-shared. You will then get a shared
library of wxWidgets. The release will be bigger then.
If everything goes well, you'll have a ready-to-use wxWidgets installation.
You can test your installation by compiling one of the samples (e.g. sample
minimal). Just go to the directory, type
make
and start the example.
Third step: Installation of Maitreya
Create a directory for the source code tree, e.g. c:\maitreya. Enter this
directory.
Unpack the source code archive
unzip maitreya-<version>.zip (zip file)
or tar jxvf maitreya-<version>.tar.bz2 (bzip2 file) etc.
Type
make -f Makefile.win
Hope that everything's going well.
The executable (src/gui/maitreya.8exe) will be quite big. You can strip if you
don't want debugging informations (strip src/gui/maitreya.exe).
Note
You need the MinGW DLL to start the program. So you can either start
the program from the MinGW shell or you provide the files (one or more mingw*.dll) on the path.
These files are located in the msys or mingw directory. It's okay to copy them to the
place where the executable or Maitreya is located. Probably you can
also copy them to the windows directory, try it.
Compilation on Mac OS X
The program compiles and runs on Mac OS X Yosemite or later. GNU gcc and g++ are required (install xcode)
The following steps work on Mac OS X Yosemite with wxWidgets-3.0.3:
download wxWidgets source package, unpack it. Create folder for build, change to folder and call configure and make
../configure --disable-shared --with-macosx-version-min=10.6
make
Unpack the maitreya release and call configure and make.
export CC="gcc -mmacosx-version-min=10.6"
export CXX="g++ -mmacosx-version-min=10.6"
./configure --with-wx-config=[path-to-wx-build]/wx-config
make
Calling the script "create_mac_release.sh" will create the release directory and application folder "Maitreya8.app" with required data.
It can be started with the "open" command or with mouse click from the Finder.