[libavg-users] Ubuntu 8.10 alpha - Compile problems
Noel Corbett
ovoskeuiks at gmail.com
Mon Sep 15 22:53:21 CEST 2008
Hi Uli,
Ubuntu 8.10 uses GCC 4.3, there are several files that need headers added
I'm not sure how to put this as a patch but here are the files and the lines
I added to them
base/OGLHelper.cpp
#include <cstdlib>
graphics/OGLHelper.cpp
#include <cstring>
graphics/PBOImage.cpp
#include <cstring>
imaging/Blob.cpp
#include <climits>
imaging/V4LCamera.cpp
#include <cstring>
audio/AudioBuffer.cpp
#include <cstring>
Used this for reference
http://gcc.gnu.org/gcc-4.3/porting_to.html
Cheers
Noel
2008/9/15 Ulrich von Zadow <uzadow at libavg.de>
> Noel Corbett wrote:
> > Hi,
> > I'm trying to compile the latest SVN rev 3168 on ubuntu 8.10 alpha and
> It's
> > failing with the following error:
> > OSHelper.cpp: In function 'bool avg::getEnv(const std::string&,
> > std::string&)':
> > OSHelper.cpp:97: error: 'getenv' was not declared in this scope
> > OSHelper.cpp: In function 'void avg::setEnv(const std::string&, const
> > std::string&)':
> > OSHelper.cpp:109: error: 'setenv' was not declared in this scope
> >
> > I know I'm probably just missing a library or something but I don't know
> > which one.
>
> Well... Ubuntu is probably changing header files around (to improve
> standards conformance or whatever). Try the attached patch. If it helps,
> there might be other similar errors later on, which you can try to fix
> in the same way.
>
> Which version of gcc does Ubuntu 8.10 use?
>
> Cheers,
>
> Uli
>
> --
> Any technology distinguishable from magic is insufficiently advanced.
>
> Ulrich von Zadow | +49-172-7872715
> Jabber: coder at c-base.org
> Skype: uzadow
>
> Index: OSHelper.cpp
> ===================================================================
> --- OSHelper.cpp (revision 3163)
> +++ OSHelper.cpp (working copy)
> @@ -33,6 +33,8 @@
> #include <mach-o/dyld.h>
> #endif
>
> +#include <stdlib.h>
> +
> using namespace std;
>
> namespace avg {
>
> _______________________________________________
> libavg-users mailing list
> libavg-users at datenhain.de
> https://mail.datenhain.de/mailman/listinfo/libavg-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.datenhain.de/pipermail/libavg-users/attachments/20080916/74913aff/attachment.htm
More information about the libavg-users
mailing list