CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   Compiling from source on windows (https://www.cfd-online.com/Forums/su2-installation/139296-compiling-source-windows.html)

Buxxy July 21, 2014 12:30

Compiling from source on windows
 
Hey,

I'm currently trying to compile from source on windows. I found the visual studio project files, but building gave me an error on a piece of code like this:
Code:

int data[numvars];
The default compiler doesn't allow this type of declaration. I figured this wasn't the intended way to build.

So, I downloaded Cygwin and the gcc compiler, but executing ./configure from the Cygwin terminal gave me problems with line endings.

I tried to convert those using the dos2unix command, however there appears to be binary data in the configure file (or I don't have the right character sets?).

I'm new to using Cygwin and environments other than visual studio.. Am I doing something wrong?

yona July 22, 2014 08:32

are you compiling for parallel or serial?

Buxxy July 22, 2014 09:29

My plan is serial, but I didn't get that far..

However, I have now converted the line endings of all files in the main directory to unix format with notepad++ and have successfully run the configure file.

I'm still curious if I did something wrong with the Git clone. Shouldn't all my files already have unix line endings? I assume they are like that on Git.

yona July 22, 2014 10:00

Would you please post the error?

Buxxy July 22, 2014 10:57

I've solved it, like I mentioned in my previous post. Sorry for the confusion. It might be solvable 'automatically' through git settings for line endings. Not sure.

I don't remember the exact error message, but was something along the lines of "unrecognized command: '$\r'.
For the dos2unix error, it said simply that there was binary data in the file at line 6957, but since the configure file runs properly (and notepad++ could convert the line endings for me) this is not an issue anymore.

Another build issue: in SU2/externals/metis/GKlib/gk_arch.h, this piece:
Code:

#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif

Apparently HAVE_EXECINFO_H is defined, but upon executing 'make' I get an error saying "no such file or directory." Is this part of some package? (EDIT: I found your other post about this file and downloaded it. I wonder why it is missing, though?)

I commented out the include and make seems to have completed successfully. I ran make install, set the proper environment variables, added the cygwin bin directory to the path variable and ran the quick start tutorial case. The output looks correct. Hurray!

yona July 22, 2014 11:09

Good to know that you managed to compile and install it.

shirazbj July 23, 2014 00:39

Quote:

Originally Posted by Buxxy (Post 502645)
I've solved it, like I mentioned in my previous post.
Another build issue: in SU2/externals/metis/GKlib/gk_arch.h, this piece:

If you plan is only for serial, you don't need metis at all.

Buxxy August 11, 2014 07:18

Quote:

Originally Posted by shirazbj (Post 502733)
If you plan is only for serial, you don't need metis at all.

I see. However, using "./configure --prefix=some/path", it automatically builds with metis support. Is this an error, then? Or some mistake by me?

shirazbj August 11, 2014 07:26

Quote:

Originally Posted by Buxxy (Post 505375)
I see. However, using "./configure --prefix=some/path", it automatically builds with metis support. Is this an error, then? Or some mistake by me?

I tried to use cygwin, but can't configure. Missing a cyggmp-3.dll.

I posted in this thread:
http://www.cfd-online.com/Forums/su2...er-cygwin.html

shirazbj August 11, 2014 09:33

Quote:

Originally Posted by Buxxy (Post 505375)
I see. However, using "./configure --prefix=some/path", it automatically builds with metis support. Is this an error, then? Or some mistake by me?

yeah. I uesd ./configure only and saw Metis support: yes in the build summary.

shirazbj August 14, 2014 00:54

1 Attachment(s)
can't make

Buxxy August 14, 2014 08:35

Quote:

The Error 255 is produced by make as a result of its command shell not being able to find a command for a particular rule.
I believe this means there are commands in the makefile that aren't recognized. Did you successfully complete the configure step in the same location? Otherwise, I have no idea what could be wrong.

Also, I think you should post in your own thread for these problems instead of hijacking this one. :p

shirazbj August 14, 2014 20:27

Quote:

Originally Posted by Buxxy (Post 505971)
I believe this means there are commands in the makefile that aren't recognized. Did you successfully complete the configure step in the same location? Otherwise, I have no idea what could be wrong.

Also, I think you should post in your own thread for these problems instead of hijacking this one. :p

The configure step is a success. That's all I want. I has given up making in this way.

No more questions.

Thx.


All times are GMT -4. The time now is 00:09.