ROI_PAC kurulumu için yardım edecek gönüllüler aranıyor :)

Başlatan zacop, 24 Haziran 2017 - 03:46:40

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

zacop

öncelikle merhaba;

buna benzer bir konu var çözüldü diye etiketlenmiş fakat ne tam bir çözüm metodu mevcut ne de başka * bir şey.Bu konuyu açmam daki amaç bu roi_pac i kurabilmek ve kurulumunu detaylıca bu başlık altında yazıp tüm ülkeye kaynak olmasıdır.bununla ilgili türkçe pek kaynak yok.program, Diferansiyel interferogramlar üretmek için sentetik diyafram radarı verilerini işleme yazılımıdır.yani uydu görüntülerini verilerini işliyor da diyebiliriz.harita ve kadastro,orman müh. bölümlerini yakından ilgilendiren bir konudur.hep birlikte bir el atıp şu programı kuralım.bu roi_pac i kurmadan çoğu cbs uygulamasını da kuramıyoruz malesef.

- Programı buradan indirebilirsiniz .http://www.openchannelfoundation.org/orders/index.php?group_id=282
-sitede 2 adet olarak indirmeniz gerekiyor "ROI_PAC test directory" ve "ROI_PAC version 3.0.1 " olmak üzere.


INSTALL
Impatient Installation
======================

                            ;: Setup your PATH to include
                            ;: the Fortran 90 compilers on your system

which ifort g95 f90 pgf95 f95 xlf gfortran cc gcc icc

                            ;: Verify at least one Fortran and one
                            ;: C compiler are in your PATH.

                            ;: If distribution was received by
                            ;: CVS checkout
touch aclocal.m4 Makefile.in configure
                            ;: to correct file timestamps to
                            ;: to keep make from running autoconf.

                            ;: If you do not have FFTW installed elsewhere
                            ;: that is known to link with your Fortran,
./contrib/install-fftw.sh CC=cc
                            ;: download and install FFTW library
                            ;: into subdirectories of current directory.

                            ;: Note: Specifying CC=cc to build FFTW with
                            ;:       native compiler may avoid
                            ;:       gcc related link failures later.
                            ;:       Specifying F77={your preferred Fortran
                            ;:       compiler} may improve


                            ;: Setup environment variables
                            ;: specifying where to locate FFTW.
                            ;: Note: install-fftw.sh will report
                            ;:       these directories.

export FFTW_LIB_DIR={directory containing libfftw3f.a}
export FFTW_INC_DIR={directory containing fftw3.f}


./contrib/multibuild.sh     ;: Try building ROI_PAC with various
                            ;: Fortran compilers.
                            ;: Note: It will report which builds succeed.

                            ;: You can read the rest of this document
                            ;: while waiting for it to finish.


                            ;: To test the builds to see if they run,
                            ;: create a test directory on a disk partition
                            ;: with 3GB of free space for each build
mkdir test-runs             ;: to be tested.
cd test-runs 
ulimit -s 65000             ;: On MacOS X increase stacksize for Absoft build

which uncompress            ;: Verify 'uncompress' command is in path.

                            ;: Run multitest.sh to do
                            ;: make_raw and process_2pass of TEST_DIR.tar
                            ;: dataset using different sets of binary
                            ;: executables built above.

{path to contrib}/multitest.sh {path to TEST_DIR.tar} \
  {directory containing ROI_PAC Perl scripts} \
  {directories containing ROI_PAC binary}

tail -7 */TEST_DIR/batchlog* ;: Examine the end of each log file.
                             ;: If it says "That's all folks"
                             ;: that test ran to completion.


                             ;: If you have the `mdx' image viewing utility
                             ;: in your path, look at the results

ls -1 */TEST_DIR/int_930110_950523/filt_930110-950523-sim_SIM_4rlks_c10.unw | \
   xargs -t -n 1 mdx -s 1425 -rmg


dodoc.sh                     ;: For information on producing HTML format
                             ;: documentation from POD in scripts and
                             ;: and applications.

rsc-dodoc.sh                 ;: For information on producing HTML document
                             ;: for RSC keywords produced when running
                             ;: ROI_PAC.  See Generic.pm for more info.
 
                             ;: Note: `.hst' files log transactions to
                             ;: `.rsc' files.  If they are considered clutter,
setenv ROI_RSCHST_DIR RscHstDir
                             ;: before running ROI_PAC to redirect them
                             ;: to a sub-directory named `RscHstDir'.


Build Problems
==============

Answers to problems you may encounter.


Problem: On Mac OS X
         ld: Undefined symbols
         _fprintf$LDBLStub
Cause: xlf or g95 not including "-lSystemStubs" when linking with FFTW
Solution: Rebuild FFTW library with `install-fftw.sh'
          which sets MACOSX_DEPLOYMENT_TARGET as a workaround.


Problem: On Sun
         Undefined symbol __moddi3 in file libfftw3f.a
Cause: FFTW library built with gcc is not truly stand-alone because
       it contains references to routines inside a gcc
       runtime support library and Fortran compiler being used
       to link 'roi' does not know where that library is located.
Solution: rebuild FFTW with Sun compiler
          or add
          LIBS=`gcc -print-libgcc-file-name` to configure command line.


Symptom: On Sun
         checking size of int... configure: error: cannot compute sizeof (int), 77
Cause: CC=c89 on FFTW build
       FFTW script tries to execute c89 -c xxx -O3
       which fails
Fix:  Configure specifying CC=cc to cause FFTW to use optimization
      options it thinks are best for given system.


Symptom: using gfortran
         Error: Can't open included file 'rdf_common.inc'
Cause: gfortran bug 20811 which causes it to not
       search for include files in the same directory as the source file.
Fix:  Upgrade to a newer version of gfortran


Symptom: using Intel icc compiler to compile FFTW
         icc: Command line warning: ignoring option '-mp'; no argument required
         .../fftw-3.0.1/kernel/cycle.h(244): error: asm statements not supported in this environment
              __asm__ __volatile__ ("mov %0=ar.itc" : "=r"(ret));
Cause: icc 9.0 defines __GNUC__ by default, which confuses configure
Fix:  Include "-no-gcc" in CFLAGS
Examples: ./contrib/install-fftw.sh CC=icc "CFLAGS=-O2 -no-gcc"
         ( setenv CC icc ; setenv CFLAGS "-O2 -no-gcc" ;  ./contrib/multibuild.sh )


Symptom: configure.ac:4: error: Autoconf version 2.59 or higher is required
Cause: make is attempting to run autoconf because files have incorrect
       timestamps because of CVS, and the version of autoconf installed
       on the system is less than what is required by ROI_PAC.
Fix: touch aclocal.m4 Makefile.in configure
Note: For more information see CVS section of FAQ chapter of automake manual.


Run Problems
============


Problem: "ampcor failed in offset.pl" with Absoft build on MacOS X
Cause: Small (8MB) default stack size limit
Solution: "ulimit -s 65000" before run


Symptom:  multitest.sh/process_2pass.pl waiting in
          ampcor PAUSE  (similar to above)
          'batchlog-...' logfile indicates 'ampcor' paused with messages:
            +offset.pl .../ampcor ampmag.in rdf > ampmag.out
            +synth_offset.pl Culling points
            PAUSE p must be at least 2 in moment statement executed. Hit Return to continue
Cause: using wrong-endian DEM file
Solution: copy appropriate file to SoCal.dem


Symptom: PRC2polynom failed in state_vector.pl
Cause: `uncompress' not in PATH
Solution: install uncompress on system or
          create symlink from to gunzip
Example:  ln -s /bin/gunzip ~/bin/uncompress
          setenv PATH "${PATH}:${HOME}/bin"


Symptom: multitest.sh/process_2pass.pl not completing,
         top shows no processes consuming CPU time,
         
         'batchlog-...' logfile indicates 'fitoff' doing a
          "PAUSE p must be at least 2 in moment"
       also
         'slc' files only contain all zeros.
Cause:   No native FFT routine has been enabled when compiling --without-fftw
Solution: shouldn't happen anymore


Symptom: Running CFFTF (native FFT) build on Sun
         ampcor dies with
         Floating exception (core dumped)
Cause:  Unknown.  Requires further investigation.
Workaround: Use a FFTW build on Sun.


`multibuild.sh' Information
===========================


`multibuild.sh' is a convenience script that does
a `configure' and `make install' in separate
sub-directories for each of several Fortran 90 compilers
and build variants (eg. debug and optimized).

It produces a hierarchy that looks like:

  multibuild-{YYMMDD-HHMM}/{build_name}/              ;: Where `configure' and
                                                      ;: `make install' run

  multibuild-{YYMMDD-HHMM}/{build_name}-build-log     ;: Output from build

  multibuild-{YYMMDD-HHMM}/installs/{build_name}/bin/ ;: Where executables
                                                      ;: are installed

  multibuild-{YYMMDD-HHMM}/installs/share/roi_pac/    ;: Where Perl scripts
                                                      ;: and support files
                                                      ;: are installed

Also, `multibuild.sh' does not need to be run
in the ROI_PAC source directory.

  For example:

    cd /var/tmp
    {full path to ROI_PAC source}/contrib/multibuild.sh

You can instruct `multibuild.sh' to only attempt
a subset of builds by specifying their build names
on the command line.

Specifying `-p' on the command line executes all
the builds in parallel.

Unfortunately, `multibuild.sh' currently lacks flexibility and does not
support passing additional options to `configure'.  If additional
`configure' options are needed for your build environment, either
modify the source to `multibuild.sh' or run `configure' manually.


`configure' Information
=======================

`configure' can also be run manually.
However, you should not run it in the ROI_PAC source directory.
Instead create a sub-directory or a directory somewhere else
on the system, and specify the path to `configure'.

  For example:

    export ROI_PREFIX={where you want to install ROI_PAC}
    mkdir build-test1
    cd build-test1
    ../configure FC=f90 FCFLAGS="-O2"    \
                 --prefix=$ROI_PREFIX   \
                 LDFLAGS=-L$FFTW_LIB_DIR CPPFLAGS=-I$FFTW_INC_DIR

  or to configure using native FFT

    ../configure FC=f90 FCFLAGS="-O2 -DHAVE_xFFTx"    \
                 --prefix=$ROI_PREFIX   \
                 --without-fftw \
                 LIBS={native fft lib}
      ;: where {native fft lib} might be one of
   '-lsunperf'
   '-lcomplib.sgimath'
   '-lscs'            NOTE: SGI SCSL no supported yet
   '-lveclib'         NOTE: HP veclib not tested

      ;: where xFFTx is the appropriate native FFT type for your system.
         See multibuild.sh for examples.

    make install


`install-fftw.sh' Information
=============================

`install-fftw.sh' tries to download and build FFTW for use by ROI_PAC.
Command line options are passed to FFTW's configure
so, you can specify F77={your preferred Fortran 90 compiler}.

It produces a hierarchy that looks like:

  NetDist/fftw-3.0.1.tar.gz                           ;: Distribution.
  NetSrc/fftw-3.0.1/                                  ;: Unpacked source.
  NetBuild/fftw-3.0.1_{YYMMDD-HHMM}/                  ;: Where `configure' and
                                                      ;: `make install' run
  NetInst/fftw-3.0.1_{YYMMDD-HHMM}/                   ;: --prefix= this install
                                                      ;:           directory

`install-fftw.sh' also sets the MACOSX_DEPLOYMENT_TARGET environment
variable to the major OS version (eg 10.4) on a mac
to prevent this link error when building ROI_PAC with g95 and xlf
    ld: Undefined symbols:
    _fprintf$LDBLStub



Developers Information
======================

If you are not a ROI_PAC developer/maintainer,
you can stop reading now.

Information about autoconf/automake files goes here...


How to create a new distribution
================================

  Update version number in AC_INIT at top of `configure.ac'.

  rm -f */Makefile.in */*/Makefile.in ; autoreconf -f --install --verbose -Wall
  ( rm -rf disttest ; mkdir disttest && cd disttest && ../configure FC=f90 FCFLAGS="-O2" --without-fftw && make dist )
  ls -l disttest/*.tar.gz

  Note: '-f' above causes INSTALL to be overwritten with default text.
        However, it also forces other autoconf related files to be,
        which seemed to make the build process more reliable.


NOT: ben uğraşıyorum ama bir türlü beceremiyorum nerede sorunlar yaşadığımı yazacağım.bu kadar yazıyı yazıp bilgilendirmemin sebebi ise eğer boş vakti olan ilgili arkadaşlar varsa inidirip denesin diye saygılar sunuyorum :)

if

@zacop, bu uygulamanın kurulumu çok uğraş gerektiriyor gördüğüm kadarıyla. Alternatif başka bir uygulama yok mu?

zacop

@if malesef bu uygulamadan başka bir alternatif yok.bende uğraşıyorum.

fakat biraz yol kat ettim biraz daha uğraşıp takıldığım yerleri size soracağım.ve en sonunda çözüldü etiketi vurduğumda tüm adımları anlaşılır şekilde yazacağım :)


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 07 Temmuz 2017 - 16:56:10

şu yolları bulamıyorum

{path to contrib}/multitest.sh {path to TEST_DIR.tar} \
  {directory containing ROI_PAC Perl scripts} \
  {directories containing ROI_PAC binary}


şu şekilde yapıyorum;
{/home/zacop/Masaüstü/ROI_PAC_DIST/ROI_PAC_3_0_1/ROI_PAC/contrib}/multitest.sh {/home/ishak00/Masaüstü/ROI_PAC_DIST} \
  {/home/zacop/Masaüstü/ROI_PAC_DIST/ROI_PAC_3_0_1/ROI_PAC/DOC/HTML/process_index} \
  {/home/zacop/Masaüstü/ROI_PAC_DIST/ROI_PAC_3_0_1/ROI_PAC/NetInst/fftw-170707-1632/bin}


contrib klasöründe multitest.sh yok diyor faka bakıyorum var

if

@zacop, o şekilde yazmamalısınız. Sizden bir BASH betiğini gerekli argümanlarla çalıştırmanızı istemiş. TEST_DIR.tar dosyasının, ROI_PAC Perl betiklerinin ve ROI_PAC ikiliğinin yolunu vermeniz gerek sırasıyla.