Re: Gtk+ 3.0 and MS Windows

2011-03-24 Thread Maarten Bosmans
2011/3/23 Mikhail Titov :
> Maarten:
>
> Thanks for the link! By saying that I don't have OpenSUSE I implied that I'd 
> have to either use `alien` (with possible complication if any) or build it 
> myself on Ubuntu.

If you like, I have a python script (that works on both Linux and
Windows) that downloads a package with all dependencies and extracts
the binaries. Combined with the OBS automatically building the latest
packages, it makes keeping your Windows program up to date quite easy.

> I see there is even binary package for gtkmm2.99 hopefully they will move to 
> 3.0 soon.

AFAIK 2.99 is the latest release for gtkmm sofar.

> The weird point is that, when I try to build under MS Windows, I keep getting 
> useless (without anything between DECLS block) gdk/gdkenumtypes.h even if I 
> delete gdk/stamp-gdkenumtypes.h and rerun make though gtk/gtktypebuiltins.h 
> looks fine.

IIRC that file is autogenerated. This is one of the reasons building
on Windows is more difficult: you have to have (the correct version
of) all kind of tools on the build host installed, and that's easier
with Linux package management.

> Oh well, all looks like cross-comiplation is the only option for now.
>
> I don't know if there are many users developing with Gtk+ on MS Windows, but 
> it would be nice to at least make a link to that OpenSUSE archive as there 
> are no traces of binary package (even unofficial) on the main page for Gtk+ 
> 3.0.

That would be the call of Tor Lillqvist. He builds and manages the
zipped binaries on ftp.gnome.org. He did mention some time ago that
eventuallyt he'd like to switch to OBS for providing the 'official'
gnome binaries. May he's getting tired of keeping his msys install
running too ;-). He's also active on the mingw project on the
buildservice, so he is in a good place to decide.

> Mikhail

Maarten
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk+ 3.0 and MS Windows

2011-03-24 Thread John Stowers
On Thu, 2011-03-24 at 10:01 +0100, Maarten Bosmans wrote:
> 2011/3/23 Mikhail Titov :
> > Maarten:
> >
> > Thanks for the link! By saying that I don't have OpenSUSE I implied that 
> > I'd have to either use `alien` (with possible complication if any) or build 
> > it myself on Ubuntu.
> 
> If you like, I have a python script (that works on both Linux and
> Windows) that downloads a package with all dependencies and extracts
> the binaries. Combined with the OBS automatically building the latest
> packages, it makes keeping your Windows program up to date quite easy.

I would be interested in that script please.

John

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


RE: Gtk+ 3.0 and MS Windows

2011-03-24 Thread Mikhail Titov
Maarten:

Yes, if you have this script available it would be wonderful. The only 
shortcoming of these binaries from OpenSUSE that they lack dot lib files for MS 
linker and don't have property sheets that make life easier in Visual Studio 
IDE. Though both problems are doable as dot lib files can be generated and all 
properties can be set semi-manually with pkg-conf.

I'm not sure what is the overall goal for GTK+ for non-linux platform. Shall it 
be buildable under MS Windows or cross-compilation is the only planned 
strategy? In former case, I guess it makes sense to debug build process as I 
had all ./configure prerequisites satisfied. Though I feel like I'm on my own 
under MS Windows :-)

Unfortunately cross-compiling my entire project is not an option for me as base 
classes for DirectShow from Platform SDK that I use have a lot of MS specific 
code and I failed to build it even with MinGW. So I really hope that an 
opportunity to use MS compiler and linker out-of-box (like gtkmm 2) will be 
preserved.

Mikhail


> -Original Message-
> From: John Stowers [mailto:john.stowers.li...@gmail.com]
> Sent: Thursday, March 24, 2011 4:05 PM
> To: Maarten Bosmans
> Cc: Mikhail Titov; Gtk+ list
> Subject: Re: Gtk+ 3.0 and MS Windows
> 
> On Thu, 2011-03-24 at 10:01 +0100, Maarten Bosmans wrote:
> > 2011/3/23 Mikhail Titov :
> > > Maarten:
> > >
> > > Thanks for the link! By saying that I don't have OpenSUSE I implied
> that I'd have to either use `alien` (with possible complication if any)
> or build it myself on Ubuntu.
> >
> > If you like, I have a python script (that works on both Linux and
> > Windows) that downloads a package with all dependencies and extracts
> > the binaries. Combined with the OBS automatically building the latest
> > packages, it makes keeping your Windows program up to date quite easy.
> 
> I would be interested in that script please.
> 
> John


___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk+ 3.0 and MS Windows

2011-03-24 Thread jcupitt
On 24 March 2011 21:04, John Stowers  wrote:
> On Thu, 2011-03-24 at 10:01 +0100, Maarten Bosmans wrote:
>> If you like, I have a python script (that works on both Linux and
>> Windows) that downloads a package with all dependencies and extracts
>> the binaries. Combined with the OBS automatically building the latest
>> packages, it makes keeping your Windows program up to date quite easy.
>
> I would be interested in that script please.

I use jhbuild for this. You write a simple bit of xml saying what
packages your project depends on and it will download, patch,
configure, compile and install them for you automatically. I use it on
linux to cross-compile win32 applications, but I imagine it would work
on Windows as well, though very slowly.

I have the files for my project, plus a README, here:

  
https://github.com/jcupitt/build-win32/tree/8211330d76d992e69d47d9ae44aefc1d77d95ffe/7.24

There's an nsis thing that will automatically build a setup.exe as well.

John
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk+ 3.0 and MS Windows

2011-03-24 Thread jun louis
It's NOT difficult to Make Gtk+ 3.0 under Mingw with Gcc-4.5. But now, it's
not worked good enought.
I don't known what you need, may be this method can help you:

1. fetch dependance packages on
http://ftp.gnome.org/pub/GNOME/binaries/win32/
* gtk+-bundle_2.22.1-20101227_
win32.zip   => unzip to d:/gtk/
* glib-dev_2.28.1-1_win32.zip  => unzip to d:/gtk, replace old one
* glib_2.28.1-1_win32.zip  => unzip to d:/gtk, replace old one

2. fetch all source packages on http://ftp.gnome.org/pub/GNOME/sources/
* fetch new ATK src( I use atk-1.33.6 ) => unzip to
d:/gtk/src/atk-1.33.6/
* fetch new Gtk src( I use gtk+3.0.4 ) => unzip to
d:/gtk/src/gtk+-3.0.4/

3. compile ATK & GTK
   * fix pkg-config BUG on win32, only generate an script file:
pkg-config.sh
#!/bin/sh
if pkg-config "$@" > /dev/null 2>&1 ; then
res=true
else
res=false
fi
pkg-config "$@" | tr -d \\r && $res

* run msys.bat and set PATH
> export PKG_CONFIG=/the/path/you/generated/pkg-config.sh
> export PATH=$PATH:/d/gtk/bin
>
> cd /d/gtk/src/atk-1.33.6
> ./configure --prefix=/d/gtk
> make
> make install
>
> cd /d/gtk/src/gtk+-3.0.4
> ./configure --prefix=/d/gtk --enable-static=no --enable-shared=yes
> make
> make install

4. run gtk3-demo.exe
lots of BUGS not fixed.


2011/3/25 

> On 24 March 2011 21:04, John Stowers  wrote:
> > On Thu, 2011-03-24 at 10:01 +0100, Maarten Bosmans wrote:
> >> If you like, I have a python script (that works on both Linux and
> >> Windows) that downloads a package with all dependencies and extracts
> >> the binaries. Combined with the OBS automatically building the latest
> >> packages, it makes keeping your Windows program up to date quite easy.
> >
> > I would be interested in that script please.
>
> I use jhbuild for this. You write a simple bit of xml saying what
> packages your project depends on and it will download, patch,
> configure, compile and install them for you automatically. I use it on
> linux to cross-compile win32 applications, but I imagine it would work
> on Windows as well, though very slowly.
>
> I have the files for my project, plus a README, here:
>
>
> https://github.com/jcupitt/build-win32/tree/8211330d76d992e69d47d9ae44aefc1d77d95ffe/7.24
>
> There's an nsis thing that will automatically build a setup.exe as well.
>
> John
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


RE: Gtk+ 3.0 and MS Windows

2011-03-24 Thread Fan Chun-wei
Hi Mikhail,

You may want to try the VS2008 Project files in the $(srcroot)/build
/win32/vs9 folder, and VS2010 project files for gtk+-3.0.x are now under 
review for inclusion (the same holds for GLib 2.28.x and GTK+-2.24.x).

AFAIK, due to different release cycles, VS Project files are not yet in 
GDK-Pixbuf, ATK and Pango stable releases, but they are available in the 
latest unstable versions of GDK-Pixbuf and ATK, and is already upstream 
for Pango.  For GDK-Pixbuf 2.23.2, you may want to get a patch from 
BugZilla so that it will compile (sorry, search for my e-mail in BugZilla 
for a bug regarding GDK-Pixbuf-I can't recall the bug number as BugZilla 
is currently down), as under VS, all image loaders are built into the main 
library DLL.  The VS9 Project files are all in $(srcroot)/build/win32/vs9 
for those respective packages-be sure to see the README.txt's in that 
folder for each package, especially regarding gettext-runtime, which can 
be hard to build yourself under VS.

God Bless,
-Fan, Chun-wei


--- 11/3/25 (五),Mikhail Titov 寫道:

> 日期: 2011年3月25日,五,上午6:08
> Maarten:
> 
> Yes, if you have this script available it would be
> wonderful. The only shortcoming of these binaries from
> OpenSUSE that they lack dot lib files for MS linker and
> don't have property sheets that make life easier in Visual
> Studio IDE. Though both problems are doable as dot lib files
> can be generated and all properties can be set semi-manually
> with pkg-conf.
> 
> I'm not sure what is the overall goal for GTK+ for
> non-linux platform. Shall it be buildable under MS Windows
> or cross-compilation is the only planned strategy? In former
> case, I guess it makes sense to debug build process as I had
> all ./configure prerequisites satisfied. Though I feel like
> I'm on my own under MS Windows :-)
> 
> Unfortunately cross-compiling my entire project is not an
> option for me as base classes for DirectShow from Platform
> SDK that I use have a lot of MS specific code and I failed
> to build it even with MinGW. So I really hope that an
> opportunity to use MS compiler and linker out-of-box (like
> gtkmm 2) will be preserved.
> 
> Mikhail
> 
> 


  
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


RE: Gtk+ 3.0 and MS Windows

2011-03-24 Thread Mikhail Titov
All:

I apologize for confusion about gdk/gdkenumtypes.h . I forgot that I altered 
installation of perl. Those headers are created properly.

I completely forgot that MS Windows has a limited command line length. That 
causes gcc to fail with "gcc.exe: : No such file or directory" as command line 
was cut. So Mingw build _under MS Windows_ is broken unless @response files 
will be used to save on command line length.

Fan:

If I try to use experimental MS VC++ solution/projects, gdk-win32 dll gets 
built correctly. However when I try to build gdk project I get errors like 
following:

...
1>Linking...
1>gdk.def : error LNK2001: unresolved external symbol gdk_axis_use_get_type
1>gdk.def : error LNK2001: unresolved external symbol gdk_byte_order_get_type
...

Mikhail


-Original Message-
From: Fan Chun-wei [mailto:fanc...@yahoo.com.tw] 
Sent: Thursday, March 24, 2011 10:51 PM
To: Mikhail Titov
Cc: john.stowers.li...@gmail.com; mkbosm...@gmail.com; 'Gtk+ list'
Subject: RE: Gtk+ 3.0 and MS Windows

Hi Mikhail,

You may want to try the VS2008 Project files in the $(srcroot)/build
/win32/vs9 folder, and VS2010 project files for gtk+-3.0.x are now under review 
for inclusion (the same holds for GLib 2.28.x and GTK+-2.24.x).

AFAIK, due to different release cycles, VS Project files are not yet in 
GDK-Pixbuf, ATK and Pango stable releases, but they are available in the latest 
unstable versions of GDK-Pixbuf and ATK, and is already upstream for Pango.  
For GDK-Pixbuf 2.23.2, you may want to get a patch from BugZilla so that it 
will compile (sorry, search for my e-mail in BugZilla for a bug regarding 
GDK-Pixbuf-I can't recall the bug number as BugZilla is currently down), as 
under VS, all image loaders are built into the main library DLL.  The VS9 
Project files are all in $(srcroot)/build/win32/vs9 for those respective 
packages-be sure to see the README.txt's in that folder for each package, 
especially regarding gettext-runtime, which can be hard to build yourself under 
VS.

God Bless,
-Fan, Chun-wei


--- 11/3/25 (五),Mikhail Titov 寫道:

> 日期: 2011年3月25日,五,上午6:08
> Maarten:
> 
> Yes, if you have this script available it would be wonderful. The only 
> shortcoming of these binaries from OpenSUSE that they lack dot lib 
> files for MS linker and don't have property sheets that make life 
> easier in Visual Studio IDE. Though both problems are doable as dot 
> lib files can be generated and all properties can be set semi-manually 
> with pkg-conf.
> 
> I'm not sure what is the overall goal for GTK+ for non-linux platform. 
> Shall it be buildable under MS Windows or cross-compilation is the 
> only planned strategy? In former case, I guess it makes sense to debug 
> build process as I had all ./configure prerequisites satisfied. Though 
> I feel like I'm on my own under MS Windows :-)
> 
> Unfortunately cross-compiling my entire project is not an option for 
> me as base classes for DirectShow from Platform SDK that I use have a 
> lot of MS specific code and I failed to build it even with MinGW. So I 
> really hope that an opportunity to use MS compiler and linker 
> out-of-box (like gtkmm 2) will be preserved.
> 
> Mikhail
> 
> 


  

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Drawing a line in the GtkTable cell

2011-03-24 Thread ikorot
Hi, ALL,What I'm looking for is this:3-4where 3 and 4 are located in their own GtkTable cell as GtkLabel and the division line will be in it's ownGtkTable cell.Is there an easy way to do that?-Original Message-
From: iko...@earthlink.net
Sent: Mar 23, 2011 5:38 PM
To: Ian Liu Rodrigues 
Subject: Re: Drawing a line in the GtkTable cell

Hi, Ian,I just tried the suggestion. It's not exactly what I want. I will need to talk to my customer about that.Originally the screen was designed so that there should be the thick black line between 2 numbers.It would've been look like this:3-4Do you know how to make something like this?Thank you.-Original Message-
From: Ian Liu Rodrigues 
Sent: Mar 22, 2011 5:34 PM
To: iko...@earthlink.net
Subject: Re: Drawing a line in the GtkTable cell

Pack one of GtkHSeparator or GtkVSeparator ;-)Ian L.On Tue, Mar 22, 2011 at 7:52 PM,   wrote:

Hi,
I need your expertise one more time.

I need to draw a line in the cell of GtkTable.
What is the best and quickest way to achieve it?

Thank you.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list