TINA 4 Compilation Notes
These notes apply to pre- TINA 5 releases: autoconfig should make such concerns a thing of the past. If you know of any tweaks required to get TINA 4 to compile on a specific linux distribution, please add them here.
Copy (or create links for) the files:
from /usr/X11R6/lib to /usr/openwin/lib
Add the flag -ansi to the TINA compile flags in the linux section of the file sh.tina or csh.tina (depending on which shell you are using: see the installation instructions) like so:
export TINA_COMPILE_FLAGS="-g -pipe -ansi -D_BSD_SOURCE -D_POSIX_C_SOURCE -D$TINA_ARCHITECTURE"
else if( $OS == Linux ) then
setenv TINA_BASE_DIR /usr/local/Tina
setenv TINA_LIBDIR $TINA_BASE_DIR/lib
setenv TINA_COMPILE_FLAGS "-g -ansi -D_BSD_SOURCE -D_POSIX_C_SOURCE -D$TINA_ARCHITECTURE"
setenv TINA_OS "LINUX"
The previous entry switches on strict ansi C, but in this distro there is a C++ style comment on line 13 of the file base.h in /usr/openwin/include/xview:
Simply remove the comment. Default installations of Suse 8.0 (anything where you didn't pick the packages one-by-one) don't install the xview development packages: you may have to install these separately. The RPMs are under .../suse/xv1 on the installation disk: install all the packages that have names starting with xview.
You may get the message
System warning: No such file or directory, extras menu file /usr/lib/.text_extras_menu (Textsw package)
when running a tinatool. This refers to a menu that provides extra functionality for the text window in the top level tinatool: it is not essential to install this, but if you want to stop the error meassage appearing you can install the OpenLook virtual windows manager from the package
TINA 4 doesn't compile using gcc version 3 compilers (I think this is due to some tightening-up of the rules for using internal prototypes). The problem has been solved in TINA 5, but will not be fixed retrospectively in TINA 4. It may be possible to fix this problem using compiler flags, but it can be avoided by using version 2.9.x of gcc. A full installation of Suse 8.1 installs both version 2.9.x and version 3.x of gcc, with the 3.x compiler being used by default. You can change this either by setting the link gcc in /usr/bin to point to gcc-2.x in the same directory, or set CC in the user.make file in the directory where you installed TINA to point to the older version of the compiler. You may also have to set the gcc command in any tinatool Makfiles you write (or for project directories you download) to point to the older compiler.
The full install of Suse 9.0 does not install xview, so first use Yast to install the xview, xview_devel and xview_devel_examples packages. A GTK interface has been written for TINA 5 to replace the old xview interface, but this will not be added retrospectively to TINA 4.
This is the first Suse distro I have come across that does not come with a version 2.x of gcc. In order to compile TINA 4, you will have to install gcc-2.95 alongside the existing version of gcc. I tried installing from the RPM in the Suse 8.0 distro, but this would not allow relocation of the package, and I doubt that it would be a good idea to force an installation over the existing gcc. Instead, you have to install from the source, which you can do as follows:
tar -xvf gcc-2.95.3.tar
mv gcc-2.95.3 gcc 2.95.3_src
ln -s /usr/local/gcc-2.95.3/bin/gcc gcc2
You now have a link to the gcc version 2 compiler alongside the link to the gcc version 3 compiler, which you can invoke in the user.make file for TINA library builds, or in individual Makefiles for tinatools. Also remeber to alter the base.h file and to set the strict ansi flag (see above). During compilation, you should see some warnings about MIN and MAX being redefined, but no errors.
Welcome to the world of 64-bit hardware! The following instructions were tested on an AMD 3500+ machine with an Asus A8V Deluxe MB and 1GB of RAM, with both 32-bit and 64-bit versions of Suse 9.1 professional.
Suse 9.1 32 bit
The instructions listed for Suse 9.0 still work for 32-bit Suse 9.1. The full procedure is:
Suse 9.1 64 bit
Version 2.x of gcc will not build under 64 bit Suse 9.1, as the configure script contains no definition for this architecture. No compatibility version of the older compiler is available from Suse, and Tina 4 will not build under gcc 3 compilers due to some sloppy definitions (e.g. using NULL instead of 0 as a value in case statements). These issues could potentially be solved, but since they have already been solved in Tina 5, no attempt will be made to retrospectively add these fixes to Tina 4. Therefore, if you want to use 64 bit hardware, you must migrate to Tina 5.