On Sat, Dec 14, 2013 at 8:01 PM, John Leung <j...@techtoys.com.hk> wrote:
> Sirs
>
> Is there any instruction to compile example1-6 included in
> gerbv-2.6.1/doc/example-code folder in Windows 7?
>
> Using GTK+ with Code:Blocks IDE, the compiler is gcc(MinGW).

If you have installed GTK in C:/gtk_win32 (development, not runtime),
then following .bat
file can be used to compile examle1. Note, it does not use %PKG_CONFIG_LIBS% and
there is no libgerbv-1.dll and gerbv.h files in gerbv 2.6.1 installer,
but you can try gerbv 2.6.0.

set GERBV_DIR=C:/Program Files/gerbv-2.6.1
set GTK_DIR=C:/gtk_win32
set PKG_CONFIG_PATH=%GTK_DIR%/lib/pkgconfig

set LIBS=glib-2.0 gtk+-2.0

%GTK_DIR%/bin/pkg-config.exe --cflags %LIBS% > pkg-config_cflags.tmp
%GTK_DIR%/bin/pkg-config.exe --libs %LIBS% > pkg-config_libs.tmp
set /p PKG_CONFIG_CFLAGS= < pkg-config_cflags.tmp
set /p PKG_CONFIG_LIBS= < pkg-config_libs.tmp
del pkg-config_cflags.tmp
del pkg-config_libs.tmp

gcc.exe -Wall %PKG_CONFIG_CFLAGS% "%GTK_DIR%/bin/libglib-2.0-0.dll"
"%GERBV_DIR%/bin/libgerbv-1.dll" example1.c -o example1

pause


>
> Regards
>
> John Leung
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Gerbv-devel mailing list
> Gerbv-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gerbv-devel

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to