Thread overview
Beginner bud problem
Oct 24, 2006
notknown
Oct 24, 2006
Carlos Santander
Oct 24, 2006
notknown
Oct 25, 2006
notknown
Oct 24, 2006
notknown
Oct 25, 2006
notknown
October 24, 2006
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.
October 24, 2006
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
October 24, 2006
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
October 24, 2006
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.
October 24, 2006
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.
October 24, 2006
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
October 24, 2006
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
October 25, 2006
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!
October 25, 2006
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'..