|
[Sponsors] |
July 21, 2014, 13:30 |
Compiling from source on windows
|
#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? |
|
July 22, 2014, 09:32 |
|
#2 |
New Member
Yonatan Afework Tesfahunegn
Join Date: Mar 2013
Posts: 15
Rep Power: 13 |
are you compiling for parallel or serial?
|
|
July 22, 2014, 10:29 |
|
#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. |
|
July 22, 2014, 11:00 |
|
#4 |
New Member
Yonatan Afework Tesfahunegn
Join Date: Mar 2013
Posts: 15
Rep Power: 13 |
Would you please post the error?
|
|
July 22, 2014, 11:57 |
|
#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! |
|
July 22, 2014, 12:09 |
|
#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.
|
|
July 23, 2014, 01:39 |
|
#7 |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 |
||
August 11, 2014, 08:18 |
|
#8 |
New Member
Selmar
Join Date: Jul 2014
Posts: 17
Rep Power: 12 |
||
August 11, 2014, 08:26 |
|
#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 |
||
August 11, 2014, 10:33 |
|
#10 |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 |
||
August 14, 2014, 01:54 |
|
#11 |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 |
can't make
|
|
August 14, 2014, 09:35 |
|
#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. |
||
August 14, 2014, 21:27 |
|
#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 Tools | Search this Thread |
Display Modes | |
|
|
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 |