add support for mingw cross-compilation
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Link issues together to show that they're related. Learn more.
Activity
- Author MaintainerEdited by Mark OLESEN
- Mark OLESEN mentioned in commit fc631e56
mentioned in commit fc631e56
- Author Maintainer
Misc Notes
-
updates for endian, bessel, regex already made to develop
-
Skip compilation of
wmake/src/Allmake
in favour of copy/sync from existing binaries. Eg,
rsync -aP wmake/platforms/linux64Gcc/ wmake/platforms/linux64Mingw
This provides linux (not windows) executables for the host system. Otherwise you'd get the target system (windows) binaries for wmdepend etc and that doesn't work very well for us. Could theoretically provide a scripted workaround for this, but it doesn't occur very often and thus handle manually.
Edited by Mark OLESEN -
- Mark OLESEN mentioned in commit ab2e1002
mentioned in commit ab2e1002
- Mark OLESEN mentioned in commit f3425b53
mentioned in commit f3425b53
- Mark OLESEN mentioned in commit 124a3516
mentioned in commit 124a3516
- Mark OLESEN mentioned in commit bf5af092
mentioned in commit bf5af092
- Mark OLESEN mentioned in commit 8413f620
mentioned in commit 8413f620
- Mark OLESEN mentioned in commit bca575da
mentioned in commit bca575da
- Mark OLESEN mentioned in commit d933a18a
mentioned in commit d933a18a
- Mark OLESEN mentioned in commit 3f1a5802
mentioned in commit 3f1a5802
- Mark OLESEN mentioned in commit 49cb728c
mentioned in commit 49cb728c
- Mark OLESEN mentioned in commit c3ee4a6f
mentioned in commit c3ee4a6f
- Mark OLESEN mentioned in commit af9a7b29
mentioned in commit af9a7b29
- Mark OLESEN made the issue visible to everyone
made the issue visible to everyone
- Mark OLESEN mentioned in commit 0d672c21
mentioned in commit 0d672c21
- Mark OLESEN mentioned in commit 40426850
mentioned in commit 40426850
- Mark OLESEN mentioned in commit 570d900d
mentioned in commit 570d900d
- Mark OLESEN mentioned in commit 947646de
mentioned in commit 947646de
- Mark OLESEN mentioned in commit ee845da8
mentioned in commit ee845da8
- Mark OLESEN mentioned in commit 3f36a509
mentioned in commit 3f36a509
- Mark OLESEN mentioned in commit 0b16776b
mentioned in commit 0b16776b
- Mark OLESEN mentioned in commit 031fa57f
mentioned in commit 031fa57f
- Mark OLESEN mentioned in commit 763b2ece
mentioned in commit 763b2ece
- Reporter
off by one in GetEnvironmentVariable CWD sizing (as discussed)
Edited by Pawan Ghildiyal - Reporter
regular expression in fvSolution (pitzDaily case) does not work
- Mark OLESEN mentioned in commit 2827a57b
mentioned in commit 2827a57b
- Reporter
snappyHexMesh with implict option i.e using .eMesh does not work
--> FOAM FATAL ERROR: Cannot read file "C:/Users/pgh.ESI-INTERNAL/Desktop/motorBike-1/constant/triSurface/motorBike.eMesh" From function virtual bool Foam::fileFormats::edgeMeshFormat::read(const Foam::fileName&) in file edgeMesh/edgeMeshFormats/edgeMesh/edgeMeshFormat.C at line 82. FOAM exiting
- Mark OLESEN mentioned in commit d5b1e5a0
mentioned in commit d5b1e5a0
- Mark OLESEN mentioned in commit 267a8464
mentioned in commit 267a8464
- Mark OLESEN mentioned in commit b585b98a
mentioned in commit b585b98a
- Reporter
TJunction( compressible/rhoPimpleFoam/RAS/TJunction)
case was failing earlier as it was not able to find "viscousDissipation"
and we need to add libs(libfvOption.dll) line in system/controlDict .
Now with latest fix this is not required. Tutorial can run directly as it is - Reporter
@mark ptscotch compilation failed for me .
In file included from dummysizes.c:90:0: common.h:108:28: fatal error: mpi.h: No such file or directory compilation terminated.
- Author Maintainer
Probably need to check if your mpi (eg, MSMPI) is being found properly. Does
$MPI_ARCH_PATH
point to anything useful? - Reporter
To use scotch decomposition method , i need to include libs("libscotchDecomp.dll"). By default, it does not recognize scotch method.
- Author Maintainer
Is this decomposePar or something else?
- Reporter
Yes , decomposePar.
- Author Maintainer
Odd, that shouldn't be (if you rebuilt after the commit b585b98a).
In my
build/linux64MingwDPInt32Opt/applications/utilities/parallelProcessing/decomposePar/options
file I have this type of content:EXE_INC += -DFOAM_DLOPEN_LIBS='"finiteArea","finiteVolume","meshTools","lagrangian","dynamicMesh","regionModels","genericPatchFields","decompose","decompositionMethods","kahipDecomp","metisDecomp","scotchDecomp"'
If you don't have that, perhaps you are still using an older compilation.
- Reporter
Thanks Mark. I can see in my option file these three not included. kahipDecomp","metisDecomp","scotchDecomp"' is not included. I have taken update and compiling it again
- Author Maintainer
If you read the notes carefully on the commit, you'll also see that this approach can be a bit sticky. That is to say you may need to wclean the applications first to get the proper creation of the options files.
- Reporter
I took latest update and decomposePar work fine with scotch.
- Reporter
Regarding ptscotch, I still face same issue i.e unable to compile . MPI_ARCH_PATH point to msmpi and path is OK. libPstream compiled without any issue .
- Reporter
I am using msy2 terminal to run tutorials. I am able to source etc/bashrc file.
However to run Allrun scripts I need to do two things manually.- ADD path of lib folder in PATH environment variable . In windows, all lib folder need to be added to PATH environment variable .
[EDIT] 2)need to change mpirun to mpiexec in RunFunctions. also np need to be replaced by "n"
mpirun -np 2 simpleFoam -parallel (Linux)
mpiexec -n 2 simpleFoam -parallel (windows)
Feature request:It will be great, if OpenFOAM can select, mpiexec for windows automatically to run tutorials. Regarding add path of LIB to PATH env for
Edited by Pawan Ghildiyal - Mark OLESEN mentioned in commit 3c505688
mentioned in commit 3c505688
- Reporter
Hi Mark
Thanks for commit 3c505688 . I realized that in windows with mpiexec , we use -n instead of -np
i.e mpiexec -n 2 simpleFoam -parallel (windows). Can you please add this one too .Edited by Pawan Ghildiyal - Mark OLESEN mentioned in commit 7c584292
mentioned in commit 7c584292
- Reporter
Hi Mark
timeActivatedFileUpdate functionObjects does not work as expected . I can see , it is being executed
and it copy file i.e fvSchmes_2ndOrder but it cannot copy to desired name schemes but copied to fvSchemes3090 in system folder. Number digit is different every time. This number is actually process pid. Greetings to all,
I've been following this report and haven't had time to investigate deeper on how things are going.
But on this issue with the timeActivatedFileUpdate I can give a bit of information, because I've stumbled on this on Windows with blueCFD-Core as well, so I'm assuming it's the same exact problem:
-
In the method
updateFile()
: https://develop.openfoam.com/Development/OpenFOAM-plus/blob/develop/src/functionObjects/utilities/timeActivatedFileUpdate/timeActivatedFileUpdate.C#L72 - there is first a copy and then a move. -
The move was intended to make the transfer as quick as possible, since it's just a filesystem metadata tweak; but on Windows, the file to be replaced is somehow still open and Windows does not like that opened files are replaced (part of Windows' multiple safety measures).
-
So either the file stops being left open (although I thought that they were closed in the first place after reading them, maybe a destructor is failing?) or the replacement+trigger is done in some other way.
Best regards, Bruno
-
- Author Maintainer
Might an explicit close() help? Seems like much the same thing as the destructor is supposed to do.
@mark I haven't studied the IO dictionary code properly, so I assumed that the file closure was handled at destruction...
Either way, an explicit
close()
will require that anopen(...)
is done soon after... and I don't remember if the IO notify feature relies on an open file handle or not...- Mark OLESEN mentioned in commit 81c96a2d
mentioned in commit 81c96a2d
- Mark OLESEN closed
closed
- Mark OLESEN mentioned in commit fd0282f2
mentioned in commit fd0282f2
- Mark OLESEN mentioned in commit 90f039fa
mentioned in commit 90f039fa
- Mark OLESEN mentioned in commit 717a3e59
mentioned in commit 717a3e59