-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot compile to Mac #10
Comments
What compiler errors are you seeing? Are they with V8, or the interop bindings? |
Hi Paul, let list it step-by-step. ## 1. My working path
fujihara@Fujiharas-iMac:~/Development/src$ pwd
/Users/fujihara/Development/src
## 2. Get a supported version of V8
git clone https://github.com/v8/v8.git v8-3.17
cd v8-3.17
git checkout tags/3.17.16.2
## 3. Build V8
make dependencies At this point I get a svn error because http://gyp.googlecode.com/svn/trunk repository was taken offline. As work around I got the source from an alternative repository as listed on here. # Clone GYP from alternative repository
git clone https://chromium.googlesource.com/external/gyp.git build/gyp
cd build/gyp
git checkout f7bc250ccc4d619a1cf238db87e5979f89ff36d7
cd ../.. Now I should have the equivalent of revision 1501 of original gyp svn repository. # Continue to build V8
make native werror=no library=shared soname_version=3.17.16.2 -j4 It output the follow error:
To ignore the error unused variable error I edited build/standalone.gypi and set WARNING_CFLAGS
It generate several warnings and a link error:
Removing --no-as-needed from command line do not solve the problem. g++ jscontext.cpp jsengine.cpp managedref.cpp bridge.cpp jsscript.cpp -o libVroomJsNative.so -shared -L /Users/$USER/Development/src/v8-3.17/out/native/ -I /Users/$USER/Development/src/v8-3.17/include/ -fPIC -Wl -l:/usr/local/lib/libv8.so.3.17.16.2
...
8 warnings generated.
ld: library not found for -l:/usr/local/lib/libv8.so.3.17.16.2
clang: error: linker command failed with exit code 1 (use -v to see invocation) Despite the library not found error, the file can be found on the correct location. fujihara@Fujiharas-iMac:~/Development/src/vroomjs-core/native/libVroomJs$ ll /usr/local/lib/libv8.so.3.17.16.2
-rwxr-xr-x 1 fujihara admin 7.6M Oct 26 10:12 /usr/local/lib/libv8.so.3.17.16.2* I got stuck at this point. Can you help me with this issue? |
@fujihara Thank you for your method of add options to |
Building scripts failing cause repository for gyp are no more available at http://gyp.googlecode.com/svn/.
Using other repository for gyp (as listed here https://github.com/Homebrew/homebrew-versions/issues/1275#issuecomment-227253831) generate several compiler errors.
The text was updated successfully, but these errors were encountered: