1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Build Setup Old Stuff

From txm

Jump to: navigation, search

Windows

We use NSIS to create the Windows installer. Currently, the compilation of the install script is only done under Windows. We plan to crosscompile it under linux with MinGW in a near future.

To compile the installer, you must set up in a working directory named $DIR with the following structure:

$DIR
|--txm.nsi
|--setRegistry.class 
|--commons-cli-1.2.jar
|--txm
|--R-2.8.1
|--scripts
`--cwb
   |--cqpserver.init
   |--registry
   |  |--discours
   |  `--qgraal
   |--data
   |  |--discours
   |  `--qgraal
   `--bin
      |--libgnurx-0.dll
      `--cqpserver.exe

  • 'txm.nsi' is the source of the installer and can be found in installer/src/nsis
  • 'setRegistry.class' is a java executable used to configure the CQP registry during installation. The can be found in installer/src/java and has to be compiled to produce setRegistry.class
  • 'commons-cli-1.2.jar' is needed by setRegistry.class and can be found in installer/src/resources
  • 'txm' is the directory resulting of the eclipse product export (in Eclipse, edit the file "rcpApplication.product" and in the tab "overview" see the "exporting" panel).
  • 'R-2.8.1' is obtained by copying the result of an R install in which the packages "ca", "RSvgDevice", "Rserve" and "textometrieR" have been installed (see here). This is typically the directory 'C:\Program Files\R\R-2.8.1' or an existing c:\Program Files\TXM\R
  • 'scripts' is a directory containing the (Groovy) scripts (such as import scripts in toolbox/src/main/groovy)
  • 'cwb' is a directory containing:
    • 'cqpserver.init', a file which can be found in toolbox/src/resources/corpora
    • 'registry', a directory containing the registry entry for the demo corpus which can be found in toolbox/src/resources/corpora (all the '.svn' directories can be recursively deleted)
    • 'data', a directory containing the data for the demo corpus which can be found in toolbox/src/resources/corpora (all the '.svn' directories can be recursively deleted)
    • 'bin' a directory, containing:
      • 'libgnurx-0.dll' a file which can be found in toolbox/src/main/C/cwb-3.0/mingw-libgnurx-2.5.1
      • 'cqpserver.exe' a file which can be found in toolbox/src/main/C/cwb-3.0/cqp
      • 'cwb-encode.exe' a file which can be found in toolbox/src/main/C/cwb-3.0/utils
      • 'cwb-makeall.exe' a file which can be found in toolbox/src/main/C/cwb-3.0/utils


The compilation produce Setup.exe

Rename Setup.exe in TXM_$VERSION$_win.exe, where version is the version number (e.g. TXM_0.4.0_win.exe)

Linux

For linux, we distribute tar.gz which contains the following directory:

txm_$VERSION$_linux
|--install.sh
|--setRegistry.class 
|--commons-cli-1.2.jar
|--README.linux
|--txm
|--scripts
|--R
|  |--Rserve_0.3-17.tar.gz
|  |--RSvgDevice_0.6.4.1.tar.gz
|  `--textometrieR
`--cwb
   |--cqpserver.init
   |--registry
   |  |--discours
   |  `--qgraal
   |--data
   |  |--discours
   |  `--qgraal
   `--bin
      `--cqpserver
  • 'install.sh' is an installation script which can be found in installer/src/sh
  • 'setRegistry.class' is a java executable used to configure the CQP registry during installation. The source setRegistry.java can be found in installer/src/java and has to be compiled to produce setRegistry.class
  • 'commons-cli-1.2.jar' is needed by setRegistry.class and can be found in installer/src/resources
  • 'README.linux' is file describing the installation process which can be found in installer/src/resources
  • 'txm' is the directory resulting of the eclipse product export (in Eclipse, edit the file "rcpApplication.product" and in the tab "overview" see the "exporting" panel).
  • 'scripts' is a directory containing the (Groovy) scripts (such as import scripts in toolbox/src/main/groovy)
  • 'R' is a directory containing the R packages needed by txm (R itself has to be installed by the user before installing txm). Two of these packages are file, Rserve_0.3-17.tar.gz and RSvgDevice_0.6.4.1.tar.gz, which can be found in installer/src/resources. The third package, textometrieR, is the directory textometrieR itself (installer/../textometrieR).
  • 'cwb' is a directory containing:
    • 'cqpserver.init', a file which can be found in toolbox/src/resources/corpora
    • 'registry', a directory containing the registry entry for the demo corpus which can be found in toolbox/src/resources/corpora
    • 'data', a directory containing the data for the demo corpus which can be found in toolbox/src/resources/corpora
    • 'bin' a directory, containing:
      • 'cqpserver' a file which can be found in toolbox/src/main/C/cwb-3.0/cqp
      • 'cwb-encode' a file which can be found in toolbox/src/main/C/cwb-3.0/utils
      • 'cwb-makeall' a file which can be found in toolbox/src/main/C/cwb-3.0/utils

Be carefull to remove all the unnecessary .svn sub-directories. Under zsh you can use :

rm -fr **/.svn

To make the tar.gz, set up the txm_$VERSION$_linux directory, and in its parent issue :

tar zcvf txm_$VERSION$_linux.tar.gz txm_$VERSION$_linux

It produces txm_$VERSION$_linux.tar.gz

Personal tools