|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12 ![]() |
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]; 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? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Yonatan Afework Tesfahunegn
Join Date: Mar 2013
Posts: 15
Rep Power: 13 ![]() |
are you compiling for parallel or serial?
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Yonatan Afework Tesfahunegn
Join Date: Mar 2013
Posts: 15
Rep Power: 13 ![]() |
Would you please post the error?
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12 ![]() |
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 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! |
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
Yonatan Afework Tesfahunegn
Join Date: Mar 2013
Posts: 15
Rep Power: 13 ![]() |
Good to know that you managed to compile and install it.
|
|
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#9 | |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 ![]() |
Quote:
I posted in this thread: http://www.cfd-online.com/Forums/su2...er-cygwin.html |
||
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#11 |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 ![]() |
can't make
|
|
![]() |
![]() |
![]() |
![]() |
#12 | |
New Member
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12 ![]() |
Quote:
Also, I think you should post in your own thread for these problems instead of hijacking this one. ![]() |
||
![]() |
![]() |
![]() |
![]() |
#13 | |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 ![]() |
Quote:
No more questions. Thx. |
||
![]() |
![]() |
![]() |
Tags |
compile from source, cygwin, su2, visual studio, windows |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
GPU Linear Solvers for OpenFOAM | gocarts | OpenFOAM Announcements from Other Sources | 37 | August 17, 2022 14:22 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 12:40 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 13, 2000 23:03 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 03:43 |