Re: pwlib compilation error
- From: "Joseph E. Sacco, Ph.D." <joseph_sacco comcast net>
- To: garnome-list <garnome-list gnome org>
- Subject: Re: pwlib compilation error
- Date: Sun, 21 May 2006 17:34:46 -0400
Frank,
A build problem sometimes occurred when a newer version of pwlib was
being built in an environment where an older version was currently
installed. The patch file,
./files/garnome-fixes.diff
was created to insure that pwlib first looked at its own include files
rather than looking elsewhere. Hmmm... looks like something went awry.
What to do... Remove an components of pwlib previously installed and
rebuild pwlib.
pwlib supports 'make uninstall'. On my system:
$ make -n uninstall
make -C work/main.d/pwlib-1.10.0 uninstall
make[1]: Entering directory `/usr/local/src/GARNOME/2.15/garnome-2.15.x/src/bootstrap/pwlib/work/main.d/pwlib-1.10.0'
rm -rf /usr/local/src/GARNOME/2.15/garnome-2.15.x/include/ptlib \
/usr/local/src/GARNOME/2.15/garnome-2.15.x/include/ptclib \
/usr/local/src/GARNOME/2.15/garnome-2.15.x/include/ptlib.h \
/usr/local/src/GARNOME/2.15/garnome-2.15.x/include/ptbuildopts.h \
/usr/local/src/GARNOME/2.15/garnome-2.15.x/share/pwlib \
/usr/local/src/GARNOME/2.15/garnome-2.15.x/lib/pwlib/devices \
rm -f /usr/local/src/GARNOME/2.15/garnome-2.15.x/lib/libpt_linux_ppc_r.so* \
/usr/local/src/GARNOME/2.15/garnome-2.15.x/lib/libpt.so
make[1]: Leaving directory `/usr/local/src/GARNOME/2.15/garnome-2.15.x/src/bootstrap/pwlib/work/main.d/pwlib-1.10.0'
rm -rf cookies/main.d/*install*
-Joseph
=====================================================================================================
On Sun, 2006-05-21 at 10:47 -0400, Frank Solensky wrote:
> Garnome 2.15.2.1
> While building pwlib to satisfy dependencies from opal and ekiga, I ran
> into the following:
>
> ---------------
> make[7]: Entering directory `/home/fsolensky/gnome/garnome-2.15.2.1/bootstrap/pwlib/work/main.d/pwlib-1.10.0/plugins/vidinput_v4l'
> mkdir -p ../pwlib/device/videoinput
> ccache g++ -g \
> -I/home/fsolensky/gnome/garnome/include \
> -L/home/fsolensky/gnome/garnome/lib \
> -march=pentium3 -msse -O2 -pipe \
> -D_REENTRANT -Wall -fPIC -DPIC \
> -I/home/fsolensky/gnome/garnome-2.15.2.1/bootstrap/pwlib/work/main.d/pwlib-1.10.0/include \
> -I. -shared vidinput_v4l.cxx -o ../pwlib/device/videoinput/v4l_pwplugin.so
> vidinput_v4l.cxx:245:28: error: macro "PCREATE_VIDINPUT_PLUGIN" requires 2 arguments, but only 1 given
> vidinput_v4l.cxx:245: error: expected constructor, destructor, or type conversion before ‘;’ token
> vidinput_v4l.cxx: In member function ‘virtual PINDEX PVideoInputDevice_V4L::GetMaxFrameBytes()’:
> vidinput_v4l.cxx:1032: error: ‘GetMaxFrameBytesConverted’ was not declared in this scope
> make[7]: *** [../pwlib/device/videoinput/v4l_pwplugin.so] Error 1
> ---------------
>
> The problem seems to be a result of the first "-I" option: the file
> garnome/include/ptlib/vidio.h has a two-argument version of the macro.
> The file main.d/pwlib-1.10.0/include/ptlib/vidio.h -- the intended
> reference -- has only one.
>
> My question is on how to proceed: cd to the directory and compile the
> files that reference the macro manually? Modify some Makefile or
> environment variable to get the first "-I" out of the way? Something
> else?
>
> Thanks again in advance..
>
--
joseph_sacco [at] comcast [dot] net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]