Differences between revisions 3 and 4
Revision 3 as of 2005-07-06 07:56:23
Size: 4372
Comment:
Revision 4 as of 2005-12-18 23:48:53
Size: 3126
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Compiling F.O.X. under Linux is normally easy (it is developped using Mandriva Linux). The only difficulty is getting the right graphic libraries (wxWidgets and OpenGL+glut).
As always, send me an email at vincefn@users.sf.net if you have any trouble with the installation.
Compiling F.O.X. under Linux is normally easy (it is developped using Mandriva Linux). The source code for Fox now includes the [http://wxwidgets.org wxWidgets] and [http://freeglut.sf.net freeglut] librairies, so dependencies should be minimal. As always, send me an email at vincefn@users.sf.net if you have any trouble with the installation.
Line 5: Line 4:
Line 9: Line 9:
[[Anchor(lib)]]
Below are '''specific instructions to install the required graphics libaries for the following distributions''' :
 *'''[#mdk Mandriva]'''[[BR]]
 *'''[#fedora Fedora]'''[[BR]]
 *'''[#suse Suse]'''[[BR]]
[[Anchor(lib)]]  Below are '''specific instructions to install the required graphics libaries for the following distributions''' :

* '''[#mdk Mandriva]'''[[BR]]
 * '''[#fedora Fedora]'''[[BR]]
 * '''[#suse Suse]'''[[BR]]
Line 16: Line 17:
If your distribution is not listed, just follow the [#general general building instructions].
[[Anchor(general)]]
If your distribution is not listed, just follow the [#general general building instructions]. [[Anchor(general)]]
Line 20: Line 21:
    * You will need valid libraries and development files for '''OpenGL'''. You may require a specific library for your card (NVidia,...), the '''Mesa''', '''Mesa-devel''', '''Xfree-devel''' or libxorg-devel packages. You will also need to install the '''glut''' or '''freeglut''' library (in Fox v1.5, this was not necessary but the new method does not work as expected on some graphic drivers... You can stick to the Fox v.1.5 method by removing the "```-DHAVE_GLUT```" and "```-lglut```" in the ```Fox/ObjCryst/rules.mak``` file). For all major distributions, these packages are included either in the default install or as an additionnal package.
    * You will also need to download and install the '''wxWidgets''' for GTK+ shared libraries (you need the '''wxGTK''', '''wxGTK-gl''' and '''wxGTK-devel''' packages). Note that ''starting with Fox 1.6, only wxWindows > 2.4.x are supported''
          * With wxGTK-2.4.*, after the install you must do:
                * ```ln -s /usr/bin/wxgtk-2.4-config /usr/bin/wx-config```
                or
                *```ln -s /usr/bin/wxgtk2-2.4-config /usr/bin/wx-config```
                depending which version you have...

 * You will need valid libraries and development files for '''OpenGL'''. You may require a specific library for your card (NVidia,...), the '''Xfree-devel''' or '''libxorg-devel''', and the '''gtk-devel''' (or '''gtk+-devel''' or '''gtk2-devel'''...) packages. For all major distributions, these packages are included either in the default install or as an additionnal package.
Line 28: Line 25:
[[Anchor(mdk)]] 
==== Mandriva 10.2 (200(LE) ====
  The required packages (just ```urpmi``` followed by tha package names - you need the '''main''' and '''contrib''' rpm repositories) are :
    * Development packages (should be obvious but...): ```gcc gcc-c++ gcc-cpp gcc-g77```
    * wxWidgets : ```libwxgtk2.6 libwxgtk2.6-devel libwxgtkgl2.6 wxGTK2.6 libwxgtkgl2.6```
    * OpenGL and glut: ```libMesaGLU1 libMesaGLU1-devel libMesaglut3 libMesaglut3-devel```
    * Xorg development package : ``
`libxorg-x11-devel```
    
[[Anchor(mdk)]]
==== Mandriva 10.2 (2006) ====
 The required packages (just ```urpmi``` followed by tha package names - you need the '''main''' and '''contrib''' rpm repositories) are :
  * Development packages (should be obvious but...): ```gcc gcc-c++ gcc-cpp gcc-g77```
  * Graphics development packages : `libxorg-x11-devel, libgtk+1.2-devel `
Line 38: Line 33:
Line 39: Line 35:
    * Development packages (should be obvious but...): ```gcc gcc-c++ gcc-g77```
    * wxWidgets (in the ''extra'' packages): ```wxGTK2-2.4.2 wxGTK2-devel-2.4.2 wxGTK2-gl-2.4.2 wxGTK2-stc-2.4.2 wxGTK2-xrc-2.4.2```
    * OpenGL and glut: ```xorg-x11-Mesa-libGL xorg-x11-Mesa-libGLU freeglut freeglut-devel ```
    * Xorg development package : ```xorg-x11-devel```
 * Development packages (should be obvious but...): ```gcc gcc-c++ gcc-g77```
 * Graphics development package : `xorg-x11-devel, gtk+-devel`
Line 46: Line 40:
====  SuSE 9.3 ====
    * Development packages (should be obvious but...): ```gcc gcc-c++ gcc-g77```
    * wxWidgets: ``` wxGTK wxGTK-compat wxGTK-debuginfo wxGTK-devel wxGTK-gl ```
    * OpenGL and glut: ```freeglut freeglut-debuginfo freeglut-devel xorg-x11-Mesa xorg-x11-Mesa-devel```
    * Xorg
development package : ```xorg-x11-devel```

==== SuSE 9.3 ====
 * Development packages (should be obvious but...): ```gcc gcc-c++ gcc-g77```
 * Graphics development package : `xorg-x11-devel, gtk-devel (or gtk2-devel)`
Line 53: Line 46:
[[Anchor(fox)]]
Get the Fox.tar.bz2 from [http://sourceforge.net/project/showfiles.php?group_id=27546&release_id=203604 SourceForge], [ftp://ftp.ccp14.ac.uk/ccp14/ftp-mirror/objcryst/ CCP14(UK)], [http://ccp14.sims.nrc.ca/ccp/ccp14/ftp-mirror/objcryst/ CCP14(Canada)] or [http://ccp14.semo.edu/ccp/ccp14/ftp-mirror/objcryst/ CCP14(USA)]
[[Anchor(fox)]] Get the Fox.tar.bz2 from [http://sourceforge.net/project/showfiles.php?group_id=27546&release_id=203604 SourceForge], [ftp://ftp.ccp14.ac.uk/ccp14/ftp-mirror/objcryst/ CCP14(UK)], [http://ccp14.sims.nrc.ca/ccp/ccp14/ftp-mirror/objcryst/ CCP14(Canada)] or [http://ccp14.semo.edu/ccp/ccp14/ftp-mirror/objcryst/ CCP14(USA)]
Line 56: Line 48:
Then compile and install Fox: Then compile and install Fox (replace VERSION by your version of Fox):
Line 58: Line 51:
  tar -xjf Fox-20031213.tar.bz2
  cd Fox-20031213
  tar -xjf Fox-VERSION.tar.bz2
  cd Fox-VERSION
Line 63: Line 56:

Compiling F.O.X. under Linux is normally easy (it is developped using Mandriva Linux). The source code for Fox now includes the [http://wxwidgets.org wxWidgets] and [http://freeglut.sf.net freeglut] librairies, so dependencies should be minimal. As always, send me an email at vincefn@users.sf.net if you have any trouble with the installation.

Steps:

  • [#lib 1. Install the required graphical libraries]

  • [#fox 2. Get, compile & install Fox]

Installing the required graphics libraries

Anchor(lib) Below are specific instructions to install the required graphics libaries for the following distributions :

  • [#mdk Mandriva]BR

  • [#fedora Fedora]BR

  • [#suse Suse]BR

Please add or correct the instructions for your distribution...

If your distribution is not listed, just follow the [#general general building instructions]. Anchor(general)

General Instructions (if your distribution is not listed below)

To install F.O.X. under Linux:

  • You will need valid libraries and development files for OpenGL. You may require a specific library for your card (NVidia,...), the Xfree-devel or libxorg-devel, and the gtk-devel (or gtk+-devel or gtk2-devel...) packages. For all major distributions, these packages are included either in the default install or as an additionnal package.

Mandrake & Mandriva

Anchor(mdk)

Mandriva 10.2 (2006)

  • The required packages (just urpmi followed by tha package names - you need the main and contrib rpm repositories) are :

    • Development packages (should be obvious but...): gcc gcc-c++ gcc-cpp gcc-g77

    • Graphics development packages : libxorg-x11-devel, libgtk+1.2-devel 

Fedora

Anchor(fedora) This is partially a guess since I do not have this distribution, so feel free to correct these

Fedora Core 3 & 4

  • Development packages (should be obvious but...): gcc gcc-c++ gcc-g77

  • Graphics development package : xorg-x11-devel, gtk+-devel

SuSE

Anchor(suse) This is partially a guess since I do not have this distribution, so feel free to correct these

SuSE 9.3

  • Development packages (should be obvious but...): gcc gcc-c++ gcc-g77

  • Graphics development package : xorg-x11-devel, gtk-devel (or gtk2-devel)

Get, compile & installing Fox

Anchor(fox) Get the Fox.tar.bz2 from [http://sourceforge.net/project/showfiles.php?group_id=27546&release_id=203604 SourceForge], [ftp://ftp.ccp14.ac.uk/ccp14/ftp-mirror/objcryst/ CCP14(UK)], [http://ccp14.sims.nrc.ca/ccp/ccp14/ftp-mirror/objcryst/ CCP14(Canada)] or [http://ccp14.semo.edu/ccp/ccp14/ftp-mirror/objcryst/ CCP14(USA)]

Then compile and install Fox (replace VERSION by your version of Fox):

  tar -xjf Fox-VERSION.tar.bz2
  cd Fox-VERSION
  make
  make install (for this last step you must be root).

Fox will be installed in /usr/local/bin/Fox. Otherwise the compiled file is in the src/Fox subdirectory.

None: FoxInstallLinux (last edited 2006-08-29 14:43:21 by nallo)