[Gambas-devel] problems compiling in Debian
Benoit Minisini
gambas at ...1...
Thu Aug 10 23:15:02 CEST 2006
On Thursday 10 August 2006 22:21, José L. Redrejo Rodríguez wrote:
> El jue, 10-08-2006 a las 20:50 +0200, Benoit Minisini escribió:
> > On Thursday 10 August 2006 20:37, José L. Redrejo Rodríguez wrote:
> > > Right, I can solve it doing
> > > $(MAKE) prefix=`pwd`/debian/tmp/usr \
> > > ROOT="$(CURDIR)/debian/tmp"
> >
> > No you should do:
> >
> > ./configure --prefix=/usr
>
> That was already done, obviously.
>
> > $(MAKE) DESTDIR="$(CURDIR)/debian/tmp"
>
> ok
>
> > > as I later do
> > > $(MAKE) install prefix=`pwd`/debian/tmp/usr \
> > > ROOT="$(CURDIR)/debian/tmp"
> >
> > And then:
> >
> > $(MAKE) install prefix=`pwd`/debian/tmp/usr \
> > DESTDIR="$(CURDIR)/debian/tmp"
>
> I'll "use" you to learn a little bit: why DESTDIR instead of ROOT?
ROOT is not defined anymore in the Makefile.am files. DESTDIR is used instead.
>
> > > And then the whole gambas stuff is compiled without problems in
> > > `pwd`/debian/tmp/ to make the package. But my doubt is: Once the
> > > package is isntalled, and gbc2 is placed at /usr/bin... will it work?
> > > If not, it doesn't make much sense...
> >
> > It should work.
> >
> > $(prefix) tells gbx2, gbc2 and gbi2 where Gambas will be finally
> > installed, but only during the compilation process.
> >
> > DESTDIR tells the Makefile specific install rules where it can find gbc2,
> > gba2 and gbi2.
> >
> > Tell me the result. If it works, I will put that in a HowTo!
>
> Doing as you've said, I get:
>
> cp: cannot stat `./debian/tmp/usr/share/gambas2/help': No such file or
> directory
> when compressing the gambas-doc package after compiling.
>
> Doing as I said in my previous email, the compilation has finished
> without any problem. But, once the packages are installed, the ide
> doesn't work.
> I get a "Fmain.$load.1109: Unknown function call"
>
> More ideas?
>
Actually I did the following:
$ ./configure -C --prefix=/usr
...
$ make
...
$ mkdir ~/tmp-gambas
$ mkdir ~/tmp-gambas/usr
$ make prefix=~/tmp-gambas/usr install
...
I didn't use DESTDIR, and everything ran without any error.
Try that, and if it does not work anyway, maybe there is a problem in the
packag creation process.
Regards,
--
Benoit Minisini
More information about the Devel
mailing list