-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.win32
More file actions
75 lines (46 loc) · 2.4 KB
/
README.win32
File metadata and controls
75 lines (46 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Copyright (c) 2019 By John Xu
Updated visual studio 2017 build solution and instruction. The original gloox.vxproj has been one way migrated to VS 2017 and soluton file
has been created to replace the gloox.dsp workspace file.
Following changes made to allow compile to pass:
1. iodata.h and iodata.cpp are added to the project
===========original readme.win32 ===========================
Building on Win32
-----------------
gloox compiles (at least) on:
- MinGW (http://mingw.org)
- MS Visual C++ Express 2008
As of 1.0-alpha1, gloox DOES NOT compile on:
- MSVC 6
No other compilers are officially supported at this point. Please let me know about
your experiences with other compilers.
See README.wince for info on building gloox for Win CE/Mobile
Project files for Code::Blocks (gloox.cbp), Visual C++ Express 2008 (gloox.vcproj),
and MSVC 6 (gloox.dsp) are included. The latter can be imported by other IDEs.
- Edit config.h.win to suit your needs.
- Add additional libs you have available to the project.
- If you have an old Platform SDK (e.g. the one shipped with stock MSVC6, which lacks windns.h),
undefine HAVE_WINDNS_H in config.h.win. SRV resolving is disabled in this case.
- You will also need a newer Platform SDK if you wanted to use winapi's TLS implementation (SChannel).
Undefine HAVE_WINTLS in config.h.win if you don't have schannel.h.
Building gloox in MinGW and Code::Blocks
----------------------------------------
gloox should build out of the box on MinGW. If using MSys, you should run configure with
the --with-schannel flag.
Building gloox on MSVC++
------------------------
- use the included project file or create your own
- adjust include + library paths if necessary
- to receive any debug output you should use the LogSink facilities (this is not win32-specific)
- build
Building libidn in Win32
------------------------
- install mingw + msys from http://www.mingw.org, including mingw-utils
- build libidn 1.1 or above in msys/mingw
If you want to use libidn in MSVC, type the following in a shell to create msvc import libs:
$ pexports libidn-11.dll > libidn-11.def
$ lib /def:libidn-11.def
pexports is part of the mingw-utils package.
Linking your application against gloox
--------------------------------------
- When building a program that links against gloox, make sure you have GLOOX_IMPORTS defined.
- Make sure you use the same runtime library for both gloox and your app.