wxScript problems

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
romeo9423
Experienced Solver
Experienced Solver
Posts: 72
Joined: Mon Nov 08, 2004 3:36 pm

wxScript problems

Post by romeo9423 »

Hi,

I have installed wxWidgets-2.6.2 and I am trying to evaluate wxScript.
Problem is I got some compilations error. I am using codeBlocks IDE with mingw as compiler under WinXP, I have modified the makefile to only enable python :

# If 0 Python won't be used [0,1]
USE_PYTHON = 1

# If 0 LUA won't be used [0,1]
USE_LUA = 0

# If 0 CINT won't be used [0,1]
USE_CINT = 0

# If 0 UnderC won't be used [0,1]
USE_UNDERC = 0

# The Python library main folder
PYTHON_DIR = D:\Logiciels\Python24
...
and I have also modified it because I am using wxWIdgets as a monolithic shared lib.

So when I compile wxscript I get this while I have disabled LUA :

D:\Download\wxscript\build>mingw32-make -f makefile.gcc
g++ -c -o mingw\wxscript_script.o -DHAVE_W32API_H -O2 -ID:\Logiciels\wxWidgets
-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\lib\gcc_lib\msw -I..\include -Dwx
SCRIPT_NO_LUA -DwxSCRIPT_NO_CINT -DwxSCRIPT_NO_UNDERC -ID:\Logiciels\Python24\in
clude -Wall ../src/script.cpp
../src/script.cpp: In member function `virtual void wxScriptVar::ResetContent()'
:
../src/script.cpp:521: warning: deleting `void*' is undefined
../src/script.cpp: In member function `virtual wxString wxScriptVar::GetContentS
tring() const':
../src/script.cpp:630: error: `LUA2WX' undeclared (first use this function)
../src/script.cpp:630: error: (Each undeclared identifier is reported only once
for each function it appears in.)
mingw32-make: *** [mingw\wxscript_script.o] Error 1

TO solve it I have downloaded lua and enabled it but after i have this error :
D:\Download\wxscript_OLD\build>mingw32-make -f makefile.gcc
g++ -o ..\tests\test1\test1.exe mingw\test1_Test.o -mthreads -L..\lib -LD:\Log
iciels\wxWidgets-2.6.2\lib\gcc_lib -LD:\Logiciels\Python24\libs ..\lib\libw
xscript.a -lpython24 -lwxmsw26 -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex
-lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -
lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
mingw\test1_Test.o: In function `ZN13wxInitializerC1EiPPc':
D:/Logiciels/wxWidgets-2.6.2/include/wx/init.h:(.text$_ZN12wxStringBaseC2ERKS_[w
xStringBase::wxStringBase(wxStringBase const&)]+0x40): undefined reference to `w
xAssert(int, char const*, int, char const*, char const*)'
D:/Logiciels/wxWidgets-2.6.2/include/wx/init.h:(.text$_ZNK18wxBaseArrayPtrVoid4I
temEj[wxBaseArrayPtrVoid::Item(unsigned int) const]+0x39): undefined reference t
o `wxAssert(int, char const*, int, char const*, char const*)'
D:/Logiciels/wxWidgets-2.6.2/include/wx/init.h:(.text$_ZN12wxStringBase2atEj[wxS
tringBase::at(unsigned int)]+0x3e): undefined reference to `wxAssert(int, char c
onst*, int, char const*, char const*)'
collect2: ld returned 1 exit status
mingw32-make: *** [..\tests\test1\test1.exe] Error 1

Please Help


And if someone could change wxscript makefiles to use wxWidgets2.6 it would help people.
frm
Knows some wx things
Knows some wx things
Posts: 47
Joined: Thu Sep 09, 2004 7:29 pm
Location: Modena, ITALY
Contact:

Post by frm »

Hi,
I'm the author of wxScript; the package available for download is quite old now.
I'm trying to update it but I'm very busy now.

In any case I'll make a new release of wxScript as soon as my patches are integrated into bakefiles; that will make the build system of all wxCode components much more easier to use.

BTW the linker errors are because of a mismatch debug/release. You should call the makefile in this way:

mingw32-make -f makefile.gcc WX_DEBUG=0 WX_SHARED=1

if you are using a debug, shared build of wx.

Unfortunately monolithic builds of wxWidgets are not supported by wxpresets (which are the bakefiles used by all wxCode components).
Also, Vaclav thinks monolithic builds should not be supported at all !
If you use monolithic builds, then please add a comment to this patch tracker :

http://sourceforge.net/tracker/index.ph ... tid=309863

Thanks,
Francesco
Post Reply