I am trying to compile v8cgi on OSX Lion and am running into an error:
g++ -o v8cgi src/common.os src/system.os src/cache.os src/gc.os
src/app.os src/path.os src/lib/binary/bytestorage.os src/v8cgi.o
-L/pinf/workspaces/github.com/pinf/loader-js/demos/V8CGI/v8cgi-0.9.1-src/v8
-lv8 -lv8
Undefined symbols for architecture x86_64:
"_iconv_open", referenced from:
ByteStorage::transcode(char const*, char const*)in bytestorage.os
"_iconv_close", referenced from:
ByteStorage::transcode(char const*, char const*)in bytestorage.os
"_iconv", referenced from:
ByteStorage::transcode(char const*, char const*)in bytestorage.os
ld: symbol(s) not found for architecture x86_64
Any idea how this can be fixed?
I presume I need to install libiconv for x64 with something like:
brew install libiconv
Which gives me:
LDFLAGS: -L/usr/local/Cellar/libiconv/1.13.1/lib
CPPFLAGS: -I/usr/local/Cellar/libiconv/1.13.1/include
But when I use:
scons gd=0 dom=0 sqlite=0 mysql=0 module=0
libpath=/usr/local/Cellar/libiconv/1.13.1/lib
I still get:
g++ -o lib/binary.dylib -dynamiclib src/lib/binary/binary.os
src/lib/binary/bytestorage.os
-L/pinf/workspaces/github.com/pinf/loader-js/demos/V8CGI/v8cgi-0.9.1-src/v8
-L/usr/local/Cellar/libiconv/1.13.1/include -lv8 -lv8 -liconv
g++ -o v8cgi src/common.os src/system.os src/cache.os src/gc.os
src/app.os src/path.os src/lib/binary/bytestorage.os src/v8cgi.o
-L/pinf/workspaces/github.com/pinf/loader-js/demos/V8CGI/v8cgi-0.9.1-src/v8
-L/usr/local/Cellar/libiconv/1.13.1/include -lv8 -lv8
Undefined symbols for architecture x86_64:
"_iconv_open", referenced from:
ByteStorage::transcode(char const*, char const*)in bytestorage.os
"_iconv_close", referenced from:
ByteStorage::transcode(char const*, char const*)in bytestorage.os
"_iconv", referenced from:
ByteStorage::transcode(char const*, char const*)in bytestorage.os
ld: symbol(s) not found for architecture x86_64
Now it's either still not finding the iconv lib or brew does not compile
it for x64.
Any pointers? How can I check the architecture for iconv at the lib path
and is the lib path specified correctly?
Thanks!
Christoph