Hi Eric.

On Thu, 13 Dec 2007 06:53:58 +0900, Eric Y. Kow <[EMAIL PROTECTED]> wrote:
> By the way, the Makefile is still doing all this stuff when I do make
> install :
>
> out/wxdirect/wxdirect -s wxSTC-D3/stc.h --wxc wxc -o wxc
> parsing: wxSTC-D3/stc.h
> generating: wxc/include/stc_gen.h
> generating: wxc/src/stc_gen.cpp
> out/wxdirect/wxdirect -s wxSTC-D3/stc.h --wxc wxc -o wxc
> parsing: wxSTC-D3/stc.h
> generating: wxc/include/stc_gen.h
> generating: wxc/src/stc_gen.cpp
> /usr/bin/g++-4.0 [snip] -install_name 
> /usr/local/wxhaskell/lib/libwxc-mac2.6.3-0.10.1.dylib

I'm sorry about I didn't reply your previous mail for same problem.
I concentrated different problem. So I setted low priority to it.

> The annoying thing about this is that if I do sudo make install, the
> next time I run make, it fails because it can't overwrite the library.
> I either have to sudo rm the file, or sudo make clean.  Do you think
> you could have a look as to why?

I think stc.cpp's definition is cause of this problem.

stc.cpp includes stc_gen.cpp and stc_gen.cpp isn't in WXC-CORE.

// stc.cpp

extern "C"
{
#include "stc_gen.cpp"

// makefile
WXC-CORE= \
        (snip)
        mediactrl printout previewframe taskbaricon textstream stc

So stc.cpp requires to generate stc_gen.cpp, and "make" do that. Then
stc_gen.cpp is updated, so "make" recompile stc.cpp and build wxc library
again.

I changed makefile to remove wxstc from wxc building process, but wxc
doesn't change behaviour. So I thought above.


I think one solution is comment out or remove stc file generation part,
and undo your below previous patch to include auto-generated file.

http://article.gmane.org/gmane.comp.lang.haskell.wxhaskell.general/261

I think this is a reasonable solution. Because we generate file using
wxSTC-D3's header currently. We can't use wxSTC's original header file.

http://www.mail-archive.com/wxhaskell-users@lists.sourceforge.net/msg00068.html

And wxHaskell already includes a few auto-generated files. make doesn't
includes generation stage for those files, so we don't care about they
are auto-generated file now.


Does anyone have different idea?


Best Regards,

-- 
shelarcy <shelarcy    hotmail.co.jp>
http://page.freett.com/shelarcy/

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to