Setup of Development Environment for MacOS: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
(Created page with '= Required software = == Git == * I cannot remember how I installed git, probably with <code>fink install git</code> or git-core? == Mono 2.x == * You can install the MonoDevel…')
 
(Replaced content with "This page is outdated. See Quick Setup of Development environment")
Tag: Replaced
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Required software =
This page is outdated. See [[Quick Setup of Development environment]]
 
== Git ==
* I cannot remember how I installed git, probably with <code>fink install git</code> or git-core?
 
== Mono 2.x ==
* You can install the MonoDevelop Preview for Mac by downloading from http://monodevelop.com/Download/Mac_Preview, and just install it.
** somehow the current Preview does not open all of the OpenPetra projects, but you need MonoDevelop for the mdtool that is used by our nant script to build OpenPetra. Building OpenPetra with nant works, creating a Postgresql database works, and starting the server and the client works. Most screens crash though, unfortunately.
 
== NAnt ==
* MonoDevelop comes with a version of Nant.
 
== SQLite or PostgreSQL or MySQL ==
* I did not get the sqlite to work, so prefer Postgresql on Mac. Again, this was installed by downloading from a website, see http://www.postgresql.org/download/macosx
 
= Get the source code =
The source code is managed with Git.
 
Please understand that we will provide write permissions only to the core members of the development team, just to keep the project on one track. We very much need your contributions though, and we will aim to quickly deal with submitted patches and code via the forum. This still has to be worked out how this works best to submit code that way.
 
You can get the source code in several ways:
* see the [https://sourceforge.net/scm/?type=git&group_id=260632 Git instructions at Sourceforge]
** that page describes how you can download anonymously from Git
* you can also browse the [http://git.openpetra.org Git repository online], and you can download a tar.gz snapshot of each version there
 
for anonymous access, you can use this URL to clone the repository with TortoiseGit:
git://openpetraorg.git.sourceforge.net/gitroot/openpetraorg/openpetraorg
 
for developer access (with write permissions), use this URL to clone the repository with TortoiseGit:
ssh://USERNAME@openpetraorg.git.sourceforge.net/gitroot/openpetraorg/openpetraorg
 
= Configuration of Development Environment =
for anonymous access:
cd ~
git clone git://openpetraorg.git.sourceforge.net/gitroot/openpetraorg/openpetraorg
cd openpetraorg
cp OpenPetra.build-sample-mac.config OpenPetra.build.config
 
for developer access (with write permissions):
cd ~
eval `/usr/bin/ssh-agent`
ssh-add ~/.ssh/YOURPRIVATEKEYFILE     
git clone ssh://USERNAME@openpetraorg.git.sourceforge.net/gitroot/openpetraorg/openpetraorg
git config user.name "YOUR NAME"
git config user.email "USERNAME@users.sourceforge.net"
cd openpetraorg
cp OpenPetra.build-sample-mac.config OpenPetra.build.config
 
Please check your OpenPetra.build.config file and make sure the paths are all adjusted to your system and the version numbers in the paths are correct.
 
= NAnt script =
There is a central NAnt script that is able to generate a lot of code and is able to do all automated tasks in the OpenPetra project.
 
Please see [[Setup_of_Development_environment#NAnt_script|OpenPetra NAnt script]] for details

Latest revision as of 04:43, 16 March 2023

This page is outdated. See Quick Setup of Development environment