Skip to content

Compiling S-function using given matlab script #983

Closed Answered by bcoconni
MasterNomi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @MasterNomi,

Indeed the JSBSim.lib file that you get from the Windows installer has been compiled with VS 2019 so it's likely that the binary is not compatible with earlier versions of MSVC. This can be worked around by using CMake as @agodemar suggested. For that, you will need to download the source code of JSBSim v1.2 which is the current stable branch. Once the files are unzipped, you can execute the following commands in a terminal

cd $JSBSIM_SOURCE_ROOT_DIRECTORY
mkdir build
cd build
cmake -DBUILD_MATLAB_SFUNCTION=ON ..

However if you cannot or do not want to use CMake, you can build JSBSim.lib from scratch with VS 2015. For that, you can open the MSVC project JSBSim.vcxproj (it …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@bcoconni
Comment options

@bcoconni
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by agodemar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
MATLAB Topics linked to the MATLAB S-Function
3 participants