mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-04 09:05:34 -05:00
Merge pull request #524 from cavebeat/compile
updated MSys2 Install Guide to .md
This commit is contained in:
commit
c55fb0d0fb
71
MacOS_X_InstallGuide.md
Normal file
71
MacOS_X_InstallGuide.md
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
##Compilation on MacOS
|
||||||
|
|
||||||
|
### Qt Installation
|
||||||
|
|
||||||
|
Install Qt via: [Qt Download](http://www.qt.io/download/)
|
||||||
|
|
||||||
|
Use default options.
|
||||||
|
Add to the PATH environment variable with this temporary solution.
|
||||||
|
|
||||||
|
export PATH=/users/$USER/Qt/5.5/clang_64/bin:$PATH
|
||||||
|
|
||||||
|
Depends on wich version of Qt you use.
|
||||||
|
|
||||||
|
###MacPort Installation
|
||||||
|
|
||||||
|
Install MacPort and XCode following this guide: [MacPort and XCode](http://guide.macports.org/#installing.xcode)
|
||||||
|
|
||||||
|
Start XCode to get it updated and to able C compiler to create executables.
|
||||||
|
|
||||||
|
###Install libraries
|
||||||
|
|
||||||
|
$sudo port -v selfupdate
|
||||||
|
$sudo port install openssl
|
||||||
|
$sudo port install miniupnpc
|
||||||
|
|
||||||
|
For VOIP Plugin:
|
||||||
|
|
||||||
|
$sudo port install speex-devel
|
||||||
|
$sudo port install opencv
|
||||||
|
|
||||||
|
Get Your OSX SDK if missing: [MacOSX-SDKs](https://github.com/phracker/MacOSX-SDKs)
|
||||||
|
|
||||||
|
###Last Settings
|
||||||
|
|
||||||
|
In QtCreator Option Git add its path:
|
||||||
|
|
||||||
|
C:\Program Files\Git\bin
|
||||||
|
|
||||||
|
and select "Pull" with "Rebase"
|
||||||
|
|
||||||
|
###Compil missing libraries
|
||||||
|
####SQLCipher
|
||||||
|
|
||||||
|
cd <your development directory>
|
||||||
|
git clone https://github.com/sqlcipher/sqlcipher.git
|
||||||
|
cd sqlcipher
|
||||||
|
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto"
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
|
||||||
|
NOTE, might be necessary to *chmod 000 /usr/local/ssl* temporarily during *./configure* if
|
||||||
|
homebrew uses newer, non-stock ssl dependencies found there. configure might get confused.
|
||||||
|
|
||||||
|
####libMicroHTTPD
|
||||||
|
The one with port don't have good support.
|
||||||
|
|
||||||
|
cd <your development directory>
|
||||||
|
wget http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.46.tar.gz
|
||||||
|
tar zxvf libmicrohttpd-0.9.46.tar.gz
|
||||||
|
cd libmicrohttpd-0.9.46
|
||||||
|
bash ./configure
|
||||||
|
sudo make install
|
||||||
|
|
||||||
|
You can now compile RS into Qt Creator or with terminal
|
||||||
|
|
||||||
|
cd <your development directory>
|
||||||
|
git clone https://github.com/RetroShare/RetroShare.git retroshare
|
||||||
|
cd retroshare
|
||||||
|
qmake; make
|
||||||
|
|
||||||
|
You can find compiled application on *./retroshare/retroshare-gui/src/RetroShare06.app*
|
@ -1,66 +0,0 @@
|
|||||||
#############################
|
|
||||||
###--- QT INSTALLATION ---###
|
|
||||||
#############################
|
|
||||||
|
|
||||||
###Install Qt via:
|
|
||||||
http://www.qt.io/download/
|
|
||||||
|
|
||||||
###Use default options.
|
|
||||||
###Add to the PATH environment variable with this temporary solution.
|
|
||||||
export PATH=/users/$USER/Qt/5.5/clang_64/bin:$PATH
|
|
||||||
###Depends on wich version of Qt you use.
|
|
||||||
|
|
||||||
##################################
|
|
||||||
###--- MACPORT INSTALLATION ---###
|
|
||||||
##################################
|
|
||||||
|
|
||||||
###Install MacPort and XCode following this guide:
|
|
||||||
http://guide.macports.org/#installing.xcode
|
|
||||||
|
|
||||||
###Start XCode to get it updated and to able C compiler to create executables.
|
|
||||||
|
|
||||||
###Install libraries
|
|
||||||
$sudo port -v selfupdate
|
|
||||||
$sudo port install openssl
|
|
||||||
$sudo port install miniupnpc
|
|
||||||
###For VOIP Plugin:
|
|
||||||
$sudo port install speex-devel
|
|
||||||
$sudo port install opencv
|
|
||||||
|
|
||||||
###Get Your OSX SDK if missing:
|
|
||||||
https://github.com/phracker/MacOSX-SDKs
|
|
||||||
|
|
||||||
###########################
|
|
||||||
###--- LAST SETTINGS ---###
|
|
||||||
###########################
|
|
||||||
|
|
||||||
###In QtCreator Option Git add its path:
|
|
||||||
C:\Program Files\Git\bin
|
|
||||||
### and select "Pull" with "Rebase"
|
|
||||||
|
|
||||||
###Compil missing libraries
|
|
||||||
###SQLCipher
|
|
||||||
cd <your development directory>
|
|
||||||
git clone https://github.com/sqlcipher/sqlcipher.git
|
|
||||||
cd sqlcipher
|
|
||||||
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto"
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
#NOTE, might be necessary to chmod 000 /usr/local/ssl temporarily during ./configure if
|
|
||||||
#homebrew uses newer, non-stock ssl dependencies found there. configure might get confused.
|
|
||||||
|
|
||||||
### libMicroHTTPD: The one with port don't have good support.
|
|
||||||
cd <your development directory>
|
|
||||||
wget http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.46.tar.gz
|
|
||||||
tar zxvf libmicrohttpd-0.9.46.tar.gz
|
|
||||||
cd libmicrohttpd-0.9.46
|
|
||||||
bash ./configure
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
###You can now compile RS into Qt Creator or with terminal
|
|
||||||
cd <your development directory>
|
|
||||||
git clone https://github.com/RetroShare/RetroShare.git retroshare
|
|
||||||
cd retroshare
|
|
||||||
qmake;make
|
|
||||||
|
|
||||||
###You can find compiled application on ./retroshare/retroshare-gui/src/RetroShare06.app
|
|
@ -12,11 +12,11 @@ Build Status
|
|||||||
|
|
||||||
Compilation on Windows
|
Compilation on Windows
|
||||||
----------------------------
|
----------------------------
|
||||||
Follow this file : [WindowsMSys2_InstallGuide.txt](https://github.com/RetroShare/RetroShare/blob/master/WindowsMSys2_InstallGuide.txt)
|
Follow this file : [WindowsMSys2_InstallGuide.md](https://github.com/RetroShare/RetroShare/blob/master/WindowsMSys2_InstallGuide.txt)
|
||||||
|
|
||||||
Compilation on MacOSX
|
Compilation on MacOSX
|
||||||
----------------------------
|
----------------------------
|
||||||
Follow this file : [MacOS_X_InstallGuide.txt](https://github.com/RetroShare/RetroShare/blob/master/MacOS_X_InstallGuide.txt)
|
Follow this file : [MacOS_X_InstallGuide.md](https://github.com/RetroShare/RetroShare/blob/master/MacOS_X_InstallGuide.txt)
|
||||||
|
|
||||||
Compilation on Linux
|
Compilation on Linux
|
||||||
----------------------------
|
----------------------------
|
||||||
|
87
WindowsMSys2_InstallGuide.md
Normal file
87
WindowsMSys2_InstallGuide.md
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
##Compilation on Windows
|
||||||
|
|
||||||
|
###Qt Installation
|
||||||
|
|
||||||
|
Install Qt via: [Qt Download](http://www.qt.io/download/)
|
||||||
|
|
||||||
|
Use default options.
|
||||||
|
Add to the PATH environment variable
|
||||||
|
|
||||||
|
;C:\Qt\5.5\mingw492_32\bin;C:\Qt\Tools\mingw492_32\bin;C:\Qt\Tools\mingw492_32\opt\bin
|
||||||
|
|
||||||
|
Depends on wich version of Qt you use.
|
||||||
|
Change build-all-mingw32make.bat with these values too if you don't use MSys2.
|
||||||
|
|
||||||
|
###MSYS2 INSTALLATION
|
||||||
|
|
||||||
|
Choose your MSYS2 installer here: [MSYS2](http://msys2.github.io/)
|
||||||
|
|
||||||
|
Follow install procedure.
|
||||||
|
Don't forget to sync & Update pacman.
|
||||||
|
|
||||||
|
pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime
|
||||||
|
|
||||||
|
Restart console
|
||||||
|
|
||||||
|
pacman -Su
|
||||||
|
|
||||||
|
Install all default programms
|
||||||
|
|
||||||
|
pacman -S base-devel git mercurial cvs wget p7zip gcc perl ruby python2
|
||||||
|
|
||||||
|
Choose only w64-i686 if you want only compilation in 32b architecture.
|
||||||
|
|
||||||
|
pacman -S mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain
|
||||||
|
|
||||||
|
###Install other binutils:
|
||||||
|
pacman -S mingw-w64-i686-miniupnpc mingw-w64-x86_64-miniupnpc
|
||||||
|
pacman -S mingw-w64-i686-sqlite3 mingw-w64-x86_64-sqlite3
|
||||||
|
pacman -S mingw-w64-i686-speex mingw-w64-x86_64-speex
|
||||||
|
pacman -S mingw-w64-i686-opencv mingw-w64-x86_64-opencv
|
||||||
|
pacman -S mingw-w64-i686-ffmpeg mingw-w64-x86_64-ffmpeg
|
||||||
|
pacman -S mingw-w64-i686-libmicrohttpd mingw-w64-x86_64-libmicrohttpd
|
||||||
|
pacman -S mingw-w64-i686-libxslt mingw-w64-x86_64-libxslt
|
||||||
|
|
||||||
|
Add MSYS2 to PATH environment variable depends your windows
|
||||||
|
|
||||||
|
;C:\msys64\mingw32\bin
|
||||||
|
;C:\msys32\mingw32\bin
|
||||||
|
|
||||||
|
|
||||||
|
###Git Installation
|
||||||
|
|
||||||
|
Install Git Gui or other client: [Git Scm](https://git-scm.com/download/win)
|
||||||
|
|
||||||
|
Create a new directory named:
|
||||||
|
|
||||||
|
C:\Development\GIT
|
||||||
|
|
||||||
|
Right-click on it and choose: *Git Bash Here*
|
||||||
|
|
||||||
|
Paste this text on git console:
|
||||||
|
git clone https://github.com/RetroShare/RetroShare.git
|
||||||
|
|
||||||
|
|
||||||
|
###Last Settings
|
||||||
|
|
||||||
|
|
||||||
|
In QtCreator Option Git add its path: *C:\Program Files\Git\bin*
|
||||||
|
and select "Pull" with "Rebase"
|
||||||
|
|
||||||
|
|
||||||
|
Open an MSys2 32|64 shell
|
||||||
|
Move to build_scripts:
|
||||||
|
|
||||||
|
cd /c/Development/GIT/RetroShare/msys2_build_libs/
|
||||||
|
|
||||||
|
###Compile missing library
|
||||||
|
make
|
||||||
|
|
||||||
|
You can now compile RS into Qt Creator
|
||||||
|
|
||||||
|
For using, and debugging Plugins, you can use [Symlinker](http://amd989.github.io/Symlinker/) to link
|
||||||
|
the files in
|
||||||
|
|
||||||
|
\build-RetroShare-Desktop_Qt_X_Y_Z_MinGW_32bit-Debug\plugins\PluginName\debug\*.dll
|
||||||
|
to
|
||||||
|
*%appdata%\RetroShare\extensions6*
|
@ -1,89 +0,0 @@
|
|||||||
#############################
|
|
||||||
###--- QT INSTALLATION ---###
|
|
||||||
#############################
|
|
||||||
|
|
||||||
###Install Qt via:
|
|
||||||
http://www.qt.io/download/
|
|
||||||
|
|
||||||
###Use default options.
|
|
||||||
###Add to the PATH environment variable.
|
|
||||||
;C:\Qt\5.5\mingw492_32\bin;C:\Qt\Tools\mingw492_32\bin;C:\Qt\Tools\mingw492_32\opt\bin
|
|
||||||
|
|
||||||
###Depends on wich version of Qt you use.
|
|
||||||
|
|
||||||
###Change build-all-mingw32make.bat with these values too if you don't use MSys2.
|
|
||||||
|
|
||||||
|
|
||||||
###############################
|
|
||||||
###---MSYS2 INSTALLATION ---###
|
|
||||||
###############################
|
|
||||||
|
|
||||||
###Choose your MSYS2 installer here:
|
|
||||||
http://msys2.github.io/
|
|
||||||
|
|
||||||
###Follow install procedure.
|
|
||||||
###Don't forget to sync & Update pacman.
|
|
||||||
pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime
|
|
||||||
|
|
||||||
###Restart console
|
|
||||||
pacman -Su
|
|
||||||
|
|
||||||
###Install all default programms
|
|
||||||
pacman -S base-devel git mercurial cvs wget p7zip gcc perl ruby python2
|
|
||||||
|
|
||||||
###Choose only w64-i686 if you want only compilation in 32b architecture.
|
|
||||||
pacman -S mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain
|
|
||||||
|
|
||||||
###Install other binutils:
|
|
||||||
pacman -S mingw-w64-i686-miniupnpc mingw-w64-x86_64-miniupnpc
|
|
||||||
pacman -S mingw-w64-i686-sqlite3 mingw-w64-x86_64-sqlite3
|
|
||||||
pacman -S mingw-w64-i686-speex mingw-w64-x86_64-speex
|
|
||||||
pacman -S mingw-w64-i686-opencv mingw-w64-x86_64-opencv
|
|
||||||
pacman -S mingw-w64-i686-ffmpeg mingw-w64-x86_64-ffmpeg
|
|
||||||
pacman -S mingw-w64-i686-libmicrohttpd mingw-w64-x86_64-libmicrohttpd
|
|
||||||
pacman -S mingw-w64-i686-libxslt mingw-w64-x86_64-libxslt
|
|
||||||
|
|
||||||
### Add MSYS2 to PATH environment variable depends your windows
|
|
||||||
;C:\msys64\mingw32\bin
|
|
||||||
;C:\msys32\mingw32\bin
|
|
||||||
|
|
||||||
|
|
||||||
##############################
|
|
||||||
###--- GIT INSTALLATION ---###
|
|
||||||
##############################
|
|
||||||
|
|
||||||
###Install Git Gui or other client:
|
|
||||||
https://git-scm.com/download/win
|
|
||||||
|
|
||||||
###Create a new directory named:
|
|
||||||
C:\Development\GIT
|
|
||||||
|
|
||||||
###Right-click on it and choose:
|
|
||||||
Git Bash Here
|
|
||||||
|
|
||||||
###Paste this text on git console:
|
|
||||||
git clone https://github.com/RetroShare/RetroShare.git
|
|
||||||
|
|
||||||
|
|
||||||
###########################
|
|
||||||
###--- LAST SETTINGS ---###
|
|
||||||
###########################
|
|
||||||
|
|
||||||
###In QtCreator Option Git add its path:
|
|
||||||
C:\Program Files\Git\bin
|
|
||||||
### and select "Pull" with "Rebase"
|
|
||||||
|
|
||||||
|
|
||||||
###Open an MSys2 32|64 shell
|
|
||||||
###Move to build_scripts:
|
|
||||||
cd /c/Development/GIT/RetroShare/msys2_build_libs/
|
|
||||||
|
|
||||||
###Compil missing library
|
|
||||||
make
|
|
||||||
|
|
||||||
###You can now compile RS into Qt Creator
|
|
||||||
|
|
||||||
###For using, and debugging Plugins, you can use SymLinker (http://amd989.github.io/Symlinker/) to link
|
|
||||||
### the files in \build-RetroShare-Desktop_Qt_X_Y_Z_MinGW_32bit-Debug\plugins\PluginName\debug\*.dll
|
|
||||||
### to %appdata%\RetroShare\extensions6
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user