From: Dave D. <da...@dr...> - 2004-09-25 15:00:17
|
On Sep 23, 2004, at 6:40 AM, Suresh Tummala wrote: > Hi , > > Here is the environemt setup details . > > OS : Win NT > > Ant version : apache-ant-1.6.2 > > Wx4j source code : wx4j-0.2.0 > > wxWindows version : wxMSW-2.4.2 > > Swig version : swigwin-1.3.22 All the above look ok. > Gcc compiler : gcc-2.95.2-crtdll What the heck is that? I've never heard of it. Your using Visual C++,=20= so why on earth do you need gcc? > 5)=A0=A0=A0=A0=A0 Open = c:\wx4j\sourcecode\wx4j-0.2.0\build\wx4j\swig\common.mk=20 > file and edit the following > > a.=A0=A0=A0=A0=A0=A0 Change WX_HOME to c:/wx4j/build/wxWindows-2.4.2 > > b.=A0=A0=A0=A0=A0 Change JDK_HOME to jdk path These should be done in build.properties, not common.mk, I believe. > 6)=A0=A0=A0=A0=A0 Open = c:\wx4j\sourcecode\wx4j-0.2.0\build\wx4j\swig\win32vc.mk=20 > file and remove the following options > > a.=A0=A0=A0=A0=A0=A0 /GS > > b.=A0=A0=A0=A0=A0 /Wp64 I'd use the Windows SWIG binary and skip building yourself. > 7)=A0=A0=A0=A0=A0 Open c:\wx4j\build\sourcecode\wx4j-0.2.0\build.xml = file and=20 > edit the following > > a.=A0=A0=A0=A0=A0=A0 <property name=3D"jni.type" value=3D"linux=94> = change value from=20 > =93linux=94 to =93win32=94. > > b.=A0=A0=A0=A0=A0 <property name=3D"jni.visualc++" value=3D"no=94> = change value from=20 > =93no=94 to =93yes=94. Why didn't you follow the instructions in INSTALL and use=20 build.properties? There are other properties you need to set in=20 build.properties. > 9)=A0=A0=A0=A0=A0 Type ant and press enter > > a.=A0=A0=A0=A0=A0=A0 If you get compilation errors in SWIG generated = java files=20 > then fix the compilation errors.(For example in wxApp file class=20 > identifier is missing ,so we need to add class identifier and some=20 > constants are missing so need to comment that part of code to fix=20 > compilation errors) You should not get errors in SWIG generated Java files. > After this step =A0,we are end up with following errors : > > =A0 > > =A0 wxString::Printf(char const *,...)" (?Printf@wxString@@QAAHPBDZZ)"=20= > imported > > =A0=A0=A0=A0 [exec] LINK : warning LNK4049: locally defined symbol = ""public:=20 > class wxWCh > > arBuffer const=A0 __thiscall wxMBConv::cMB2WC(char const *)const "=20 > (?cMB2WC@wxMBCo > > nv@@QBE?BVwxWCharBuffer@@PBD@Z)" imported > > =A0=A0=A0=A0 [exec] make: *** [wx4j.dll] Error 1120 > > =A0=A0=A0=A0 [exec] wxxrc.lib(xh_spin.obj) : error LNK2001: unresolved=20= > external symbol " > > __declspec(dllimport) public: __thiscall=20 > wxSpinButtonBase::wxSpinButtonBase(void > > )" (__imp_??0wxSpinButtonBase@@QAE@XZ) > > =A0=A0=A0=A0 [exec] wx4j.dll : fatal error LNK1120: 1 unresolved = externals I don't have the slightest idea what's causing this, sorry. You'll=20 have to debug on your own. -Dave |