Re: Notes on MinGW build

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Milan Babuskov-5
Michael,

Milan Babuskov wrote:

> 1. windres gets called without wxWidgets include path, so it cannot find
> wx/msw/wx.rc
>
> It works when manually called like this:
> windres.exe -i../res/flamerobin.rc -oflamerobin_flamerobin_rc.o
> --include-dir /usr/local/include/wx-2.6
>
> I wrote a more precise awk script that does the job:
>
> windres.exe -i../res/flamerobin.rc -oflamerobin_flamerobin_rc.o
> `wx-config --cxxflags | awk '{x=split($0,s); for (n=1;n<=x;++n) if (s[n]
> ~ "-I") r = r " --include-dir " s[n]; print r }' | sed s/-I//g`
>
> This small awk script finds sections starting with -I in wx-config and
> adds --include-dir to it.
>
> Is there some way we can add this to build process. I supposed that
> Makefile.in is the right place, but I see it is generated by bakefile.
> Can we somehow add it?

Any ideas?

I hate not having various cursors (just an arrow all the time) in
Windows version. I run windres by hand currenty, but I forget sometimes
and get annoyed. :(

--
Milan Babuskov
http://fbexport.sourceforge.net
http://www.flamerobin.org



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Michael Hieke-2
Milan,

sorry for not following up on that, I somehow missed that there are
problems with your build.  Do you use MSYS and configure, or do you use
the makefile.mgw build?

Thanks

--
Michael Hieke


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Milan Babuskov-2
Michael Hieke wrote:
> sorry for not following up on that, I somehow missed that there are
> problems with your build.  Do you use MSYS and configure, or do you use
> the makefile.mgw build?

MSYS and configure. Here's my original posting:


I successfully built FR with MinGW. I wasn't sure how to proceed, so I
used the "configure" script, and hoped that it would autodetect
everything. Few remarks:

1. windres gets called without wxWidgets include path, so it cannot find
wx/msw/wx.rc

It works when manually called like this:
windres.exe -i../res/flamerobin.rc -oflamerobin_flamerobin_rc.o
--include-dir /usr/local/include/wx-2.6

Of course, wx could be installed in some other location, so we need to
detect it. Here's a simple search&replace of -I given by wx-config with
--include-dir:

windres.exe -i../res/flamerobin.rc -oflamerobin_flamerobin_rc.o
`wx-config --cxxflags | sed "s/-[^I]*. //g" | sed "s/-I/ --include-dir /g"`

[watch the line wraps if you copy/paste]

That is a simple "sed" replace, but it would fail if first item returned
by wx-config is not -I. So, I wrote a more precise awk script that does
the job (note: this is a one-liner, watch for line wraps):

windres.exe -i../res/flamerobin.rc -oflamerobin_flamerobin_rc.o
`wx-config --cxxflags | awk '{x=split($0,s); for (n=1;n<=x;++n) if (s[n]
~ "-I") r = r " --include-dir " s[n]; print r }' | sed s/-I//g`

This small awk script finds sections starting with -I in wx-config and
adds --include-dir to it.

Is there some way we can add this to build process. I supposed that
Makefile.in is the right place, but I see it is generated by bakefile.
Can we somehow add it?

--
Milan Babuskov
http://www.flamerobin.org



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Michael Hieke-2
Milan,

works for me.  I created FR from scratch, using the following commands:

- cd $WXWIN
- mkdir gccd && cd gccd
- sh ../configure --enable-debug --disable-shared --disable-unicode \
   --disable-compat24
- make && cd contrib/src/stc && make
- cd $FR_HOME
- mkdir gccd && cd gccd
- sh ../configure --enable-debug \
   --with-wx-config=/D/wxWidgets/gccd/wx-config
- make

and the cursors for drag+drop not possible, editor caret and splitter
sizing are all there (which cursors are missing?), even though the
windres command line has no include for $(WXWIN)/include/wx/msw/wx.rc -
the Makefile says

flamerobin_flamerobin_rc.o: $(srcdir)/res/flamerobin.rc \
                             $(FLAMEROBIN_ODEP)
     $(RESCOMP) -i$< -o$@  $(____flamerobin_WXDEBUG_p_2) \
             $(____flamerobin_DEBUGFLAG_p_2) \
             --define IBPP_GCC $(__IBPPPLATFORMDEFINE_p_3) \
             --include-dir $(srcdir)/src \
             --include-dir $(srcdir)/src/ibpp \
             --include-dir $(srcdir)/res

I use the following tools:

   gcc version 3.4.2 (mingw-special)
   GNU bash, version 2.04.0(1)-release (i686-pc-msys)
   GNU windres 2.15.91 20040904

Have you tried with the --with-wx-config switch?

Thanks

--
Michael Hieke


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Milan Babuskov-2
Michael Hieke wrote:
> and the cursors for drag+drop not possible, editor caret and splitter
> sizing are all there (which cursors are missing?)

The most annoying one is the hand cursor shown when you hover over links
on html pages. I still don't see it. Can you confirm?

Mind you, "editor caret", "splitter sizing" and "DnD not possible" are
icons provided by Windows. For example, hourglass also falls into that
category. If you have it, then prehaps WinXP does provides the "hand"
too, while Win98 does not? Strange, but possible.

>, even though the
> windres command line has no include for $(WXWIN)/include/wx/msw/wx.rc -
> the Makefile says
>
> flamerobin_flamerobin_rc.o: $(srcdir)/res/flamerobin.rc \
>                             $(FLAMEROBIN_ODEP)
>     $(RESCOMP) -i$< -o$@  $(____flamerobin_WXDEBUG_p_2) \
>             $(____flamerobin_DEBUGFLAG_p_2) \
>             --define IBPP_GCC $(__IBPPPLATFORMDEFINE_p_3) \
>             --include-dir $(srcdir)/src \
>             --include-dir $(srcdir)/src/ibpp \
>             --include-dir $(srcdir)/res

My point exactly. I does not have the path to wx.rc which contains the
icons. It needs --include-dir /usr/local/include/wx-2.6 in my case (When
compiling wx, the prefix was set to /usr/local).

> I use the following tools:
>
>   gcc version 3.4.2 (mingw-special)
>   GNU bash, version 2.04.0(1)-release (i686-pc-msys)
>   GNU windres 2.15.91 20040904
>
> Have you tried with the --with-wx-config switch?

I haven't until now, but I tried and it doesn't work. I don't think that
the problem is in the tools, but in makefile.

--
Milan Babuskov
http://fbexport.sourceforge.net
http://www.flamerobin.org



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Michael Hieke-2
Milan,

Milan Babuskov wrote:

> The most annoying one is the hand cursor shown when you hover over
> links on html pages. I still don't see it. Can you confirm?

It's there.

> Mind you, "editor caret", "splitter sizing" and "DnD not possible"
> are icons provided by Windows. For example, hourglass also falls into
> that category. If you have it, then prehaps WinXP does provides the
> "hand" too, while Win98 does not? Strange, but possible.

I will try in a VMware Win95 that I have.

> My point exactly. I does not have the path to wx.rc which contains
> the icons. It needs --include-dir /usr/local/include/wx-2.6 in my
> case (When compiling wx, the prefix was set to /usr/local).

That's understood, I just see no problem on Windows 2000.

> I haven't until now, but I tried and it doesn't work. I don't think
> that the problem is in the tools, but in makefile.

Ok, I will see what I can do.  The additional include shouldn't be a
problem in any case.

Thanks

--
Michael Hieke


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Michael Hieke-2
I wrote:

>> Mind you, "editor caret", "splitter sizing" and "DnD not possible"
>> are icons provided by Windows. For example, hourglass also falls
>> into that category. If you have it, then prehaps WinXP does
>> provides the "hand" too, while Win98 does not? Strange, but
>> possible.
>
> I will try in a VMware Win95 that I have.

The hand cursor is not there.  Now that I know how to reproduce it, I
will look into fixing the problem.

Thanks

--
Michael Hieke


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Michael Hieke-2
I wrote:

> The hand cursor is not there.  Now that I know how to reproduce it, I
> will look into fixing the problem.

The autoconf backend of Bakefile takes include directories from
wx-config.  There seems to be no way to get a windres-compatible set of
include-directories from wx-config.  No idea how to fix this.

Building with makefile.mgw should work, though.

Thanks

--
Michael Hieke


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Milan Babuskov-5
Michael Hieke wrote:
> The autoconf backend of Bakefile takes include directories from
> wx-config.  There seems to be no way to get a windres-compatible set of
> include-directories from wx-config.

Use my awk script:

wx-config --cxxflags | awk '{x=split($0,s); for (n=1;n<=x;++n) if (s[n]
~ "-I") r = r " --include-dir " s[n]; print r }' | sed s/-I//g

It's a one-liner, watch for line wrap.

--
Milan Babuskov
http://fbexport.sourceforge.net
http://www.flamerobin.org



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Michael Hieke-2
Milan,

Milan Babuskov wrote:

> Use my awk script:

That is not possible AFAICS.  Makefile.in is created by bakefile_gen, so
a change to the autoconf backend would be necessary.  Everything else
you can do with a script on your system too, patch Makefile.in before
you run configure.

Thanks

--
Michael Hieke


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Milan Babuskov-5
In reply to this post by Michael Hieke-2
Michael Hieke wrote:

>>> Mind you, "editor caret", "splitter sizing" and "DnD not possible"
>>> are icons provided by Windows. For example, hourglass also falls
>>> into that category. If you have it, then prehaps WinXP does
>>> provides the "hand" too, while Win98 does not? Strange, but
>>> possible.
>>
>> I will try in a VMware Win95 that I have.
>
> The hand cursor is not there.  Now that I know how to reproduce it, I
> will look into fixing the problem.

Thanx. It's one of the small things that mean a lot to me.

--
Milan Babuskov
http://fbexport.sourceforge.net
http://www.flamerobin.org



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Milan Babuskov-5
In reply to this post by Michael Hieke-2
Michael Hieke wrote:
> That is not possible AFAICS.  Makefile.in is created by bakefile_gen, so
> a change to the autoconf backend would be necessary.  Everything else
> you can do with a script on your system too, patch Makefile.in before
> you run configure.

I see. Well, thanx anyway.

--
Milan Babuskov
http://fbexport.sourceforge.net
http://www.flamerobin.org



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Michael Hieke-2
Milan,

there has been a posting on wx-users this morning, about that very same
problem.  John Ratliff wrote:

> wxWidgets docs tell me to add #include "wx/msw/wx.rc" to my windows
> RC file. I don't know what this does exactly other than getting me a
> default winxp manifest file, but I thought I might go ahead and do
> it.
>
> My problem is with windres. How can I get the include path for
> wxWidgets so I can include wx/msw/wx.rc? wx-config --cppflags gives
> extraneous things like -mthreads which windres doesn't understand.
> Similarly, the wxWidgets automake macros (wxwin.m4) included seem to
> define only the headers as part of the CPPFLAGS, which again includes
> -mthreads.
>
> Is there a way to get the include path for automake so I can give it
> to windres? In my other projects, I just didn't include wx/msw/wx.rc.
> Is it really important that I do?

I will keep an eye on it, and if there is a solution I will try to
implement it for FR.

Thanks

--
Michael Hieke


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Notes on MinGW build

Milan Babuskov-2
Michael Hieke wrote:
> there has been a posting on wx-users this morning, about that very same
> problem.  John Ratliff wrote:
>
> I will keep an eye on it, and if there is a solution I will try to
> implement it for FR.

Ok, thanx.

--
Milan Babuskov
http://www.flamerobin.org



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel