[Wxlua-users] bakefile generation

2006-02-03 Thread k. holwerda

Hi Francesco,

How do i generate using nakefile.

I did get the latest bakefile version, and yours, copied what i thought 
would be needed into the othere.

Bad luck, i get errors hen calling bakefile_gen.

That is windows.

How can i organize a proper bakefile generator?

Klaas

--
Unclassified



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [Wxlua-users] Re: Why wxluasetup.h.in and wxluasetup.h ?

2006-02-03 Thread John Labenski
On 2/3/06, k. holwerda [EMAIL PROTECTED] wrote:
 But still when wxbindstc also depends on
 wxluasetup.h
 better use one wxluasetup.h in:
 modules/setup
 which both bindings modules do use.

As I said, this should not be a requirement for the wxstc binding. The
#include wxluasetup.h is hardcoded into the genwxbind.lua generator.
It can easily be removed and I will do that now.

 This is actually what i saw today in apps.bkl ??

 !-- always use wxLua's official wxluasetup.h --
 include$(WXLUA_BASEDIR)/modules/setup/include

These just follow the C++ code to make it compile, this is probably a typo.

-John


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [Wxlua-users] Re: bakefile generation

2006-02-03 Thread klaas.holwerda

Francesco Montorsi wrote:


k. holwerda ha scritto:


Hi Francesco,

How do i generate using nakefile.

I did get the latest bakefile version, and yours, copied what i 
thought would be needed into the othere.

Bad luck, i get errors hen calling bakefile_gen.

That is windows.


which error did you get ?


I don't know, i was at work.
will try again, can you tell me the link to your bakefile once more, can 
not find it.


Also i did add wxluacan sample, i could not generate the makefile with 
bakefile.

But did try to get it into shape into apps.bkl and options.bkl

Could you have a look at it, and try to generate the makefile for me.

In the mean time i can try to get bakefile up and running.

Thanks,

Klaas





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


[Wxlua-users] Re: bakefile generation

2006-02-03 Thread Francesco Montorsi

klaas.holwerda ha scritto:

Francesco Montorsi wrote:


k. holwerda ha scritto:


Hi Francesco,

How do i generate using nakefile.

I did get the latest bakefile version, and yours, copied what i 
thought would be needed into the othere.

Bad luck, i get errors hen calling bakefile_gen.

That is windows.


which error did you get ?


I don't know, i was at work.
will try again, can you tell me the link to your bakefile once more, can 
not find it.

  http://www.geocities.com/f18m_cpp217828/frm-bakefile.tar.gz




Also i did add wxluacan sample, i could not generate the makefile with 
bakefile.

But did try to get it into shape into apps.bkl and options.bkl

Could you have a look at it, and try to generate the makefile for me.
Sure: I've just committed in the makefiles updated with the new target. 
Probably the error you got was because a little typo in options.bkl... 
for the rest the bakefiles were perfect :)


I'm getting some link errors but hopefully I'll solve them very soon.


Francesco



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


[Wxlua-users] Re: bakefile generation

2006-02-03 Thread Francesco Montorsi

klaas.holwerda ha scritto:

klaas.holwerda wrote:



which error did you get ?



I don't know, i was at work.
will try again, can you tell me the link to your bakefile once more, 
can not find it.


Oke,  putting the next on top of the lattest bakefile on window,  i get 
the error below.

  www.geocities.com/f18m_cpp217828/frm-bakefile.tar.gz

[11/23] generating autoconf from .\wxlua.bkl
error: Failed to set variable '__remove_cmd' to value '$('(cd %s ; %s 
%s)' % (__
dstdir, __uprg,  ' '.join(removePathFromFilename(x) for x in 
safeSplit(__files))

))'
[bakefile_gen] error: bakefile exited with error

are you sure you overwrote the entire src/ rules/ and output/ folders ?

BTW I'm going to test bakefile on win32 very soon.
I'll let you know,
Francesco



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


[Wxlua-users] Re: bakefile generation

2006-02-03 Thread Francesco Montorsi

Francesco Montorsi ha scritto:

I'm getting some link errors but hopefully I'll solve them very soon.

Fixed; now I can run wxluacan and it works nicely and smoothly ;)

Francesco



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [Wxlua-users] wxluacan as namespace

2006-02-03 Thread klaas.holwerda

John Labenski wrote:


On 2/3/06, klaas.holwerda [EMAIL PROTECTED] wrote:
 


Hi Guys,

Thanks for makes the wxluacan corrections, it indeed works nice.
But to bad, there is a problem.
I used wx as namespace to start with, and this works correctly.
   



heh. I can't get the wxLua app to work in MSW using VC Express 2005.
It doesn't want to run the wxModule that loads the bindings.
 

Maybe that is the same problem i had first with all those bindings, it 
is not linked in i think.
For some reason, if a module with bindings is not used somehow directly 
in the application, it is not linked in.

I put a breakpoint on that wxModule binding and it did not arrive there.

 


I'll take a look at it.
 


Thanks.

Allow me to ask a question.
I think it would be cool to wxCanObjScript working.
I am thinking of deriving the wxCanvasObj from wxEvtHandler, and that 
way sent and event to wxLua to draw the object and another to Hittest 
the object.
But maybe that is way to complex. And how to intercept those two 
functions in wxlua m_script of the object.

In principle m_script in the C++ object, should contain two functions.
On with input parameter a wxDC* etc. and this one is used for  drawing.
The other Is IsHit( x, y etc. ) and is used for hit testing, and return 
true to C++ if hit.


Now do you have any idea on how to best call those function in m_script 
from the coresponding C++ functions?


The next step is of course to have the whole derived wxCanObj defined in 
a lua script.

But one step first ;-)

Thanks,

Klaas














---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


[Wxlua-users] wxModule fails to run in MSVC 2005 Express

2006-02-03 Thread John Labenski
The library wxbindstc has a wxModule in it and unfortunately the
OnInit() function is not run. I suspect that the linker is throwing
away the whole library since it's not used.

Just to refresh, each binding has a wxModule that adds itself to a
list of bindings in wxLuaBinding. See the bottom of
wxbind/src/wx_classes.cpp and wxbindstc/src/wxstc_classes.cpp.

The only solution that seems to work is to add a C function that
explicitly adds the binding. This requires that in everybody's
wxApp::OnInit or at least before the first use of wxLua they call each
C binding function to initialize it. Any problems with getting rid of
the wxModule way and adding the C functions to put this initialization
problem behind us?

There is one catch, it's hard to #include wxbind/include/wxbind.h
since it #includes wxluasetup.h so you have to add the path to that
as well, even though you don't really need it. A simple way around
that is to use extern, is this too unprofessional?

extern void wxLuaBindingInit_wx();
extern void wxLuaBindingInit_wxstc();

MyApp::OnInit()
{
wxLuaBindingInit_wx();
wxLuaBindingInit_wxstc();
...
}

Regards,
John Labenski


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users