2012/8/7 Damon Register <[email protected]>
> On 8/17/2012 4:18 AM, Ruben Van Boxem wrote:
> > You should call only the executables in mingw32/bin, never directly use
> the ones
> > in mingw32/i686-w64-mingw32/bin. The simplest way to set up a build
> environment is
> > to doubleclick on "mingw32env.cmd".
> Thanks for the tip. I just downloaded the subject release and tried to
> build a
> simple gtkmm app. Fortunately there was a 64 bit gtkmm for windows so I
> got that
> too. I made this simple project originally for 32 bit Windows. I tried
> to build
> using the subject release but I get a strange make error. I am using
> mingw32-make
> and I have confirmed it is the one in c:\mingw64\bin. I tried this from a
> windows
> command prompt shell and also using msys. The result is the same:
>
> $ mingw32-make
> g++ `pkg-config gtkmm-2.4 --cflags` -c hello.cpp
> g++: error: `pkg-config: No such file or directory
> g++: error: gtkmm-2.4: No such file or directory
> g++: error: unrecognized command line option '--cflags`'
> mingw32-make: *** [hello.o] Error 1
>
I don't think cmd.exe supports backticks '`'.
>
> I have pkg-config.exe in c:\gtkmm64\bin and that is in the PATH.
>
> I can just use g++ at the command prompt
>
> g++ `pkg-config gtkmm-2.4 libglademm-2.4 --cflags` -o hello.exe
> hello.cpp hello-main.cpp `pkg-config gtkmm-2.4 libglademm-2.4 --libs`
>
> This completes without error and hello.exe runs without any problem but
> make seems
> to have a problem with the pkg-config. Any suggestions?
>
> I wish to thank you for your easy to understand build.
>
GTK uses configure scripts etc. to build if I'm not mistaken. When you run
from MSYS you should call MSYS' "make", "mingw32-make" is exclusively for
use from a Windows style command prompt (cmd.exe).
You can't mix both unfortunately.
Hope this helps,
Ruben
>
> Damon Register
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public