Can't import google v8 library [message #1784385] |
Tue, 27 March 2018 08:48  |
Eclipse User |
|
|
|
Hello,
I'm trying to use the google v8 library.
So far, I compiled it as a static library and I m able to compile the hello-world example.
I'm able to compile the hello-world example from another directory with the command in the terminal :
Quote: g++ -I/home/florian/workspace/lib/v8/v8/include /home/florian/workspace/test_v8/test_v8.cc -o test_v8compiled2 -Wl,--start-group /home/florian/workspace/lib/v8/v8/out.gn/x64.release/obj/{libv8_{base,libbase,external_snapshot,libplatform,libsampler},third_party/icu/libicu{uc,i18n},src/inspector/libinspector}.a -Wl,--end-group -lrt -ldl -pthread -std=c++0x
However, I can't get to compile the Hello-world example using eclipse IDE
All Options from cross g++ compiler :
Quote:-std=c++0x -I/home/florian/workspace/lib/v8/v8/include -O0 -g3 -Wall -c -fmessage-length=0 -v
All Options from cross g++ linker :
Quote:-L/home/florian/workspace/lib/v8/v8/out.gn/x64.release/obj -L/home/florian/workspace/lib/v8/v8/out.gn/x64.release/obj/third_party/icu -L/home/florian/workspace/lib/v8/v8/out.gn/x64.release/obj/src/inspector
I also put the libraries in the Libraries option (-l)
v8_base
v8_libbase
.. So on
I get a lot of "undefined reference " error while compiling. What am I missing ??
Why doesn't the -l appear in the All Options from cross g++ linker ?
Thanks
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03241 seconds