Re: [dev] building DEV300-m83 problem
Le 30 juil. 10 à 01:02, Michal Spisiak a écrit : Hello, Hello Michal, to disable everything that might cause problems. Building vcl I got first error: ... Entering /home/miko/new_OOo/local_DEV300/vcl/unx/source/fontmanager Making:all_fontman.dpslo Compiling: vcl/unx/source/fontmanager/fontmanager.cxx Compiling: vcl/unx/source/fontmanager/fontcache.cxx Compiling: vcl/unx/source/fontmanager/fontconfig.cxx [..cut...] rtl::OUString, const rtl::OString, psp::italic::type, psp::weight::type, psp::width::type, psp::pitch::type) const dmake: Error code 1, while making '../../../unxlngi6.pro/slo/ fontconfig.obj' here I just added references to the implementation of the method as they were in the header but then I got second error: ... Entering /home/miko/new_OOo/local_DEV300/vcl/util Compiling: vcl/unxlngi6.pro/misc/vcl_dflt_version.c Compiling: vcl/unxlngi6.pro/misc/vclplug_gen_dflt_version.c Compiling: vcl/unxlngi6.pro/misc/desktop_detector_dflt_version.c [...cut...] ../unxlngi6.pro/slo/salgdi3.o: In function `.L389': salgdi3.cxx:(.text+0xdee): undefined reference to `psp::PrintFontManager::getFontOptions(psp::FastPrintFontInfo const, Looking in the .o, it is exactly defined once (as expected) int, void (*)(void*), ImplFontOptions) const' collect2: ld returned 1 exit status dmake: Error code 1, while making '../unxlngi6.pro/lib/ libvclplug_genli.so' and I have no idea what happens here, I just checked that the method is not overloaded and it's not... Same for me. We searched together with Michal, I confirm we searched a long while what could happen with fontconfig and co. Is there any existing issue open around that ? (we didn't find one) ? Or is it a specific Ubuntu issue ? Thanks, Eric P.S.: starting today evening, I won't be able to answer my mail regularly, for several weeks, so please understand if i do not answer you fastly. -- qɔᴉɹə Education Project: http://wiki.services.openoffice.org/wiki/Education_Project Projet OOo4Kids : http://wiki.ooo4kids.org/index.php/Main_Page L'association EducOOo : http://www.educoo.org Blog : http://eric.bachard.free.fr/news
Re: [dev] Request for advice on programming for OpenOffice
On Thu, Jul 29, 2010 at 2:52 AM, Stephanie Smith stephsmi...@gmail.com wrote: To Whom it May Concern, I am a student at the University of Ballarat, and am in my final semester of studies in a Bachelor of Applied Computing. Currently I am enrolled in the course Open Source Linux, and as part of our assessment we are required to contribute to an open source project in some way. Great task. We really want to welcome this projects and help students like yourself feel confortable learning about free and open source software. Feel free to ask anything you need. I am primarily interested in software development, and throughout the duration of my degree I have focussed on taking programming courses. I have experience in a range of programming and scripting languages including C, C++, Java, C#, HTML, PHP, and SQL, among others. I use a MacBook, and run both Mac OS X and Windows 7. That's great, OpenOffice.org runs on GNU/Linux, Solaris, Windows and OSX. OpenOffice.org main languages are C++, Java, Python and Basic. I would really love the opportunity to contribute to OpenOffice, but am unsure as to what would be appropriate for me to do. Due to the constraints of my course I only have approximately 10 weeks, however I would be willing to continue working on the project after the completion of my course in order to complete my work to a high standard. Please forward this email to d...@education.openoffice.org and join us on IRC at #education.openoffice.org on Freenode. eric_b could help you out getting setup your compile environment for OOo. If you don't know about IRC, we have a brief introduction here: http://wiki.services.openoffice.org/wiki/IRC_Communication Regards. Any guidance or assistance would be greatly appreciated. Regards, Stephanie Smith. -- Alexandro Colorado OpenOffice.org Español http://es.openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] svarray replace by STL - patch
Hi. I have created patch, which replace SV_DECL_PTRARR with std::vector. It is first step to resolve old bug: http://www.openoffice.org/issues/show_bug.cgi?id=84159 Unfortunately this patch is not works correctly. After compile/run OpenOffice the application freeze. I do something wrog, but I cannot find bug which couse this freeze. Here is patch prepared by me: diff -r fad23fb34ff7 svl/source/inc/poolio.hxx --- a/svl/source/inc/poolio.hxx Thu Jun 17 14:29:52 2010 +0200 +++ b/svl/source/inc/poolio.hxx Mon Jun 21 21:09:43 2010 +0200 @@ -53,8 +53,9 @@ {} }; -SV_DECL_PTRARR( SfxPoolItemArrayBase_Impl, SfxPoolItem*, 0, 5 ) SV_DECL_PTRARR_DEL( SfxPoolVersionArr_Impl, SfxPoolVersion_Impl*, 0, 2 ) +//SV_DECL_PTRARR( SfxPoolItemArrayBase_Impl, SfxPoolItem*, 0, 5 ) +typedef std::vectorSfxPoolItem* SfxPoolItemArrayBase_Impl; struct SfxPoolItemArray_Impl: public SfxPoolItemArrayBase_Impl { diff -r fad23fb34ff7 svl/source/items/itempool.cxx --- a/svl/source/items/itempool.cxx Thu Jun 17 14:29:52 2010 +0200 +++ b/svl/source/items/itempool.cxx Mon Jun 21 21:09:43 2010 +0200 @@ -39,13 +39,7 @@ #include svl/smplhint.hxx #include poolio.hxx #include algorithm - -// STATIC DATA --- - - -// - +#include vector SV_IMPL_PTRARR( SfxPoolVersionArr_Impl, SfxPoolVersion_Impl* ); // @@ -275,13 +269,12 @@ (*( ppPoolDefaults + n ))-SetKind( SFX_ITEMS_POOLDEFAULT ); } - // Version-Map kopieren - USHORT nVerCount = rPool.pImp-aVersions.Count(); - for ( USHORT nVer = 0; nVer nVerCount; ++nVer ) + // Copy Version-Map + for ( size_t nVer = 0; nVer rPool.pImp-aVersions.size(); ++nVer ) { - const SfxPoolVersion_Impl *pOld = rPool.pImp-aVersions.GetObject(nVer); - const SfxPoolVersion_Impl *pNew = new SfxPoolVersion_Impl( *pOld ); - pImp-aVersions.Insert( pNew, nVer ); + const SfxPoolVersion_Impl* pOld = rPool.pImp-aVersions[nVer]; + SfxPoolVersion_Impl* pNew = new SfxPoolVersion_Impl( *pOld ); + pImp-aVersions.push_back( pNew ); } // Verkettung wiederherstellen @@ -455,8 +448,8 @@ if ( *ppItemArr ) { SfxPoolItem** ppHtArr = - (SfxPoolItem**)(*ppItemArr)-GetData(); - for( USHORT i = (*ppItemArr)-Count(); i; ++ppHtArr, --i ) + (SfxPoolItem**)(*ppItemArr); + for( size_t i = (*ppItemArr)-size(); i; ++ppHtArr, --i ) if ( !(*ppHtArr) ) { DBG_ERROR( old secondary pool must be empty ); @@ -582,8 +575,8 @@ { if ( *ppItemArr ) { - SfxPoolItem** ppHtArr = (SfxPoolItem**)(*ppItemArr)-GetData(); - for ( USHORT n = (*ppItemArr)-Count(); n; --n, ++ppHtArr ) + SfxPoolItem** ppHtArr = (SfxPoolItem**)(*ppItemArr); + for ( size_t n = (*ppItemArr)-size(); n; --n, ++ppHtArr ) if (*ppHtArr) { #ifdef DBG_UTIL @@ -614,8 +607,8 @@ { if ( *ppItemArr ) { - SfxPoolItem** ppHtArr = (SfxPoolItem**)(*ppItemArr)-GetData(); - for ( USHORT n = (*ppItemArr)-Count(); n; --n, ++ppHtArr ) + SfxPoolItem** ppHtArr = (SfxPoolItem**)(*ppItemArr); + for ( size_t n = (*ppItemArr)-size(); n; --n, ++ppHtArr ) if (*ppHtArr) { #ifdef DBG_UTIL @@ -663,8 +656,8 @@ ((*ppDefaultItem (*ppDefaultItem)-ISA(SfxSetItem)) || (*ppStaticDefaultItem)-ISA(SfxSetItem)) ) { - SfxPoolItem** ppHtArr = (SfxPoolItem**)(*ppItemArr)-GetData(); - for ( USHORT n = (*ppItemArr)-Count(); n; --n, ++ppHtArr ) + SfxPoolItem** ppHtArr = (SfxPoolItem**)(*ppItemArr); + for ( size_t n =
Re: [dev] building DEV300-m83 problem
Hi Michael, On Fri, Jul 30, 2010 at 1:02 AM, Michal Spisiak michal.spis...@gmail.com wrote: I have a problem building OOo DEV300-m83 on ubuntu 9.10. I downloaded the bundle, updated, ran configure with: $ ./configure --enable-cups --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gtk --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --enable-crashdump=no --with-use-shell=bash --enable-presenter-extra-ui --without-junit --disable-graphite --disable-kde4 --disable-layout --enable-cairo to disable everything that might cause problems. Specifying random configure flags is /asking for problems/, not avoiding them. Unless you know what the flags do, don't specify them. alone that you have both --disable-build-mozilla and --disable-mozilla shows that you apparently copied random flags from some random webpage without thinking about the effect of those options. Similarily fo those where you specified the option despite being the default (and those that do not (longer) exist) configure with as few options as possible is the way to go. --disable-binfilter, --disable-odk being the exception as they completely disable *independent* parts and thus can accellerate the build without side-effects. Building vcl I got first error: Entering /home/miko/new_OOo/local_DEV300/vcl/unx/source/fontmanager Making: all_fontman.dpslo Compiling: vcl/unx/source/fontmanager/fontmanager.cxx Compiling: vcl/unx/source/fontmanager/fontcache.cxx Compiling: vcl/unx/source/fontmanager/fontconfig.cxx /home/miko/new_OOo/local_DEV300/vcl/unx/source/fontmanager/fontconfig.cxx:1236: error: prototype for 'rtl::OUString psp::PrintFontManager::Substitute(const rtl::OUString, rtl::OUString, const rtl::OString, psp::italic::type, psp::weight::type, psp::width::type, psp::pitch::type) const' does not match any in class 'psp::PrintFontManager' ../../../inc/vcl/fontmanager.hxx:735: error: candidate is: rtl::OUString psp::PrintFontManager::Substitute(const rtl::OUString, rtl::OUString, const rtl::OString, psp::italic::type, psp::weight::type, psp::width::type, psp::pitch::type) const dmake: Error code 1, while making '../../../unxlngi6.pro/slo/fontconfig.obj' here I just added references to the implementation of the method as they were in the header So you patched your code, apparently in an area that is sensitive to fontconfig (enabled/disabled), - so why not just try with fontconfig enabled? ciao Christian - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] building DEV300-m83 problem
Le 30 juil. 10 à 13:49, Christian Lohmaier a écrit : Hi Michael, Hi, I'm not Michal, but I worked with him when we were stuck with this issue, and I'll try to add some info. On Fri, Jul 30, 2010 at 1:02 AM, Michal Spisiak michal.spis...@gmail.com wrote: I have a problem building OOo DEV300-m83 on ubuntu 9.10. I downloaded the bundle, updated, ran configure with: $ ./configure --enable-cups --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gtk --disable-gnome-vfs --with- system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter -- disable-odk --disable-vba --disable-mozilla --enable-crashdump=no --with-use- shell=bash --enable-presenter-extra-ui --without-junit --disable-graphite --disable-kde4 --disable-layout --enable-cairo to disable everything that might cause problems. Specifying random configure flags is /asking for problems/, Those flags are not random : everything disabled helps to build faster. In our situation, only OOo is not buildable, while Go-OO, OOo4Kids are, without one glitch, and we are searching why. not avoiding them. Unless you know what the flags do, don't specify them. This is the case, I built OOo on my machine using similar flags, and the build was successfull (but was on Mac OS X10.4, not Linux, Ubuntu -if I remember corretly -). So, I provided Michal the same flags, and the point was to build OOo, a minimalistic way. Of course, the mozilla flags are not correct, and that's a good catch. Both --disable-mozilla and --disabl-build- mozilla as just an error, but frankly, I really doubt those flags could cause the issue who occurs in vcl (since the time I build OOo, I don't remember such issue). configure with as few options as possible is the way to go. --disable-binfilter, --disable-odk being the exception as they completely disable *independent* parts and thus can accellerate the build without side-effects. Our need is to verify / trace and debug in starmath and sw. IMHO, could be Michal striked a strange issue. In this case, I'd better vote for something wrong with system fontconfig , cairo or something around that. here I just added references to the implementation of the method as they were in the header So you patched your code, apparently in an area that is sensitive to fontconfig (enabled/disabled), IMHO no : the patch is about starmath, sfx2, and sw (mostly), nothing directly concerning vcl. - so why not just try with fontconfig enabled? Whatever flag helping to build OOo is welcome :-) Eric Bachard -- qɔᴉɹə Education Project: http://wiki.services.openoffice.org/wiki/Education_Project Projet OOo4Kids : http://wiki.ooo4kids.org/index.php/Main_Page L'association EducOOo : http://www.educoo.org Blog : http://eric.bachard.free.fr/news
[dev] Problem with missing assembly on windows
Hi. I am building DEV300_m84 on Windows with this configure: ./configure --with-lang=is --with-vendor=OpenOffice.is --with-build-version=Build by OpenOffice.is --disable-activex --disable-directx --disable-atl --disable-build-mozilla --disable-nss-module --without-junit --with-cl-home=/cygdrive/C/Program Files/Microsoft Visual Studio 9.0/VC --with-ant-home=/cygdrive/c/winapps/java/ant --with-frame-home=/cygdrive/C/Program Files/Microsoft SDKs/Windows/v6.1 --with-psdk-home=/cygdrive/C/Program Files/MicrosoftSDKs/Windows/v6.1 --with-midl-path=/cygdrive/C/Program Files/Microsoft SDKs/Windows/v6.1/Bin --with-asm-home=/cygdrive/C/Program Files/Microsoft Visual Studio 9.0/VC/Bin --with-jdk-home=/cygdrive/C/Winapps/java/jdk16 --with-csc-path=/cygdrive/C/WINDOWS/Microsoft.NET/Framework/v3.5 There are no problems configuring and building the install. The problem is after installing the resulting install on Windows XP. Starting for example Writer reports the following: C:\Program Files\OpenOffice.org 3\program\swriter.exe This application has failed to start because the application configuration is incorrect. Re-installing the application may fix this problem. In the event log this error is seen: Generate Activation Context failed for C:\Program Files\OpenOffice.org 3\Basis\program\shlxthdl\shlxthdl.dll. Reference error message: The operation completed successfully. Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error message: The referenced assembly is not installed on your system. Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The referenced assembly is not installed on your system. It seems to me the the problem is that the generated install doesn't contain the redistributable vcredist_x86.exe file. This seems to have been changed in some release of the source code. The normal install from OpenOffice.org does however contain the vcredist_x86.exe file. So what parameters control the inclusion of the vcredist_x86.exe file?
[dev] Re: svarray replace by STL - patch
On 30/07/2010 13:22, Bartosz wrote: Hi. I have created patch, which replace SV_DECL_PTRARR with std::vector. It is first step to resolve old bug: http://www.openoffice.org/issues/show_bug.cgi?id=84159 Unfortunately this patch is not works correctly. After compile/run OpenOffice the application freeze. I do something wrog, but I cannot find bug which couse this freeze. hi Bartosz, if all else fails, you'll need to recompile the svl module with debug. (build debug=t) then copy the library into an OOo installation. then attach a debugger to OOo, and the stack trace should show you where it's looping. Here is patch prepared by me: [snip] @@ -582,8 +575,8 @@ { if ( *ppItemArr ) { - SfxPoolItem** ppHtArr = (SfxPoolItem**)(*ppItemArr)-GetData(); - for ( USHORT n = (*ppItemArr)-Count(); n; --n, ++ppHtArr ) + SfxPoolItem** ppHtArr = (SfxPoolItem**)(*ppItemArr); + for ( size_t n = (*ppItemArr)-size(); n; --n, ++ppHtArr ) this looks suspicious: why can you replace -GetData() with nothing? why does this even compile? (the same change is also in other places...) -- In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- Douglas Adams - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Request for advice on programming for OpenOffice
sure - Original Message - From: Andrew Douglas Pitonyakmailto:and...@pitonyak.org To: dev@openoffice.orgmailto:dev@openoffice.org Sent: Thursday, July 29, 2010 6:33 PM Subject: Re: [dev] Request for advice on programming for OpenOffice You can work with the documentation project to review and help with documentation Work with the QA group to help verify bugs and similar - To unsubscribe, e-mail: dev-unsubscr...@openoffice.orgmailto:dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.orgmailto:dev-h...@openoffice.org