Building VirtualT on Linux: Difference between revisions

From Bitchin100 DocGarden
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
(Rough, please improve...)
== Download Latest VirtualT Source ==


Because of the variety of Linux distros we need volunteer support to maintain good "packages" for each one. That's the best route... then no documentation is needed for install. Short of that, everyone just has to build VirtualT themselves. Of course the benefit of building it yourself is that you always have the latest and greatest features (and bugs... but that's what makes life so exciting, right?).
Because of the variety of Linux distros we need volunteer support to maintain good "packages" for each one. That's the best route... then no documentation is needed for install. Short of that, everyone just has to build VirtualT themselves. Of course the benefit of building it yourself is that you always have the latest and greatest features (and bugs... but that's what makes life so exciting, right?).


FWIW, checking out the latest and greatest code from cvs is a "basic skill" all Linux users should acquire. It's easy, cheap, and free. To get latest VirtualT code, there are instructions at
Open a command prompt and type:


http://sourceforge.net/cvs/?group_id=115749
<code><pre>
cvs -z3 -d:pserver:anonymous@virtualt.cvs.sourceforge.net:/cvsroot/virtualt co -P VirtualT
</pre></code>


Comes down to this:
== Download, Build FLTK dependency ==


Open a command prompt and type:
VirtualT depends on the FLTK library. FLTK is hosted at http://www.fltk.org/software.php . Download a version of fltk. These instructions were developed with fltk-1.1.7 . Decompress the package.
 
Change directory into fltk-x.y.z
 
Configure and make fltk:


<code><pre>  
<code><pre>
cvs -z3 -d:pserver:anonymous@virtualt.cvs.sourceforge.net:/cvsroot/virtualt co -P VirtualT
./configure --enable-localjpeg --enable-localzlib --enable-localpng
make
</pre></code>
</pre></code>


If you cd into VirtualT, you can type 'make'. Most likely that won't work since you need to set FLTKDIR since VirtualT is dependent upon FLTK. That's probably the only dependency you won't have. So you need to google for the FLTK site, download its source package and build it on your system. Once it's built, you
== Building VirtualT ==
 
cd into VirtualT,


<code><pre>
<code><pre>
export FLTKDIR=/where/is/fltk-x.y.z
export FLTKDIR=/where/is/fltk-x.y.z
make
</pre></code>
</pre></code>


then make should work.
then make should work.
Note: I have a problem getting the Help dialog to compile. I'm not sure what the problem is, but I just hacked around it by disabling it. Use your favorite text editor to edit src/display.cpp and comment out the following block of code:
<code><pre>
void cb_help (Fl_Widget* w, void*)
{
#if 0
      Fl_Help_Dialog *HelpWin;
      HelpWin = new Fl_Help_Dialog();
      HelpWin->resize(HelpWin->x(), HelpWin->y(), 760, 550);
      HelpWin->load("doc/help.html");
      HelpWin->show();
#endif
}
</pre></code>

Revision as of 21:32, 26 January 2008

Download Latest VirtualT Source

Because of the variety of Linux distros we need volunteer support to maintain good "packages" for each one. That's the best route... then no documentation is needed for install. Short of that, everyone just has to build VirtualT themselves. Of course the benefit of building it yourself is that you always have the latest and greatest features (and bugs... but that's what makes life so exciting, right?).

Open a command prompt and type:

 
cvs -z3 -d:pserver:anonymous@virtualt.cvs.sourceforge.net:/cvsroot/virtualt co -P VirtualT

Download, Build FLTK dependency

VirtualT depends on the FLTK library. FLTK is hosted at http://www.fltk.org/software.php . Download a version of fltk. These instructions were developed with fltk-1.1.7 . Decompress the package.

Change directory into fltk-x.y.z

Configure and make fltk:

./configure --enable-localjpeg --enable-localzlib --enable-localpng
make

Building VirtualT

cd into VirtualT,

export FLTKDIR=/where/is/fltk-x.y.z
make

then make should work.

Note: I have a problem getting the Help dialog to compile. I'm not sure what the problem is, but I just hacked around it by disabling it. Use your favorite text editor to edit src/display.cpp and comment out the following block of code:

void cb_help (Fl_Widget* w, void*)
{
#if 0
       Fl_Help_Dialog *HelpWin;

       HelpWin = new Fl_Help_Dialog();
       HelpWin->resize(HelpWin->x(), HelpWin->y(), 760, 550);
       HelpWin->load("doc/help.html");
       HelpWin->show();

#endif
}