Re: [v8-users] standalone static library

2018-03-22 Thread Zac Hansen
I was suggesting what I believe to be the opposite from what you did. The compiled v8 needs libc++ but you're building with libstdc++. Try building your code with -stdlib=libc++ and see what happens. This is just a guess, though.. if someone else has better info, do what they say :) On T

Re: [v8-users] standalone static library

2018-03-22 Thread Eduardo Bolis
I put libstdc++ in my library list, even try to link it statically but nothing changes. Is there any way else to do it? On Thursday, March 22, 2018 at 7:42:23 PM UTC-3, Zac Hansen wrote: > > I believe the std:: issues are from you linking v8 compiled with libc++ > against libstdc++. > > On Th

Re: [v8-users] standalone static library

2018-03-22 Thread Eduardo Bolis
I took a look at the v8_shell Ninja script and it is compiled against dozen of object files, not libraries. I will try to take all this files and make a library using the "ar" and ranlib linux commands. Hope it works. Any result I get, I post here, for sure, but I've wasted too much time (almost

Re: [v8-users] standalone static library

2018-03-22 Thread Zac Hansen
I believe the std:: issues are from you linking v8 compiled with libc++ against libstdc++. On Thursday, March 22, 2018 at 3:37:50 PM UTC-7, Eduardo Bolis wrote: > > These are the first error lines (there are hundreds of them): > > g++ -o dist/Debug/GNU-Linux/teste-v8 build/Debug/GNU-Linux/

Re: [v8-users] standalone static library

2018-03-22 Thread Eduardo Bolis
These are the first error lines (there are hundreds of them): g++ -o dist/Debug/GNU-Linux/teste-v8 build/Debug/GNU-Linux/main.o -L/home/eduardo/workspace/v8-master/v8/out.gn/x64.release/obj -L/home/eduardo/workspace/v8-master/v8/out.gn/x64.release/obj/third_party/icu -lv8_base -lv8_libbase

Re: [v8-users] standalone static library

2018-03-21 Thread Jakob Kummerow
I would hope that NetBeans provides a way to configure it such that V8 is compiled with V8's own build process, and your embedding project's code with whatever system you choose to use (which might be whatever NetBeans uses by default); but I don't know how to set that up, sorry. V8's build process

Re: [v8-users] standalone static library

2018-03-21 Thread Zac Hansen
Please post the exact error messages you received when you followed the posted docs. On Wednesday, March 21, 2018 at 5:56:27 AM UTC-7, Eduardo Bolis wrote: > > Yes, I did. The examples created in the build process (Hello World, Shell, > etc) works fine. > But when I try to compile them from Net

Re: [v8-users] standalone static library

2018-03-21 Thread Eduardo Bolis
Yes, I did. The examples created in the build process (Hello World, Shell, etc) works fine. But when I try to compile them from Netbeans, there are lot of libraries internal reference errors (if you wish, I will put an example here). and the compile line code from the turorial references a file

Re: [v8-users] standalone static library

2018-03-20 Thread Jakob Kummerow
Have you read the official documentation? https://github.com/v8/v8/wiki/Getting-Started-with-Embedding Do those steps work for you? If not, what error(s) do they produce? On Tue, Mar 20, 2018 at 11:09 AM Eduardo Bolis wrote: > Hi, > > I successfully build V8 on Ubuntu 17 with GN, but what it