Been trying to build
NVU for Mac OS X for the last couple of days... So far I have not had any luck. Unfortunately, I have limited experience with this.
Anyone else here tried it yet? Hints? Suggestions?
Here is error:
nsNvuApp.cpp
c++ -o nsNvuApp.o -c -DOSTYPE=\"Darwin7.4.0\" -DOSARCH=\"Darwin\" -I../../dist/include/string -I../../dist/include/xpcom -I../../dist/include/xulapp -I../../dist/include/xpinstall -I../../dist/include/appshell -I../../dist/include -I../../dist/include -I/Users/claudio/mozilla/dist/include/nspr -fPIC -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -fpascal-strings -no-cpp-precomp -fno-common -fshort-wchar -I/Developer/Headers/FlatCarbon -pipe -DNDEBUG -DTRIMMED -O -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsNvuApp.pp nsNvuApp.cpp
nsNvuApp.cpp: In function `int main(int, char**)':
nsNvuApp.cpp:49: error: `SetSplashEnabled' undeclared (first use this function)
nsNvuApp.cpp:49: error: (Each undeclared identifier is reported only once for
each function it appears in.)
nsNvuApp.cpp:50: error: `SetProductName' undeclared (first use this function)
nsNvuApp.cpp:51: error: `SetUseStartupPrefs' undeclared (first use this
function)
nsNvuApp.cpp:52: error: cannot convert `nsXREAppData' to `const nsXREAppData*'
for argument `3' to `int xre_main(int, char**, const nsXREAppData*)'
make[4]: *** [nsNvuApp.o] Error 1
make[4]: Target `libs' not remade because of errors.
/Users/claudio/mozilla/config/nsinstall -L /Users/claudio/mozilla/composer/app editorWindow.xpm editorWindow16.xpm ../../dist/bin/chrome/icons/default
make[4]: Target `libs' not remade because of errors.
make[3]: *** [libs] Error 2
make[2]: *** [tier_99] Error 2
make[1]: *** [default] Error 2
make: *** [build] Error 2
On Editing nsNvuApp.cpp with Xcode:
int main(int argc, char* argv[])
{
nsXREAppData appData;
appData.SetSplashEnabled(PR_FALSE);
appData.SetProductName(NS_LITERAL_CSTRING("Nvu"));
appData.SetUseStartupPrefs(PR_TRUE);
return xre_main(argc, argv, appData);
}
What next?
Thanks....