1 Attachment(s)
Installing Xfoil on Ubuntu
Anyone can tell me how to compile Xfoil on Ubuntu Dapper?
Modifying Makefiles is a bit hard for a beginner :)
Thank you...
EDIT
I was able to make a 32 bit deb package of Xfoil 6.97.
Download it from the attachment and send me comments and suggestions!
Updated Versions of my package are here:
http://giuschet.altervista.org/Ubuntu/
Here are the instructions for compiling it by yourself.
Visit my blog too for news :)
Instructions for making the 32 bit package work in a 64 bit environment (untill I'll release a 64 bit version)
- Download the package and, in a terminal, in the same directory of the package:
Code:
sudo dpkg -i --force-architecture xfoil_6.97-1_i386.deb
-Be sure you installed the 32 bit compatibility libraries (ia32-libs)
-The program needs the 32 bit version of the libg2c0 library...download it from here.
-In the same directory of the libg2c0 package open a terminal:
Code:
dpkg -x xfoil_6.97-1_i386.deb .
sudo cp usr/lib/libg2c* /usr/lib32/
rm -r usr
-typing xfoil anywhere in the terminal should start the program
Re: Installing Xfoil on Ubuntu
yes I am experiencing the same result. The directions are not quite right or something.
So far I have been attempting to follow directions in the readme files.
As directed I went to the orr directory and corrected the neccesary files but when I did
%make osgen but I am not sure it went correctly. Although I did not get an obvious error.
Then I did the
%make osmap.o but I am not sure anything happened.
then out of frustration I just did
%make instead of %make osgen and the normal process seemed to unfold on the screen.
I then retried
%make osmap.o and the msg was something like osmap.o is up to date
once in the plotlib directory, I used
%pwd results to edit the plotlib makefile plus I commented out the "include./config.make" line for better of worse at least the
%make libPlt.a appeared to work.
I ran XFOIL in the runs directory as suggested and it appeared to run.
Could you post here if there is something you figured out I will do the same.
Dan
Re: Installing Xfoil on Ubuntu
i know nothing about xfoil but the first hit from google gave me:
------------
How to get xfoil running in Ubuntu (or probably any Debian variant)
Download the code:
http://raphael.mit.edu/xfoil/xfoil694.tar.gz
Extract it to a convenient location. Follow the instructions in the README. You may run into the same issue I had during compiling:
g77 -o xfoil xfoil.o xpanel.o xoper.o xtcam.o xgdes.o xqdes.o xmdes.o xsolve.o x bl.o xblsys.o xpol.o xplots.o xgeom.o xutils.o modify.o polplt.o aread.o naca.o spline.o plutil.o iopol.o gui.o sort.o dplot.o profil.o userio.o ../plotlib/libP lt.a -L/usr/X11R6/lib -lX11 -lblas-3
/usr/bin/ld: cannot find -lblas-3
collect2: ld returned 1 exit status
make: *** [xfoil] Error 1
This can be solved by installing the following packages (not exactly sure which one solved it, but I installed them all for good measure.)
lapack3, lapack3-dev, lapack3-doc, refblas3, refblas3-dev, refblas3-doc
The program should then compile with out any complaints. The executable will be located in your ./bin directory.
------------------------
from
http://noah-hicks.blogspot.com/
Re: Installing Xfoil on Ubuntu
Oh...thank you guys for your posts, I'll try to compile Xfoil as soon as I can, following your suggestions.
I hope our attempts will be useful to many others :)
see you soon!
Re: Installing Xfoil on Ubuntu
Hello, I managed to compile xfoil in single precision, just paying attention on the README.
I'll write a little HOWTO and I hope to get the double precision version to work.
Bye
Re: Installing Xfoil on Ubuntu
Someone made the work for us.
Here is Xfoil 6.96 in the form of a source package:
http://www.scientificcomputing.net/d...ackages/xfoil/
Here is how to install (most of these instructions are taken from the Xfoil mailing list):
1) Install needed pakages (unfortunately, the list is not complete, please post for adding other packages)
Code:
sudo apt-get install fakeroot g77 debhelper build-essential xorg-dev
2) Download all the files there and:
Code:
dpkg-source -x xfoil_6.96-1.dsc
cd xfoil-6.96
fakeroot debian/rules binary
3)Install the package as usual
Code:
cd ..
sudo dpkg -i xfoil_6.96-1_i386.deb
It's double precision.. thanks to http://www.scientificcomputing.net for great work.
You can find other useful scientific software there.
Regards...
Re: Installing Xfoil on Ubuntu
Horrendous!
You also need to have the following packages
g77, debhelper, build-essential, xorg-dev
plus some others I may have forgotten about.
Re: Installing Xfoil on Ubuntu
Why horrendous?
Maybe I had all those package you said installed, and I didn't see they were needed.
Anyway, Xfoil works nice.
I don't accept your easy "horrendous", cause I wrote to give a contribution and help others. Your complains are a nonsense, here.
So, all I can do is listing the packages you mentioned ('cause it's your wellcome genuine contribution) and asking to you to remember the other ones.
Re: Installing Xfoil on Ubuntu
I'm sorry. I was rather frustrated at the time, and I was trying to work out which of the several fortran compilers ubuntu has I needed. The horrendous was not at all directed at your howto, without which I wouldn't have had a cat in hells chance. Many thanks, and apologies again. I would post my package but there is a size limit on the forum.
Re: Installing Xfoil on Ubuntu
Well, I know sometimes it's frustrating... ;)
I had the best result with Intel fortran compiler and I was able to compile source all in double precision.
I have to learn how to make deb packages, so maybe I could put them on an ftp account and give you all the link.
I compiled AVL too, so.. stay tuned :)