Skip to content

Instantly share code, notes, and snippets.

@redmar
Created December 30, 2009 16:38
Show Gist options
  • Save redmar/266166 to your computer and use it in GitHub Desktop.
Save redmar/266166 to your computer and use it in GitHub Desktop.
Would you like to install the JavaScriptCore engine for Narwhal?
This is optional but will make building and running Objective-J much faster.
Enter "yes" or "no":
yes
The following packages will be downloaded and installed:
* narwhal-jsc
Downloading: http://github.com/tlrobinson/narwhal-jsc/zipball/master
Unzipping: /usr/local/narwhal/zips/narwhal-jsc.zip
+ /usr/local/narwhal/packages/narwhal-jsc/.gitignore
+ /usr/local/narwhal/packages/narwhal-jsc/Info.plist
+ /usr/local/narwhal/packages/narwhal-jsc/Makefile
+ /usr/local/narwhal/packages/narwhal-jsc/NWDebug.h
+ /usr/local/narwhal/packages/narwhal-jsc/NWDebug.m
+ /usr/local/narwhal/packages/narwhal-jsc/README.md
+ /usr/local/narwhal/packages/narwhal-jsc/bin/narwhal-jsc
+ /usr/local/narwhal/packages/narwhal-jsc/bin/source-test.sh
+ /usr/local/narwhal/packages/narwhal-jsc/bootstrap.js
+ /usr/local/narwhal/packages/narwhal-jsc/deps/http-parser/.gitignore
+ /usr/local/narwhal/packages/narwhal-jsc/deps/http-parser/LICENSE
+ /usr/local/narwhal/packages/narwhal-jsc/deps/http-parser/Makefile
+ /usr/local/narwhal/packages/narwhal-jsc/deps/http-parser/README.md
+ /usr/local/narwhal/packages/narwhal-jsc/deps/http-parser/http_parser.c
+ /usr/local/narwhal/packages/narwhal-jsc/deps/http-parser/http_parser.h
+ /usr/local/narwhal/packages/narwhal-jsc/deps/http-parser/http_parser.rl
+ /usr/local/narwhal/packages/narwhal-jsc/deps/http-parser/test.c
+ /usr/local/narwhal/packages/narwhal-jsc/include/binary-engine.h
+ /usr/local/narwhal/packages/narwhal-jsc/include/io-engine.h
+ /usr/local/narwhal/packages/narwhal-jsc/include/narwhal.h
+ /usr/local/narwhal/packages/narwhal-jsc/lib/file-engine.js
+ /usr/local/narwhal/packages/narwhal-jsc/lib/http.js
+ /usr/local/narwhal/packages/narwhal-jsc/lib/io-engine.js
+ /usr/local/narwhal/packages/narwhal-jsc/lib/os-engine.js
+ /usr/local/narwhal/packages/narwhal-jsc/lib/system.js
+ /usr/local/narwhal/packages/narwhal-jsc/lib/zip.js
+ /usr/local/narwhal/packages/narwhal-jsc/narwhal-jsc.c
+ /usr/local/narwhal/packages/narwhal-jsc/narwhal.c
+ /usr/local/narwhal/packages/narwhal-jsc/package.json
+ /usr/local/narwhal/packages/narwhal-jsc/src/binary-engine.cc
+ /usr/local/narwhal/packages/narwhal-jsc/src/file-engine.cc
+ /usr/local/narwhal/packages/narwhal-jsc/src/io-engine.cc
+ /usr/local/narwhal/packages/narwhal-jsc/src/jack/handler/jill.cc
+ /usr/local/narwhal/packages/narwhal-jsc/src/os-engine.cc
Done.
gcc -o lib/libnarwhal.dylib narwhal.c -dynamiclib -0s -force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -arch ppc -Iinclude -framework JavaScriptCore -lreadline
mkdir -p `dirname bin/narwhal-webkit`
gcc -o bin/narwhal-webkit -DWEBKIT -x objective-c narwhal-jsc.c -0s -force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -arch ppc -Iinclude -framework JavaScriptCore -L/usr/lib -lreadline -liconv -Llib -lnarwhal \
-framework Foundation -framework WebKit
install_name_tool -change "lib/libnarwhal.dylib" "@executable_path/../lib/libnarwhal.dylib" "bin/narwhal-webkit"
mkdir -p `dirname lib/binary-engine.dylib`
g++ -o lib/binary-engine.dylib src/binary-engine.cc -0s -force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -arch ppc -Iinclude -dynamiclib -framework JavaScriptCore -L/usr/lib -lreadline -liconv -Llib -lnarwhal
Undefined symbols:
"JSObjectMakeDate(OpaqueJSContext const*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**)", referenced from:
_JS_date(OpaqueJSContext const*, OpaqueJSValue const**, long long)in cc8nk6nb.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Undefined symbols:
"JSObjectMakeDate(OpaqueJSContext const*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**)", referenced from:
_JS_date(OpaqueJSContext const*, OpaqueJSValue const**, long long)in ccB7UlWl.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccEIWV7G.out (No such file or directory)
make: *** [lib/binary-engine.dylib] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment