CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Errors when compiling CGNS 3.1.3 (https://www.cfd-online.com/Forums/su2/128620-errors-when-compiling-cgns-3-1-3-a.html)

Tommy Chen January 16, 2014 23:14

Errors when compiling CGNS 3.1.3
 
I want to complie the CGNS library for compiling the new SU2 3.0
However when I use cmake command to complie it , I got the error message

"song@TommyThinkTwice:~/Desktop/temp/SU2/Eagle/cgnslib_3.1.3/build$ cmake ../src
CMake Warning at CMakeLists.txt:37 (if):
given arguments:

"GREATER" "4"

Unknown arguments specified


CMake Error at CMakeLists.txt:158 (set_target_properties):
set_target_properties called with incorrect number of arguments.


CMake Error at CMakeLists.txt:159 (set_target_properties):
set_target_properties called with incorrect number of arguments.


CMake Error at CMakeLists.txt:162 (set_target_properties):
set_target_properties called with incorrect number of arguments.


CMake Error at CMakeLists.txt:163 (set_target_properties):
set_target_properties called with incorrect number of arguments.


-- Configuring incomplete, errors occurred!

"

Has anybody encountered similar problem ?

Tommy Chen January 16, 2014 23:15

Besides , my OS is Ubuntu 12.04
and my cmake version is 2.8.7

Combas January 18, 2014 16:32

I tried with CGNS version 3.1.4-2 and I have the same problem, with the same configuration (Ubuntu 12.04 and cmake version 2.8.7)
If someone has a solution, I am also interested!

Tommy Chen January 18, 2014 16:40

Quote:

Originally Posted by Combas (Post 470668)
I tried with CGNS version 3.1.4-2 and I have the same problem, with the same configuration (Ubuntu 12.04 and cmake version 2.8.7)
If someone has a solution, I am also interested!

Hey Combas , I have already solved that

you have to use ccmake to generate configuration file for cmake

then use cmake to gnerate the makefile

then make

Combas January 18, 2014 17:09

1 Attachment(s)
Thank you for your answer, but I tried ccmake and I have some problems.
Do you remember which options you chose?
I put the message of ccmake in attachement.

Laurent

Tommy Chen January 18, 2014 17:29

Quote:

Originally Posted by Combas (Post 470672)
Thank you for your answer, but I tried ccmake and I have some problems.
Do you remember which options you chose?
I put the message of ccmake in attachement.

Laurent

Try not to build CGNS tools and shared libs.

Combas January 19, 2014 02:25

Unfortunately, I have still the same problem...

Tommy Chen January 19, 2014 08:41

Quote:

Originally Posted by Combas (Post 470698)
Unfortunately, I have still the same problem...

Are you using the default settings ?

Combas January 19, 2014 14:41

I have resolved my problem: I think it was because I launched "ccmake /home/laurent/SU2_V3/cgnslib_3.1.4/src" instead of "ccmake /home/laurent/SU2_V3/cgnslib_3.1.4"
(I had added the "src" directory because the source code is inside, but in fact it was probably an error)
With the default settings, now it works.
Thank you for you help Tommy !

Laurent


All times are GMT -4. The time now is 16:36.