Results 1 to 5 of 5

Thread: HOWTO build Xfoil 6.97

  1. #1
    Join Date
    Oct 2006
    Location
    Napoli, Italy
    Beans
    178
    Distro
    Ubuntu 8.04 Hardy Heron

    HOWTO build Xfoil 6.97

    I built a deb package for Ubuntu 32 bit, that's available here:
    http://giuschet.altervista.org/Ubuntu/

    Anyways... these are the instructions for building it, in double precision.
    I'm Using Ubuntu 8.04 32 bit

    1)
    a) Get the program from here:
    http://web.mit.edu/drela/Public/web/...oil6.97.tar.gz
    b) Unpack the tarball and open a terminal in the created directory.

    2)
    Code:
    cd orrs
    pwd
    cd src
    gedit osmap.f
    find this line in the file:

    Code:
    DATA OSFILE / '/var/local/codes/orrs/osmap.dat' /
    and substitute /var/local/codes/orrs with the output of the pwd command.

    3)
    a)
    Code:
    cd ../bin
    gedit Makefile_DP
    look for
    Code:
    FLG = -O -r8
    in the very first lines, and change it into:

    Code:
    FLG = -O -dbl
    comment the intel fortran related flags, between the #=== marks

    b)save the changes and
    Code:
     make -f Makefile_DP osgen
     make -f Makefile_DP osmap.o
    4)
    Code:
    cd ..
    bin/osgen osmaps_ns.lst
    5)
    a)
    Code:
    cd ../plotlib
    gedit Makefile
    comment PLTLIB = libPlt.a and uncomment PLTLIB = libPltDP.a
    Code:
    #PLTLIB = libPlt.a
    PLTLIB = libPltDP.a
    comment include ./config.make
    Code:
    #include ./config.make
    Look for
    Code:
    #DP = -r8
    and change it into:
    Code:
    DP = -dbl
    b)save the changes and
    Code:
    make

    6)

    Code:
    cd ../bin
    gedit Makefile
    change:
    Code:
    BINDIR = .
    into:
    Code:
    BINDIR = /usr/bin/
    find this line
    Code:
    PLTOBJ = ../plotlib/libPlt.a
    and turn it into:
    Code:
    PLTOBJ = ../plotlib/libPltDP.a
    look for:
    Code:
    FFLAGS  = -O
    and turn it into:
    Code:
    FFLAGS  = -O -dbl
    comment all the lines after ### Intel Fortran Compiler until the all: line (leave it uncommented).

    7)

    Code:
    cd ../src
    gedit pplot.f
    look for
    Code:
    LOGICAL ERROR, LGETFN
    and change it into:
    Code:
    LOGICAL ERROR, LGETFN, LERR
    This solves a type mismatch error

    8 )
    Code:
    cd ../bin
    make all
    9)
    If you want to install, just:
    Code:
    sudo make install
    That's all folks.
    You can start Xfoil by typing ./bin/xfoil in the main directory or by typing xfoil anywhere if you installed it.
    Tips:
    1 - you can start xfoil with
    Code:
    rlwrap -a -c xfoil
    for preserving command completion and the correct behaviour of the keyboard
    2 - The display window tends to be cancelled when any other window moves over it.
    A workaround for this is inserting in the Display section of your Xorg.conf the following:
    Code:
    Option "Backingstore" "true"
    This tells the video driver to store the image hidden behind the windows.Thanks to Leandro from the Xfoil mailing list.

    Let me know for problems and suggestions.
    Last edited by Icarosaurus; November 29th, 2008 at 07:01 AM.

  2. #2
    Join Date
    Oct 2009
    Beans
    2

    Re: HOWTO build Xfoil 6.97

    I get the following error in Step 3 b):

    Code: make -f Makefile_DP osgen

    f77 -c -O -dbl ../src/osgen.f
    /usr/bin/f77: Illegal option: -dbl
    make: *** [osgen.o] Error 255

    I appreciate your advice to solve it.

    Thanks!

  3. #3
    Join Date
    Jul 2006
    Beans
    24

    Re: HOWTO build Xfoil 6.97

    Thanks a lot man! You solve my problems and now I can start my thesis without agonizing pain!
    If I will meet you somewhere in the world, I will offer you a beer for sure!

  4. #4
    Join Date
    Jun 2012
    Beans
    12

    Re: HOWTO build Xfoil 6.97

    I have the similar problem. F77 seems to have been properly installed on my laptop. I can compile a source code with it, no problem, but when I install other softwares that depend on F77, it doesn't work. Especially, I got the error message:
    /usr/bin/f77: Illgegal option: --version,

    when I checked its version.

    What is the problem here?

    Quote Originally Posted by NiteSoul View Post
    I get the following error in Step 3 b):

    Code: make -f Makefile_DP osgen

    f77 -c -O -dbl ../src/osgen.f
    /usr/bin/f77: Illegal option: -dbl
    make: *** [osgen.o] Error 255

    I appreciate your advice to solve it.

    Thanks!

  5. #5
    Join Date
    Feb 2007
    Beans
    23,826
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: HOWTO build Xfoil 6.97


    From the Ubuntu Forums Code of Conduct.
    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.
    Thread closed.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •