CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

Compiling from source on windows

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2014, 13:30
Default Compiling from source on windows
  #1
New Member
 
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12
Buxxy is on a distinguished road
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?
Buxxy is offline   Reply With Quote

Old   July 22, 2014, 09:32
Default
  #2
New Member
 
Yonatan Afework Tesfahunegn
Join Date: Mar 2013
Posts: 15
Rep Power: 13
yona is on a distinguished road
are you compiling for parallel or serial?
yona is offline   Reply With Quote

Old   July 22, 2014, 10:29
Default
  #3
New Member
 
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12
Buxxy is on a distinguished road
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.
Buxxy is offline   Reply With Quote

Old   July 22, 2014, 11:00
Default
  #4
New Member
 
Yonatan Afework Tesfahunegn
Join Date: Mar 2013
Posts: 15
Rep Power: 13
yona is on a distinguished road
Would you please post the error?
yona is offline   Reply With Quote

Old   July 22, 2014, 11:57
Default
  #5
New Member
 
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12
Buxxy is on a distinguished road
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!
Buxxy is offline   Reply With Quote

Old   July 22, 2014, 12:09
Default
  #6
New Member
 
Yonatan Afework Tesfahunegn
Join Date: Mar 2013
Posts: 15
Rep Power: 13
yona is on a distinguished road
Good to know that you managed to compile and install it.
yona is offline   Reply With Quote

Old   July 23, 2014, 01:39
Default
  #7
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16
shirazbj is on a distinguished road
Quote:
Originally Posted by Buxxy View Post
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.
shirazbj is offline   Reply With Quote

Old   August 11, 2014, 08:18
Default
  #8
New Member
 
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12
Buxxy is on a distinguished road
Quote:
Originally Posted by shirazbj View Post
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?
Buxxy is offline   Reply With Quote

Old   August 11, 2014, 08:26
Default
  #9
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16
shirazbj is on a distinguished road
Quote:
Originally Posted by Buxxy View Post
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 is offline   Reply With Quote

Old   August 11, 2014, 10:33
Default
  #10
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16
shirazbj is on a distinguished road
Quote:
Originally Posted by Buxxy View Post
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 is offline   Reply With Quote

Old   August 14, 2014, 01:54
Default
  #11
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16
shirazbj is on a distinguished road
can't make
Attached Images
File Type: jpg make.JPG (25.1 KB, 24 views)
shirazbj is offline   Reply With Quote

Old   August 14, 2014, 09:35
Default
  #12
New Member
 
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12
Buxxy is on a distinguished road
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.
Buxxy is offline   Reply With Quote

Old   August 14, 2014, 21:27
Default
  #13
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16
shirazbj is on a distinguished road
Quote:
Originally Posted by Buxxy View Post
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.
The configure step is a success. That's all I want. I has given up making in this way.

No more questions.

Thx.
shirazbj is offline   Reply With Quote

Reply

Tags
compile from source, cygwin, su2, visual studio, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 37 August 17, 2022 15:22
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 13:40
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 14, 2000 00:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 04:43


All times are GMT -4. The time now is 15:07.