Hello All,
I already posted my question on OOo Forum (c.f.
http://www.oooforum.org/forum/viewtopic.phtml?t=21742). I now re-post
it to this email list to say if anyone can give some advice.
* * *
I managed to compile "analysis" of the cvs version of scaddins under
SuSE Linux, My changes & procudures are:
[OS: SuSE Linux, OOo 1.9.113, OOo SDK 1.9.113, C/C++ compiler gcc
3.3.4]
1. I checked out module "scaddins", "sc", "sal", "tools", "comphelper"
from cvs
2. Added the following line on the top of analysis.cxx
#include "addin.h"
FYI: Without this line, I get error:
"analysis.cxx(233) : error C2065: 'SUPD' : undeclared identifier"
3. With some modifications to the make file, (mainly extracting more
interface using cppumaker) and I finially get the .rdb and .so file
But when I try to register it using unopkg I get the following error.
* * *
unopkg add -v -f analysisaddPkg.zip
Copying Package: analysisaddPkg.zip
Enabling package: analysisaddPkg.zip
Enabling package: analysisadd.uno.rdb
Enabling package: analysisadd.uno.so
WARNING: An error occurred while enabling the package:
analysisadd.uno.so, Cause:
(com.sun.star.registry.CannotRegisterImplementationException) { {
Message = "loading component library failed:
file:///home/chatter/.openoffice.org2/user/uno_packages/cache/uno_packages/CQmIow_/analysisaddPkg.zip/analysisaddPkg/analysisadd.uno.so",
Context = (com.sun.star.uno.XInterface) 0x0 } }
* * *
In my own add-ins, I saw exactly the same error, in both Linux and
Solaris (x86) both using OOo 1.9.113 and SDK 1.9.113. But my own
add-ins can be registered fine in Windows XP (same version of OOo and
SDK), the problem under Windows is that when my Add-in is loaded by
Calc first time, Calc Crashes... Then, when Calc is restarted, every
thing works fine (i.e., my functions calculates perfectly).
Does anyone know what is wrong?
I can see page http://sc.openoffice.org/addin_howto.html is last
changed on/by:
*********
Author: Gunnar Timm (created: 20010802)
Last change: 20011002
********
Which probably means the analysis addin example does not work with the
latest sdk. If so, what changes is needed to be done? I guess there are
only minor changes (since it compiles), but just the way of how the
package is registered is changed recently (i.e., using unopkg).
Or, Is there any working C++ Calc Addin examples?
Thanks
* * *
For my own add-in, as I described above, IN WINDOWS, if I use unopkg or
pkgchk to register it, then Calc crashes the first time when I start
calc and try to insert a function...then after the crash, everything
works fine...even when Calc is restarted or machine is restarted... if
I use regcomp to register and manually add entries to uno.ini, I don't
see the crash all all.
Under Linux and Solaris, I cannot register the same add-in (of course
recompiled on the platform) using any tools, neither pkgchk/unopkg, nor
regcomp.
Could this just be a bug of the deploy tools (i.e., pkgchk/unopkg/regcomp)?
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail
http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]