-
Notifications
You must be signed in to change notification settings - Fork 3
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
No such file or directory: './configure' #9
Comments
I added a couple of lines to cd "$fmu_dir/sources"
cp ./configure.ac ./configure
chmod 777 configure # needed otherwise it complains about "Permission denied"
emconfigure ./configure \
CFLAGS='-Wno-unused-value -Wno-logical-op-parentheses' \
CPPFLAGS="-DOMC_MINIMAL_METADATA=1 -I$sources_dir/fmi -I/usr/local/include" It now errors with:
|
I notice at the top of configure.ac it says "Process this file with autoconf to produce a configure script." |
I ran
|
I don't understand yet how and where the configure.ac gets generated or why it is not already converted to configure. I assume this is something wrong that I have done? |
Hi, thanks for reporting. Sorry, the script to compile FMU from OM needs substantial revision as I discovered other subsequent issues, and did not find a solution now. If you're stuck just with compiling MO to JS, I've tried to create some LorenzAttractor model and exported it from Dymola and compiled to FMU with source codes. The model, fmu and demo as web app can be downloaded from https://filedn.com/lHGc7w3H4jOpIe46u1nPt57/LorenzAttractor/LorenzAttractorHTMLExport.zip The demo web app screencast from index.html: |
Amazing, thank you Tomas! I'm just using the Lorenz Attractor as a minimal test case to prove OM (Open Modelica Edit) -> JS works. I want to run much large more complex models. Thanks for letting me know it's not functional yet. I don't have much experience of OM or WASM but I am an experienced software engineer so if you have a list of questions / tasks you think I could help with to get this repo to convert FMUs from OM then please share with me and I will do my best to help. I'd love to see this library working for them. I can see creative-connections/Bodylight.js-FMU-Compiler#4 but I assume the fixes you are referring to are only needed in this repo? |
Hi, I've tested on a clean VM (built from fresh sources) - instead of my dirty development VM. And I have following suggestion:
Any contribution to openmodelica.sh script to fix compilation with CVODE will be very appreciated creative-connections/Bodylight.js-FMU-Compiler#4d :-)
Updated demo at https://filedn.com/lHGc7w3H4jOpIe46u1nPt57/LorenzAttractor/LorenzAttractorHTMLExport.zip |
If I use OMEdit on Mac to produce the FMU and use the Bodylight Compiler from inside this virtual machine (using Vagrant and VirtualBox on Mac) then it compiles something that seems right (I'm running into an error now trying to get the Editor to produce a working example similar to the one you've kindly attached above. I'm getting a I appreciate the original problem was with running the compiler with an FMU which was produce from the Windows OMEdit. Shall we leave this issue open or would you rather we close it and direct people to using OMEdit from a Mac / Linux or from inside a linux virtual machine? |
Thank you so much for this library. I'm running:
With the FMU from 1.18.0 uploaded to http://localhost:8080/compiler/ it gave me this error about
No such file or directory: './configure'
:I downgraded OMEdit to 1.14.1, rebuilt the FMU and tried http://localhost:8080/compiler again and it gave me a similar error:
Thanks in advance for any thoughts or advice.
p.s. also if it helps others, the
Tools > Options > FMI
menu to set the solver for co-simulation is only available from OMEdit 1.18.1, it is not present in 1.18.0.The text was updated successfully, but these errors were encountered: