-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install on Raspberry Pi #4
Comments
Building this code should probably work under Raspberry Pi. Be warned that this code is fairly old, to get a more recent version of the FMU SDK, you might try FMUSDK 2.0.6 from https://resources.qtronic.de/fmusdk/FmuSdk_reference.html The failure you are seeing is because the fmu10/src/models/build_fmu script is not executing. Under macOS, I cloned the repo, ran make and the build completed. For your reference, here is the first part of the build. Note that under macOS, make is in /Applications/Xcode.app/Contents/Developer/usr/bin/make, under other operating systems, you would see different values for the make executable
The build_fmu script has these permissions:
If the permissions of your build_fmu file are not the same, then try
Then re-run |
It looks like 2.0.6 has a bug fix that might help: https://resources.qtronic.de/fmusdk/FmuSdk_reference.html says:
|
Thank you for the answer! **The build_fmu script has these permissions: bash-3.2$ ls -l fmu10/src/models/build_fmu chmod a+x fmu10/src/models/build_fmu fmu20/src/models/build_fmu** Then I re-run the installation with make and i get an error like this: (cd fmu10; make)
I don't know in which directory i should copy .h file with rsync. I searched the .h files and i get this: $ find -name *.h The question is, which files should i rsync in which directory? I'm new in the Linux world. |
It looks to me like it is working. Your run is below:
One mystery is that you have
whereas under Ubuntu with Gnu Make 4.1, I have
Anyway, what is happening here is that fmusdk/fmu10/src/models/Makefile contains:
The - at the beginning of the
line causes make to ignore errors, print a message and proceed. See https://www.gnu.org/software/make/manual/html_node/Errors.html So, I believe that the fmu file was successfully created. Here's what I have:
See https://resources.qtronic.de/fmusdk/FmuSdk_reference.html for instructions about how to run it. The instructions seem slightly wrong, I used fmu10/bin/fmusim_me to run the binary.
Note that running the command unzips the fmu file and creates the following files.
The key files are modelDescription.xml and binaries/linux64/bouncingBall.so I suspect that the version of fmusdk.zip that is available on the qtronic website is not the most recent version because the files in fmusdk.zip do not contain "rsync". I'll contact them and ask. |
Thank you for the detailed answer
I tried also to simulate a FMU2.0. This fmu i have simulated successfully with this python package. But here i get an error like this:
|
Sory, here is the python package: |
FMPy looks pretty good! I asked Qtronics if the version of fmusdk.zip on their server was 2.0.6 and they replied that it was not, and they updated it. I checked and http://www.qtronic.de/doc/fmusdk.zip is now fmusdk2.0.6. I don't have access to a 32-bit linux right now, I tried the steps below under 64-bit Ubuntu, but I'm missing 32-bit versions of libxml2 and libexpat. In fmusdk2.0.6, fmu10/src/Makefile contains:
If you uncomment the CFLAGS line:
and also edit fmu10/src/models/build_fmu
by uncommenting
You would need to make similar edits in fmu20/src/Makefile and fmu20/src/models/build_fmu, then run
|
I still get an error. These are my installation steps: Download the zip file http://www.qtronic.de/doc/fmusdk.zip , that you have posted.
Change the permission:
install:
Then I run:
and subsequently I run make and i get the same error.
|
I installed it without uncomment the Makefiles.
And i haven't some errors.
Now if i try to simulate some FMU i get problems whit permission and ModelExchange.
|
Hello,
I have a question.
It is possible to install this package on Raspberry Pi (Rasbian, CPU: armv7l)?
I have tried it and i get this error:
(cd fmu10; make)
make[1]: Entering directory '/home/pi/Documents/neue_FMU/fmu10'
(cd src; make)
make[2]: Entering directory '/home/pi/Documents/neue_FMU/fmu10/src'
(cd models; make)
make[3]: Entering directory '/home/pi/Documents/neue_FMU/fmu10/src/models'
./build_fmu me bouncingBall
make[3]: execvp: ./build_fmu: Permission denied
Makefile:25: recipe for target 'all' failed
make[3]: *** [all] Error 127
make[3]: Leaving directory '/home/pi/Documents/neue_FMU/fmu10/src/models'
Makefile:9: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/pi/Documents/neue_FMU/fmu10/src'
Makefile:2: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pi/Documents/neue_FMU/fmu10'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 2
Best Regards
Max
The text was updated successfully, but these errors were encountered: