errors of building wxjs on ubuntu

4 views
Skip to first unread message

Hansy

unread,
Jan 21, 2009, 2:06:48 PM1/21/09
to wxJavaScript
Hi,

I got the following errors when I built the wxjs on Ubuntu 8.04:

==== Building wxjs ====
main.cpp
In file included from ../common/main.h:39,
from ../stdwx.h:15,
from main.cpp:25:
../common/wxjsobj.h: In member function ‘bool
wxjs::JavaScriptObject::SetProperty(JSContext*, const std::string&,
const T&)’:
../common/wxjsobj.h:148: error: ‘JavaScriptType’ was not declared in
this scope
../common/wxjsobj.h:148: error: expected primary-expression before ‘>’
token
../common/wxjsobj.h: In member function ‘bool
wxjs::JavaScriptObject::SetElement(JSContext*, int, const T&)’:
../common/wxjsobj.h:239: error: ‘JavaScriptType’ was not declared in
this scope
../common/wxjsobj.h:239: error: expected primary-expression before ‘>’
token
In file included from ../common/main.h:47,
from ../stdwx.h:15,
from main.cpp:25:
../common/ctype.h: At global scope:
../common/ctype.h:140: error: too few template-parameter-lists
../common/ctype.h:156: error: too few template-parameter-lists
../common/ctype.h:175: error: too few template-parameter-lists
../common/ctype.h:194: error: too few template-parameter-lists
../common/ctype.h:213: error: too few template-parameter-lists
../common/ctype.h:229: error: too few template-parameter-lists
../common/ctype.h:305: error: too few template-parameter-lists
../common/ctype.h:321: error: too few template-parameter-lists
../common/ctype.h:337: error: too few template-parameter-lists
In file included from ../common/main.h:50,
from ../stdwx.h:15,
from main.cpp:25:
../common/native.h: In static member function ‘static JSBool
wxjs::NativeJavaScriptObject<T_Port, T_Priv, ctor,
T_Enum>::MethodCallback(JSContext*, JSObject*, uintN, jsval*,
jsval*)’:
../common/native.h:520: error: expected `;' before ‘callback’
../common/native.h:527: error: ‘callback’ was not declared in this
scope
../common/native.h: In static member function ‘static JSBool
wxjs::NativeJavaScriptObject<T_Port, T_Priv, ctor,
T_Enum>::ClassMethodCallback(JSContext*, JSObject*, uintN, jsval*,
jsval*)’:
../common/native.h:553: error: expected `;' before ‘callback’
../common/native.h:558: error: ‘callback’ was not declared in this
scope
../common/native.h: In static member function ‘static void
wxjs::NativeJavaScriptObject<T_Port, T_Priv, ctor,
T_Enum>::AddClassMethod(JSContext*, const char*, jsval (T_Port::*)
(JSContext*, wxjs::JavaScriptArgs&), uintN)’:
../common/native.h:589: error: declaration of ‘JSObject* ctor’
../common/native.h:86: error: shadows template parm ‘int ctor’
In file included from ../engine/engine.h:33,
from main.cpp:38:
../engine/script.h: At global scope:
../engine/script.h:71: error: extra qualification
‘wxjs::ScriptSource::’ on member ‘GetSource’
make[1]: *** [obj/Debug/main.o] Error 1
make: *** [wxjs] Error 2




Can anyone help me? Thanks!

Franky Braem

unread,
Jan 21, 2009, 3:28:24 PM1/21/09
to wxjava...@googlegroups.com
The following errors:

../common/ctype.h:140: error: too few template-parameter-lists

can be solved by placing template<> before the line.

At the moment I don't have a Linux OS to test and compile wxJS. And I'm
also working on GLUEscript. I hope to get GLUEscript compiled with gcc.

Franky.

Hansy schreef:

Hansy

unread,
Jan 27, 2009, 1:58:26 PM1/27/09
to wxJavaScript
I tried placing template<> before the appropriate lines, but I still
got the following errors:

main.cpp
In file included from ../common/main.h:39,
from ../stdwx.h:15,
from main.cpp:25:
../common/wxjsobj.h: In member function ‘bool
wxjs::JavaScriptObject::SetProperty(JSContext*, const std::string&,
const T&)’:
../common/wxjsobj.h:148: error: ‘JavaScriptType’ was not declared in
this scope
../common/wxjsobj.h:148: error: expected primary-expression before ‘>’
token
../common/wxjsobj.h: In member function ‘bool
wxjs::JavaScriptObject::SetElement(JSContext*, int, const T&)’:
../common/wxjsobj.h:239: error: ‘JavaScriptType’ was not declared in
this scope
../common/wxjsobj.h:239: error: expected primary-expression before ‘>’
token
Thanks again!

Franky Braem

unread,
Jan 27, 2009, 2:08:50 PM1/27/09
to wxjava...@googlegroups.com
Hansy schreef:

There are several issues with the gcc-compiler. I'm currently working on
making GLUEscript gcc-compatible.

Franky.

Hansy

unread,
Jan 28, 2009, 12:15:25 AM1/28/09
to wxJavaScript
Thanks a lot and take your time!
Reply all
Reply to author
Forward
0 new messages