CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   problem with compiling new RNGkEpsilon (https://www.cfd-online.com/Forums/openfoam-programming-development/135510-problem-compiling-new-rngkepsilon.html)

buck_s May 14, 2014 09:03

problem with compiling new RNGkEpsilon
 
Hey Everybody,

While trying to implement an edited version of the turbulence model RNGkEpsilon, I get this error when trying to compile it with wmake.

Code:

SOURCE=myRNGkEpsilon/myRNGkEpsilon.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/turbulenceModels -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/thermophysicalModels/basic/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/thermophysicalModels/solidThermo/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/meshTools/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/turbulenceModels/compressible/RAS/lnInclude -IlnInclude -I. -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/myRNGkEpsilon.o
jar cfm /disk/OpenFOAM/mhanna-2.2.x/platforms/linux64Gcc46DPOpt/lib/libmyCompressibleRASModels .jar -lcompressibleTurbulenceModel -lfiniteVolume -lfluidThermophysicalModels -lspecie -lmeshTools -C Make/classes .
g++: error: .so: No such file or directory
make: *** [.so] Error 1
make: *** Waiting for unfinished jobs....
java.io.FileNotFoundException: .jar (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:140)
        at java.io.FileInputStream.<init>(FileInputStream.java:96)
        at sun.tools.jar.Main.run(Main.java:168)
        at sun.tools.jar.Main.main(Main.java:1167)
make: *** [/disk/OpenFOAM/mhanna-2.2.x/platforms/linux64Gcc46DPOpt/lib/libmyCompressibleRASModels] Error 1

Could anyone help me find out, where this error is coming from?

Thanks in advance

Bernhard November 14, 2014 06:29

For future readers. I had a similar error message for a boundary condition. If you have this error, take a few steps back to the original files that you copied. For the above example, be sure to replace all occurences of "RNGkEpsilon" with something unique, e.g. "myRNGkEpsilon". That solved it for me.

Another hint that might help future readers: there are depencies. Copy the Make files and options, and in options, add the original library where you copied the source from (as well as the lnInclude path). By the way, I had this issue in OpenFOAM version 2.1

pmdelgado2 March 21, 2016 15:03

I ran into this same problem and fixed it by alternative means. Notice that the error says that the compiler is looking for a file called ".jar", but can't find it. This means that, somehow, your make file was created in such a way that it included an extra space in between "libmyCompressibleRASModels" and ".jar". When I inspected the file "Make/files", I noticed that the line:

LIB = $(FOAM_LIBBIN)/libCompressibleRASModels

had an extra space at the end of it. By removing the extra space at the line, it worked fine.


All times are GMT -4. The time now is 15:07.