How to compile devP2P.
Compile devSSH samples
For all samples, go to their directories and execute
make command (or
gmake on FreeBSD). Speicific platforms (such as Windows) may have solution files (
sample.sln) which you can open in Visual Studio (at least version 2008 and up), or XCode projects for Mac/iOs
Compile devP2P source
Linux
Required: g++ toolchain
(on Ubuntu/Debian, do 'apt-get install g++ make')
- Unzip devP2P.zip to your computer, for example to /home/user/devP2P
- Execute commands 'make clean' and then 'make'
- if there were no errors, under bin/ you should see libraries produced by the makefile. Same applies for x64 architecture
Windows
Required: Visual Studio 2008 or newer
- Just open devP2P.sln using Visual Studio, and choose Build to build it. You can choose x86 or x64 architecture.
- if there were no errors, under bin/ you will see resulting libraries
Mac OS X
Required: g++, make
- Unzip devP2P.zip to your computer, for example to /home/user/devP2P
- Execute commands 'make -f Makefile.mac clean' and then 'make -f Makefile.mac'
- if there were no errors, under bin/ you will see resulting libraries, both static and dynamic
iPhone iOS
Required: XCode
- Unzip devP2P.zip to your computer, for example to /home/user/devP2P
- Open XCode project, under src/iOS
- or, if you prefer command line
- edit Makefile.iOS to point to your folders, and execute make -f Makefile.iOS
- If you want to generate one library from various architectures, you can combine them using lipo libdevP2P.iphone.a libdevP2P.simulator.a -create -output libdevP2P.a
FreeBSD
Required: gmake (pkg_add -r gmake)
- Unzip devP2P.zip to your computer, for example to /home/user/devP2P
- Execute commands 'gmake clean' and then 'gmake'
- if there were no errors, under bin/FreeBSD you should see libraries produced by the makefile. Same applies for x64 architecture