version=pmwiki-1.0.5 newline=˛ text=!!!How to compile php-gtk2 on Windows˛˛!!General Considerations˛I have test this on win2k and winxp.˛My IDE was Visual Studio .NET 2002 and ˛php-gtk.cvs-2006-02-03 10-37.˛I dont't know how i can write an "percent character" on this wiki ;) plz replace $ to an "percent character"˛˛!!Requirements˛ - The development packages for GTK+ 2.6.9, from http://www.gimp.org/~tml/gimp/win32/downloads.html˛ - Copies of grep.exe and sed.exe. If you have cygwin installed, they will probably be in there. If˛ you don't have cygwin installed, you can download them easily from http://unxutils.sourceforge.net/˛ - The latest version of PHP-GTK from the CVS server˛˛I have generate a zip with all requirements.˛http://www.b0red.de/src/download/php-gtk2/php_build.zip˛˛!!Preparation˛ - Create a folder c:\php-dev.˛ - Extract php_build.zip and php-gtk sources to this folder.˛ - Copy the php5 sources to c:\php-dev\php5.1˛ - Use my php5ts.lib, or copy your own php5ts.lib to c:\php-dev\php_build\lib (you can find this file in $path_to_php$\dev)˛˛!!Compiling˛ - Open the "Visual Studio .NET Command Prompt" ($comspec$ /k "C:\Programme\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat")˛ - Changing the working dir (cd C:\php-dev\php-gtk2)˛ - Setting up enviroment:˛set INCLUDE=C:\php-dev\php_build\include;C:\php-dev\php5.1;C:\php-dev\php5.1\main;C:\php-dev\php5.1\Zend;C:\php-dev\php5.1\TSRM;\$Include$ \\˛set LIB=C:\php-dev\php_build\lib;$LIB$ \\˛set PATH=C:\php-dev\php_build\bin;$PATH$ \\˛˛ - Creating your configure script:˛cscript /nologo win32/buildconf.js˛ - Calling the configure script:˛cscript /nologo configure.js --all --with-libglade˛ - Now you can compile php-gtk2:˛nmake˛˛˛!!Finish˛Now you can use the C:\php-dev\php-gtk2\Release\php-gtk2.dll˛˛!!Questions˛irc: freenode.net #php-gtk time=1139221910 diff:1139220953:1139220953:=1,35c1˛< !!!How to compile php-gtk2 on Windows˛< ˛< !!General Considerations˛< I have test this on win2k and winxp.˛< My IDE was Visual Studio .NET 2002 and ˛< php-gtk.cvs-2006-02-03 10-37.˛< ˛< !!Requirements˛< - The development packages for GTK+ 2.6.9, from http://www.gimp.org/~tml/gimp/win32/downloads.html˛< - Copies of grep.exe and sed.exe. If you have cygwin installed, they will probably be in there. If˛< you don't have cygwin installed, you can download them easily from http://unxutils.sourceforge.net/˛< - The latest version of PHP-GTK from the CVS server˛< ˛< I have generate a zip with all requirements.˛< http://www.b0red.de/src/download/php-gtk2/php_build.zip˛< ˛< !!preparation˛< - Create a folder c:\php-dev.˛< - Extract php_build.zip and php-gtk sources to this folder.˛< - Copy the php5 sources to c:\php-dev\php5.1˛< - Use my php5ts.lib, or copy your own php5ts.lib to c:\php-dev\php_build\lib (you can find this file in %path_to_php%)˛< ˛< !!Compiling˛< - Open the "Visual Studio .NET Command Prompt" (%comspec% /k "C:\Programme\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat")˛< - Changing the working dir (cd C:\php-dev\php-gtk2)˛< - Setting up enviroment:˛< set INCLUDE=C:\php-dev\php_build\include;C:\php-dev\php5.1;C:\php-dev\php5.1\main;C:\php-dev\php5.1\Zend;C:\php-dev\php5.1\TSRM;%Include%˛< set LIB=C:\php-dev\php_build\lib;%LIB%˛< set PATH=C:\php-dev\php_build\bin;%PATH%˛< - Creating your configure script:˛< cscript /nologo win32/buildconf.js˛< - calling the configure script:˛< cscript /nologo configure.js --all --with-libglade˛< - Now you can compile php-gtk2:˛< nmake˛---˛> Describe {{Compiling}} here.˛\ No newline at end of file˛ author=Christian Lange author:1139220953=Christian Lange host:1139220953=134.1.254.200 name=PhpGtk2.Compiling host=134.1.254.200 agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705) rev=5 diff:1139221521:1139220953:minor=7d6˛< I dont't know how i can write an "percent character" on this wiki ;) plz replace $ to an "percent character"˛18c17˛< !!Preparation˛---˛> !!preparation˛22c21˛< - Use my php5ts.lib, or copy your own php5ts.lib to c:\php-dev\php_build\lib (you can find this file in $path_to_php$)˛---˛> - Use my php5ts.lib, or copy your own php5ts.lib to c:\php-dev\php_build\lib (you can find this file in %path_to_php%)˛25c24˛< - Open the "Visual Studio .NET Command Prompt" ($comspec$ /k "C:\Programme\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat")˛---˛> - Open the "Visual Studio .NET Command Prompt" (%comspec% /k "C:\Programme\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat")˛28,31c27,29˛< set INCLUDE=C:\php-dev\php_build\include;C:\php-dev\php5.1;C:\php-dev\php5.1\main;C:\php-dev\php5.1\Zend;C:\php-dev\php5.1\TSRM;\$Include$ \\˛< set LIB=C:\php-dev\php_build\lib;$LIB$ \\˛< set PATH=C:\php-dev\php_build\bin;$PATH$ \\˛< ˛---˛> set INCLUDE=C:\php-dev\php_build\include;C:\php-dev\php5.1;C:\php-dev\php5.1\main;C:\php-dev\php5.1\Zend;C:\php-dev\php5.1\TSRM;%Include%˛> set LIB=C:\php-dev\php_build\lib;%LIB%˛> set PATH=C:\php-dev\php_build\bin;%PATH%˛34c32˛< - Calling the configure script:˛---˛> - calling the configure script:˛ author:1139221521=Christian Lange host:1139221521=134.1.254.200 diff:1139221657:1139221521:=38,44d37˛< ˛< ˛< !!Finish˛< Now you can use the C:\php-dev\php-gtk2\Release\php-gtk2.dll˛< ˛< !!Questions˛< irc: freenode.net #gtk-php˛\ No newline at end of file˛ author:1139221657=Christian Lange host:1139221657=134.1.254.200 diff:1139221884:1139221657:=44c44˛< irc: freenode.net #php-gtk˛\ No newline at end of file˛---˛> irc: freenode.net #gtk-php˛\ No newline at end of file˛ author:1139221884=Christian Lange host:1139221884=134.1.254.200 diff:1139221910:1139221884:minor=22c22˛< - Use my php5ts.lib, or copy your own php5ts.lib to c:\php-dev\php_build\lib (you can find this file in $path_to_php$\dev)˛---˛> - Use my php5ts.lib, or copy your own php5ts.lib to c:\php-dev\php_build\lib (you can find this file in $path_to_php$)˛ author:1139221910=Christian Lange host:1139221910=134.1.254.200