Closed klausbu closed 4 years ago
Hallo Klaus, (ich hoffe, es ist ok, wenn ich auf Englisch antworte?)
... oh! - cmake tries to make a compile for windows. See the flag -DWIN32=1 ... strange
In build_linux.sh the shell variable TARGET_OS=UNIX is set - and this should control in CMakeLists.txt the OS flag
if($ENV{TARGET_OS} MATCHES "UNIX")
set (OS_FLAG "-DUNIX=1")
message (STATUS "\n \n Building XFoptfoil-JX Version $ENV{XOPTFOIL_VERSION} for UNIX\n\n")
else ($ENV{TARGET_OS} MATCHES "UNIX")
set (OS_FLAG "-DWIN32=1")
message (STATUS "\n \n Building XFoptfoil-JX Version $ENV{XOPTFOIL_VERSION} for Windows\n\n")
endif ($ENV{TARGET_OS} MATCHES "UNIX")
Could you find out why the OS_FLAG is not set at this point? Sorry, I do not have Linux ...
Maybe user joyo44 (John) could help?
regards
Jochen
Thank you for the hint, I edited CMakeLists.txt and set the OS_FLAG in there, the following error was related to the generation of the User_Guide.pdf and example_case.pdf which had failed. As a workaround, I added and renamed two pdf files I had at hand and the installation worked.
I would also recommend to make:
set(ENABLE_OPENMP TRUE CACHE BOOL "Whether to build with OpenMP support." )
the default as multicore CPUs are standard.
Hello Klaus, ... I think I got it. I had changed the original build-jobs and als CMakeLists.txt. So it's not true, that an original Xoptfoil and Xoptfoil-JX can coexist in a single directory for compilation... Shame on me. I'll rename the files in the next release...
I switched off multi threading because I had some strange effects and the overall gain in speed was minor (at least on my little PC). I suppose that the console output when 'show_details' is activated, would be a little 'confused'...
Thanks for your support!
... hopefully fixed now ...
Hallo Jochen,
ich habe Probleme bei der Linux-Installation. Es beginnt bei 35% mit einigen Warnungen, gefolgt bei 82% von einer obsoleten Fortran-Anweisung. Der aktuelle Compiler meiner Distribution ist GNU 9.3 . Woran kann das liegen?
Gruß, Klaus