Doug Currie ha scritto:
> On Tuesday, December 26, 2006 Francesco Montorsi wrote: 
> 
>> Doug Currie ha scritto:
>>> In the midst of building 2.8.0.0 with wxstedit-1.2.4 with mingw and
>>> msys on WinXP using configure...
>>>
>>> When making wxstedit-1.2.4 I ran into the old problem of
>>> wxstedit-1.2.4\samples\stedit\wxstedit.rc  having paths such as
>>> "../../art/pencil.ico" that I must modify to "../art/pencil.ico" to
>>> make the build proceed.
>> I don't understand why that's required: wxstedit.rc indeed needs to use
>> ../.. to reference to the "art" directory... I don't understand why with
>> msys you'd need to use only a single ".."
> 
> The makefile is in a directory at the top level of the distribution;
> i.e., ../configure produces the Makefile line
I don't remember right now if wxCode bakefiles/autoconf stuff fully support the

    mkdir mybuild && cd mybuild && ../configure

trick. Calling configure in the root dir (./configure) doesn't solve the 
problem?


> srcdir = ..
> 
> and the make target is:
> 
> wxstedit_wxstedit_rc.o: $(srcdir)/./samples/stedit/wxstedit.rc
> 
> So, we are compiling
> 
> ..././samples/stedit/wxstedit.rc
I'd guess you meant .././samples/stedit/wxstedit.rc here

> 
> Now, pencil.ico is in
> 
> ..././art/pencil.ico
> 
> which is
> 
> .../art/pencil.ico
ok, thanks for the explanation.
To fix your problem we'd need to have something like

aaaaaaaa ICON "$(srcdir)/art/pencil.ico"

which is not allowed by other win32 compilers (and wouldn't work even with 
MSYS). We could complicate the build system adding a

#ifndef SRCDIR
     #define SRCDIR ../..
#endif

aaaaaaaa ICON SRCDIR/art/pencil.ico

and then define SRCDIR to be $(srcdir) for MSYS but I don't really know if 
other 
win32 compilers would like it.


Francesco



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to