Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

64-bit Onig library?

On Thu, 31 Dec 2009 17:13:44 -0600, rconn <> wrote:

|---Quote---
|> Is there a 64-bit Oniguruma library?
|---End Quote---
|Yes; it's distributed with the x64 version of Take Command.
|
|Rex Conn
|JP Software

I mean a LIB for building. It's not in the 64-bit SDK.
--
- Vince
 
On Thu, 31 Dec 2009 20:04:08 -0600, rconn <> wrote:

|I can't redistribute the Oniguruma library. But you can download & build
|your own.

Any tips? I usually find building third party stuff a challenge. What version
are you using?
--
- Vince
 
On Thu, 31 Dec 2009 21:02:23 -0600, rconn <> wrote:

|Onig 5.9.1. (But I'm definitely *not* going be able to provide support for
|the Oniguruma code base.)

I don't even want to look at their code. Building the 32-bit version was
trivial (copy win32\Makefile Makefile, copy win32\config.h config.h, nmake).

I haven't got a clue how to build a 64-bit version. Can you help with that?
--
- Vince
 
> |Onig 5.9.1. (But I'm definitely *not* going be able to provide
> support for
> |the Oniguruma code base.)
>
> I don't even want to look at their code. Building the 32-bit version
> was
> trivial (copy win32\Makefile Makefile, copy win32\config.h config.h,
> nmake).
>
> I haven't got a clue how to build a 64-bit version. Can you help with
> that?

Sorry, no. It's a bit less trivial; it took me about a day to modify
everything appropriately (it doesn't come with x64 support). I didn't save
any notes on what I did, and I don't have the time right now to try to
recreate everything.

Rex Conn
JP Software
 
On Thu, 31 Dec 2009 21:02:23 -0600, rconn <> wrote:

|Onig 5.9.1. (But I'm definitely *not* going be able to provide support for
|the Oniguruma code base.)

I don't even want to look at their code. Building the 32-bit version was
trivial (copy win32\Makefile Makefile, copy win32\config.h config.h, nmake).

I haven't got a clue how to build a 64-bit version. Can you help with that?

OK, I did it (apparently). For the benefit of anyone else who might want to do it on a 32-bit machine, it didn't take much. Rex, please tell me if this sounds right.

1. copy win32\Makefile Makefile
2. copy win32\config.h config.h
3. Makefile: add /MACHINE:X64 to LINKFLAGS
4. run [path]\vcvarsall.bat x86_amd64
5. nmake

Number 4 above was the stinker. That vcvars stuff is not very well documented (at least I couldn't find it).
 
On Thu, 31 Dec 2009 22:09:51 -0600, rconn <> wrote:

|---Quote---
|> |Onig 5.9.1. (But I'm definitely *not* going be able to provide
|> support for
|> |the Oniguruma code base.)
|>
|> I don't even want to look at their code. Building the 32-bit version
|> was
|> trivial (copy win32\Makefile Makefile, copy win32\config.h config.h,
|> nmake).
|>
|> I haven't got a clue how to build a 64-bit version. Can you help with
|> that?
|---End Quote---
|Sorry, no. It's a bit less trivial; it took me about a day to modify
|everything appropriately (it doesn't come with x64 support). I didn't save
|any notes on what I did, and I don't have the time right now to try to
|recreate everything.

Hmmm! What I did wasn't too hard (see recent post and please comment). I got a
64-bit onig.lib, and my 4UTILS built OK and DUMPBIN shows its dependancy on
onig.dll. I have no way of testing whether it'll actually work. I finally
found docs on VCVARSALL.BAT and the "x86_amd64" option is correct (according to
MS) for host X86 and target x64.
--
- Vince
 
> Hmmm! What I did wasn't too hard (see recent post and please comment).
> I got a 64-bit onig.lib, and my 4UTILS built OK and DUMPBIN shows its
> dependancy on onig.dll. I have no way of testing whether it'll
> actually work. I finally found docs on VCVARSALL.BAT and the
> "x86_amd64" option is correct (according to MS) for host X86 and
> target x64.

If you're only trying to create a lib that will allow you to link against
the onig.dll in v11, that will probably work. If you're trying to create a
static lib or your own dll, it won't -- I had to make some code changes to
fix some 64-bit problems. (Mostly pointer arithmetic.)

Rex Conn
JP Software
 
On Fri, 01 Jan 2010 12:24:35 -0600, rconn <> wrote:

|If you're only trying to create a lib that will allow you to link against
|the onig.dll in v11, that will probably work. If you're trying to create a
|static lib or your own dll, it won't -- I had to make some code changes to
|fix some 64-bit problems. (Mostly pointer arithmetic.)

That's all I want ... so I can build my plugins. One user downloaded my 4UTILS
for x64 and reported that it works ... loads, at least. I doubt he tested any
of the ONIG stuff but I suppose it'll be OK if it's using your DLL.
--
- Vince
 
Back
Top