Topic: Installation on Windows 8 stuck at generating cmake-gui

This is my error messege:

CMake Error at CMakeLists.txt:202 (message):
Elixir library not found (required for OOFEG)

Configuring incomplete, errors occurred!
See also "D:/Program Files (x86)/Oofem/oofem/CMakeFiles/CMakeOutput.log".
See also "D:/Program Files (x86)/Oofem/oofem/CMakeFiles/CMakeError.log".

I attached the second file to this post. To be fair I do not know what to make of the report made in these files and thus have troubles going further through the installation procedure.

Are you able to help me?

Post's attachments

CMakeError.log 19.67 kb, 5 downloads since 2015-04-08 

You don't have the permssions to download the attachments of this post.

2

Re: Installation on Windows 8 stuck at generating cmake-gui

Hi,
you should disable OOFEG as this is supported only on Unix platforms. So turn off the USE_OOFEG option.

Borek

Re: Installation on Windows 8 stuck at generating cmake-gui

Thanks for the help. I unchecked USE_OOFEG.

However, now I have a new error message that says:

  CMake Error at D:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindBLAS.cmake:681 (message):
  A required library with BLAS API not found.  Please specify library
  location.
  Call Stack (most recent call first):
  D:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindLAPACK.cmake:156 (find_package)
  CMakeLists.txt:233 (find_package)


  Configuring incomplete, errors occurred!
   See also "D:/Program Files (x86)/Oofem/oofem/CMakeFiles/CMakeOutput.log".
   See also "D:/Program Files (x86)/Oofem/oofem/CMakeFiles/CMakeError.log".



I'm not sure if this is relevant but: I tried unchecking other packages too now to see if those also had compatibility issues but did not get any other results than above message. Except for the case where I disabled USE_LAPACK, then it said the following:

  CMake Error at CMakeLists.txt:241 (find_package):
  Could not find a package configuration file provided by "VTK" with any of
  the following names:

    VTKConfig.cmake
    vtk-config.cmake

  Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
  to a directory containing one of the above files.  If "VTK" provides a
  separate development package or SDK, be sure it has been installed.

I hope you can help me.


Kind regards,

Sebastiaan

Post's attachments

CMakeError.log 22.67 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Installation on Windows 8 stuck at generating cmake-gui

These packages (VTK, LAPACK, OOFEG) are not selected by default, and this is because they require external packages which you must install first. Please run cmake on an empty target directory, and leave the options as they are by default, as it seems like you haven't installed the VTK-dependencies.

Re: Installation on Windows 8 stuck at generating cmake-gui

Again thanks for the help smile


After running cmake on an empty target directory I am one step further, though not through the complete installation.

"Now in the oofem folder (e.g. C:\oofem) double-click on oofem.sln to start VS; right-click on the oofem project and click on Set as     StartUp Project. Compile the solution. You can find the resulting oofem.exe inside the Debug, Release, MinSizeRel or RelWithDebInfo   folder."

I'm stuck at the part where it says compile the solution I think. I could not find the option compile but have tried the options Start Debugging and Build Solution, as I expect those to be the way to compile it. Then I get the following output:

'oofem.exe' (Win32): Loaded 'D:\Program Files (x86)\Oofem3\oofem\Debug\oofem.exe'. Symbols loaded.
'oofem.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'oofem.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'oofem.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'oofem.exe' (Win32): Loaded 'C:\Windows\SysWOW64\apphelp.dll'. Cannot find or open the PDB file.
SHIMVIEW: ShimInfo(Complete)
'oofem.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Cannot find or open the PDB file.
'oofem.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.
The program '[604] oofem.exe' has exited with code 0 (0x0).


I also get the following 75 warnings:

Warning    1    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\fm\supg.C    466    1    fm
Warning    2    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\fm\supg.C    588    1    fm
Warning    3    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\fm\tr1_2d_supg.C    935    1    fm
Warning    4    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\oofemlib\domain.c    1025    1    core
Warning    5    warning C4800: 'oofem::LIBeam2d *const ' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Beams\libeam2d.C    393    1    sm
Warning    6    warning C4800: 'oofem::LIBeam2dNL *const ' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Beams\libeam2dnl.C    591    1    sm
Warning    7    warning C4800: 'oofem::LIBeam3d *const ' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Beams\libeam3d.C    409    1    sm
Warning    8    warning C4800: 'oofem::LIBeam3dNL *const ' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Beams\libeam3dnl.C    696    1    sm
Warning    9    warning C4800: 'oofem::LIBeam3dNL2 *const ' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Beams\libeam3dnl2.C    758    1    sm
Warning    10    warning C4800: 'oofem::LIBeam3d2 *const ' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Beams\libeam3d2.C    415    1    sm
Warning    11    warning C4800: 'oofem::Beam2d *const ' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Beams\beam2d.C    560    1    sm
Warning    12    warning C4800: 'oofem::Beam3d *const ' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Beams\beam3d.C    695    1    sm
Warning    13    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\fm\binghamfluid2.C    221    1    fm
Warning    14    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\fm\binghamfluid2.C    282    1    fm
Warning    15    warning C4800: 'oofem::DKTPlate *const ' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Plates\dkt.C    474    1    sm
Warning    16    warning C4800: 'oofem::QDKTPlate *const ' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Plates\qdkt.C    485    1    sm
Warning    17    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\fm\levelsetpcs.C    52    1    fm
Warning    18    warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\integrationrule.C    223    1    core
Warning    19    warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\skyline.C    187    1    core
Warning    20    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Elements\Shells\shell7basexfem.C    1598    1    sm
Warning    21    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\subspaceit.C    434    1    core
Warning    22    warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\masterdof.C    275    1    core
Warning    23    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\nrsolver.C    321    1    core
Warning    24    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\dynamicrelaxationsolver.C    159    1    core
Warning    25    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\staggeredsolver.C    302    1    core
Warning    26    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\staggeredsolver.C    317    1    core
Warning    27    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    808    1    sm
Warning    28    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    830    1    sm
Warning    29    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    831    1    sm
Warning    30    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    833    1    sm
Warning    31    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    834    1    sm
Warning    32    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    853    1    sm
Warning    33    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    854    1    sm
Warning    34    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    858    1    sm
Warning    35    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    871    1    sm
Warning    36    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    872    1    sm
Warning    37    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    876    1    sm
Warning    38    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    877    1    sm
Warning    39    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\shells\shell7basexfem.c    899    1    sm
Warning    40    warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\exportmodule.C    134    1    core
Warning    41    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\errorcheckingexportmodule.C    338    1    core
Warning    42    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\tet21ghostsolid.c    159    1    sm
Warning    43    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\tet21ghostsolid.c    165    1    sm
Warning    44    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\tet21ghostsolid.c    166    1    sm
Warning    45    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\tet21ghostsolid.c    174    1    sm
Warning    46    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\tet21ghostsolid.c    175    1    sm
Warning    47    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\tet21ghostsolid.c    180    1    sm
Warning    48    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\tet21ghostsolid.c    182    1    sm
Warning    49    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\tet21ghostsolid.c    205    1    sm
Warning    50    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\tet21ghostsolid.c    228    1    sm
Warning    51    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\elements\tet21ghostsolid.c    632    1    sm
Warning    52    warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\element.C    1120    1    core
Warning    53    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\oofemlib\fei3dhexalin.C    205    1    core
Warning    54    warning C4101: 'node' : unreferenced local variable    D:\Program Files (x86)\Oofem3\oofem\src\sm\EngineeringModels\deidynamic.C    145    1    sm
Warning    55    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Materials\BoneMaterials\trabbone3d.C    428    1    sm
Warning    56    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\materials\bonematerials\trabbonenl3d.c    476    1    sm
Warning    57    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\materials\bonematerials\trabbonenl3d.c    492    1    sm
Warning    58    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\materials\bonematerials\trabbonenl3d.c    509    1    sm
Warning    59    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Materials\ConcreteMaterials\mplasticmaterial2.C    631    1    sm
Warning    60    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Materials\ConcreteMaterials\mplasticmaterial2.C    834    1    sm
Warning    61    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Materials\ConcreteMaterials\mplasticmaterial2.C    1038    1    sm
Warning    62    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Materials\ConcreteMaterials\mplasticmaterial2.C    1216    1    sm
Warning    63    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\materials\rheochainmaterials\mpsdammat.c    826    1    sm
Warning    64    warning C4701: potentially uninitialized local variable 'b4_r_tw' used    d:\program files (x86)\oofem3\oofem\src\sm\materials\rheochainmaterials\mps.c    388    1    sm
Warning    65    warning C4701: potentially uninitialized local variable 'b4_r_ea' used    d:\program files (x86)\oofem3\oofem\src\sm\materials\rheochainmaterials\mps.c    387    1    sm
Warning    66    warning C4701: potentially uninitialized local variable 'b4_r_ew' used    d:\program files (x86)\oofem3\oofem\src\sm\materials\rheochainmaterials\mps.c    387    1    sm
Warning    67    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\materials\rheochainmaterials\mps.c    1551    1    sm
Warning    68    warning C4702: unreachable code    d:\program files (x86)\oofem3\oofem\src\sm\materials\rheochainmaterials\rheochm.c    622    1    sm
Warning    69    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Materials\Obsolete\plasticmaterial.C    217    1    sm
Warning    70    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Materials\Obsolete\mplasticmaterial.C    378    1    sm
Warning    71    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Materials\Obsolete\mplasticmaterial.C    414    1    sm
Warning    72    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Materials\Obsolete\mplasticmaterial.C    601    1    sm
Warning    73    warning C4127: conditional expression is constant    D:\Program Files (x86)\Oofem3\oofem\src\sm\Materials\Obsolete\mplasticmaterial.C    662    1    sm
Warning    74    warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library    D:\Program Files (x86)\Oofem3\oofem\src\sm\deformationtheorymaterial.obj    sm
Warning    75    warning C4101: 'c' : unreferenced local variable    D:\Program Files (x86)\Oofem3\oofem\src\main\main.C    287    1    oofem


Could you help me this one step further?

Re: Installation on Windows 8 stuck at generating cmake-gui

Those warnings are harmless.

As far as I can tell, everything is working fine on your end. "Build solution" should be the compilation step, and you have already gotten the warnings, which means OOFEM was being built.

Re: Installation on Windows 8 stuck at generating cmake-gui

Sadly it is not just the warnings, I only noticed them after trying to start Oofem and it did not work.

I also get the following error when retrying to Build Solution (I may also have gotten this error on the first try):
Error    1    error LNK1104: cannot open file 'liboofem.lib'    D:\Program Files (x86)\Oofem3\oofem\LINK    beam01

When doing the whole thing again in a clean folder, the build also fails but then with 3 errors, as can be seen in the accompanying screenshot.

Thanks in advance for your patience.

Post's attachments

Oofem build failed.png 123.02 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Installation on Windows 8 stuck at generating cmake-gui

Can you try to specifically build the "liboofem" target in the solution explorer?

Re: Installation on Windows 8 stuck at generating cmake-gui

It will then say (in the output):
1>------ Build started: Project: liboofem, Configuration: Debug Win32 ------
1>     Creating library D:/Program Files (x86)/Oofem4/oofem/Debug/oofem.lib and object D:/Program Files (x86)/Oofem4/oofem/Debug/oofem.exp
1>  liboofem.vcxproj -> D:\Program Files (x86)\Oofem4\oofem\Debug\oofem.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

No errors whatsoever.

When after that I try to build the whole thing again, I get the following errors:

Error    1    error LNK2019: unresolved external symbol "class oofem::DynamicInputRecord * __cdecl oofem::CreateNodeIR(int,char const *,class oofem::FloatArray)" (?CreateNodeIR@oofem@@YAPAVDynamicInputRecord@1@HPBDVFloatArray@1@@Z) referenced in function _main    D:\Program Files (x86)\Oofem4\oofem\beam01.obj    beam01
Error    2    error LNK2019: unresolved external symbol "class oofem::DynamicInputRecord * __cdecl oofem::CreateElementIR(int,char const *,class oofem::IntArray,int)" (?CreateElementIR@oofem@@YAPAVDynamicInputRecord@1@HPBDVIntArray@1@H@Z) referenced in function _main    D:\Program Files (x86)\Oofem4\oofem\beam01.obj    beam01
Error    3    error LNK1120: 2 unresolved externals    D:\Program Files (x86)\Oofem4\oofem\Debug\beam01.exe    1    1    beam01

And starting the Oofem application from the debug folder will still not start the program.

Re: Installation on Windows 8 stuck at generating cmake-gui

The "whole thing" is a bunch of different targets. At most, you should build the main "oofem" program.
The "beam01.exe" target is just an example application, and we don't really compile it that often.
Therefore we didn't notice the missing export for "CreateNodeIR" or "CreateElementIR".

Please note that OOFEM is a console program. There is no GUI. Clicking oofem.exe in the folder will open up a command prompt for a fraction of a section, print the help message, and exit.
If you are aware of this, then what errors are you getting when you try to launch OOFEM with for example: "oofem -h" ?

Re: Installation on Windows 8 stuck at generating cmake-gui

Ah sorry, I was not aware of that.

So now that I know I only have a console, I guess I will also need an application to be able to analyze the structure I have in mind.

Is "oofem -h" from your example also included in the Oofem installation, and if yes, how can I start it/where can I find it? This could help me test whether I installed the console correctly.

Because I am still unaware about where to find these applications, I wonder whether I missed something on your website that would help me with getting and using such applications.

It could be usefull to know that I want to do model something somewhat similar to the example http://www.oofem.org/wiki/doku.php?id=g … teeljoint. Or at least, I think so. The structure will be a (concrete) arch shaped lock gate connected to a lock head in some way.

Re: Installation on Windows 8 stuck at generating cmake-gui

The only binary is the oofem solver itself. It expects you to feed it a few input arguments, minimum being the input file, which you specify with  "-f myinputfile.in".
There is a test folder with many input files: oofem/tests/ that you can view in a text editor.
You would write this in the command prompt under windows (or do something like setting up a run target under visual studio with these flags).

OOFEM is just the computational "engine". You will want to have a pre-processer (that creates the input files) and a post-processor (that views the output from OOFEM).

For post-processing (viewing the results of a simulation), Paraview is the application used by most OOFEM developers. For pre-processing (creating the input files), the field is more diverse.
This is due to all developers (as far as I know, also all the users) are researchers, who are probably creating the input files by a variety of tools.

The wiki page you link Borek has used Salome for pre-processing (i.e. CAD+Meshing), but even with this program, you still have to write part of the input file yourself, so it's quite fiddly to get it all working the first few times.
There is work (albeit going very slowly) to improve this situation.

Re: Installation on Windows 8 stuck at generating cmake-gui

Ok, thanks again for all the help.

I will see what I can do and whether I can learn to work with these pre-processing and post-processing tools in the time-frame that I had in mind.