[mapguide-internals] Error in compiling Agg on ubuntu...

Traian Stanev traian.stanev at autodesk.com
Tue Nov 6 09:33:49 EST 2007


Some of the packages you are explicitly installing (xerces, xalan, curl, and some others) are already available as part of the Oem build and you should not need to apt-get them. The instructions are a lot more comprehensive than what I usually do -- I wrestle with the build until it works. Now I know why I have to replace /bin/sh from all the scripts by /bin/bash. :)

I wonder why you apt-get asound -- my bet is that you are avoiding a build error with DWF that way.



Traian

________________________________________
From: mapguide-internals-bounces at lists.osgeo.org [mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jason Birch [Jason.Birch at nanaimo.ca]
Sent: Tuesday, November 06, 2007 1:02 AM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] Error in compiling Agg on ubuntu...

Heh, I already removed it and made clean.

I'll wait until you get the build script fixed, as I really want this to
work out of the box for other end users.   I'll be walking through it
again from scratch when I have time as we get closer to release, and
then after the release maybe create a clean VM and publish somewhere...

The build seems a bit cleaner than previous instructions indicate.  Some
of the packages I'm installing, I'm not sure if they're necessary, but
seems to be going Ok so far.

I know that you're busy, but if there's anything glaringly wrong on this
page, I'd appreciate a heads up.

http://tinyurl.com/272qdn

Jason

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Traian
Stanev
Sent: Monday, November 05, 2007 21:48
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] Error in compiling Agg on ubuntu...

No, it looks like your libgd was compiled without the png components.
Looking at our build_oem.sh, it looks like it runs the configure script
for gd without the correct arguments. If it used correct arguments, it
would have found the png we have locally under Oem/gd/lpng. Since you
didn't have png installed when you compiled gd, it decided not to
compile with png at all so there is the source of your problem.

I can fix the build script tomorrow, all you need to do right now is to
reconfigure/recompile gd, since you already installed png. You cannot
apt-get gd, since the one we use is modified.


Traian

________________________________________
From: mapguide-internals-bounces at lists.osgeo.org
[mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jason Birch
[Jason.Birch at nanaimo.ca]
Sent: Tuesday, November 06, 2007 12:45 AM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] Error in compiling Agg on ubuntu...

Thanks Traian,

Yes, Im doing the standard compile, and updating the docs on the wiki
for 7.10 and trunk as I go.

Is this what was causing the problem with the GD renderer too
then(question).  I,m on a mac going through citrix to terminal services
to my work pc.  Keyboard bindings are messed up...

Jason

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Traian
Stanev
Sent: Monday, November 05, 2007 21:41
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] Error in compiling Agg on ubuntu...

I read your emails out of order. Yes I know what is wrong here and will
fix it. The Makefile.am of renderers is missing a header path to
../../Oem/gd/lpng. I had not noticed it since my Ubuntu box also has
png-dev installed so png was in the path already.

Traian

________________________________________
From: mapguide-internals-bounces at lists.osgeo.org
[mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jason Birch
[Jason.Birch at nanaimo.ca]
Sent: Monday, November 05, 2007 11:31 PM
To: MapGuide Internals Mail List
Subject: [mapguide-internals] Error in compiling Agg on ubuntu...

Any ideas (questionmark - stupid keyboard mappings...);

 g++ -DPACKAGE_NAME=\"mapguide\" -DPACKAGE_TARNAME=\"mapguide\"
-DPACKAGE_VERSION=\"2.0.0\" "-DPACKAGE_STRING=\"mapguide 2.0.0\""
-DPACKAGE_BUGREPORT=\"http://mapguide.osgeo.org\" -DPACKAGE=\"mapguide\"
-DVERSION=\"2.0.0\" -DPACKAGE=\"mapguide\" -DVERSION=\"2.0.0\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_MATH_H=1 -DHAVE_NETDB_H=1
-DHAVE_NETINET_IN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1
-DHAVE_GETHOSTBYNAME=1 -DHAVE_SOCKET=1 -DHAVE_HTONS=1 -DHAVE_CONNECT=1
-DHAVE_SHUTDOWN=1 -I. -I. -I../MdfModel/ -I../Stylization/
-I/usr/local/fdo-3.3.0/include
-I/usr/local/fdo-3.3.0/include/ExpressionEngine
-I../../Oem/DWFTK7.1/develop/global/src/
-I../../Oem/DWFTK7.1/develop/global/src/dwf/ -I../../Oem/gd/gd/
-I../../Oem/gd/freetype/include/ -I../../Oem/agg-2.4/include
-I../../Oem/agg-2.4/font_freetype -g -D_DEBUG -DDWFTK_BUILD_EXPAT -g
-D_DEBUG -MT AGGImageIO.lo -MD -MP -MF .deps/AGGImageIO.Tpo -c
AGGImageIO.cpp  -fPIC -DPIC -o .libs/AGGImageIO.o
AGGImageIO.cpp:22:17: error: png.h: No such file or directory
AGGImageIO.cpp:608:8: warning: extra tokens at end of #endif directive
AGGImageIO.cpp:38: error: variable or field 'png_write_cb' declared void
AGGImageIO.cpp:38: error: 'png_structp' was not declared in this scope
AGGImageIO.cpp:38: error: 'png_bytep' was not declared in this scope
AGGImageIO.cpp:38: error: 'png_size_t' was not declared in this scope
AGGImageIO.cpp:38: error: initializer expression list treated as
compound expression
AGGImageIO.cpp:39: error: expected ',' or ';' before '{' token
AGGImageIO.cpp:58: error: variable or field 'png_read_cb' declared void
AGGImageIO.cpp:58: error: 'png_structp' was not declared in this scope
AGGImageIO.cpp:58: error: 'png_bytep' was not declared in this scope
AGGImageIO.cpp:58: error: 'png_size_t' was not declared in this scope
AGGImageIO.cpp:58: error: initializer expression list treated as
compound expression

Etc,etc,etc....
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals


More information about the mapguide-internals mailing list