HOW TO COMPILE ZINDAIJI3 FOR LINUX (UBUNTU)

This text shows how to compiling Zindaiji3. I compiled it in Ubuntu (14.04), and use GeForce 560.

1. INSTALL NVIDIA GRAPHIC DRIVER

To enable OpenGL, install graphic driver according to your system.
Note that installaition of graphic driver is sometimes troubleful in Linux.

2. CHECK OPENGL

Check openGL is enabled.

Install simple OpenGL tools

$sudo apt-get install mesa-utils

Then confirm that

$glxinfo

would not be aborted with error, or

$glxgears



works smoothly.

3. INSTALL WXWIDGETS 2.8.12

Download wxWidgets 2.8.12 from here.

Current version of wxWidgets is 3.0.0, but Zindaiji3 uses 2.8. Download wxGTK-2.8.12.zip.

Decompress wxGTK-2.8.12.tar.gz in some working directory.

./configure --with-gtk2 --with-opengl --enable-unicode

By default, configure stops with errors.
Install necesarry libraries by some package-manager like Synaptic.



libgtk2.0-dev
freeglut3-dev

If other libraries are required, instal them.
Note that we need libraries for compiling applications that uses library. i.e. we need libgtk2.0-dev, rather than libgtk2.0 itself. (When the former is installed, the latter is installed automatically

I expect error would appear that says libGL.so does not exist. This is because libGL.so is installed not to /usr/lib/
but
/usr/lib/i386-linux-gnu/ (32bit)
or
/usr/lib/x86_64-linux-gnu/ (64bit)

in Ubuntu.
To avoid this error, make symbolic link as fllows.

$sudo ln -s /usr/lib/x86_x64-linux-gnu/libGL.so /usr/lib/libGL.so
$sudo ln -s /usr/lib/x86_x64-linux-gnu/libGLU.so /usr/lib/libGLU.so

If ./configure sucseeds, compile and install wxWidgets.

$make -j 4 (4 is thead number)
$sudo make install
$sudo ldconfig
$make clean

4. INSTALL LUA

Zindaiji3 ver 0.88 or greater require Lua library. Use synaptic and install liblua5.2-dev.

5. INSTALL HDF5 (Optional)

If you want to read HDF5 file, install HDF5 library. HDF5 ver 1.8.12 or later is required. Note that 1.8.11 would be installed by synaptic in Ubuntu 14.04. Compile from Source code woulde be required. *) I checked the validity for ver 1.8.12 only for now. I recently fouond the newest 1.8 (1,8.16) have some chage from 1.8.12. Wait for some time for support for 1.8.16.

6. COMPILE ZINDAIJI3

configure

Move into directory Zindaij2/LINUX and
$./configure

If configure suceed, Makefile would be generated.

configure option

--with-hdf5 use HDF5 file.

--with-zlib use zlib to deflate .gz compressed file.

compile

Then, compile it.

$make -j 4 (4 is thrad number)

If compile succeeds, execute file would be generated.

return
inserted by FC2 system