Difference between revisions of "Mono Integration"

From Apache OpenOffice Wiki
Jump to: navigation, search
(migrate)
 
 
(3 intermediate revisions by 2 users not shown)
Line 6: Line 6:
  
 
To build this, grab a recent mono - 1.1.8.3 is likely to work.
 
To build this, grab a recent mono - 1.1.8.3 is likely to work.
Then [[Building | Build]] with --enable-mono. [[Installing | Install]] in the normal way.
+
Then [[Building_with_ooobuild | Build]] with --enable-mono. [[Installing | Install]] in the normal way.
  
 
=== Build sample programs ===
 
=== Build sample programs ===
  
 
     cd odk/examples/CLI/CSharp/Spreadsheet
 
     cd odk/examples/CLI/CSharp/Spreadsheet
     mcs SpreadsheetSample.cs SpreadsheetDocHelper.cs \
+
     export CLI_URE=../../../../../cli_ure/unxlngi6.pro/bin
      -r ../../../../../cli_ure/unxlngi4.pro/bin/cli_basetypes.dll \
+
    mcs SpreadsheetSample.cs SpreadsheetDocHelper.cs -r:$CLI_URE/cli_basetypes.dll \
       -r ../../../../../cli_ure/unxlngi4.pro/bin/cli_types.dll \
+
       -r:$CLI_URE/cli_types.dll -r:$CLI_URE/cli_cppuhelper.dll -r:$CLI_URE/cli_ure.dll
      -r ../../../../../cli_ure/unxlngi4.pro/bin/cli_cppuhelper.dll \
+
      -r ../../../../../cli_ure/unxlngi4.pro/bin/cli_ure.dll
+
 
     cp SpreadsheetSample.exe /opt/OOInstall/program
 
     cp SpreadsheetSample.exe /opt/OOInstall/program
 
     cd /opt/OOInstall/program
 
     cd /opt/OOInstall/program
Line 31: Line 29:
 
       -r cli_cppuhelper.dll -r cli_ure.dll
 
       -r cli_cppuhelper.dll -r cli_ure.dll
 
     mono ./SpreadsheetSample.exe
 
     mono ./SpreadsheetSample.exe
 +
[[Category:Build_System]]

Latest revision as of 03:00, 29 December 2008

Notice

This functionality is available only in patches associated with ooo-build/

Building

To build this, grab a recent mono - 1.1.8.3 is likely to work. Then Build with --enable-mono. Install in the normal way.

Build sample programs

   cd odk/examples/CLI/CSharp/Spreadsheet
   export CLI_URE=../../../../../cli_ure/unxlngi6.pro/bin
   mcs SpreadsheetSample.cs SpreadsheetDocHelper.cs -r:$CLI_URE/cli_basetypes.dll \
     -r:$CLI_URE/cli_types.dll -r:$CLI_URE/cli_cppuhelper.dll -r:$CLI_URE/cli_ure.dll
   cp SpreadsheetSample.exe /opt/OOInstall/program
   cd /opt/OOInstall/program
   mono ./SpreadsheetSample.exe

You should get a nicely auto-generated spreadsheet.

With a binary installation

You need to grab the files above from: lxr and whack them in /usr/lib/ooo-2.0/program slightly differently:

   cd /usr/lib/ooo-2.0/program
   mcs SpreadsheetSample.cs SpreadsheetDocHelper.cs \
     -r cli_basetypes.dll -r cli_types.dll \
     -r cli_cppuhelper.dll -r cli_ure.dll
   mono ./SpreadsheetSample.exe
Personal tools