hanya / runo Goto Github PK
View Code? Open in Web Editor NEWRuby-UNO (Ruby-OpenOffice) native bridge.
Home Page: http://wiki.github.com/hanya/RUNO/
Ruby-UNO (Ruby-OpenOffice) native bridge.
Home Page: http://wiki.github.com/hanya/RUNO/
I've been trying to get RUNO to compile on Ubuntu 10.04.3 unsucessfully. I have OO.org 3.4 and its SDK installed and configured, I've run the environment variables script, and I've even fixed some errors in the C++ source (that seem to have been introduced by changes in ec8a240a62). I've got it to the point where each .cxx file will compile now (see my fork for my changes), but it's dying when it gets to creating the .so file:
root@rubydev3:~/RUNO# rake
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -fPIC -O1 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/type.o -c ./src/type.cxx
./src/type.cxx: In function ‘void runo::raise_rb_exception(const com::sun::star::uno::Any&)’:
./src/type.cxx:340: warning: format not a string literal and no format arguments
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -fPIC -O1 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/module.o -c ./src/module.cxx
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -fPIC -O1 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/loader.o -c ./src/loader.cxx
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -fPIC -O1 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/adapter.o -c ./src/adapter.cxx
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -fPIC -O1 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/runtime.o -c ./src/runtime.cxx
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -fPIC -O1 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/string.o -c ./src/string.cxx
building ./lib/uno/runo.so
g++ -shared ./lib/uno/runo.so ./src/type.o ./src/module.o ./src/loader.o ./src/adapter.o ./src/runtime.o ./src/string.o -L/opt/openoffice.org/basis3.4/sdk/lib -L/opt/openoffice.org/basis3.4/ure-link/lib -luno_cppuhelpergcc3 -luno_cppu -luno_salhelpergcc3 -luno_sal -lm -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static -lpthread -lrt -ldl -lcrypt -lm -lc
g++: ./lib/uno/runo.so: No such file or directory
rake aborted!
Command failed with status (1): [g++ -shared ./lib/uno/runo.so ./src/type.o...]
If I try changing the command to add -o
before ./lib/uno/runo.so
(which I believe is missing), I get this instead:
root@rubydev3:~/RUNO# g++ -shared -o ./lib/uno/runo.so ./src/type.o ./src/module.o ./src/loader.o ./src/adapter.o ./src/runtime.o ./src/string.o -L/opt/openoffice.org/basis3.4/sdk/lib -L/opt/openoffice.org/basis3.4/ure-link/lib -luno_cppuhelpergcc3 -luno_cppu -luno_salhelpergcc3 -luno_sal -lm -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static -lpthread -lrt -ldl -lcrypt -lm -lc
/usr/bin/ld: /usr/local/lib/libruby-static.a(encoding.o): relocation R_X86_64_32S against `OnigEncAsciiToUpperCaseTable' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libruby-static.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
The files are compiled using the -fPIC
flag, however, so I'm not sure what to do. Any ideas what I might be doing wrong or missing? I'm running gcc 4.4.3 and ruby 1.9.3p0. Any help would be appreciated!
I lost comprehensive document for Uno module, only its index file has remained.
It should be rewritten.
Using Ruby 1.9.3, Openoffice3.4 on Ubuntu complation of type.cxx fails with following error messages:
type.cxx: In function ‘void rubyuno::raise_rb_exception(const com::sun::star::uno::Any&)’: type.cxx:340:83: error: format not a string literal and no format arguments [-Werror=format-security] rb_raise(klass, OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US).getStr()); ^ cc1plus: some warnings being treated as errors make: *** [type.o] Error 1
Not sure whether or not this error should be skipped by manually changing the Makefile and ignoring that warning.
Uno.require_uno "mytools.XValueTest"
results Uno::XValueTest. It should be defined as Uno::Mytools::XValueTest.
Sample files should be updated to match with current Uno module.
Can I use this library with libreoffice.org?
Does anyone have any idea how to get this compiled under MacOSX ML (10.8.1)?
Where we can find the extconf.rb in order to generate Makefile for RUNO bridge.
Convert exception raised by UNO methods should be wrapped.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.