Changes
Page history
mozul created page: compilation
authored
Dec 19, 2016
by
Rémy Mozul
Hide whitespace changes
Inline
Side-by-side
compilation.md
View page @
1dc77add
...
@@ -45,17 +45,15 @@ But the one provided shoud be up-to-date
...
@@ -45,17 +45,15 @@ But the one provided shoud be up-to-date
Our policy is to not mess with default system paths. So instead we advise to
Our policy is to not mess with default system paths. So instead we advise to
use a environment variable to add to python the path to our build directory.
use a environment variable to add to python the path to our build directory.
In general adding the following lines to your
*.bashrc*
(Linux) or
*.profile*
(MacOS)
In general adding the following lines to your
*.bashrc*
(Linux) or
*.profile*
(MacOS)
file does the trick. Of course you have to replace
*mybuildpath*
by the path to
file does the trick. Of course you have to replace
*mysourcepath*
by the path to
your own building directory (in the example above
`~/Desktop/LMGC90/lmgc90_user/build`
).
your own
`lmgc90_user`
directory (in the example above
`~/Desktop/LMGC90/lmgc90_user/`
).
Basically it is what returns the command
*pwd*
when ran in the same directory you
ran the commands
*cmake*
and
*make*
.
```
shell
```
shell
if
[
-z
${
PYTHONPATH
}
]
;
then
if
[
-z
${
PYTHONPATH
}
]
;
then
export
PYTHONPATH
=
mybuild
path
export
PYTHONPATH
=
my
sourcepath/
build
else
else
export
PYTHONPATH
=
${
PYTHONPATH
}
:mybuild
path
export
PYTHONPATH
=
${
PYTHONPATH
}
:my
sourcepath/
build
fi
fi
export
PATH
=
${
PATH
}
:mysourcepath/src/addons
```
```
## <a name=precompiled> Windows </a> ##
## <a name=precompiled> Windows </a> ##
...
...
...
...