PyV8 build error: /usr/bin/ld: skipping incompatible /root/Downloads/GoogleV8/v8/libv8.a when searching for -lv8

182 views
Skip to first unread message

crow

unread,
Jan 1, 2011, 9:54:53 AM1/1/11
to PyV8
Hi, I'm trying to build PyV8 in my Linux box.
I checked out latest Google V8 code from svn repository by:
svn co http://v8.googlecode.com/svn/trunk /root/Downloads/GoogleV8/v8

Checked out latest PyV8 code from svn repository:
svn co http://pyv8.googlecode.com/svn/trunk/ pyv8-read-only

But I find following error:
#python setup.py install
.....
/usr/bin/ld: skipping incompatible /root/Downloads/GoogleV8/v8/libv8.a
when searching for -lv8
/usr/bin/ld: cannot find -lv8
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1

Any idea what's wrong?

My linux box is CentOS 5.1

Best Regards.

Flier Lu

unread,
Jan 1, 2011, 10:55:28 AM1/1/11
to PyV8
It seems you build v8 with default setting, could you check the
following document?

http://code.google.com/p/pyv8/wiki/HowToBuild#Google_V8

I think I should add some automatic build script later :)

crow

unread,
Jan 1, 2011, 11:44:28 AM1/1/11
to PyV8
Sorry, I think I built wrong v8 version & with wrong option. I use v8
2.1.2.3 & pyv8-0.9, building v8 with PIC, I can build pyv8 now.

Thanks & happy new year :)
Reply all
Reply to author
Forward
0 new messages