unable to find makefile while simulating in openmodelica - makefile

I was trying to compile a pre-existing example model with omc :
loadModel(Modelica);getErrorString();
setCommandLineOptions("+simCodeTarget=JavaScript");getErrorString();
buildModel(Modelica.Electrical.Analog.Examples.ChuaCircuit);
getErrorString();
but it was giving me the following error:
true
""
true
""
{"",""}
"Error: Error building simulator. Build log: make:
Modelica.Electrical.Analog.Examples.ChuaCircuit.makefile: No such file
or directory
make: *** No rule to make target
'Modelica.Electrical.Analog.Examples.ChuaCircuit.makefile'. Stop.
"

Related

"No rule to make target" when compiling glib

I am currently trying to build a software. However during its compilation, it stops with the following error messages:
make[2]: *** No rule to make target `/glib-2.0/include/glibconfig.h', needed by `GLib-2.0.gir'. Stop.
make[2]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/gobject-introspection-1.30.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/gobject-introspection-1.30.0'
make: *** [all] Error 2
...
I read a thread about a similar error message here: gcc makefile error: "No rule to make target ..." however, I was not able to use it on my case. All I can say is that the dir where glibconfig.h is found, shows here:
$(GLIB_LIBDIR)/glib-2.0/include/glibconfig.h
I guess I have to edit the Makefile and add something, but what? Not sure what .gir files are

Error when building omnet++ with inet project

I have error messages when try to build project using omnet++ with inet
15:56:39 **** Incremental Build of configuration release for project
FirstProject ****
make MODE=release all
cd src && /usr/bin/make
make[1]: Entering directory '/c/omnetpp-5.6.2/samples/FirstProject/src'
Creating executable: ../out/clang-release/src/FirstProject.exe
C:\omnetpp-5.6.2\tools\win64\mingw64\bin\ld: cannot find -lINET
clang++.exe: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [Makefile:101: ../out/clang-release/src/FirstProject.exe]
Error 1
make[1]: Leaving directory '/c/omnetpp-5.6.2/samples/FirstProject/src'
make: *** [Makefile:2: all] Error 2
"make MODE=release all" terminated with exit code 2. Build might be
incomplete.
15:56:40 Build Failed. 3 errors, 0 warnings. (took 1s.125ms)
Did you check that Inet is correctly referenced in your FirstProject?
Right Click on First Project - > Properties - > Project References - > Mark Inet.
Another reason can be an error compiling Inet.
I solved the problem by installing clang,clang++

Install SUMO on Ubuntu 16.04 VBox

During the installation of SUMO (https://github.com/eclipse/sumo) on Ubuntu 16.04 VBox I face an error when i want to build (when i use make i get an error):
[ 80%] Built target _libsumo
[ 80%] Linking CXX shared module ../../../../bin/liblibsumojni.so
/usr/lib/java/bin/javac: 1: /usr/lib/java/bin/javac: Syntax error: word unexpected (expecting ")")
src/libsumo/CMakeFiles/libsumojni.dir/build.make:147: recipe for target '../../bin/liblibsumojni.so' failed
make[2]: *** [../../bin/liblibsumojni.so] Error 2
make[2]: *** Deleting file '../../bin/liblibsumojni.so'
CMakeFiles/Makefile2:1484: recipe for target 'src/libsumo/CMakeFiles/libsumojni.dir/all' failed
make[1]: *** [src/libsumo/CMakeFiles/libsumojni.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Any suggestions please ?
Thank you!
It is probably a problem with your java version. Unless you really need those Java bindings you can simply disable them when calling cmake like this:
cmake -DENABLE_JAVA_BINDINGS=OFF ../..
(this assumes you have a build dir like build/cmake-build as in the docs).

missed files while building veins_inet

I'm using inet4 omnet5.5.1 veins5 I imported veins_inet in the workspace but it doesn't build successfully even though I added the paths to inet and veins src files in project properties I got the following error:
15:29:41 **** Incremental Build of configuration gcc-debug for project veins_inet ****
make MODE=debug all
make[1]: Entering directory '/home/nai/omnetpp-5.5.1/myWorkspace/veins_inet/src'
Creating shared library: ../out/gcc-debug/src/libveins_inet_dbg.so
/usr/bin/ld: cannot find -lINET_dbg
Makefile:141: recipe for target '../out/gcc-debug/src/libveins_inet_dbg.so' failed
make[1]: Leaving directory '/home/nai/omnetpp-5.5.1/myWorkspace/veins_inet/src'
Makefile:36: recipe for target 'all' failed
/usr/bin/ld: cannot find -lveins_dbg
collect2: error: ld returned 1 exit status
make[1]: *** [../out/gcc-debug/src/libveins_inet_dbg.so] Error 1
make: *** [all] Error 2
"make MODE=debug all" terminated with exit code 2. Build might be incomplete.
15:29:43 Build Failed. 6 errors, 0 warnings. (took 1s.693ms)
apparently some required files are missing
how to fix this please
You might be building this project in debug mode, but not building the other projects in debug mode.

trying to building on OSX but got "No rule to make target antlr4_static" error

trying to build on OSX, got the following antlr error. Need to install antlr-runtime?
[ 43%] Built target antlr4_runtime
[ 43%] Built target csv_infer
[ 45%] Performing build_static step for 'antlr4_runtime'
make[4]: *** No rule to make target `antlr4_static'. Stop.
make[3]: *** [antlr4_runtime/src/antlr4_runtime-stamp/antlr4_runtime-build_static] Error 2
make[2]: *** [CMakeFiles/antlr4_runtime-build_static.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [dev] Error 2
This has now been fixed.
CMake 3.14 changed where the ExternalProject module builds the source. It was unable to find ANTLR's own CMake files, necessitating a change to the WORKING_DIRECTORY.

Resources