Binary version of gem for Windows with cross compilation #37

Closed
stereobooster opened this Issue Jun 20, 2012 · 7 comments

3 participants

@stereobooster

I successfully cross compile v8 scons os=win32 toolchain=crossmingw library=static log

@cowboyd
Owner

Both of those logs appear to indicate failure. Did it actually generate libv8.a?

@stereobooster

I successfully cross compile v8 both shared and static from my fork. Updated log

@stereobooster

Tried to cross compile therubyracer, but currently getting this error

@cowboyd
Owner

Try removing the -L and just linking the archive straight into the shared object with all the other objects.

In other words, like this:

i586-mingw32msvc-g++ -shared -s -o init.so exception.o locker.o handles.o message.o backref.o template.o value.o primitive.o constraints.o heap.o function.o object.o string.o init.o array.o v8.o stack.o constants.o trycatch.o script.o invocation.o gc.o accessor.o external.o rr.o date.o context.o signature.o /home/test/projects/v8/libv8.a -L. -L/home/test/.rake-compiler/ruby/ruby-1.9.2-p320/lib -L. -Wl,--enable-auto-image-base,--enable-auto-import init-i386-mingw32.def -lmsvcrt-ruby191 -lwinmm -lshell32 -lws2_32

@stereobooster

I did it another way.

find_library('v8', nil, v8_path)
find_header('v8.h', "#{v8_path}/include")

Full code here

It compiles, but didn't try run specs.

@ignisf
Collaborator

See #111

@ignisf ignisf closed this Dec 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment