-
Notifications
You must be signed in to change notification settings - Fork 10
twoPhaseCompressibleTurbulenceModels compile error #19
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
Comments
Many thanks for the feedback! Yes, part of the problem has to do with the long file-name paths. Although several measures were put into the The detailed step-by-step instructions on how to build and do a git pull from our repositories is planned, but it will take us a few more weeks until we're able to get to it. Nonetheless, from your description, I still need to know what was the exact command you used for building OpenFOAM, namely if you simply used:
or:
In the meantime, I'll also test this in a clean VM with Windows installed in it, to try and reproduce the same error and figure out the solution. |
OK, I've finished testing and I've confirmed that the solution relies on a part of blueCFD-Core's installation that I haven't had the time to document yet. Nonetheless, I'll give you a quick list of steps to follow to get things working:
|
The solution for building the applications that failed to build with the command from the previous comment, is to run the following commands:
This is assuming that the log file In a more explicit way, the previous command can also be coded like this:
|
Thank you for very quickly reply. And I have finished testing your solution, it work well. Thank you very much. I will continue to deeply play your release, and feedback your more information. In addition, I also find another solution, I also completed the test and work well. now share with everyone. " Starting with Windows 10 Insider Preview Build 14352, long paths beyond the normal 260 char limit per node can be enable to allow manifested win32 applications and Windows Store applications. Enabling this setting will cause the long paths to be accessible within the process.(note: The caveat here is the term "manifested win32 applications". While most win32 applications since the days of Windows Vista are manifested, it is usually the case that the applications need to declare capabilities explicitly. and Win32 is a set of APIs that are used to make what's commonly referred to as "desktop" programs. It has nothing to do with whether a program is inherently 32-bit or 64-bit.) You must be signed in as an administrator to be able to enable or disable long paths. 1.Tap on the Windows-key(win+r), type gpedit.msc, and hit enter. Keep foaming |
Actually, MSys2 already provides most of the binaries with this ability, namely to handle long paths, without having to go around tweaking Windows to handle this issue. Note: I've written a quick wiki page which consolidates most of this information: https://github.com/blueCFD/Core/wiki/Quick-notes-on-how-to-update-build |
Firstly, Thank you very much for taking OpenFOAM Technology into Windows platform. This release will make more people understand the fascinating and wonderful CFD technology of OpenFOAM.
I download the BlueCFD-core-2016 installer, and install it in C directory of Win 10 Entr. Then I use "git pull" update to latest source codes. While I compiled the code, the following error exist.
I suspect the file name is maybe too long. but I can not find workable solution.
"+ wmake libso twoPhaseCompressibleTurbulenceModels Make.win
/home/ofuser/blueCFD/OpenFOAM-4.x/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels
x86_64-w64-mingw32-g++ -std=c++0x -Dmingw_w64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -DWIN64 -DLITTLE_ENDIAN -DWIN64 -DLITTLE_ENDIAN -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O2 -DNDEBUG -Wl,--strip-all -DNoRepository -ftemplate-depth-100 -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/finiteVolume/lnInclude -I../twoPhaseSystem/lnInclude -I../../phaseSystems/lnInclude -I../../interfacialModels/lnInclude -I../../interfacialCompositionModels/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/transportModels/compressible/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/thermophysicalModels/basic/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/thermophysicalModels/specie/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/thermophysicalModels/reactionThermo/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/transportModels/incompressible/transportModel -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/TurbulenceModels/compressible/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/TurbulenceModels/phaseCompressible/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/combustionModels/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/fvOptions/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/meshTools/lnInclude @/home/ofuser/blueCFD/OpenFOAM-4.x/platforms/mingw_w64GccDPInt32Opt/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/includeHeaderPaths -IlnInclude -I. -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/OpenFOAM/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/OSspecific/MSwindows/lnInclude -c derivedFvPatchFields/alphatFixedDmdtWallBoilingWallFunction/alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C -o \?\C:\blueCFD\OpenFOAM-4.x\platforms\mingw_w64GccDPInt32Opt\applications\solvers\multiphase\reactingEulerFoam\reactingTwoPhaseEulerFoam\twoPhaseCompressibleTurbulenceModels\derivedFvPatchFields\alphatFixedDmdtWallBoilingWallFunction\alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.o
In file included from derivedFvPatchFields/alphatFixedDmdtWallBoilingWallFunction/alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.H:47:0,
from derivedFvPatchFields/alphatFixedDmdtWallBoilingWallFunction/alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C:26:
lnInclude/alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H:1:137: fatal error: ../derivedFvPatchFields/alphatPhaseChangeJayatillekeWallFunction/alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H: No such file or directory
compilation terminated.
/home/ofuser/blueCFD/OpenFOAM-4.x/wmake/rules/General/transform:8: recipe for target '/home/ofuser/blueCFD/OpenFOAM-4.x/platforms/mingw_w64GccDPInt32Opt/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/derivedFvPatchFields/alphatFixedDmdtWallBoilingWallFunction/alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.o' failed
make[2]: *** [/home/ofuser/blueCFD/OpenFOAM-4.x/platforms/mingw_w64GccDPInt32Opt/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/derivedFvPatchFields/alphatFixedDmdtWallBoilingWallFunction/alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.o] Error 1
/home/ofuser/blueCFD/OpenFOAM-4.x/wmake/makefiles/apps:39: recipe for target 'reactingEulerFoam' failed
make[1]: *** [reactingEulerFoam] Error 2
/home/ofuser/blueCFD/OpenFOAM-4.x/wmake/makefiles/apps:39: recipe for target 'multiphase' failed
make: *** [multiphase] Error 2"
The text was updated successfully, but these errors were encountered: