Difference between revisions of "Talk:Compiling from Source"

From TexGen
Jump to navigationJump to search
 
(3 intermediate revisions by the same user not shown)
Line 37: Line 37:
 
         --with-xmu-library=/usr/lib/ \
 
         --with-xmu-library=/usr/lib/ \
 
         --with-stlport-include=/usr/include/c++/3.4/ \
 
         --with-stlport-include=/usr/include/c++/3.4/ \
         --with-stlport-libname=libstlport.so \
+
         --with-stlport-libname=stlport \
 
         --with-stlport-library=/usr/lib/ \
 
         --with-stlport-library=/usr/lib/ \
 
         --enable-debug  
 
         --enable-debug  
 
     make  
 
     make  
  
 +
open "configure" and edit from line 14772 so that the following lines read:
 +
  if test "X$enable_debug" = "Xyes"; then
 +
    CFLAGS="$CFLAGS -g -DDEB -D_DEBUG -DCSFDB" 
 +
    CXXFLAGS="$CXXFLAGS -g -DDEB -D_DEBUG -DCSFDB"
 +
  else
 +
    CFLAGS="$CFLAGS -DNDEBUG  -DNo_Exception -DCSFDB "
 +
    CXXFLAGS="$CXXFLAGS -DNDEBUG  -DNo_Exception -DCSFDB "
 +
  fi
 +
 +
and change the lines in "configure" to set the following entries
 +
  TCL_INCLUDE_FLAG="-I/usr/include/tcl8.4/"
 +
  TK_INCLUDE_FLAG="-I/usr/include/tcl8.4/"
  
 
then, on the command line:  
 
then, on the command line:  

Latest revision as of 10:02, 4 January 2007

Just a quick note on the installation of OpenCASCADE on debian linux amd64, I didn't find it entirely trivial, so here it goes:

Apt install the following packages, more may be needed, but this was what I needed on top of what I had:

   apt-get install sun-java5-jdk
   apt-get install g++-3.4
   apt-get install libstlport5-dev


install in whatever directory you find suitable, I install things in $HOME/progs.

get OpenCASCADE_Linux.tgz from the download section.

in $HOME/progs

   mkdir OpenCASCADE
   mv OpenCASCADE_Linux.tgz OpenCASCADE
   cd OpenCASCADE 
   tar xzvf OpenCASCADE_Linux.tgz
   cd Linux
   java -cp setup.jar run


in $HOME/progs/OpenCASCADE/Linux/ros/run_all.sh (if that is where you installshielded the thing to) write the following (adjust options to what you need/want/have, but make sure that you don't use gcc-4x):

   csh env.csh
   export CC=gcc-3.4
   export CXX=g++-3.4
   export JAVAHOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.10
   export CASROOT=$HOME/progs/OpenCASCADE/Linux/ros
   ./configure --with-java-include=$JAVAHOME/include \
       --with-gl-include=/usr/include/ --with-gl-library=/usr/lib/ --with-x \
       --with-pic --with-xmu-include=/usr/include/X11/ \
       --with-xmu-library=/usr/lib/ \
       --with-stlport-include=/usr/include/c++/3.4/ \
       --with-stlport-libname=stlport \
       --with-stlport-library=/usr/lib/ \
       --enable-debug 
   make 

open "configure" and edit from line 14772 so that the following lines read:

  if test "X$enable_debug" = "Xyes"; then
    CFLAGS="$CFLAGS -g -DDEB -D_DEBUG -DCSFDB"  
    CXXFLAGS="$CXXFLAGS -g -DDEB -D_DEBUG -DCSFDB"
  else
    CFLAGS="$CFLAGS -DNDEBUG  -DNo_Exception -DCSFDB "
    CXXFLAGS="$CXXFLAGS -DNDEBUG  -DNo_Exception -DCSFDB "
  fi

and change the lines in "configure" to set the following entries

  TCL_INCLUDE_FLAG="-I/usr/include/tcl8.4/"
  TK_INCLUDE_FLAG="-I/usr/include/tcl8.4/"

then, on the command line:

   chmod +x configure 
   chmod +x run_all.sh
   ./run_all.sh

And then wait and wait and wait and wait....


I don't know how (sub)optimal such an install is, I'll try to provide updates as I get them.

Cheers W