How to compile libpomelo as a Windows DLL

Monday, October 20th, 2014 | Dennis D. Spreen | Pomelo

This is a tutorial on how to compile libpomelo as a Windows DLL (libpomelo is a C language client SDK for Pomelo).

1. download and install git, select Use Git from the Windows Command Prompt during installation

2. download and install Python (Version 2.x), check [x] Add python.exe to path during installation

3. download and install Visual Studio 2010 Express (Windows 7) or Visual Studio 2012 Express (Windows 8)

4. open a terminal and clone the libpomelo source

git clone https://github.com/NetEase/libpomelo.git

5. download gyp as well (we’re using the github gyp svnsync repo)

cd libpomelo
git clone https://github.com/svn2github/gyp.git build/gyp

6. now create the project build file with

build\gyp\gyp.bat --depth=. pomelo.gyp -Dlibrary=shared_library -DTO=pc

7. then open pomelo.sln in visual studio and you can build the libpomelo DLLs by building the libpomelo project

8. After the Build: 3 succeeded message you’ll find libpomelo.dll and jansson.dll in the Default\ folder.

Tags: ,

No comments yet.

Leave a comment

About Dennis D. Spreen

I'm an avid programmer working on a variety of platforms in a variety of languages with a wide technical interest.

Search

Categories