Building of win32 applications

View: New views
12 Messages — Rating Filter:   Alert me  

Building of win32 applications

by Petr Hracek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello *,

I am trying to build up some gtkmm applications under Windows environtment
with DevC and MinGW interface and it works successfully.
Unfortunatelly on my windows machine I have installed
Cygwin right now because of my work needs them.

When I install DevC and MinGW then I can not run Cygwin anymore. Did you
met with this?

I have only one question on you:
What do you prefer? Building under MinGW and DevC or building under Cygwin?
What are you experiences?
E.g. Gnucash, Scribus, Inkscape or other programs does not use Cygwin. Do
you know how they are ported? What are using - another way?

Thank you in advance

Petr

______________________________________
Nakupte vše od MP3 přehrávače po auto za ceny již od 1 Kč! Nejlepší nástroj
pro rychlé a bezpečné obchodování na internetu. Více než  200 000 atraktivních
aukcí. Dražte také!

http://aukro.tiscali.cz/



_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Building of win32 applications

by Damon Register :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Petr Hracek wrote:
> I am trying to build up some gtkmm applications under Windows environtment
> with DevC and MinGW interface and it works successfully.
I am doing almost the same, though I am not using DevC.

> Unfortunatelly on my windows machine I have installed
> Cygwin right now because of my work needs them.
>
> When I install DevC and MinGW then I can not run Cygwin anymore. Did you
> met with this?
That is strange.  My work machine has both MinGW and Cygwin and I have not
had any trouble with this.

> I have only one question on you:
> What do you prefer? Building under MinGW and DevC or building under Cygwin?
> What are you experiences?
> E.g. Gnucash, Scribus, Inkscape or other programs does not use Cygwin. Do
> you know how they are ported? What are using - another way?
That's five questions. Which one do you want :-) ?
I suppose that would depend on what you want.  are these graphical or
console applications?  With MinGW you get native Windows programs.  With
a graphical program on Cygwin you would be using X11.  Since my programs
are graphical and I like the idea of having a native Windows program, I
am using MinGW with gtkmm and glade to develop the GUIs.

Damon Register
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Parent Message unknown Re: Building of win32 applications

by Petr Hracek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, I will try to explain you detailly.
I would like to develop some GUI interfaces (not only one).
Program could be runnable as from Linux as from Windows environtment
>Petr Hracek wrote:
>>    I am trying to build up some gtkmm applications under Windows environtment
>>    with DevC and MinGW interface and it works successfully.
>I am doing almost the same, though I am not using DevC.
What are you using for developing? Cygwin?
>>    Unfortunatelly on my windows machine I have installed
>>    Cygwin right now because of my work needs them.
>>    When I install DevC and MinGW then I can not run Cygwin anymore. Did
you
>>    met with this?
>That is strange.  My work machine has both MinGW and Cygwin and I have not
>had any trouble with this.
>>   I have only one question on you:
>>    What do you prefer? Building under MinGW and DevC or building under
Cygwin?
>>    What are you experiences?
>>    E.g. Gnucash, Scribus, Inkscape or other programs does not use Cygwin.
Do
>>    you know how they are ported? What are using - another way?
>That's five questions. Which one do you want :-) ?
>I suppose that would depend on what you want.  are these graphical or
>console applications?  With MinGW you get native Windows programs.  With
>a graphical program on Cygwin you would be using X11.  Since my programs
>are graphical and I like the idea of having a native Windows program, I
>am using MinGW with gtkmm and glade to develop the GUIs.
You mean that when I will develop GUIs I do not need DevC? Only MinGW (of
course with gtkmm and glade) is neccessary? Am I right?


______________________________________
Nakupte vše od MP3 přehrávače po auto za ceny již od 1 Kč! Nejlepší nástroj
pro rychlé a bezpečné obchodování na internetu. Více než  200 000 atraktivních
aukcí. Dražte také!

http://aukro.tiscali.cz/



_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Building of win32 applications

by Robert Pearce-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 09 July 2008, Petr Hracek wrote:
> You mean that when I will develop GUIs I do not need DevC? Only MinGW (of
> course with gtkmm and glade) is neccessary? Am I right?

That depends a little on your definition of "necessary". However, when I
develop GUI applications for Linux I don't use any integrated package. I edit
with Nedit or Vim, I build with (auto)make. I don't even use Glade,
preferring to code up the GTKmm stuff by hand. I see no reason the same
approach couldn't be used on Windows - Notepad++ or similar for editing and
the MinGW environment for make. That said, DevCpp was an easier way to get
all the dependencies established when I tried porting an application over.

HTH,
Rob
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Building of win32 applications

by Damon Register :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Petr Hracek wrote:
> Sorry, I will try to explain you detailly.
> I would like to develop some GUI interfaces (not only one).
> Program could be runnable as from Linux as from Windows environtment
so it is a cross platform app.  I suppose your choice would still depend
on what your app does and uses.  Though I am not certain, I wonder if
using MinGW might increase the risk of having code that would be Windows
specific while using Cygwin might lead you to code that is more unix
generic.  Perhaps someone else can answer that better than I could.

> You mean that when I will develop GUIs I do not need DevC? Only MinGW (of
> course with gtkmm and glade) is neccessary? Am I right?
Correct, although I suppose that DevC provides some conveniences that
make the development easier.  As Rob Pearce said, you can do without
Glade but I am no expert at hand coding and have no desire to develop
that way so for me, Glade is necessary.  So, with MinGW, gtkmm and Glade
I can do well enough with my development.

Damon Register
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Building of win32 applications

by Jamiil Abd Al Qadir-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Damon Register wrote:

> Petr Hracek wrote:
>> Sorry, I will try to explain you detailly.
>> I would like to develop some GUI interfaces (not only one).
>> Program could be runnable as from Linux as from Windows environtment
> so it is a cross platform app.  I suppose your choice would still depend
> on what your app does and uses.  Though I am not certain, I wonder if
> using MinGW might increase the risk of having code that would be Windows
> specific while using Cygwin might lead you to code that is more unix
> generic.  Perhaps someone else can answer that better than I could.
>
>> You mean that when I will develop GUIs I do not need DevC? Only MinGW
>> (of
>> course with gtkmm and glade) is neccessary? Am I right?
> Correct, although I suppose that DevC provides some conveniences that
> make the development easier.  As Rob Pearce said, you can do without
> Glade but I am no expert at hand coding and have no desire to develop
> that way so for me, Glade is necessary.  So, with MinGW, gtkmm and Glade
> I can do well enough with my development.
>
> Damon Register
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@...
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
I develop in WinXP, for my SD I use Code::Blocks
[http://www.codeblocks.org/] as my GDI and MinGW.
First I created a directory for all the UNIX-Windows programs were to
reside, I called it XWin, a long time ago it was called XWin32.
Second I installed MinGW and then MSYS, be careful when MSYS ask you for
the path MinGW was installed in.
Then I installed Code::Blocks, but not the one that already includes MinGW
After that is GTKmm and you are all set.

Why not Cygwin? in my case is because I don't want to bother with the
installation of the Cygwin dlls, that's it.

I hope this helped you

--
Happiness has many doors, and when one of them closes another opens, yet we spent so much time looking at the one that is shut that we don't see the one that just opened..

_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Building of win32 applications

by Robert Pearce-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 09 July 2008, Damon Register wrote:
>  Though I am not certain, I wonder if
> using MinGW might increase the risk of having code that would be Windows
> specific while using Cygwin might lead you to code that is more unix
> generic.

When I tried to port an app from Linux to Windows, I hit a big problem with
g_io_channel handling on a serial port, and ended up having to write (or dig
up from a previous Borland project) windows-specific code. I don't think
cygwin would fix that, though.

On the other hand, might cygwin produce code that needs lots of cygwin
libraries, whereas MinGW produces an application that only needs the GTK
windows port?

_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Building of win32 applications

by José Alburquerque-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rob Pearce wrote:

> On Wednesday 09 July 2008, Damon Register wrote:
>  
>>  Though I am not certain, I wonder if
>> using MinGW might increase the risk of having code that would be Windows
>> specific while using Cygwin might lead you to code that is more unix
>> generic.
>>    
>
> When I tried to port an app from Linux to Windows, I hit a big problem with
> g_io_channel handling on a serial port, and ended up having to write (or dig
> up from a previous Borland project) windows-specific code. I don't think
> cygwin would fix that, though.
>
> On the other hand, might cygwin produce code that needs lots of cygwin
> libraries, whereas MinGW produces an application that only needs the GTK
> windows port?
>
>  
If I recall correctly, when compiling code in cygwin, unless the switch
`-mno-cygwin' is used (with gcc) the binary built will need the cygwin
dll (so it can't be run if cygwin is not installed).  With the
`-mno-cygwin' switch the cygwin dll is not required, but other things
may be necessary.  Though dated, the following link may be relevant:


http://www.delorie.com/howto/cygwin/mno-cygwin-howto.html

> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@...
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>  


--
José Alburquerque

"Love is patient; it is kind; love does not envy; it does not parade itself (it is not puffed up); it does not behave unseemly; it does not seek its own things..." -- The Apostle Paul (1 Cor. 13:4, 5)

"He who is not loving has not known God, because God is love." -- The Apostle John (1 John 4:8)

_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Parent Message unknown Re: Building of win32 applications

by Petr Hracek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello *,

firstly thank you very much for your helps.

Finally I've installed MinGW to D:\Projects\XWinLinux
and MSys was installed to D:\Projects\XWinLinux\msys\1.0.
CodeBlocks is also installed to C:\CodeBlocks

If all was OK could you please help me if I have to set up some variables
in Windows?
How I can compile my programs? Could you please send me a steps?
I've already Makefile of my program.

______________________________________
Nakupte vše od MP3 přehrávače po auto za ceny již od 1 Kč! Nejlepší nástroj
pro rychlé a bezpečné obchodování na internetu. Více než  200 000 atraktivních
aukcí. Dražte také!

http://aukro.tiscali.cz/



_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Building of win32 applications

by Damon Register-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Petr Hracek wrote:
> Finally I've installed MinGW to D:\Projects\XWinLinux
> and MSys was installed to D:\Projects\XWinLinux\msys\1.0.
> CodeBlocks is also installed to C:\CodeBlocks
>
> If all was OK could you please help me if I have to set up some variables
> in Windows?
> How I can compile my programs? Could you please send me a steps?
> I've already Makefile of my program.
What about GTK and all of the other things that usually go with it?
You said in your earlier post "I would like to develop some GUI interfaces"
but what you have at this point is the basic items needed to compile a
console application.  There are a few different ways to do that.  One
person mentioned coding the gtkmm by hand.  Glade is a really nice way
to build your GUIs.  I suggest using Glade to build the GUI and gtkmm
to do the programming.

I didn't find a lot of instructions for getting gtkmm working with MinGW
so it took me a little while to get it all working.  Although there are
precompiled binaries for gtk and gtkmm, I found some problems with using
the gtkmm binary.  I don't know how the gtkmm binary was built so I can't
be certain of this but I suspect that it was not built with MinGW (or at
least not the current version) and trying to use C++ libraries from
another compiler can be trouble.  I got the gtkmm source and built it
myself.

This sample app demonstrates the problem I had with the
precompiled gtkmm.  It is suppose to throw an exception that is caught
but instead my app just died.  If you build this demo and it just terminates
instead of printing the exception message, then you have the problem

      http://svn.gnome.org/viewvc/glibmm/trunk/examples/keyfile/main.cc?view=markup

Here is what I did to get gtk, gtkmm and supporting items working with my
MinGW/msys setup.

Summary

1.   get and install MinGW and msys
2.   get and install all-in-one bundle
3.   get and install latest ActiveState perl
4.   add or edit windows environment variables PKG_CONFIG_PATH, PATH
5.   add GTK and Perl to msys PATH
6.   test GTK
7.   add missing gtkrc file
8.   get and build libidn-1.8
9.   get and build libiconv-1.9.2
10.  get and build gettext-0.17
11.  get and build libxml2-2.6.32
12.  get and install libglade-2.6.2-20080525
13.  get and build hicolor-icon-theme
14.  get and build glade3-3.4.5

15.  get and install gtkmm
      or do following steps instead
16.  get and build cairomm-1.6.0.tar.gz
17.  get and build libsigc++-2.0.18.tar.gz
18.  get and build glibmm-2.16.3.tar.gz
19.  get and build gtkmm-2.12.7.tar.gz
20.  get and build libglademm-2.6.6.tar.gz
21.  get and build libxml++-2.23.2.tar.gz


1.   from http://www.mingw.org/download.shtml click on
      Sourceforge File Release  and get
      a. Automated MinGW Installer
      b. from MSYS Base System, the Current Release: MSYS-1.0.10.exe
         installer
      c. from MSYS Supplementary Tools, the Current Release:
         msysDTK-1.0.1.exe installer

      install MinGW.  in the choose components, select g++ compiler in
      addition to what is already selected.  do not select mingw make.

      install msys  (answer yes in post install)
      install msysDTK

2.   get all-in-one bundle from
      http://www.gtk.org/download-windows.html
         unzip and copy bundle to c:\GTK

3.   Get the latest perl 5.10 at http://www.activestate.com/Products/activeperl/
      Install it.  I put it in c:\Perl

4.   PKG_CONFIG_PATH /c/GTK/lib/pkgconfig
      add c:\GTK\bin to front of PATH

5.   edit C:\msys\1.0\etc\profile and put this at the front of the PATH
      .:/c/GTK/bin:/c/GTK/include:/c/GTK/include/gtk-2.0:/c/GTK/include/glib-2.0:/c/Perl/site/bin:/c/Perl/bin

6.   test with pkg-config --cflags --libs gtk+-2.0

7.   This step is not required but is useful if you want your app to have a Windows look.
      create file C:\GTK\etc\gtk-2.0\gtkrc
      add this one line
         gtk-theme-name = "MS-Windows"
       
         Stop here if you are only going to write plain GTK.

8.   ftp://ftp.gnu.org/pub/gnu/libidn
      libidn-1.8
      ./configure --prefix=/c/GTK --disable-static
      make
      make install

9.   ftp://ftp.gnu.org/pub/gnu/libiconv
      libiconv-1.9.2.tar.gz  (sources)
      ./configure --prefix=/c/GTK --disable-static
      make
      make install

10.  http://www.gtk.org/download-windows.html
      gettext-0.17.tar.gz
      ./configure --prefix=/c/GTK --disable-static
      make
      make install

11.  ftp://xmlsoft.org/libxml2/
      libxml2-2.6.32.tar.gz
      ./configure --prefix=/c/GTK --disable-static --disable-gtk-doc
      make
      make install

12.  http://www.icewalkers.com/Linux/Software/56940/libglade.html
         libglade-2.6.2.tar.gz
      edit glade/glade.def to add (if it is missing)
        glade_xml_construct_from_buffer
      ./configure --prefix=/c/GTK --disable-static --disable-gtk-doc
      make
      make install

13.  http://icon-theme.freedesktop.org/wiki/HicolorTheme
      hicolor-icon-theme-0.10.tar.gz
      ./configure --prefix=/c/GTK
      make
      make install

14.  http://ftp.gnome.org/pub/GNOME/sources/glade3/3.4/
      glade3-3.4.5
      LDFLAGS=-L/c/GTK/lib
      CPPFLAGS=-I/c/GTK/include
      ./configure --prefix=/c/GTK --disable-static --disable-gtk-doc
      make
      make install

15.  This step provides all the gtkmm components but I had compatibility
      problems.  You may want to skip this step and do the remaining instead.

      get gtkmm http://www.gustin.be/win32/gtkmm-win32-2.12.7.zip
      I found this one in the gtkmm list
      http://mail.gnome.org/archives/gtkmm-list/2008-April/msg00020.html
      unzip gtkmm-win32 and copy into c:\GTK

      Stop here, or if skipping this step, continue with the rest to build your own gtkmm.

16.  http://cairographics.org/releases/
      cairomm-1.6.0.tar.gz
      ./configure --prefix=/c/GTK
      make
      make install

17.  http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.0/
      libsigc++-2.0.18.tar.gz
      ./configure --prefix=/c/GTK
      make
      make install

18.  http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.16/
      glibmm-2.16.3.tar.gz
      ./configure --prefix=/c/GTK
      edit Makefile to remove examples.  One of the examples does not compile
      make
      make install

19.  http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.12/
      gtkmm-2.12.7.tar.gz
      ./configure --prefix=/c/GTK
      make
      make install

20.  http://ftp.gnome.org/pub/GNOME/sources/libglademm/2.6/
      libglademm-2.6.6.tar.gz
      ./configure --prefix=/c/GTK
      make
      make install

21.  http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.23/
      libxml++-2.23.2.tar.gz
      ./configure --prefix=/c/GTK
      make
      make install


Damon Register

_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Parent Message unknown Re: Building of win32 applications

by Petr Hracek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Finally I've installed all neccessary applications but still problems are
ongoing:

$ make
g++ -c -ggdb `pkg-config gtkmm-2.4 --cflags` `pkg-config gtkmm-2.4 --libs`
main.cpp
g++.exe: -luuid: linker input file unused because linking not done
g++.exe: -lgtkmm-2.4: linker input file unused because linking not done
g++.exe: -lgdkmm-2.4: linker input file unused because linking not done
g++.exe: -latkmm-1.6: linker input file unused because linking not done
g++.exe: -lgtk-win32-2.0: linker input file unused because linking not done
g++.exe: -lpangomm-1.4: linker input file unused because linking not done
g++.exe: -lcairomm-1.0: linker input file unused because linking not done
g++.exe: -lglibmm-2.4: linker input file unused because linking not done
g++.exe: -lsigc-2.0: linker input file unused because linking not done
g++.exe: -lgdk-win32-2.0: linker input file unused because linking not done
g++.exe: -limm32: linker input file unused because linking not done
g++.exe: -lshell32: linker input file unused because linking not done
g++.exe: -lole32: linker input file unused because linking not done
g++.exe: -latk-1.0: linker input file unused because linking not done
g++.exe: -lgdk_pixbuf-2.0: linker input file unused because linking not done
g++.exe: -lpangocairo-1.0: linker input file unused because linking not done
g++.exe: -lcairo: linker input file unused because linking not done
g++.exe: -lpangoft2-1.0: linker input file unused because linking not done
g++.exe: -lpangowin32-1.0: linker input file unused because linking not done
g++.exe: -lgdi32: linker input file unused because linking not done
g++.exe: -lfreetype: linker input file unused because linking not done
g++.exe: -lz: linker input file unused because linking not done
g++.exe: -lfontconfig: linker input file unused because linking not done
g++.exe: -lpango-1.0: linker input file unused because linking not done
g++.exe: -lm: linker input file unused because linking not done
g++.exe: -lgobject-2.0: linker input file unused because linking not done
g++.exe: -lgmodule-2.0: linker input file unused because linking not done
g++.exe: -lglib-2.0: linker input file unused because linking not done
g++.exe: -lintl: linker input file unused because linking not done
g++ -o main -ggdb `pkg-config gtkmm-2.4 --cflags` `pkg-config gtkmm-2.4 --libs`
main.o
main.o: In function `main':
d:\Projects\gtkmm/main.cpp:5: undefined reference to `Gtk::Main::Main(int&,
char**&, bool)'
d:\Projects\gtkmm/main.cpp:6: undefined reference to `Gtk::Window::Window(Gtk::WindowType)'
d:\Projects\gtkmm/main.cpp:7: undefined reference to `Gtk::Main::run(Gtk::Window&)'
d:\Projects\gtkmm/main.cpp:9: undefined reference to `Gtk::Window::~Window()'
d:\Projects\gtkmm/main.cpp:9: undefined reference to `Gtk::Main::~Main()'
d:\Projects\gtkmm/main.cpp:9: undefined reference to `Gtk::Window::~Window()'
d:\Projects\gtkmm/main.cpp:9: undefined reference to `Gtk::Main::~Main()'
main.o: In function `_static_initialization_and_destruction_0':
c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:37: undefined reference to `Glib::ustring::ustring(char
const*)'
c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:38: undefined reference to `Glib::ustring::ustring(char
const*)'
c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:39: undefined reference to `Glib::ustring::ustring(char
const*)'
c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:40: undefined reference to `Glib::ustring::ustring(char
const*)'
c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:41: undefined reference to `Glib::ustring::ustring(char
const*)'
main.o:c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:42: more undefined references
to `Glib::ustring::ustring(char const*)' follow
main.o: In function `_static_initialization_and_destruction_0':
c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:43: undefined reference to `Glib::ustring::~ustring()'
c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:42: undefined reference to `Glib::ustring::~ustring()'
c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:41: undefined reference to `Glib::ustring::~ustring()'
c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:40: undefined reference to `Glib::ustring::~ustring()'
c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:39: undefined reference to `Glib::ustring::~ustring()'
main.o:c:/GTK/include/gtkmm-2.4/gtkmm/papersize.h:38: more undefined references
to `Glib::ustring::~ustring()' follow
collect2: ld returned 1 exit status
make: *** [main] Error 1

cz2b10q6@CZ2CBFCC /d/Projects/gtkmm
$


Do you know where I've made a mistake?

PKG_CONFIG_PATH=/c/GTK/lib/pkg-config

Thank you in advance
Petr

______________________________________
Prvotřídní cestovní pojištění rychle, jednoduše, on-line.
Nyní navíc s velkou slevou!

http://ad-sc.tiscali.com/adclick/CID=0003036a0000000000000000/SITE=CZ.TISCALI/AREA=NEWSLETTER.HOME/POS=L



_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Parent Message unknown Re: Building of win32 applications

by Petr Hracek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I forgott to mentioned
that my Makefile is:

DBG=-ggdb
OPT=$(DBG)# -Wall -pedantic
LIB=`pkg-config gtkmm-2.4 --libs`
GTKFLAGS=`pkg-config gtkmm-2.4 --cflags`
CXX=g++
all:main
main: main.o
        $(CXX) -o main $(OPT) $(GTKFLAGS) $(LIB) main.o
main.o: main.cpp
        $(CXX) -c $(OPT) $(GTKFLAGS) $(LIB) main.cpp
clean:
        $(RM) main
        $(RM) -f *.o

main.cpp is:
#include <gtkmm.h>

int main (int argc, char * argv[])
{
    Gtk::Main kit(argc, argv);
    Gtk::Window window;
    Gtk::Main::run(window);
   
    return 0;
}
regards
Petr

______________________________________
Prvotřídní cestovní pojištění rychle, jednoduše, on-line.
Nyní navíc s velkou slevou!

http://ad-sc.tiscali.com/adclick/CID=0003036a0000000000000000/SITE=CZ.TISCALI/AREA=NEWSLETTER.HOME/POS=L



_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list
LightInTheBox - Buy quality products at wholesale price