Hi, Jürgen, Thanks for the reply. Sorry if I was not very clear in my email. My add-in actually works under Windows. If I use OOo 1.1.4 and SDK 1.1.0 (i.e., both stable version), then my add-in (written in c++) works fine. If I use the latest snapshot build (under Windows), Calc crashes the FIRST TIME after my Add-in is registered and when I try to insert a/any function, then when restarted, everything works, (i.e., the crash only happens once).
The above behevious may be implying that there is a bug or incompitibility in the latest snapshot build regarding package loading. My main problem is in Linux (SuSE 9.2, x86) and Solaris 10 (x86), i.e., same add-in code cannot be registered.. I use gcc 3.3.4 under Linux and gcc 3.4.0 under Solaris 10, Are you saying that the problem is related to the compiler rather than OOo/SDK themselves? What version of gcc OOo and its SDK are compiled? Best Regards, Xutuan --- Jürgen Schmidt <[EMAIL PROTECTED]> wrote: > Hi, > > as Volker mentioned you need a Visual Studio .Net 2003 compiler for > OO2.0. That is maybe the reason why your library can't be loaded > under > windows. You can also use the free available compiler toolkit from > MS. > regcomp and pkgchk are deprecated for normal registration usage. > unopkg > should handle your library as normal and the process has not changed. > > Juergen > > xutuan Zhang wrote: > > 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] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ___________________________________________________________ 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]
