Compile on MacOS: Difference between revisions

From LabRPS Documentation
Jump to navigation Jump to search
(Created page with "{{Docnav |Compile on Linux |Windows(cross compile on linux using MXE) }} {{TOCright}} This page explains step by step '''how to compile LabRPS 0.001 or newer on MacOS'''. For other platforms see Compiling. == Prerequisites == Compiling LabRPS on MacOS requires several tools and libraries. * A compiler. LabRPS is tested with MinGW—other compilers may work, but instructions for their use are not included here...")
 
(Replaced content with "{{Docnav |Compile on Linux | }} {{TOCright}} {{VeryImportantMessage|The process for compiling the program on macOS is currently under testing. While we are actively working to improve and finalize the process, users are encouraged to try compiling the program themselves. We also welcome contributions from anyone experienced with macOS compilation to help us enhance this process. Your feedback and assistance are highly valued!}} {{Docnav |Lic...")
Tag: Replaced
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Docnav
{{Docnav
|[[Compile_on_Linux|Compile on Linux]]
|[[Compile_on_Linux|Compile on Linux]]
|[[MXE_cross_compile|Windows(cross compile on linux using MXE)]]
|
}}
}}


{{TOCright}}
{{TOCright}}


This page explains step by step '''how to compile LabRPS 0.001 or newer on MacOS'''. For other platforms see [[Compiling|Compiling]].
{{VeryImportantMessage|The process for compiling the program on macOS is currently under testing. While we are actively working to improve and finalize the process, users are encouraged to try compiling the program themselves. We also welcome contributions from anyone experienced with macOS compilation to help us enhance this process. Your feedback and assistance are highly valued!}}
 
== Prerequisites ==
 
Compiling LabRPS on MacOS requires several tools and libraries.
 
* A compiler. LabRPS is tested with MinGW—other compilers may work, but instructions for their use are not included here. More details in [[#Compiler]], below.
 
* [https://www.qt.io/ Qt for C++ (>=4.3)].
 
* [http://qwt.sourceforge.net/index.html Qwt (>=5.1.0)].
 
* [http://qwtplot3d.sourceforge.net/ QwtPlot3D (>=0.2.6)].
 
* [http://www.gnu.org/software/gsl/ GSL (>=1.8)].
 
* [http://beltoforion.de/en/muparser/ muParser (>=1.28)].
 
* [http://www.zlib.net/ zlib (>=1.2.3)].
 
QwtPlot3D and Qwt must be compiled against Qt 5.x! If these are compiled with Qt3 or Qt4, the application might crash.
 
== Get the source ==
 
In the following instructions, the source and build folders are created side-by-side under
 
{{Code|code=
/Users/username/LabRPS
}}
 
but you can use whatever folders you want.
 
{{Code|code=
mkdir ~/LabRPS
cd ~/LabRPS
}}
 
The following command will clone the LabRPS git repository into a directory called LabRPS-git.
 
{{Code|code=
git clone https://github.com/LabRPS/LabRPS LabRPS-git
}}
 
Create the build folder.
 
{{Code|code=
mkdir ~/LabRPS/build
}}
 
==Building LabRPS==
===Downloading the requirements:=== 
Please download Qt, GSL, MuParser, Qwt and Qwt3D from their web sites before building:
<ol>
<li>Qt: {{URL|ftp://ftp.trolltech.com/qt/source/qt-mac-opensource-4.4.1.dmg}} (this is for version 4.4.1, the current one at the time of writing, there may be a newer)</li>
<li>GSL: {{URL|ftp://ftp.gnu.org/gnu/gsl/}} (the current version at the time of writing: 1.11)</li>
<li> muParser: {{URL|http://downloads.sourceforge.net/muparser/muparser_v130.tar.gz?modtime=1219351493&big_mirror=0"}} (the current version at the time of writing: 1.30)</li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
 
</ol>
 
==Additional information==
 
# Forums and mailing lists If you want to discuss LabRPS with other users (or the developers) or if you are insterested in its further development, you can go to the [http://labrps.com/boards LabRPS forum].
# License LabRPS is distributed under the terms of the [http://www.gnu.org/licenses/gpl.html GNU General Public License] as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. A copy of this license is provided in the file `gpl.txt`.
 
Thus it is [http://www.fsf.org/licensing/essays/free-sw.html "free software"]. "Free software" is a matter of liberty, not price. To understand the concept, you should think of "free" as in "free speech", not as in "free beer". "Free software" is also often called [http://en.wikipedia.org/wiki/Alternative_terms_for_free_software Open Source, FOSS, or FLOSS]. When we say that LabRPS is "free", we are talking about
 
*  The freedom to run the program, for any purpose (freedom 0).
*  The freedom to study how the program works, and adapt it to your needs (freedom 1). Access to the source code is a precondition for this.
*  The freedom to redistribute copies so you can help your neighbor (freedom 2).
*  The freedom to improve the program, and release your improvements to the public, so that the whole community benefits (freedom 3). Access to the source code is a precondition for this.
 
That said, LabRPS is also free as in "free beer". We do not charge money for anything you can download on our homepage and we will not do so in the future.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.


{{Docnav
{{Docnav

Latest revision as of 12:24, 26 November 2024

The process for compiling the program on macOS is currently under testing. While we are actively working to improve and finalize the process, users are encouraged to try compiling the program themselves. We also welcome contributions from anyone experienced with macOS compilation to help us enhance this process. Your feedback and assistance are highly valued!
Arrow-left.svg Previous: Licence