Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4cd4d352 authored by hhakim's avatar hhakim
Browse files

Fix bad path in doc for Windows.

parent 3df5d3a5
Branches
Tags 2.4.2
No related merge requests found
Pipeline #833870 skipped
......@@ -58,6 +58,7 @@ if(BUILD_DOCUMENTATION)
endif()
endif()
SET(FAUST_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}") # needed for windows because the install prefix could be not set on gitlab-runner
if(APPLE)
configure_file(${FAUST_DOC_SRC_DIR}/bin_pkgs/macosx/installer_readme.html.in ${PROJECT_BINARY_DIR}/doc/installer_readme.html @ONLY)
file(COPY ${FAUST_DOC_SRC_DIR}/bin_pkgs/macosx/licenses.html DESTINATION ${PROJECT_BINARY_DIR}/doc/)
......@@ -75,6 +76,7 @@ if(BUILD_DOCUMENTATION)
endif()
configure_file(${FAUST_DOC_SRC_DIR}/bin_pkgs/README_template.html ${PROJECT_BINARY_DIR}/doc/html/README.html @ONLY)
elseif(WIN32)
SET(FAUST_INSTALL_PATH "C:/Program Files/Faust") # path of installation is always this on Windows
if(NOT DEFINED OS_SPECIFIC_INSTALL_GUIDE_INSTRUCS)
configure_file(${FAUST_DOC_SRC_DIR}/bin_pkgs/win/README_install_part.html ${PROJECT_BINARY_DIR}/doc/README_install_part.html)
file(READ ${PROJECT_BINARY_DIR}/doc/README_install_part.html OS_SPECIFIC_INSTALL_GUIDE_INSTRUCS)
......
......@@ -65,7 +65,7 @@ Otherwise it didn't work. So here is how to setup the wrapper manually.
First, launch a Matlab terminal, then go in the FAµST directory:
>> cd @CMAKE_INSTALL_PREFIX@/matlab
>> cd @FAUST_INSTALL_PATH@/matlab
Then launch the script that is responsible to add FAµST location in your Matlab path.
......@@ -81,7 +81,7 @@ For that purpose:
<li>Go into the sub-directory toolbox/local
<li>Edit the file startup.m by adding the follwing line:
<pre>
addpath(genpath('@CMAKE_INSTALL_PREFIX@/matlab'))
addpath(genpath('@FAUST_INSTALL_PATH@/matlab'))
</pre>
</ol>
OK! You can follow the [quick start usage](#usage) now.
......@@ -107,13 +107,13 @@ indicates that you need to add the Python wrapper manually in your Python path a
- For Linux and macOS in a Bash terminal:
$ export PYTHONPATH=$PYTHONPATH:@CMAKE_INSTALL_PREFIX@/python
$ export PYTHONPATH=$PYTHONPATH:@FAUST_INSTALL_PATH@/python
# and test again
$ python2 -c "import pyfaust; print('It works.')"
- For Windows in the command prompt:
set PYTHONPATH=%PYTHONPATH%;@CMAKE_INSTALL_PREFIX@/python
set PYTHONPATH=%PYTHONPATH%;@FAUST_INSTALL_PATH@/python
:: and test again
python -c "import pyfaust; print('It works.')"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment