www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - wxd does not build

reply dolive <dolive89 sina.com> writes:
c:\wxd>set WXDIR=c:\wxWidgets-2.8.12
c:\wxd>make COMPILER=DMD LIBRARY=Phobos DFLAGS+=-d
make -C wxc WX_RELEASE
make[1]: Entering directory `/wxd/wxc'
g++ -D__DMD__  `wx-config --cxxflags` -O2 -Wall -c -o wx-release.o wx-release.cp
p
/bin/sh: wx-config: command not found
wx-release.cpp:6:21: fatal error: wx/defs.h: No such file or directory
compilation terminated.
make[1]: *** [wx-release.o] Error 1
make[1]: Leaving directory `/wxd/wxc'
make: *** [wxc/WX_RELEASE] Error 2


with dmd2.057 2.058, wxd0.16. wxd0.16-18 for winxp

thank's

dolive
Feb 22 2012
parent reply James Miller <james aatch.net> writes:
On 23 February 2012 18:19, dolive <dolive89 sina.com> wrote:
 c:\wxd>set WXDIR=3Dc:\wxWidgets-2.8.12
 c:\wxd>make COMPILER=3DDMD LIBRARY=3DPhobos DFLAGS+=3D-d
 make -C wxc WX_RELEASE
 make[1]: Entering directory `/wxd/wxc'
 g++ -D__DMD__ =C2=A0`wx-config --cxxflags` -O2 -Wall -c -o wx-release.o w=

 p
 /bin/sh: wx-config: command not found
 wx-release.cpp:6:21: fatal error: wx/defs.h: No such file or directory
 compilation terminated.
 make[1]: *** [wx-release.o] Error 1
 make[1]: Leaving directory `/wxd/wxc'
 make: *** [wxc/WX_RELEASE] Error 2


 with dmd2.057 2.058, wxd0.16. wxd0.16-18 for winxp

 thank's

 dolive

Hey, are you sure that the Makefile is using WXDIR? Try adding it to you PATH (or whatever the windows equivalent is) You should probably add it anyway, since `sh`will be trying to find wx-config in your path. -- James Miller
Feb 23 2012
parent dolive <dolive89 sina.com> writes:
James Miller д:

 On 23 February 2012 18:19, dolive <dolive89 sina.com> wrote:
 c:\wxd>set WXDIR=c:\wxWidgets-2.8.12
 c:\wxd>make COMPILER=DMD LIBRARY=Phobos DFLAGS+=-d
 make -C wxc WX_RELEASE
 make[1]: Entering directory `/wxd/wxc'
 g++ -D__DMD__  `wx-config --cxxflags` -O2 -Wall -c -o wx-release.o
wx-release.cp
 p
 /bin/sh: wx-config: command not found
 wx-release.cpp:6:21: fatal error: wx/defs.h: No such file or directory
 compilation terminated.
 make[1]: *** [wx-release.o] Error 1
 make[1]: Leaving directory `/wxd/wxc'
 make: *** [wxc/WX_RELEASE] Error 2


 with dmd2.057 2.058, wxd0.16. wxd0.16-18 for winxp

 thank's

 dolive

Hey, are you sure that the Makefile is using WXDIR? Try adding it to you PATH (or whatever the windows equivalent is) You should probably add it anyway, since `sh`will be trying to find wx-config in your path. -- James Miller

Thanks for your give directions, I did added c:\wxWidgets-2.8.12and c:\wxWidgets-2.8.12\lib\gcc_lib ,andor dmdbin , dmdlib path in windows envionment variables I've the following build wx: cd build\msw mingw32-make -f makefile.gcc BUILD=release build wxWidgets-2.8.12 ok, passed with a time of one hour, andor make up to many *.a file in \wxWidgets-2.8.12\lib\gcc_lib. I manual search wx-config in \wxWidgets-2.8.12, founded only wx-config.in and wx-config-inplace.in two relevant files. How do I solve this problem? Thanks for your give directions! -- dolive
Feb 23 2012