update README.txt

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1152 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-05-01 21:52:59 +00:00
parent 3e2993536e
commit 3fe5b6dbfd

View File

@ -22,7 +22,7 @@ Libraries/Tools:
* C/C++ Compiler. (standard on Linux/cygwin) * C/C++ Compiler. (standard on Linux/cygwin)
* OpenSSL-0.9.7g-xpgp http://www.lunamutt.com/retroshare/openssl-0.9.7g-xpgp-0.1c.tgz * OpenSSL-0.9.7g-xpgp http://www.lunamutt.com/retroshare/openssl-0.9.7g-xpgp-0.1c.tgz
* miniupnpc http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.0.tar.gz * miniupnpc http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.0.tar.gz
* Qt >= 4.3.x http://trolltech.com/downloads/opensource * Qt >= 4.4.x http://trolltech.com/downloads/opensource
RetroShare Source Code: ( from sf.net/projects/retroshare) RetroShare Source Code: ( from sf.net/projects/retroshare)
* Qt-GUI-XXX.tgz * Qt-GUI-XXX.tgz
@ -171,33 +171,39 @@ Source release is quite old at the moment and it is a good idea to obtain source
$ cd ~/src $ cd ~/src
$ svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/trunk retroshare $ svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/trunk retroshare
... ...
Checked out revision 777. Checked out revision 1150.
This should create ~/src/retroshare/libretroshare, ~/src/retroshare/retroshare-gui etc. This should create ~/src/retroshare/libretroshare, ~/src/retroshare/retroshare-gui etc.
Build libretroshare Build libretroshare
Edit configuration files Change SSL_DIR to point to your openssl-xpgp directory.
Check that SSL_DIR really points to openssl-xpgp folder, because it's easy to have one "../" too much:
* Edit ~/src/retroshare/libretroshare/src/scripts/config.mk: libtretroshare.pro:
o Change OS to be "OS = Linux"
* Edit ~/src/retroshare/libretroshare/src/scripts/config-linux.mk: ################################### COMMON stuff ##################################
o Change SSL_DIR to point to your openssl-xpgp directory. Check that SSL_DIR really points to openssl-xpgp folder, because it's easy to have one "../" too much:
$ cd scripts <-- I'm in scripts folder DEFINES *= PQI_USE_XPGP MINIUPNPC_VERSION=10
$ ls ../../../../../src/openssl-0.9.7g-xpgp-0.1c <-- that's my SSL_DIR
CHANGES INSTALL.W32 README demos makevms.com test
...
* SSL_DIR=../../../../openssl-0.9.7g-xpgp-0.1c
o Change UPNPC_DIR to point to your miniupnp directory UPNPC_DIR=../../../../miniupnpc-1.0
o Change DEFINES += -DMINIUPNPC_VERSION=12 to match your miniupnpc version (10 for 1.0 or 12 for 1.2)
INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR}
o Change UPNPC_DIR to point to your miniupnp directory
o Change DEFINES += -DMINIUPNPC_VERSION=12 to match your miniupnpc version (10 for 1.0 or 12 for 1.2)
64bit Notice:
o If youre using a 64bit Linux you must remove the -marchi=686 option in this line:
BIOCFLAGS = -I $(SSL_DIR)/include ${DEFINES} -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -march=i686 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
Build Build
------------------------- -------------------------
$ cd ~/src/retroshare/libretroshare/src $ cd ~/src/retroshare/libretroshare/src
$ qmake
$ make $ make
.. ..
$ cp lib/libretroshare.a ~/lib $ cp lib/libretroshare.a ~/lib
@ -207,6 +213,9 @@ Troubleshooting
You get miniupnpc errors, "error: too few arguments to function 'UPNPDev* upnpDiscover(int, const char*, const char*, int)'" You get miniupnpc errors, "error: too few arguments to function 'UPNPDev* upnpDiscover(int, const char*, const char*, int)'"
Possible cause: you're using miniupnpc version 1.2 but config-linux.mk says 1.0 Possible cause: you're using miniupnpc version 1.2 but config-linux.mk says 1.0
Then edit in "libretroshare/src/upnp/upnputil.c" and go on line 150 and Edit to this one:
eport, iport, iaddr, 0, proto);
Build retroshare GUI Build retroshare GUI
=========================================================== ===========================================================