wine and win32ole

A

Ara.T.Howard

any one out there thought of using wine to compile win32ole on *nix? anyone
done it?

i found one post on clr about it... but it was pretty old.

cheers.

-a
--
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| Your life dwells amoung the causes of death
| Like a lamp standing in a strong breeze. --Nagarjuna
===============================================================================
 
D

Daniel Amelang

I've never used wine for cross-compilation. I've always been happy
with mingw for that purpose.

Dan
 
A

Ara.T.Howard

I've never used wine for cross-compilation. I've always been happy
with mingw for that purpose.

correct me if i'm wrong - but isn't this the solution for the opposite problem
i'm trying to solve? i'm trying to use win32ole on *nix...

cheers.

-a
--
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| Your life dwells amoung the causes of death
| Like a lamp standing in a strong breeze. --Nagarjuna
===============================================================================
 
D

Daniel Amelang

You said you were interested in 'using wine to compile win32ole on
*nix' (first post), which is entirely different that 'trying to use
win32ole on *nix' (second post).

Anyways, assuming you want to make win32ole calls in a ruby script
running on *nix inside a wine install (whew!)...I have had success
with the following setup (that should be relavent to your question):

1) I installed wine (via codeweavers installer)
2) I installed ruby windows one-click installer into the wine environment
3) I installed windows office
4) I was able to make win32ole calls in ruby (the wine one)

I haven't tried controlling excel via win32ole calls in this
environment, but I have done very similiar things that lead me to
believe that you can.

Hope that helps!

Dan
 
A

Ara.T.Howard

You said you were interested in 'using wine to compile win32ole on
*nix' (first post), which is entirely different that 'trying to use
win32ole on *nix' (second post).

Anyways, assuming you want to make win32ole calls in a ruby script
running on *nix inside a wine install (whew!)...I have had success
with the following setup (that should be relavent to your question):

1) I installed wine (via codeweavers installer)

i compiled from the latest wine source - and reason to prefer your appoach?
2) I installed ruby windows one-click installer into the wine environment
3) I installed windows office
4) I was able to make win32ole calls in ruby (the wine one)

I haven't tried controlling excel via win32ole calls in this
environment, but I have done very similiar things that lead me to
believe that you can.

Hope that helps!

tremendously. i did not consider installing the one click under wine -
tricky! standard ruby core dumps just loading win32ole if you call the nix
ruby and try to load a win32ole compiled against winelib. your approach makes
a good bit more sense! basically i'm trying to setup an environment to do
windows filetype conversions on a bsd server. this sounds like a good
approach. i'll ping the list if i successfully convert an excel doc this way.

many thanks!

-a
--
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| Your life dwells amoung the causes of death
| Like a lamp standing in a strong breeze. --Nagarjuna
===============================================================================
 
D

Daniel Amelang

1) I installed wine (via codeweavers installer)
=20
i compiled from the latest wine source - and reason to prefer your appoac=
h?

I'm lazy :p
Codeweavers makes managing your wine install a no-brainer, and
installing new apps is just too easy. I already get the latest
crossover installers for free since I help support one of their apps.
And their install includes all sorts of stuff you might otherwise need
to track down and install yourself (in addition to the wine core),
especially when it comes to running MS Office apps.

I'm no wine guru, but I'm pretty sure that you can get the one-click
installer working just fine without crossover, but MS Excel might be
harder without the codeweavers tricks. It's only a one time $30 if you
prefer the easy route, though. It's saved me a lot of time over the
past couple years. (end of codeweavers plug :)
basically i'm trying to setup an environment to do
windows filetype conversions on a bsd server. this sounds like a good
approach. i'll ping the list if i successfully convert an excel doc this=
way.

Yah, I've been reading your other posts. I really think this approach
is going to be the easiest, considering the alternatives I've heard
you propose.
many thanks!

No problem! Thank you for all that _you've_ contributed to the ruby communi=
ty.

Dan
 
A

Ara.T.Howard


amen brother!
Codeweavers makes managing your wine install a no-brainer, and installing
new apps is just too easy. I already get the latest crossover installers for
free since I help support one of their apps. And their install includes all
sorts of stuff you might otherwise need to track down and install yourself
(in addition to the wine core), especially when it comes to running MS
Office apps.

I'm no wine guru, but I'm pretty sure that you can get the one-click
installer working just fine without crossover, but MS Excel might be harder
without the codeweavers tricks. It's only a one time $30 if you prefer the
easy route, though. It's saved me a lot of time over the past couple years.
(end of codeweavers plug :)

hmmm. that does sounds like it could be tough... the 30 pesos might be well
spent...
Yah, I've been reading your other posts. I really think this approach is
going to be the easiest, considering the alternatives I've heard you
propose.

well - the files are quite simple so a pure ruby reader has an appeal - but
this approach would give so much more for very little effort (ideally).
No problem! Thank you for all that _you've_ contributed to the ruby
community.

thanks for the thanks! it's only fair - this list has saved me a lot of time
over the years.

regards.

-a
--
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| Your life dwells amoung the causes of death
| Like a lamp standing in a strong breeze. --Nagarjuna
===============================================================================
 
A

Ara.T.Howard

I'm lazy :p

Codeweavers makes managing your wine install a no-brainer, and installing
new apps is just too easy. I already get the latest crossover installers for
free since I help support one of their apps. And their install includes all
sorts of stuff you might otherwise need to track down and install yourself
(in addition to the wine core), especially when it comes to running MS
Office apps.

i ended up going this route for testing. in installed cxoffice, the ruby one
click installer, and then ms-office and the xls2csv code (posted in that
thread) is working. pretty neat.

have you been making heavy use of such a system in any sort of production
environment? it's a nice approach to be able to do windows doccument
conversion on a *nix box - but i wonder about robustness. any issue of
concern is security, but i guess you at least have the standard unix
mechanisms to protect you there - like not being able to write into system
space, for example. any thoughts on that?

thanks for the pointers.

-a
--
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| Your life dwells amoung the causes of death
| Like a lamp standing in a strong breeze. --Nagarjuna
===============================================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top