Re: [wxhaskell-users] darcs patch: Initial wxWidgets 2.8.x's API Support

2008-01-31 Thread shelarcy
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 fixed that problem by latest my patch.
http://article.gmane.org/gmane.comp.lang.haskell.wxhaskell.general/425

And I noted that there is no alternative solution for that problem.
So I used previous mail's way.


Best Regards,


On Fri, 14 Dec 2007 01:40:56 +0900, shelarcy [EMAIL PROTECTED] wrote:
 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.

-- 
shelarcy shelarcyhotmail.co.jp
http://page.freett.com/shelarcy/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users


Re: [wxhaskell-users] darcs patch: Initial wxWidgets 2.8.x's API Support

2007-12-13 Thread shelarcy
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 shelarcyhotmail.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


Re: [wxhaskell-users] darcs patch: Initial wxWidgets 2.8.x's API Support

2007-12-12 Thread Eric Y. Kow
Hi,

Thanks.  I've pushed this in.

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

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?

-- 
Eric Kow
PGP Key ID: 08AC04F9


pgpAiJKJ5CXtr.pgp
Description: PGP signature
-
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