[b]1. Download and Install Visual C++ 2010 Express[/b]
[url]http://www.microsoft.com/express/Downloads/#2010-Visual-CPP[/url]
[b]2. Download and install binary package for Expat[/b]
http://sourceforge.net/projects/expat/files/expat_win32/
Currently the latest version is 2.0.1, which is my selection.
After installed, remember the below two directories:
Header file diretory: C:\Program Files (x86)\Expat 2.0.1\Source\lib
Lib file directory: C:\Program Files (x86)\Expat 2.0.1\Bin
[b]
3. Download the libjingle 0.4 zip and unzip it[/b]
[url]http://libjingle.googlecode.com/files/libjingle-0.4.0.zip[/url]
[b]4. Open the solution with Visual C++ 2010 Express[/b]
Open Visual C++ 2010 Express, click File->Open->Project/Solution, select talk/libjincle.sln, it will prompt solution conversion, continue. Now you may see there are three projects in the solution.
[img]http://dl.iteye.com/upload/attachment/415174/c480e504-8fe4-3b01-a3c4-4f1a867c16b4.jpg[/img]
[b]5. Configure the Expat directories for the solution[/b]
Right click "libjingle" project in the Solution Explorer, select Properties, and config the VC++ Diretories as the below:
Include Directories: C:\Program Files (x86)\Expat 2.0.1\Source\lib
Library Directories: C:\Program Files (x86)\Expat 2.0.1\Bin
[img]http://dl.iteye.com/upload/attachment/415182/b582ff43-4132-34f9-94d0-332543fe07c7.jpg[/img]
[b]
6. Build the libjingle project[/b]
Right click "libjingle" project in the Solution Explorer, select Build. The build will start.
After build finished, you will find build failure with the below error information:
[i]gipslitemediaengine.h(33): fatal error C1083: Cannot open include file: 'talk/third_party/gips/Interface/GipsVoiceEngineLite.h': No such file or directory
1> gipslitemediaengine.cc[/i]
Don't worry. It is because on Windows the project depend on GIPS voice engine. Since we don't care the voice call now, so select all files on Source Files->session->phone, right click and select Exclude From Project. Build again. This time you will make build successfully.
And you may find the generated talk\Debug\libjingle.lib.
[b]
7. Build pcp project.[/b]
Configure the he Expat directories for this project as step 5. You will make build successfully. And you may find the generated talk\Debug\pcp.exe.
[b]8. Test receiving file.[/b]
Run the below command:
Then send a file to this gmail account from Google Talk client with another account.
[img]http://dl.iteye.com/upload/attachment/415223/094da63d-2012-37a1-8bf7-3fce9b7ffe03.jpg[/img]
[b]9. Test sending file.[/b]
Run the below command:
Then accept the file from Google Talk client with the recepient account.
[img]http://dl.iteye.com/upload/attachment/415228/ef6611ac-47fd-3a28-aac7-ad406638dbd2.jpg[/img]
At last,
You may try the attached binary pcp.exe for the test.
And in fact, for Expat XML Parser, you don't need install it, only expat.h/expat_external.h and libexpatMT.lib are needed, which I have attached.
[url]http://www.microsoft.com/express/Downloads/#2010-Visual-CPP[/url]
[b]2. Download and install binary package for Expat[/b]
http://sourceforge.net/projects/expat/files/expat_win32/
Currently the latest version is 2.0.1, which is my selection.
After installed, remember the below two directories:
Header file diretory: C:\Program Files (x86)\Expat 2.0.1\Source\lib
Lib file directory: C:\Program Files (x86)\Expat 2.0.1\Bin
[b]
3. Download the libjingle 0.4 zip and unzip it[/b]
[url]http://libjingle.googlecode.com/files/libjingle-0.4.0.zip[/url]
[b]4. Open the solution with Visual C++ 2010 Express[/b]
Open Visual C++ 2010 Express, click File->Open->Project/Solution, select talk/libjincle.sln, it will prompt solution conversion, continue. Now you may see there are three projects in the solution.
[img]http://dl.iteye.com/upload/attachment/415174/c480e504-8fe4-3b01-a3c4-4f1a867c16b4.jpg[/img]
[b]5. Configure the Expat directories for the solution[/b]
Right click "libjingle" project in the Solution Explorer, select Properties, and config the VC++ Diretories as the below:
Include Directories: C:\Program Files (x86)\Expat 2.0.1\Source\lib
Library Directories: C:\Program Files (x86)\Expat 2.0.1\Bin
[img]http://dl.iteye.com/upload/attachment/415182/b582ff43-4132-34f9-94d0-332543fe07c7.jpg[/img]
[b]
6. Build the libjingle project[/b]
Right click "libjingle" project in the Solution Explorer, select Build. The build will start.
After build finished, you will find build failure with the below error information:
[i]gipslitemediaengine.h(33): fatal error C1083: Cannot open include file: 'talk/third_party/gips/Interface/GipsVoiceEngineLite.h': No such file or directory
1> gipslitemediaengine.cc[/i]
Don't worry. It is because on Windows the project depend on GIPS voice engine. Since we don't care the voice call now, so select all files on Source Files->session->phone, right click and select Exclude From Project. Build again. This time you will make build successfully.
And you may find the generated talk\Debug\libjingle.lib.
[b]
7. Build pcp project.[/b]
Configure the he Expat directories for this project as step 5. You will make build successfully. And you may find the generated talk\Debug\pcp.exe.
[b]8. Test receiving file.[/b]
Run the below command:
pcp
Then send a file to this gmail account from Google Talk client with another account.
[img]http://dl.iteye.com/upload/attachment/415223/094da63d-2012-37a1-8bf7-3fce9b7ffe03.jpg[/img]
[b]9. Test sending file.[/b]
Run the below command:
pcp 01.jpg lisi.android@gmail.com
Then accept the file from Google Talk client with the recepient account.
[img]http://dl.iteye.com/upload/attachment/415228/ef6611ac-47fd-3a28-aac7-ad406638dbd2.jpg[/img]
At last,
You may try the attached binary pcp.exe for the test.
And in fact, for Expat XML Parser, you don't need install it, only expat.h/expat_external.h and libexpatMT.lib are needed, which I have attached.