Développement plugins
(Difference between revisions)
Jp perroud (Talk | contribs) |
Jp perroud (Talk | contribs) (→Building and installing) |
||
| Line 1: | Line 1: | ||
| − | == | + | ==Construite et installer== |
===Linux=== | ===Linux=== | ||
*Générez le code du noyau Stellarium selon la page [[Compilation on Linux]]. Assurez-vous que l'accumulation de sous-répertoire est appelé''builds/unix''. | *Générez le code du noyau Stellarium selon la page [[Compilation on Linux]]. Assurez-vous que l'accumulation de sous-répertoire est appelé''builds/unix''. | ||
| Line 11: | Line 11: | ||
cmake -DCMAKE_BUILD_TYPE=Debug ../.. | cmake -DCMAKE_BUILD_TYPE=Debug ../.. | ||
make | make | ||
| − | * | + | *Pour l'installer, tapez simplement: |
make install | make install | ||
| − | + | Cela mettra les fichiers pour le plugin dans ''~/.stellarium/modules/PluginName'' | |
===Windows=== | ===Windows=== | ||
Revision as of 20:30, 6 September 2009
Contents |
Construite et installer
Linux
- Générez le code du noyau Stellarium selon la page Compilation on Linux. Assurez-vous que l'accumulation de sous-répertoire est appelébuilds/unix.
- Définissez la variable d'environnement STELROOT pour le chemin de l'arbre stellarium source, par exemple:
export STELROOT=/home/bob/stellarium
- Changement de l'endroit où vous avez le code source de plugin installé, assurez-un sous-répertoire builds/Unix et le changement dans ce.
cd /home/bob/stel-plugins/PluginName mkdir -p builds/unix cd builds/unix
- Run cmake, specifying the build type to be the same as that which was used to build the core code (Debug or Release). Then run make
cmake -DCMAKE_BUILD_TYPE=Debug ../.. make
- Pour l'installer, tapez simplement:
make install
Cela mettra les fichiers pour le plugin dans ~/.stellarium/modules/PluginName
Windows
- Build the core Stellarium code according to the Windows Build Instructions page. Make sure the build sub-directory is called builds/msys.
- Set the environment variable STELROOT to be the path of the stellarium source tree, for example:
export STELROOT=/c/msys/1.0/home/bob/stellarium
- Change to where you have the plugin source code installed, make a sub-directory builds/msys and change into it.
cd /c/msys/1.0/home/bob/stel-plugins mkdir -p builds/msys cd builds/msys
- Run cmake, specifying the build type to be the same as that which was used to build the core code (Debug or Release). Then run make
cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug ../.. make
- Several of the plugins have a file called "installer.iss" in the main plugin directory. This can be used with the INNO installer generator to generate a windows installer for the plugin.
Ecrire des Plugins
If you are a developer, and would like to have a go at writing your own Stellarium plugin, the following resources might be helpful:
- the "Plugins" page in Stellarium's online developers' documentation
- The existing plugin's source code in subversion browse it here
- The stellarium-pubdevel mailing list - please fee free to subscribe and post questions there