Changes between Initial Version and Version 1 of xpcom_uno_tests


Ignore:
Timestamp:
Oct 31, 2008, 12:07:31 AM (15 years ago)
Author:
djay
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • xpcom_uno_tests

    v1 v1  
     1== Default files found in OpenOffice.org.app ==
     2
     3Files and libraries allready included in Binary distribution of OpenOffice :
     4
     5{{{
     6/Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK//idl/com/sun/star/mozilla/xpcom/
     7/Applications/OpenOffice.org.app/Contents//basis-link/program/components/libxpcom_compat_c.dylib
     8/Applications/OpenOffice.org.app/Contents//basis-link/program/components/xpcom_base.xpt
     9/Applications/OpenOffice.org.app/Contents//basis-link/program/components/xpcom_components.xpt
     10/Applications/OpenOffice.org.app/Contents//basis-link/program/components/xpcom_ds.xpt
     11/Applications/OpenOffice.org.app/Contents//basis-link/program/components/xpcom_io.xpt
     12/Applications/OpenOffice.org.app/Contents//basis-link/program/components/xpcom_obsolete.xpt
     13/Applications/OpenOffice.org.app/Contents//basis-link/program/components/xpcom_threads.xpt
     14/Applications/OpenOffice.org.app/Contents//basis-link/program/components/xpcom_xpti.xpt
     15/Applications/OpenOffice.org.app/Contents//basis-link/program/libxpcom.dylib
     16/Applications/OpenOffice.org.app/Contents//basis-link/program/libxpcom_compat.dylib
     17}}}
     18
     19== XPCOM_UNO COMPILATION ==
     20
     21=== Compilation tests ===
     22
     23To compile the xpcom_uno component I started using the following tools : OpenOffice SDK 3.0 and distribution of xulrunner-sdk (xulrunner-1.9.0.3.en-US.mac-pkg.dmg) for MacOSX.
     24
     25First test :
     26
     27{{{
     28 for i in *cxx ; do
     29  echo $i start ;
     30  gcc -malign-natural -c -O -fPIC -fno-common \
     31   -I /Users/djay/Gentoo/usr/include/\
     32   -I/Volumes/Geolabs\ Rugged/BackUp/Desktop/xulrunner-sdk/include/string/\
     33   -I../unotypes/\
     34   -I/Volumes/Geolabs\ Rugged/BackUp/Desktop/xulrunner-sdk/sdk/include\
     35   -I/Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK/include/\
     36   -I/Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK//include/rtl/\
     37   -I/Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK//include/cppuhelper/\
     38   -I/Volumes/Geolabs\ Rugged/BackUp/Desktop/xulrunner-sdk/include/xpcom/\
     39   -I../inc\
     40   -I. -I/Users/djay/OpenOffice.org3.0_SDK/MACOSXexample.out/inc\
     41   -I/Users/djay/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples\
     42   -I../../../include\
     43   -I/Users/djay/geolabs/Projets/IGO/HTC_fw/test/binaries/include/\
     44   -I/Users/djay/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/toto\
     45   -DUNX -DGCC -DMACOSX -DCPPU_ENV=gcc3 \
     46   -DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0\
     47   -o/Users/djay/OpenOffice.org3.0_SDK/MACOSXexample.out/obj/\
     48   $i;
     49  echo $i end;
     50 done >& log
     51}}}
     52
     531) Produce URD files :
     54
     55{{{
     56for i in /Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK/idl/com/sun/star/mozilla/xpcom/*idl; do
     57  idlc -w -I$OO_SDK_HOME/idl/ -I$OO_SDK_OUT $i;
     58done
     59}}}
     60
     612) Produce RDB files and view informations on produced files :
     62
     63{{{
     64for i in /Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK/idl/com/sun/star/mozilla/xpcom/*urd; do
     65  regmerge -v $(echo $i|sed "s:urd:rdb:g") /UCR $i
     66  regview $(echo $i|sed "s:urd:rdb:g")
     67done
     68}}}
     69
     70
     713) Produce header files :
     72
     73{{{
     74cppumaker -Gc -BUCR -O$OO_SDK_OUT/inc -Tcom.sun.star.mozilla.xpcom.XUnoRuntimeEnvironment \
     75 /Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK/idl/com/sun/star/mozilla/xpcom/XUnoRuntimeEnvironment.rdb\
     76 /Applications/OpenOffice.org.app/Contents//basis-link/ure-link/share/misc/types.rdb\
     77 /Applications/OpenOffice.org.app/Contents//basis-link/ure-link/share/misc/services.rdb\
     78 /Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK/idl/com/sun/star/mozilla/xpcom/XUnoType.rdb\
     79 /Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK/idl/com/sun/star/mozilla/xpcom/XUnoEnum.rdb \
     80 /Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK/idl/com/sun/star/mozilla/xpcom/XUnoStruct.rdb
     81}}}
     82
     834) Compilation of cxx files in the sources/xpcom_uno directory :
     84
     85{{{
     86for i in *cxx ; do
     87 echo $i start ;
     88 gcc -DMOZILLA_INTERNAL_API=" ZOO-1.0 " -DMOZILLA_CLIENT -DXP_UNIX  -DTRACING -malign-natural -c -O -fPIC -fno-common \
     89  -I/Users/djay/OpenOffice.org3.0_SDK/inc/ \
     90  -I /Users/djay/Gentoo/usr/include/ \
     91  -I/Volumes/Geolabs\ Rugged/BackUp/Desktop/xulrunner-sdk/include/string/ \
     92  -I../unotypes/ \
     93  -I/Volumes/Geolabs\ Rugged/BackUp/Desktop/xulrunner-sdk/sdk/include \
     94  -I/Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK/include/ \
     95  -I/Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK//include/rtl/ \
     96  -I/Users/djay/geolabs/Devel/OpenOffice.org3.0_SDK//include/cppuhelper/ \
     97  -I/Volumes/Geolabs\ Rugged/BackUp/Desktop/xulrunner-sdk/include/xpcom/ \
     98  -I../inc \
     99  -I. \
     100  -I/Users/djay/OpenOffice.org3.0_SDK/MACOSXexample.out/inc \
     101  -I/Users/djay/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples \
     102  -I../../../include \
     103  -I/Users/djay/geolabs/Projets/IGO/HTC_fw/test/binaries/include/ \
     104  -I/Users/djay/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/toto \
     105  -DUNX -DGCC -DMACOSX -DCPPU_ENV=gcc3 \
     106  -DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 \
     107  -o/Users/djay/OpenOffice.org3.0_SDK/MACOSXexample.out/obj/$(echo $i|sed "s:cxx:o:g") $i;
     108 echo $i end;
     109done >& log
     110}}}
     111
     112Compile results :
     113 * leakcheck.o
     114 * xpcomvariant.o
     115
     116The others don't work.
     117
     118The recurent error is :
     119
     120{{{
     121../inc/xpcomreference.hxx: In member function ‘IfaceT* xpcom_uno::XpcomReference<IfaceT>::query(OtherIfaceT*)’:
     122../inc/xpcomreference.hxx:180: error: ‘::IfaceT’ has not been declared
     123../inc/xpcomreference.hxx:180: error: ‘COMTypeInfo’ was not declared in this scope
     124../inc/xpcomreference.hxx:180: error: expected primary-expression before ‘int’
     125../inc/xpcomreference.hxx:180: error: expected `)' before ‘int’
     126../inc/xpcomreference.hxx: In member function ‘IfaceT* xpcom_uno::XpcomReference<IfaceT>::query_throw(OtherIfaceT*)’:
     127../inc/xpcomreference.hxx:191: error: ‘::IfaceT’ has not been declared
     128../inc/xpcomreference.hxx:191: error: ‘COMTypeInfo’ was not declared in this scope
     129../inc/xpcomreference.hxx:191: error: expected primary-expression before ‘int’
     130../inc/xpcomreference.hxx:191: error: expected `)' before ‘int’
     131}}}
     132
     133

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png