Build problem with version 7 on mingw (version 5 ok)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Benny,

Ok, I found:

In version 5
the make files in pjlib pjlib-util pjnath third_party pjmedia pjsip
pjsip-apps all refer to
.../../build/common.mak
whereas in V7 some of them refer to $(PJDIR)/build/common.mak

I think msys interprets  /home/Lafras/pj relative to its install location
whereas c:/mingw/bin/make.exe does not.
This may have to do with the msys/mingw install/setup procedure.

The first solution affects all platforms but I don't know the effect is
good.
In aconfigure line 2747  change ac_pjdir=`pwd' to  ac_pjdir=`pwd -W`

Second option is to condition the change only to mingw as follows:
case $target in *mingw* | *cygw* | *win32* | *w32* )
 ac_pjdir=`pwd -W`
 ;;
  *)
 ac_pjdir=`pwd`
 ;;
esac

Third solution (if it is a msys/mingw install issue)
in ./configure test that make.exe uses the correct path and warn user that
mingw is not installed properly.

Regards
Lafras

----- Original Message -----
From: "Benny Prijono" <bennylp@xxxxxxxxx>
To: "pjsip embedded/DSP SIP discussion" <pjsip at lists.pjsip.org>
Sent: Friday, September 21, 2007 5:40 PM
Subject: Re: Build problem with version 7 on mingw (version 5 ok)


>
> Lafras Henning wrote:
> > Ok I found
> >
> > edit C:\msys\1.0\home\Lafras\PJ\build.mak
> >    Line 31 change
> >      export PJDIR := /home/Lafras/pjt
> >    to
> >      export PJDIR := c:/msys/1.0/home/Lafras/pjt
> >
> > This file (build.mak) is created by the ./configure script so the
> > correct fix should be in aconfigure,
> >  but the scriping language is beyond me.
>
> PJDIR is set from the output of "pwd", so I don't know what else can
> we do to fix this.
>
>   -benny
>
>
> > Thanks
> > Lafras
> >
> >
> >     ----- Original Message -----
> >     *From:* Lafras Henning <mailto:lafras at xietel.com>
> >     *To:* pjsip at pjsip.org <mailto:pjsip at pjsip.org>
> >     *Sent:* Friday, September 21, 2007 8:08 AM
> >     *Subject:* [pjsip] Build problem with version 7 on mingw (version 5
ok)
> >
> >     all,
> >
> >     I use mingw on w2k.
> >
> >     I can build version 5 of pjsip with no problem.
> >
> >     Trying to build version 7 gives the following error:
> >
> >     ./configure completes ok (appart from a WARNING: mswsock.h: present
> >     but cannot be compiled - also warned in V5 but was ok)
> >     make dep
> >      >>>
> >     for dir in pjlib pjlib-util pjnath third_party pjmedia pjsip
> >     pjsip-apps; do \
> >             if c:/mingw/bin/make.exe  -C $dir/build dep; then \
> >                 true; \
> >             else \
> >                 exit 1; \
> >             fi; \
> >     done
> >     makefile:2: /home/Lafras/pjt/build/common.mak: No such file or
directory
> >     c:\mingw\bin\make.exe[1]: Entering directory
> >     `C:/msys/1.0/home/Lafras/pjt/pjlib/build'
> >     c:\mingw\bin\make.exe[1]: Leaving directory
> >     `C:/msys/1.0/home/Lafras/pjt/pjlib/build'
> >     c:\mingw\bin\make.exe[1]: *** No rule to make target
> >     `/home/Lafras/pjt/build/common.mak'.  Stop.
> >     c:\mingw\bin\make.exe: *** [dep] Error 1
> >     <<<<<
> >     then stops
> >
> >
> >     The file C:/msys/1.0/home/Lafras/pjt/pjlib/build/common.mak does
> >     exist although the error is missing the c:/msys/1.0 part.
> >
> >
> >     Please can anyone assist.
> >     Regards
> >     Lafras
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux