Eragon0605 Posted March 6, 2010 Report Share Posted March 6, 2010 Sorry if I'm posting in the wrong section. I didn't see any forum or any link to anywhere this would more appropriate... Anyway, I cannot compile 0 A.D. I am running Ubuntu 9.10. I installed all the necessary dependencies, did all the premake stuff, and then went to trunk/build/workspaces/gcc and typed 'sudo make'. This is the output I get:==== Building network ====Network.cppIn file included from ../../../source/scripting/ScriptingHost.h:42, from ../../../source/scripting/JSConversions.h:23, from ../../../source/scripting/JSSerialization.h:23, from ../../../source/network/NetMessages.h:31, from ../../../source/network/NetMessage.h:38, from ../../../source/network/Network.h:68, from ../../../source/network/Network.cpp:20:../../../source/scripting/SpiderMonkey.h:45:22: error: js/jsapi.h: No such file or directory../../../source/scripting/SpiderMonkey.h:49:26: error: js/jsdbgapi.h: No such file or directoryIn file included from ../../../source/scripting/SpiderMonkey.h:54, from ../../../source/scripting/ScriptingHost.h:42, from ../../../source/scripting/JSConversions.h:23, from ../../../source/scripting/JSSerialization.h:23, from ../../../source/network/NetMessages.h:31, from ../../../source/network/NetMessage.h:38, from ../../../source/network/Network.h:68, from ../../../source/network/Network.cpp:20:../../../source/scripting/JSUtil.h:20: error: ‘jsval’ does not name a typeIn file included from ../../../source/scripting/JSConversions.h:23, from ../../../source/scripting/JSSerialization.h:23, from ../../../source/network/NetMessages.h:31, from ../../../source/network/NetMessage.h:38, from ../../../source/network/Network.h:68, from ../../../source/network/Network.cpp:20:../../../source/scripting/ScriptingHost.h:72: error: ISO C++ forbids declaration of ‘JSObject’ with no type../../../source/scripting/ScriptingHost.h:72: error: expected ‘;’ before ‘*’ token../../../source/scripting/ScriptingHost.h:73: error: ISO C++ forbids declaration of ‘JSClass’ with no type../../../source/scripting/ScriptingHost.h:73: error: expected ‘;’ before ‘*’ token../../../source/scripting/ScriptingHost.h:79: error: ISO C++ forbids declaration of ‘JSRuntime’ with no type../../../source/scripting/ScriptingHost.h:79: error: expected ‘;’ before ‘*’ token../../../source/scripting/ScriptingHost.h:80: error: ISO C++ forbids declaration of ‘JSContext’ with no type../../../source/scripting/ScriptingHost.h:80: error: expected ‘;’ before ‘*’ token../../../source/scripting/ScriptingHost.h:81: error: ISO C++ forbids declaration of ‘JSObject’ with no type../../../source/scripting/ScriptingHost.h:81: error: expected ‘;’ before ‘*’ token../../../source/scripting/ScriptingHost.h:83: error: ‘JSErrorReport’ does not name a type../../../source/scripting/ScriptingHost.h:89: error: expected ‘;’ before ‘(’ token../../../source/scripting/ScriptingHost.h:91: error: expected ‘;’ before ‘(’ token../../../source/scripting/ScriptingHost.h:103: error: ISO C++ forbids declaration of ‘JSContext’ with no type../../../source/scripting/ScriptingHost.h:103: error: ‘JSContext’ declared as an ‘inline’ field../../../source/scripting/ScriptingHost.h:103: error: expected ‘;’ before ‘*’ token../../../source/scripting/ScriptingHost.h:104: error: expected ‘;’ before ‘inline’../../../source/scripting/ScriptingHost.h:104: error: ISO C++ forbids declaration of ‘JSContext’ with no type../../../source/scripting/ScriptingHost.h:104: error: ‘JSContext’ declared as an ‘inline’ field../../../source/scripting/ScriptingHost.h:104: error: expected ‘;’ before ‘*’ token../../../source/scripting/ScriptingHost.h:105: error: expected ‘;’ before ‘inline’../../../source/scripting/ScriptingHost.h:105: error: ISO C++ forbids declaration of ‘JSObject’ with no type../../../source/scripting/ScriptingHost.h:105: error: ‘JSObject’ declared as an ‘inline’ field../../../source/scripting/ScriptingHost.h:105: error: expected ‘;’ before ‘*’ token../../../source/scripting/ScriptingHost.h:107: error: expected ‘;’ before ‘void’../../../source/scripting/ScriptingHost.h:107: error: ‘JSObject’ has not been declared../../../source/scripting/ScriptingHost.h:108: error: ‘JSObject’ has not been declared../../../source/scripting/ScriptingHost.h:111: error: ‘jsval’ does not name a type../../../source/scripting/ScriptingHost.h:113: error: ‘jsval’ does not name a type../../../source/scripting/ScriptingHost.h:115: error: ‘JSNative’ has not been declared../../../source/scripting/ScriptingHost.h:120: error: ‘JSClass’ has not been declared../../../source/scripting/ScriptingHost.h:120: error: ‘JSNative’ has not been declared../../../source/scripting/ScriptingHost.h:120: error: ‘uintN’ has not been declared../../../source/scripting/ScriptingHost.h:120: error: ‘JSPropertySpec’ has not been declared../../../source/scripting/ScriptingHost.h:120: error: ‘JSFunctionSpec’ has not been declared../../../source/scripting/ScriptingHost.h:120: error: ‘JSPropertySpec’ has not been declaredIn file included from ../../../source/scripting/JSConversions.h:23, from ../../../source/scripting/JSSerialization.h:23, from ../../../source/network/NetMessages.h:31, from ../../../source/network/NetMessage.h:38, from ../../../source/network/Network.h:68, from ../../../source/network/Network.cpp:20:../../../source/scripting/ScriptingHost.h:120: error: ‘JSFunctionSpec’ has not been declared../../../source/scripting/ScriptingHost.h:122: error: ISO C++ forbids declaration of ‘JSObject’ with no type../../../source/scripting/ScriptingHost.h:122: error: expected ‘;’ before ‘*’ token../../../source/scripting/ScriptingHost.h:124: error: ‘JSObject’ has not been declared../../../source/scripting/ScriptingHost.h:124: error: ‘jsval’ has not been declared../../../source/scripting/ScriptingHost.h:125: error: ‘jsval’ does not name a type../../../source/scripting/ScriptingHost.h:127: error: ‘JSObject’ has not been declared../../../source/scripting/ScriptingHost.h:128: error: ‘JSObject’ has not been declared../../../source/scripting/ScriptingHost.h:130: error: ‘jsval’ has not been declared../../../source/scripting/ScriptingHost.h:131: error: ‘jsval’ does not name a type../../../source/scripting/ScriptingHost.h:133: error: ISO C++ forbids declaration of ‘jsval’ with no type../../../source/scripting/ScriptingHost.h:133: error: expected ‘,’ or ‘...’ before ‘value’../../../source/scripting/ScriptingHost.h:134: error: ISO C++ forbids declaration of ‘jsval’ with no type../../../source/scripting/ScriptingHost.h:134: error: expected ‘,’ or ‘...’ before ‘value’../../../source/scripting/ScriptingHost.h:135: error: ISO C++ forbids declaration of ‘jsval’ with no type../../../source/scripting/ScriptingHost.h:135: error: expected ‘,’ or ‘...’ before ‘value’../../../source/scripting/ScriptingHost.h:136: error: ISO C++ forbids declaration of ‘jsval’ with no type../../../source/scripting/ScriptingHost.h:136: error: expected ‘,’ or ‘...’ before ‘value’../../../source/scripting/ScriptingHost.h:137: error: ISO C++ forbids declaration of ‘jsval’ with no type../../../source/scripting/ScriptingHost.h:137: error: expected ‘,’ or ‘...’ before ‘value’../../../source/scripting/ScriptingHost.h:138: error: ISO C++ forbids declaration of ‘jsval’ with no type../../../source/scripting/ScriptingHost.h:138: error: expected ‘,’ or ‘...’ before ‘value’../../../source/scripting/ScriptingHost.h:140: error: ‘jsval’ does not name a type../../../source/scripting/ScriptingHost.h:141: error: ‘jsval’ does not name a type../../../source/scripting/ScriptingHost.h:143: error: ‘JSContext’ has not been declared../../../source/scripting/ScriptingHost.h:143: error: ‘JSErrorReport’ has not been declaredIn file included from ../../../source/scripting/JSSerialization.h:23, from ../../../source/network/NetMessages.h:31, from ../../../source/network/NetMessage.h:38, from ../../../source/network/Network.h:68, from ../../../source/network/Network.cpp:20:../../../source/scripting/JSConversions.h:40: error: template declaration of ‘T* ToNative’../../../source/scripting/JSConversions.h:40: error: ‘JSContext’ was not declared in this scope../../../source/scripting/JSConversions.h:40: error: ‘cx’ was not declared in this scope../../../source/scripting/JSConversions.h:40: error: ‘JSObject’ was not declared in this scope../../../source/scripting/JSConversions.h:40: error: ‘obj’ was not declared in this scope../../../source/scripting/JSConversions.h:45: error: expected constructor, destructor, or type conversion before ‘*’ token../../../source/scripting/JSConversions.h:52: error: template declaration of ‘T* ToNative’../../../source/scripting/JSConversions.h:52: error: ‘jsval’ was not declared in this scope../../../source/scripting/JSConversions.h:59: error: template declaration of ‘bool ToPrimitive’../../../source/scripting/JSConversions.h:59: error: ‘JSContext’ was not declared in this scope../../../source/scripting/JSConversions.h:59: error: expected primary-expression before ‘,’ token../../../source/scripting/JSConversions.h:59: error: ‘jsval’ was not declared in this scope../../../source/scripting/JSConversions.h:59: error: expected primary-expression before ‘&’ token../../../source/scripting/JSConversions.h:59: error: ‘Storage’ was not declared in this scope../../../source/scripting/JSConversions.h:68: error: template declaration of ‘bool ToPrimitive’../../../source/scripting/JSConversions.h:68: error: ‘JSContext’ was not declared in this scope../../../source/scripting/JSConversions.h:68: error: expected primary-expression before ‘,’ token../../../source/scripting/JSConversions.h:68: error: ‘jsval’ was not declared in this scope../../../source/scripting/JSConversions.h:68: error: expected primary-expression before ‘*’ token../../../source/scripting/JSConversions.h:68: error: ‘Storage’ was not declared in this scope../../../source/scripting/JSConversions.h:77: error: ‘ToPrimitive’ declared as an ‘inline’ variable../../../source/scripting/JSConversions.h:77: error: template declaration of ‘T ToPrimitive’../../../source/scripting/JSConversions.h:77: error: ‘JSContext’ was not declared in this scope../../../source/scripting/JSConversions.h:77: error: ‘cx’ was not declared in this scope../../../source/scripting/JSConversions.h:77: error: ‘jsval’ was not declared in this scope../../../source/scripting/JSConversions.h:86: error: ‘ToPrimitive’ declared as an ‘inline’ variable../../../source/scripting/JSConversions.h:86: error: template declaration of ‘T ToPrimitive’../../../source/scripting/JSConversions.h:86: error: ‘jsval’ was not declared in this scope../../../source/scripting/JSConversions.h:91: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:96: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:101: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:110: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:111: error: expected constructor, destructor, or type conversion before ‘*’ token../../../source/scripting/JSConversions.h:112: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:115: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:116: error: expected constructor, destructor, or type conversion before ‘*’ token../../../source/scripting/JSConversions.h:119: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:120: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:123: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:124: error: expected constructor, destructor, or type conversion before ‘*’ token../../../source/scripting/JSConversions.h:127: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:128: error: expected constructor, destructor, or type conversion before ‘*’ token../../../source/scripting/JSConversions.h:131: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:132: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:135: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:136: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:137: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:140: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:141: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:142: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:145: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:146: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:147: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:150: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:151: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:152: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:173: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:174: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:175: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:178: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:179: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:180: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:183: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:184: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:185: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:195: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:196: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:197: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:200: error: expected initializer before ‘<’ token../../../source/scripting/JSConversions.h:201: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:202: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:211: error: ‘jsval’ does not name a type../../../source/scripting/JSConversions.h:212: error: expected ‘)’ before ‘v’../../../source/scripting/JSConversions.h:214: error: expected constructor, destructor, or type conversion before ‘ToJSVal’../../../source/scripting/JSConversions.h:218: error: ‘jsval’ does not name a typeIn file included from ../../../source/network/NetMessages.h:31, from ../../../source/network/NetMessage.h:38, from ../../../source/network/Network.h:68, from ../../../source/network/Network.cpp:20:../../../source/scripting/JSSerialization.h:37: error: ‘jsval’ does not name a type../../../source/scripting/JSSerialization.h:42: error: expected ‘)’ before ‘data’../../../source/scripting/JSSerialization.h:56: error: expected type-specifier before ‘jsval’../../../source/scripting/JSSerialization.h: In member function ‘jsval_ser::operator CStr8() const’:../../../source/scripting/JSSerialization.h:62: error: ‘ToPrimitive’ was not declared in this scope../../../source/scripting/JSSerialization.h:62: error: expected primary-expression before ‘>’ token../../../source/scripting/JSSerialization.h:62: error: ‘m_data’ was not declared in this scope../../../source/scripting/JSSerialization.h: In member function ‘virtual size_t jsval_ser::GetSerializedLength() const’:../../../source/scripting/JSSerialization.h:76: error: ‘ToPrimitive’ was not declared in this scope../../../source/scripting/JSSerialization.h:76: error: expected primary-expression before ‘>’ token../../../source/scripting/JSSerialization.h:76: error: ‘m_data’ was not declared in this scope../../../source/scripting/JSSerialization.h: In member function ‘virtual uint8_t* jsval_ser::Serialize(uint8_t*) const’:../../../source/scripting/JSSerialization.h:92: error: ‘m_data’ was not declared in this scope../../../source/scripting/JSSerialization.h:92: error: ‘JSVAL_TO_INT’ was not declared in this scope../../../source/scripting/JSSerialization.h:103: error: ‘m_data’ was not declared in this scope../../../source/scripting/JSSerialization.h:103: error: ‘JSVAL_TO_DOUBLE’ was not declared in this scope../../../source/scripting/JSSerialization.h:108: error: ‘ToPrimitive’ was not declared in this scope../../../source/scripting/JSSerialization.h:108: error: expected primary-expression before ‘>’ token../../../source/scripting/JSSerialization.h:108: error: ‘m_data’ was not declared in this scope../../../source/scripting/JSSerialization.h: In member function ‘virtual const uint8_t* jsval_ser::Deserialize(const uint8_t*, const uint8_t*)’:../../../source/scripting/JSSerialization.h:122: error: ‘m_data’ was not declared in this scope../../../source/scripting/JSSerialization.h:122: error: ‘JSVAL_FALSE’ was not declared in this scope../../../source/scripting/JSSerialization.h:125: error: ‘JSVAL_TRUE’ was not declared in this scope../../../source/scripting/JSSerialization.h:131: error: ‘INT_TO_JSVAL’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: ‘uint32’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: expected ‘;’ before ‘_v1’../../../source/scripting/JSSerialization.h:141: error: expected ‘;’ before ‘_v2’../../../source/scripting/JSSerialization.h:141: error: ‘_v1’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: ‘_v1’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: ‘_v1’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: ‘_v1’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: ‘_v2’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: ‘_v2’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: ‘_v2’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: ‘_v2’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: ‘_v1’ was not declared in this scope../../../source/scripting/JSSerialization.h:141: error: ‘_v2’ was not declared in this scope../../../source/scripting/JSSerialization.h:142: error: ‘class ScriptingHost’ has no member named ‘GetContext’../../../source/scripting/JSSerialization.h:142: error: ‘JS_NewDoubleValue’ was not declared in this scope../../../source/scripting/JSSerialization.h:149: error: ‘ToJSVal’ was not declared in this scope../../../source/scripting/JSSerialization.h:149: error: expected primary-expression before ‘>’ tokenIn file included from ../../../source/network/Network.h:68, from ../../../source/network/Network.cpp:20:../../../source/network/NetMessage.h: At global scope:../../../source/network/NetMessage.h:165: error: ‘JSContext’ has not been declared../../../source/network/NetMessage.h:166: error: ‘uintN’ has not been declared../../../source/network/NetMessage.h:167: error: ‘jsval’ has not been declaredmake[1]: *** [obj/network_Debug/Network.o] Error 1make: *** [network] Error 2Well, I looked at obj/network_Debug, and there is no Network.o. I am running as root, so there shouldn't be any permission issues. Quote Link to comment Share on other sites More sharing options...
janwas Posted March 6, 2010 Report Share Posted March 6, 2010 Greetings!You're apparently missing the Spidermonkey library for Javascript. Have you tried running "./update-workspaces.sh --with-spidermonkey-tip" as suggested here? (http://www.wildfiregames.com/forum/index.php?showtopic=12757) Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted March 6, 2010 Report Share Posted March 6, 2010 You should just run "make", not "sudo make" - sudo is unnecessary and dangerous (it could let us delete all your files and repartition your disk, and you probably shouldn't trust random code on the internet like that) and the output files will be owned by root which'll make it hard to do anything with them as a normal user.../../../source/scripting/SpiderMonkey.h:45:22: error: js/jsapi.h: No such file or directoryDoes the file libraries/spidermonkey/include/js/jsapi.h exist (relative to the SVN root)? That's the one it ought to be finding here. Quote Link to comment Share on other sites More sharing options...
Eragon0605 Posted March 6, 2010 Author Report Share Posted March 6, 2010 Does the file libraries/spidermonkey/include/js/jsapi.h exist (relative to the SVN root)?Yup, it's there, and is owned by my normal user.You should just run "make", not "sudo make" - sudo is unnecessary and dangerousGood suggestion, I won't use sudo anymore.You're apparently missing the Spidermonkey library for Javascript. Have you tried running "./update-workspaces.sh --with-spidermonkey-tip"Well, I've tried it now, and nothing changes. I did a total clean of my files - I deleted the folder I had previously attempted to compile in and re-extracted the files from the 7z archive. I then ran premake and ./update-workspaces.sh --with-spidermonkey-tip. I get the exact same error message as before. Quote Link to comment Share on other sites More sharing options...
Eragon0605 Posted March 6, 2010 Author Report Share Posted March 6, 2010 (edited) Well, I read a readme file, and it says I have to put spidermonkey in my /usr/include/js/ folder. I downloaded it, followed the instructions, and now I get a different error message:==== Building network ====Network.cppIn file included from /usr/include/js/jsdbgapi.h:46, from ../../../source/scripting/SpiderMonkey.h:49, from ../../../source/scripting/ScriptingHost.h:42, from ../../../source/scripting/JSConversions.h:23, from ../../../source/scripting/JSSerialization.h:23, from ../../../source/network/NetMessages.h:31, from ../../../source/network/NetMessage.h:38, from ../../../source/network/Network.h:68, from ../../../source/network/Network.cpp:20:/usr/include/js/jsopcode.h:200: error: expected constructor, destructor, or type conversion before ‘(’ tokenmake[1]: *** [obj/network_Debug/Network.o] Error 1make: *** [network] Error 2Hrmm... Terminates much quicker now.EDIT: Nevermind that, I installed the wrong version of Spidermonkey. Basically, I copied all the include spidermonkey files in the trunk/blah/blah/blah to /usr/include/js. Network and graphics build fine, but when I get to Building i18n, this is what I get:==== Building i18n ====precompiled.cppInterface.cppTranslatedString.cppTSComponent.cppStringBuffer.cppScriptInterface.cppIn file included from /usr/include/js/jsapi.h:47, from ../../../source/scripting/SpiderMonkey.h:45, from ../../../source/i18n/ScriptInterface.cpp:23:/usr/include/js/jspubtd.h:55: error: conflicting declaration ‘typedef jsword jsval’../../../source/i18n/ScriptInterface.h:41: error: ‘jsval’ has a previous declaration as ‘typedef long int jsval’make[1]: *** [obj/i18n_Debug/ScriptInterface.o] Error 1make: *** [i18n] Error 2 Edited March 6, 2010 by Eragon0605 Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted March 6, 2010 Report Share Posted March 6, 2010 the 7z archiveHmm, if you're using the snapshot that's listed on the BuildInstructions page then that's very old - you need to either run "svn up" after extracting it, or do a normal SVN checkout, to get the latest versions of all the code. Quote Link to comment Share on other sites More sharing options...
Eragon0605 Posted March 6, 2010 Author Report Share Posted March 6, 2010 Alrighty! I extracted a fresh archive from the 7z again, and ran 'svn up' from there. It's doing its thing right now... Quote Link to comment Share on other sites More sharing options...
Eragon0605 Posted March 6, 2010 Author Report Share Posted March 6, 2010 (edited) Alright, the svn is updated. I looks like prebuild is already compiled, so I didn't do anything there, so the first thing I ran was ./update-workspaces.sh --with-spidermonkey-tipThen I cd to the gcc folder and ran make.Now, the first few things compile fine, but when I get to scriptinterface, this is the output:==== Building scriptinterface ====ScriptInterface.cpp../../../source/scriptinterface/ScriptInterface.cpp: In constructor ‘ScriptInterface_impl::ScriptInterface_impl(const char*, JSContext*)’:../../../source/scriptinterface/ScriptInterface.cpp:134: error: ‘JS_BeginRequest’ was not declared in this scope../../../source/scriptinterface/ScriptInterface.cpp: In destructor ‘ScriptInterface_impl::~ScriptInterface_impl()’:../../../source/scriptinterface/ScriptInterface.cpp:153: error: ‘JS_EndRequest’ was not declared in this scope../../../source/scriptinterface/ScriptInterface.cpp: In static member function ‘static JSClass* ScriptInterface::GetClass(JSContext*, JSObject*)’:../../../source/scriptinterface/ScriptInterface.cpp:470: error: cannot convert ‘JSContext*’ to ‘JSObject*’ for argument ‘1’ to ‘JSClass* JS_GetClass(JSObject*)’make[1]: *** [obj/scriptinterface_Debug/ScriptInterface.o] Error 1make: *** [scriptinterface] Error 2What is wrong now? Edited March 6, 2010 by Eragon0605 Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted March 6, 2010 Report Share Posted March 6, 2010 You should probably run it without --with-spidermonkey-tip(If you do use --with-spidermonkey-tip, then first you have to go into libraries/spidermonkey-tip/ and run build.sh before it'll work.) Quote Link to comment Share on other sites More sharing options...
Eragon0605 Posted March 6, 2010 Author Report Share Posted March 6, 2010 (edited) OK, thanks! Compiled without any errors, and a billion 'comparison between signed and unsigned integer' warnings ! Alright, just one more question: How do you change the settings in the game? The in-game button is all grayed out, so I presume there is some sort of configuration file somewhere.EDIT: Nevermind, I found it. Edited March 6, 2010 by Eragon0605 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.