Στις 7/8/2012 03:12, ο/η Massimo Manghi έγραψε:
Hi Georgios,

congratulations, really well done!

On Tue, 2012-08-07 at 01:41 +0300, Georgios Petasis wrote:
Dear Massimo,

I think I have made significant progress with the windows port.
I have managed to create the 3 dlls (mod_rivet.dll, rivetlib.dll,
rivetparser.dll).
I have copied mod_rivet.dll in modules/mod_rivet.so of my windows apache
installation.
The server cannot start any more, and in its error log I see this:

[Tue Aug 07 01:33:11 2012] [error] (20014)Internal error: mod_rivet:
init.tcl must be installed correctly for Apache Rivet to function: can't
find package RivetTcl exactly 2.1 ()

yes, I expected so when I read your definitions list and also thought to
warn you about it, but forgot in the process of writing my answer. Sorry

Which I think is perfectly fine: I haven't installed anything beyond
mod_rivet.dll, so it is expected that the rivet packages could not be found.
The fact that I got this message means that mod_rivet was loaded, and
actually executed!
Yes, you're just a step from the final goal! I look forward to see it
working!

Now the next question is: where should I place the rivet library on windows?

The relevant definition is

ADD_DEFINITIONS ( -DRIVET_RIVETLIB_DESTDIR="" )

and must point to wherever appropriate on Windows for storing ancillary
code and libraries.

RIVET_RIVETLIB_DESTDIR is a path to the root directory
where everything in the $(rivet_root)/rivet folder must go.
(rivet_root is the root of Rivet's source distribution)
Thank you I have fixed this.
Read Makefile.am in Rivet's source distribution root directory. This is
the target involved in the process of installing the stuff you need to
let mod_rivet work.

install-data-local:
        $(mkinstalldirs) $(DESTDIR)$(RIVETLIB_DESTDIR)
        cp -r rivet/* $(DESTDIR)$(RIVETLIB_DESTDIR)
        -(  cd  $(DESTDIR)$(RIVETLIB_DESTDIR); \
            echo 'eval file delete [glob [file join packages * pkgIndex.tcl]]
pkgIndex.tcl' | @TCLSH_PROG@ ; \
            echo 'eval pkg_mkIndex -verbose [pwd] init.tcl [glob [file join
packages * *.tcl] [file join *[info sharedlibextension]]]' |
@TCLSH_PROG@ ; )

this should be reproduced using CMake (I haven't the faintest idea on
how to do it) in order to have the stuff properly.
Thanks again for pasting this portion. I will try to reproduce it in cmake.
For the time being, I cheated a little, by copying and editing the pkgIndex.tcl file from linux :D

Regards,

George


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to