Menu

stuck on configure

Help
David Pont
2004-01-27
2004-01-27
  • David Pont

    David Pont - 2004-01-27

    I am very keen to try out 'videorbits'..

    First hurdle= I am trapped inside Windows 2000. I found the very cool UWin (by THE D. Korn) that provides ability to build and run UNIX apps on Windows (!!! wow).

    Second hurdle= when I run videorbits-2.203 configure I get:

    $ configure
    loading cache ./config.cache
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking whether make sets ${MAKE}... yes
    checking for working aclocal... missing
    checking for working autoconf... missing
    checking for working automake... missing
    checking for working autoheader... missing
    checking for working makeinfo... missing
    checking for mawk... no
    checking for gawk... no
    checking for nawk... nawk
    checking for gcc... no
    checking for cc... cc
    checking whether the C compiler (cc  ) works... no
    configure: error: installation or configuration problem: C compiler cannot create executables.

    The UWIN compiler is actually a 'UNIX compliant' front end to one of a number of supported native Windows compilers. I am trying the Borland compiler. My guess is configue is looking for some specific response from the compiler that the UWIN cc(Borland) does not give.

    As I said I am keen to make this work. If someone can help, I would be happy to keep a record of my experience......  Have pity on a windoze slave...

    So any clues on how to make configure happy ?

    Dave Pont

     
    • James Fung

      James Fung - 2004-01-27

      There's an autoconf macro which is being called to check the compiler.  I'm sure you can find out the particulars of this
      macro on the web - obviously its quite common.

      However,  hacking configure scripts can be tricky, so
      what i'd suggest is you take a makefile, and just
      edit it by hand to fit your uwin configuration.

      I've included below old makefiles from videorbits for you
      to look at, maybe you could use them to compile it directly.  You'll probably have to edit library and include paths and
      so on, but it should be more straight forward than tweaking the configure script (there are a number of other macros the
      configure script will need to test- and those could fail also)

      also i'd be interested to hear of any success you might have
      compiling this on UWIN.

      James

      makefile.inc is:

      CC=cc
      CFLAGS=-O2
      LIBS=-lX11 -lm

      INCLUDES = -I.
      LDFLAGS = -Larch/`hostname`
      CFLAGS = $(INCLUDES)

      LIBSRCS = mat_util.c \
            display_service.c \
            est_pseudo.c \
            ppm.c \
            pchirp2ia.c \
            pinverse.c \
            derivatives.c \
            motion.c \
            filt2d.c \
            filt2ddsamp.c \
            par.c \
            corners2r.c \
            corners2d.c \
            dst_to_src_pchirp2.c \
            interp.c \
            boundingbox.c \
                img_resample.c \
                GrowArray.c \
                PNMImageOffsetable.c

      EXECS = estpchirp2m corr2p pchirp2nocrop cement pintegrate

      CLIBOBJS = $(patsubst %,arch/$(MACHTYPE)/%,$(LIBSRCS:.c=.o))
      TMPLIBOBJS = $(C++LIBSRCS:.c=.o)

      TARGETS = $(EXECS)

      .SUFFIXES: .c

      ----end makefile.inc---

      makefile is:include Makefile.inc

      MACHTYPE=linux
      NATIVE=true

      CC=gcc
      #CFLAGS=-Wall -g   # -O3 overrides -g; if you want -g, take out O3 below
      #CFLAGS=-Wall  -g -O3
      CFLAGS=-Wall  -O3

      #athlon optimizations
      #CFLAGS = -s -O3 -Wall -mpentiumpro -march=pentiumpro -malign-functions=4 -funroll-loops\
        -fexpensive-optimizations -malign-double -fschedule-insns2 -mwide-multiply

      LDFLAGS=-L/usr/X11R6/lib

      #LIBS=-lX11 -lm -lc          # add -lpng for NaN output as alphaa (png format)
      LIBS=-lX11 -lm -lc -lpng

      TARGETS = $(EXECS)

      .SUFFIXES: .c

      default targets: dir $(EXECS)

      dir:
          mkdir -p arch/$(MACHTYPE)

      pintegrate: $(CLIBOBJS) arch/$(MACHTYPE)/pintegrate.o
          $(CC) $(CFLAGS) -o arch/$(MACHTYPE)/$@ arch/$(MACHTYPE)/$@.o $(CLIBOBJS) $(LDFLAGS) $(LIBS)

      cement: $(CLIBOBJS) arch/$(MACHTYPE)/cement.o
          $(CC) $(CFLAGS) -o arch/$(MACHTYPE)/$@ arch/$(MACHTYPE)/$@.o $(CLIBOBJS) $(LDFLAGS) $(LIBS)

      pchirp2nocrop: $(CLIBOBJS) arch/$(MACHTYPE)/pchirp2nocrop.o
          $(CC) $(CFLAGS) -o arch/$(MACHTYPE)/$@ arch/$(MACHTYPE)/$@.o $(CLIBOBJS) $(LDFLAGS) $(LIBS)

      corr2p: $(CLIBOBJS) arch/$(MACHTYPE)/corr2p_main.o
          $(CC) $(CFLAGS) -o arch/$(MACHTYPE)/$@ arch/$(MACHTYPE)/corr2p_main.o $(CLIBOBJS) $(LDFLAGS) $(LIBS)

      corners2d_main: $(CLIBOBJS) arch/$(MACHTYPE)/corners2d.o
          $(CC) $(CFLAGS) -o arch/$(MACHTYPE)/$@ corners2d_main.c arch/$(MACHTYPE)/corners2d.o

      corners2r_main: $(CLIBOBJS) arch/$(MACHTYPE)/corners2r.o
          $(CC) $(CFLAGS) -o arch/$(MACHTYPE)/$@ corners2r_main.c arch/$(MACHTYPE)/corners2r.o

      estpchirp2m: $(CLIBOBJS) arch/$(MACHTYPE)/main.o
          $(CC) $(CFLAGS) -o arch/$(MACHTYPE)/$@ arch/$(MACHTYPE)/main.o $(CLIBOBJS) $(LDFLAGS) $(LIBS)
      # install must be run as root
      install: FORCE
          cp $(patsubst %,arch/$(MACHTYPE)/%,$(TARGETS)) /v/local/bin/arch/$(MACHTYPE)/
          cp Orbits.doc click_image.tcl /v/local/src/orbits/

      arch/$(MACHTYPE)/%.o : %.c
          $(CC) $(CFLAGS) -c $< -o $@

      depend: FORCE
          @-touch arch/$(MACHTYPE)/Makedepend
          makedepend -farch/$(MACHTYPE)/Makedepend -- $(CXXFLAGS) -- $(SRCS)

      clean: FORCE
          rm -f arch/$(MACHTYPE)/*.o arch/$(MACHTYPE)/core arch/$(MACHTYPE)/Makedepend $(patsubst %,arch/$(MACHTYPE)/%,$(TARGETS))

      # copy all the imporant executables and scripts into bin dir
      install:
          install -c arch/linux/estpchirp2m /usr/local/bin
          install -c arch/linux/corr2p      /usr/local/bin
          install -c arch/linux/pchirp2nocrop /usr/local/bin
          install -c arch/linux/pintegrate  /usr/local/bin
          install -c arch/linux/cement      /usr/local/bin
          install -c estcement.pl           /usr/local/bin
          install -c estpairwise.pl         /usr/local/bin
          install -c pchirp2nocrop.pl       /usr/local/bin
          install -c estcementtv.pl         /usr/local/bin

      FORCE:

      -include arch/$(MACHTYPE)/Makedepend

      # DO NOT DELETE THIS LINE -- make depend depends on it.

       
      • David Pont

        David Pont - 2004-01-27

        Hi James,
           thanks for the prompt and helpful response. I have edited the makefile and got it to call UWIN cc. Hurdle #3= configuring the compiler correctly as it is now spitting errors at me... so making progress. I will check UWIN docs and may need to post on their list to get help setting up the Borland compiler.
        I will keep you posted on my progress...

          Dave P

         

Log in to post a comment.