www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Beginner bud problem

reply notknown <notknown none.com> writes:
Hey,

I have wxd in /home/me/D/wxd/
I have project in /home/me/D/DayBook/ containing daybook.d only

Just cant get it to compile, finding the right parameters for bud.

Is there very simple tutorial how to do this:
Just compile my files only, no compiling wxd files.
Include libraries libwxd.a and libwxc.a from wxd directory.
Oct 24 2006
next sibling parent reply Carlos Santander <csantander619 gmail.com> writes:
notknown escribiˇ:
 Hey,
 
 I have wxd in /home/me/D/wxd/
 I have project in /home/me/D/DayBook/ containing daybook.d only
 
 Just cant get it to compile, finding the right parameters for bud.
 
 Is there very simple tutorial how to do this:
 Just compile my files only, no compiling wxd files.
 Include libraries libwxd.a and libwxc.a from wxd directory.

wxd comes with sample Makefiles. What I do is copy one of them into my project folder and change names/paths accordingly. And then just "make". -- Carlos Santander Bernal
Oct 24 2006
parent reply notknown <notknown none.com> writes:
Carlos Santander kirjoitti:
 notknown escribiˇ:
 Hey,

 I have wxd in /home/me/D/wxd/
 I have project in /home/me/D/DayBook/ containing daybook.d only

 Just cant get it to compile, finding the right parameters for bud.

 Is there very simple tutorial how to do this:
 Just compile my files only, no compiling wxd files.
 Include libraries libwxd.a and libwxc.a from wxd directory.

wxd comes with sample Makefiles. What I do is copy one of them into my project folder and change names/paths accordingly. And then just "make".

Okay, I actually have working SConstruct file but wanted to try build because it sounds the official D 'make' system.
Oct 24 2006
parent reply Chris Nicholson-Sauls <ibisbasenji gmail.com> writes:
notknown wrote:
 Carlos Santander kirjoitti:
 
 notknown escribiˇ:

 Hey,

 I have wxd in /home/me/D/wxd/
 I have project in /home/me/D/DayBook/ containing daybook.d only

 Just cant get it to compile, finding the right parameters for bud.

 Is there very simple tutorial how to do this:
 Just compile my files only, no compiling wxd files.
 Include libraries libwxd.a and libwxc.a from wxd directory.

wxd comes with sample Makefiles. What I do is copy one of them into my project folder and change names/paths accordingly. And then just "make".

Okay, I actually have working SConstruct file but wanted to try build because it sounds the official D 'make' system.

Its not so much the 'official' system, so much as its tailor-suited (and written /in/ D, which makes a nice showcase). If SCons is working for you right now, I'd stick with it for the moment. (I used SCons myself before Build came along. Its pretty darned effective.) -- Chris Nicholson-Sauls
Oct 24 2006
parent notknown <notknown none.com> writes:
Chris Nicholson-Sauls kirjoitti:
 notknown wrote:
 Carlos Santander kirjoitti:

 notknown escribiˇ:

 Hey,

 I have wxd in /home/me/D/wxd/
 I have project in /home/me/D/DayBook/ containing daybook.d only

 Just cant get it to compile, finding the right parameters for bud.

 Is there very simple tutorial how to do this:
 Just compile my files only, no compiling wxd files.
 Include libraries libwxd.a and libwxc.a from wxd directory.

wxd comes with sample Makefiles. What I do is copy one of them into my project folder and change names/paths accordingly. And then just "make".

Okay, I actually have working SConstruct file but wanted to try build because it sounds the official D 'make' system.

Its not so much the 'official' system, so much as its tailor-suited (and written /in/ D, which makes a nice showcase). If SCons is working for you right now, I'd stick with it for the moment. (I used SCons myself before Build came along. Its pretty darned effective.) -- Chris Nicholson-Sauls

Okay, will use scons. Further question with bud would have been how to use the 'wx-config--libs'..
Oct 24 2006
prev sibling parent reply Chris Nicholson-Sauls <ibisbasenji gmail.com> writes:
notknown wrote:
 Hey,
 
 I have wxd in /home/me/D/wxd/
 I have project in /home/me/D/DayBook/ containing daybook.d only
 
 Just cant get it to compile, finding the right parameters for bud.
 
 Is there very simple tutorial how to do this:
 Just compile my files only, no compiling wxd files.
 Include libraries libwxd.a and libwxc.a from wxd directory.

In file build.brf try writing: # daybook.d # libwxd.a # libwxc.a # # -clean # -Xwxd # # -I/home/me/D/wxd Then run the command line, from within /home/me/D/DayBook: bud build I think that should be enough. -- Chris Nicholson-Sauls
Oct 24 2006
next sibling parent notknown <notknown none.com> writes:
Chris Nicholson-Sauls kirjoitti:
 notknown wrote:
 Hey,

 I have wxd in /home/me/D/wxd/
 I have project in /home/me/D/DayBook/ containing daybook.d only

 Just cant get it to compile, finding the right parameters for bud.

 Is there very simple tutorial how to do this:
 Just compile my files only, no compiling wxd files.
 Include libraries libwxd.a and libwxc.a from wxd directory.

In file build.brf try writing: # daybook.d # libwxd.a # libwxc.a # # -clean # -Xwxd # # -I/home/me/D/wxd Then run the command line, from within /home/me/D/DayBook: bud build I think that should be enough. -- Chris Nicholson-Sauls

That almost works. /usr/bin/ld: cannot find -llibwxd collect2: ld returned 1 exit status Is there linux incompatibility in bud? Tried also wxd.a in place of libwxd.a => /usr/bin/ld: cannot find -lwxd collect2: ld returned 1 exit status It is not critical since I have scons working. But would be nice to get things work though and maybe someone else finds this useful too.
Oct 24 2006
prev sibling parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Chris Nicholson-Sauls wrote:

 In file build.brf try writing:
 # daybook.d
 # libwxd.a
 # libwxc.a
 #
 # -clean
 # -Xwxd
 #
 # -I/home/me/D/wxd
 
 Then run the command line, from within /home/me/D/DayBook: bud  build
 
 I think that should be enough.

For later versions of wxD, you will also need to set the wx platform. (-version=__WXMSW__ -version=ANSI, or whatever your wx-config says...) You can find the wxD values for these by looking in the autogenerated files: wxc/platform and wxc/encoding, but unfortunately D versions can't be imported to other modules so you need to add them all at commandline. I have no idea how to write something like "autoconf" in D, actually ? Support for Bud is on the TODO for wxD, but for now it uses DM/GNU Make. If anyone has a working barf file to build wxD, please send it to me... --anders
Oct 24 2006
parent notknown <notknown none.com> writes:
Anders F Bj÷rklund kirjoitti:
 Chris Nicholson-Sauls wrote:
 
 In file build.brf try writing:
 # daybook.d
 # libwxd.a
 # libwxc.a
 #
 # -clean
 # -Xwxd
 #
 # -I/home/me/D/wxd

 Then run the command line, from within /home/me/D/DayBook: bud  build

 I think that should be enough.

For later versions of wxD, you will also need to set the wx platform. (-version=__WXMSW__ -version=ANSI, or whatever your wx-config says...) You can find the wxD values for these by looking in the autogenerated files: wxc/platform and wxc/encoding, but unfortunately D versions can't be imported to other modules so you need to add them all at commandline. I have no idea how to write something like "autoconf" in D, actually ? Support for Bud is on the TODO for wxD, but for now it uses DM/GNU Make. If anyone has a working barf file to build wxD, please send it to me... --anders

Okay. I tried wxd some versions earlier and it had some crashing problems but now all those seem solved and it is usable, thanks for great work!
Oct 24 2006