NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

X-Chat 2 for Windows

News
Features
Download
Frequently Asked Questions
Hackers Guide
Hackers Guide

This page describes X-Chat compiling/building process on Windows using Microsoft's Visual C++ compiler. Thanks to zed for making X-Chat and porting it to Windows, thus making this all possible.

Read EVERYTHING carefully. Other stuff is here.

Firstly, INSTALL.w32 file in X-Chat's tarball (e. g. xchat-2.8.4.tar.bz2) is your (short) guide on compiling X-Chat for Windows.
Get yourself a C compiler. X-Chat may be build with several compilers, including GCC from MinGW project, but that one lacks IPv6 headers, so we'll stick to Microsoft ones. There is a Microsoft Visual C++ Toolkit 2003 which one can download freely, or you can use Visual Studio .NET one. Since I already use Visual Studio .NET for other purposes, I'll desribe the process with the latter one. Example installation options (possibly not minimal) are here.
Copy C:Program FilesMicrosoft Visual Studio .NET 2003Vc7includeio.h to unistd.h in the same directory.
GTK+ is compiled with earlier version of Visual C++ compiler, thus linked to msvcrt.dll. Visual Studio .NET compiler by default links to msvcrt71.dll, which results in incompatible file handles and X-Chat crashing on connect. Backup C:Program FilesMicrosoft Visual Studio .NET 2003Vc7libmsvcrt.lib and replace it with one, which forces programs to be linked to msvcrt.dll.
If you want MMX-optimized background tinting, and since MMX tinting code in X-Chat (src/fe-gtk/mmx_cmod.S) is gasm code, you'll need GCC to compile it. I haven't tried this, but always used mmx_cmod.o compiled by zed.
Go to http://www.gimp.org/~tml/gimp/win32/downloads.html and get these files or their newer versons:
atk-1.12.3.zip, atk-dev-1.12.3.zip
cairo-1.4.8.zip, cairo-dev-1.4.8.zip
dirent.zip
expat-2.0.0.zip
fontconfig-2.4.2-tml-20070301.zip, fontconfig-dev-2.4.2-tml-20070301.zip
freetype-2.3.4.zip, freetype-dev-2.3.4.zip
gettext-0.14.5.zip, gettext-dev-0.14.5.zip
glib-2.12.13.zip, glib-dev-2.12.13.zip
gtk+-2.10.14.zip, gtk+-dev-2.10.14.zip
jpeg-6b-4-bin.zip, jpeg-6b-4-dep.zip, jpeg-6b-4-lib.zip
libiconv-1.9.1.bin.woe32.zip
libpng-1.2.8-bin.zip, libpng-1.2.8-dep.zip, libpng-1.2.8-lib.zip
pango-1.16.4.zip, pango-dev-1.16.4.zip
pkg-config-0.20.zip
tiff-3.8.2-1-bin.zip, tiff-3.8.2-1-dep.zip, tiff-3.8.2-1-lib.zip
zlib123-dll.zip
Extract all archives to one directory (I use D:devroot, and call it %ROOT%), overwriting duplicated files. Move zlib1.dll to bin directory.
Get latest NASM (Win32 binary). It's needed to compile OpenSSL. Extract nasmw.exe to %ROOT%bin directory.
Get ActiveState ActivePerl, ActiveState ActivePython and/or ActiveState ActiveTcl if you plan to compile respective plugins for X-Chat, and install them (I install them to C:ActivePerl, Python23 and Tcl directories). Perl is required to compile OpenSSL. Don't forget to check options to add directories to environment PATH variable, if available in installers. Extract dirent.lib from dirent.zip (above) to Tcl's lib directory; building Tcl plugin for X-Chat will require it.
Download latest OpenSSL release, and make sure you have NASM and Perl installed. Extract, open Visual Studio .NET 2003 Command Prompt from Start menu and navigate to directory you extracted it. Run perl Configure VC-WIN32, msdo_nasm and nmake -f msntdll.mak. Copy inc32openssl directory to %ROOT%include directory, out32dll*.dll to %ROOT%bin, out32dll*.lib and *.exp to %ROOT%lib directory. INSTALL.W32 in tarball is your friend.
Edit Visual Studio .NET 2003 Command Prompt .bat file (C:Program FilesMicrosoft Visual Studio .NET 2003Common7Toolsvsvars32.bat): add @set PATH=C:Program FilesCommon FilesGTK2.0bin;C:Program FilesCommon FilesGTK2.0lib;D:devrootbin;D:devrootlib;%PATH% to the end. It'll save you some headache later. Be sure to replace D:devroot with your %ROOT%.
If you want IPv6 support, download tpipv6-001205.exe from Microsoft IPv6. Extract *.h files to C:Program FilesMicrosoft Visual Studio .NET 2003Vc7include directory. These headers are for Visual C++ compiler only, so GCC is not suitable if you want IPv6 support.
Get cvs.exe from https://www.cvshome.org/ and run cvs -z3 -d:pserver:[email protected]:/cvsroot/xchat co -kb -P xchat2. This way you will get X-Chat CVS sources. Don't forget to add -kb option, this way CVS won't distort line endings. Alternatively, grab latest release sources tarball and extract it.
Edit config.h.win32 file to reflect current version number. Add two lines at the end of file: #define GETTEXT_PACKAGE "xchat", and #define PACKAGE_TARNAME "xchat-2.8.4".
Place you GCC-compiled mmx_cmod.o (or zed's mmx_cmod.o) to srcfe-gtk directory).
Edit X-Chat's srcmakeinc.msc file. Uncomment OPENSSL, IPV6 and MMX defines. Add pkg-config glib-2.0 --msvc-syntax --cflags output to GLIB line, and add -ID:/dev/root/include (replace with your %ROOT%/include). Add pkg-config gtk+-2.0 --msvc-syntax --cflags output to GTK line, and pkg-config gtk+-2.0 --msvc-syntax --libs to LIBS line. Modify PERLPATH, PYTHONPATH and TCLPATH to real ones. Change libssl32.lib occurrence to ssleay32.lib.
In pluginsperlmakefile.msc, link ... line, add $(LIBS) before, between or after specified .lib files.
Grab my po.bat, place it in src and run it. It will generate .mo files (translations) with appropriate directory structure for using with gettext.
Run nmake -f makefile.msc within src, and the same in pluginsperl, python and tcl. Use your hacking skills to fix errors.
Put resulting srcfe-gtkxchat.exe to some dir, and plugins**.dll's to plugins, polocale to locale dirs.
Run xchat.exe and enjoy plugins and translations, and tell all your friends what have you just done.
Easy!

Atom feed; Hosting Services & silverex.org: All My Data Email here

     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.