[ Double-posted threads merged and rewritten -- Mod. ]
Hi all,
I'm using MONO for about five months on Windows and FreeBSD (I found no problems with that until I try to use conversion of a *.doc file to *.docx file that gives me doc2x.exe tool (tool that should work fine in FreeBSD with MONO). First I've got some problem with finding zlibwapi.dll (this is an external library that another internal library - ZipUtils.dll - use to generate an XML format of output *.docx file). I read about mapping of DLL's in MONO and create ZpiUtils.dll.config file. After that doc2x.exe start to search libzlibwapi.so (library that can be used in FreeBSD). Unfortunately this library cannot by found by the tool. I've tried to compile the library under FreeBSD but with no success (manual in ReadMe.linux file).
Then I try to use an information stored in ReadMe.linux file (source folder of zlib library).
Unfortunately this compilation instruction didn't work. Last I found was FAQ of tool in which I found this instruction for UNIX OS:
Next time command stored in this instruction are not working. When I try to use this commands I saw these messages:
- make test (in zlib123 folder):
- ./configure
- make install
I'm a beginner in Unix OS so please help me to run this tool.
This tool should be executed by this statement:
).
Here's were you can find this tool: http://sourceforge.net/projects/b2xtranslator/
Thanks for any advice.
Hi all,
I'm using MONO for about five months on Windows and FreeBSD (I found no problems with that until I try to use conversion of a *.doc file to *.docx file that gives me doc2x.exe tool (tool that should work fine in FreeBSD with MONO). First I've got some problem with finding zlibwapi.dll (this is an external library that another internal library - ZipUtils.dll - use to generate an XML format of output *.docx file). I read about mapping of DLL's in MONO and create ZpiUtils.dll.config file. After that doc2x.exe start to search libzlibwapi.so (library that can be used in FreeBSD). Unfortunately this library cannot by found by the tool. I've tried to compile the library under FreeBSD but with no success (manual in ReadMe.linux file).
Then I try to use an information stored in ReadMe.linux file (source folder of zlib library).
For using the b2xtranslator under Linux, Mono (http://www.mono-project.com/)
is required. Additionally, the zlib must be available to mono.
Code:### Precompiled version of zlibwapi ### # The precompiled Linux version can be found here: ../lib/libzlibwapi.so ### Steps for compiling zlibwapi ### # # Change to folder zlib123: # cd AdditionalTools/zlib123 # # Compile the source code by executing the following command # ./makezlibwapi # # The output is the shared library libzlibwapi.so in the folder # AdditionalTools/zlib123/contrib/minizip. ### Making the library available to Mono ### # # You have to make sure that Mono is able to find this library. # # The following information is taken from the Mono documentation: # Mono looks for libraries in three places: # * In the current directory # * In directories specified by the $LD_LIBRARY_PATH environment variable # * By querying the system's dynamic linker (ldconfig)'s cache (/etc/ld.so.cache) # # Hence, the library can be copied to the directory in which the executable is # located. ### Executing the converter ### # The converter (e.g. doc2x.exe) can be executed as follows: # mono doc2x.exe <input_file>
Unfortunately this compilation instruction didn't work. Last I found was FAQ of tool in which I found this instruction for UNIX OS:
To compile all files and run the test program, follow the instructions given at
the top of Makefile. In short "make test; make install" should work for most
machines. For Unix: "./configure; make test; make install". For MSDOS, use one
of the special makefiles such as Makefile.msc. For VMS, use make_vms.com.
Next time command stored in this instruction are not working. When I try to use this commands I saw these messages:
- make test (in zlib123 folder):

- ./configure
./configure: Command not found.
- make install

I'm a beginner in Unix OS so please help me to run this tool.
This tool should be executed by this statement:
mono doc2x.exe doc_file -v 4
(-v 4 gives a debug mode in which user can see error message:
Code:
System.DLLNotFoundException: libzlibwapi.so
Here's were you can find this tool: http://sourceforge.net/projects/b2xtranslator/
Thanks for any advice.