|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
GDAL 1.5.0 Perl Binding on CygwinI have successfully built GDAL 1.5.0 Perl binding on Cygwin and the
followings might be helpful for those who experience problems.
1. Go to directory gdal-1.5.0/swig/perl and run 'perl Makefile.PL'. The following four Makefiles should be created if it succeeds: Makefile_Geo__GDAL Makefile_Geo__GDAL__Const Makefile_Geo__OGR Makefile_Geo__OSR 2. Edit each of the four Makefiles by appending -lstdc++ after each -lgdal and save them. 3. Run make using each of the four Makefiles as follows: make -f Makefile_Geo__GDAL make -f Makefile_Geo__GDAL__Const make -f Makefile_Geo__OGR make -f Makefile_Geo__OSR 4. Install the Perl Geo::GDAL package by running make -f Makefile_Geo__GDAL install That it. Enjoy! Jim _______________________________________________ gdal-dev mailing list gdal-dev@... http://lists.osgeo.org/mailman/listinfo/gdal-dev |
|
|
Re: GDAL 1.5.0 Perl Binding on Cygwinjingmuyang@... kirjoitti:
> I have successfully built GDAL 1.5.0 Perl binding on Cygwin and the > followings might be helpful for those who experience problems. > > 2. Edit each of the four Makefiles by appending -lstdc++ after each > -lgdal and save them. If you tell me how to detect Cygwin reliably I can add this to Makefile.PL > > 3. Run make using each of the four Makefiles as follows: > > make -f Makefile_Geo__GDAL > make -f Makefile_Geo__GDAL__Const > make -f Makefile_Geo__OGR > make -f Makefile_Geo__OSR "make build" does this, sorry, I know its non-standard outside of gdal, where it is standard :) > > 4. Install the Perl Geo::GDAL package by running > > make -f Makefile_Geo__GDAL install "make install" should do this > > That it. Enjoy! > > Jim Cheers, Ari > > ------------------------------------------------------------------------ > More new features than ever. Check out the new AOL Mail > <http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/text.htm?ncid=aolcmp00050000000003>! > ------------------------------------------------------------------------ > > _______________________________________________ > gdal-dev mailing list > gdal-dev@... > http://lists.osgeo.org/mailman/listinfo/gdal-dev -- Prof. Ari Jolma Geoinformatiikka / Geoinformatics Teknillinen Korkeakoulu / Helsinki University of Technology tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma _______________________________________________ gdal-dev mailing list gdal-dev@... http://lists.osgeo.org/mailman/listinfo/gdal-dev |
|
|
Re: GDAL 1.5.0 Perl Binding on CygwinThank you Jim!
I've created a page for this at http://trac.osgeo.org/gdal/wiki/GdalPerlOnCygwin please update/revise as needed. cheers, -- matt wilkie -------------------------------------------- Geographic Information, Information Management and Technology, Yukon Department of Environment 10 Burns Road * Whitehorse, Yukon * Y1A 4Y9 867-667-8133 Tel * 867-393-7003 Fax http://environmentyukon.gov.yk.ca/geomatics/ -------------------------------------------- _______________________________________________ gdal-dev mailing list gdal-dev@... http://lists.osgeo.org/mailman/listinfo/gdal-dev |
|
|
Re: GDAL 1.5.0 Perl Binding on CygwinAri Jolma wrote:
> jingmuyang@... kirjoitti: >> I have successfully built GDAL 1.5.0 Perl binding on Cygwin and the >> followings might be helpful for those who experience problems. >> >> 2. Edit each of the four Makefiles by appending -lstdc++ after each >> -lgdal and save them. > > If you tell me how to detect Cygwin reliably I can add this to > Makefile.PL Ari, Within GMT a cygwin installation is detected with a #ifdef _WIN32 and that has worked well since a long time. Joaquim Luis _______________________________________________ gdal-dev mailing list gdal-dev@... http://lists.osgeo.org/mailman/listinfo/gdal-dev |
|
|
RE: GDAL 1.5.0 Perl Binding on Cygwin> Ari Jolma wrote: > > jingmuyang@... kirjoitti: > >> I have successfully built GDAL 1.5.0 Perl binding on > Cygwin and the > >> followings might be helpful for those who experience problems. > >> > >> 2. Edit each of the four Makefiles by appending -lstdc++ > after each > >> -lgdal and save them. > > > > If you tell me how to detect Cygwin reliably I can add this to > > Makefile.PL #ifdef __CYGWIN__ http://cygwin.com/faq/faq.programming.html#faq.programming.preprocessor HTH Norman _______________________________________________ gdal-dev mailing list gdal-dev@... http://lists.osgeo.org/mailman/listinfo/gdal-dev |
|
|
Re: GDAL 1.5.0 Perl Binding on CygwinJoaquim Luis kirjoitti:
> Ari Jolma wrote: >> jingmuyang@... kirjoitti: >>> I have successfully built GDAL 1.5.0 Perl binding on Cygwin and the >>> followings might be helpful for those who experience problems. >>> >>> 2. Edit each of the four Makefiles by appending -lstdc++ after each >>> -lgdal and save them. >> >> If you tell me how to detect Cygwin reliably I can add this to >> Makefile.PL > > Ari, > Within GMT a cygwin installation is detected with a > > #ifdef _WIN32 Ah, I meant in Makefile.PL, i.e., by Perl. It's probably something in Config.pm? Ari > > and that has worked well since a long time. > > Joaquim Luis -- Prof. Ari Jolma Geoinformatiikka / Geoinformatics Teknillinen Korkeakoulu / Helsinki University of Technology tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma _______________________________________________ gdal-dev mailing list gdal-dev@... http://lists.osgeo.org/mailman/listinfo/gdal-dev |
|
|
Re: GDAL 1.5.0 Perl Binding on CygwinI believe that using `uname | grep CYGWIN` in Makefile.PL should be able to handle the Cygwin system type.
Cheers, Jim -----Original Message----- From: Ari Jolma <ari.jolma@...> To: Joaquim Luis <jluis@...> Cc: jingmuyang@...; gdal-dev@... Sent: Sat, 19 Jan 2008 6:14 pm Subject: Re: [gdal-dev] GDAL 1.5.0 Perl Binding on Cygwin Joaquim Luis kirjoitti:
> Ari Jolma wrote: >> jingmuyang@... kirjoitti: >>> I have successfully built GDAL 1.5.0 Perl binding on Cygwin and the >>> followings might be helpful for those who experience problems. >>> >>> 2. Edit each of the four Makefiles by appending -lstdc++ after each >>> -lgdal and save them. >> >> If you tell me how to detect Cygwin reliably I can add this to >> Makefile.PL > > Ari, > Within GMT a cygwin installation is detected with a > > #ifdef _WIN32 Ah, I meant in Makefile.PL, i.e., by Perl. It's probably something in Config.pm? Ari > > and that has worked well since a long time. > > Joaquim Luis -- Prof. Ari Jolma Geoinformatiikka / Geoinformatics Teknillinen Korkeakoulu / Helsinki University of Technology tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma _______________________________________________ gdal-dev mailing list gdal-dev@... http://lists.osgeo.org/mailman/listinfo/gdal-dev |
|
|
Re: GDAL 1.5.0 Perl Binding on CygwinI fixed this problem by editing a Cygwin script /usr/bin/perlld from:
my $CC = 'gcc'; to: my $CC = 'g++'; This seems to fix other perl problems (non-GDAL) with Cygwin as well. When I pointed this out, the Cygwin folks thought it was a bug but wanted to investigate why this was set to gcc in the first place. Anyway, my problem remains with perl swig bindings on Cygwin. I know Ari wants nothing more to do with this issue, but since we're on the subject, maybe someone else might able to give me a clue. It seems I have a problem linking with the gdal lib with external libs. I get a ton of these types of messages below - I think the issue has to do with the beginning underscore in the calls because rikdataset.cpp calls "uncompress" not "_uncompress": /usr/local/lib/libgdal.a(rikdataset.o):rikdataset.cpp:(.text+0x519): undefined reference to `_uncompress' /usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN18JPEG2000RasterBandC2EP15JPEG2000Datasetiii': /home/pmallas/gdal/frmts/jpeg2000/jpeg2000dataset.cpp:257: undefined reference to `_jas_matrix_create' .... I am ignorant of how libraries get called - probably the windows demands a prepended underscore for library calls or something. And I know there are flags to manipulate leading underscores with g++ (like -fleading-underscore), but I could never get them to work. I have spent considerable time trying to sort this out with no luck. Any insights would be appreciated. jingmuyang@... wrote: > I have successfully built GDAL 1.5.0 Perl binding on Cygwin and the > followings might be helpful for those who experience problems. > > 1. Go to directory gdal-1.5.0/swig/perl and run 'perl Makefile.PL'. The > following four Makefiles should be created if it succeeds: > > Makefile_Geo__GDAL > Makefile_Geo__GDAL__Const > Makefile_Geo__OGR > Makefile_Geo__OSR > > 2. Edit each of the four Makefiles by appending -lstdc++ after each > -lgdal and save them. > > 3. Run make using each of the four Makefiles as follows: > > make -f Makefile_Geo__GDAL > make -f Makefile_Geo__GDAL__Const > make -f Makefile_Geo__OGR > make -f Makefile_Geo__OSR > > 4. Install the Perl Geo::GDAL package by running > > make -f Makefile_Geo__GDAL install > > That it. Enjoy! > > Jim > > ------------------------------------------------------------------------ > More new features than ever. Check out the new AOL Mail > <http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/text.htm?ncid=aolcmp00050000000003>! > > > ------------------------------------------------------------------------ > > _______________________________________________ > gdal-dev mailing list > gdal-dev@... > http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list gdal-dev@... http://lists.osgeo.org/mailman/listinfo/gdal-dev |
|
|
Re: GDAL 1.5.0 Perl Binding on CygwinI experienced the same problem when I initially built GDAL 1.5.0 on
Cygwin. After analyzing the libraries I found that I had old GDAL libraries installed on /usr/local/lib/. What I did was to delete those old libraries from /usr/local/lib and then built GDAL 1.5.0 without Perl binding. After GDAL 1.5.0 was installed on /usr/local/ I built Perl binding as I described and I no longer have the link problems. Hope this can help. Jim Paul Mallas wrote: > I fixed this problem by editing a Cygwin script /usr/bin/perlld from: > > my $CC = 'gcc'; > to: > my $CC = 'g++'; > > This seems to fix other perl problems (non-GDAL) with Cygwin as well. > When I pointed this out, the Cygwin folks thought it was a bug but > wanted to investigate why this was set to gcc in the first place. > > Anyway, my problem remains with perl swig bindings on Cygwin. I know > Ari wants nothing more to do with this issue, but since we're on the > subject, maybe someone else might able to give me a clue. > > It seems I have a problem linking with the gdal lib with external > libs. I get a ton of these types of messages below - I think the > issue has to do with the beginning underscore in the calls because > rikdataset.cpp calls "uncompress" not "_uncompress": > > /usr/local/lib/libgdal.a(rikdataset.o):rikdataset.cpp:(.text+0x519): > undefined reference to `_uncompress' > /usr/local/lib/libgdal.a(jpeg2000dataset.o): In function > `_ZN18JPEG2000RasterBandC2EP15JPEG2000Datasetiii': > /home/pmallas/gdal/frmts/jpeg2000/jpeg2000dataset.cpp:257: undefined > reference to `_jas_matrix_create' > .... > > I am ignorant of how libraries get called - probably the windows > demands a prepended underscore for library calls or something. And I > know there are flags to manipulate leading underscores with g++ (like > -fleading-underscore), but I could never get them to work. I have > spent considerable time trying to sort this out with no luck. > > Any insights would be appreciated. > > jingmuyang@... wrote: >> I have successfully built GDAL 1.5.0 Perl binding on Cygwin and the >> followings might be helpful for those who experience problems. >> >> 1. Go to directory gdal-1.5.0/swig/perl and run 'perl Makefile.PL'. >> The following four Makefiles should be created if it succeeds: >> >> Makefile_Geo__GDAL >> Makefile_Geo__GDAL__Const >> Makefile_Geo__OGR >> Makefile_Geo__OSR >> >> 2. Edit each of the four Makefiles by appending -lstdc++ after each >> -lgdal and save them. >> >> 3. Run make using each of the four Makefiles as follows: >> >> make -f Makefile_Geo__GDAL >> make -f Makefile_Geo__GDAL__Const >> make -f Makefile_Geo__OGR >> make -f Makefile_Geo__OSR >> >> 4. Install the Perl Geo::GDAL package by running >> >> make -f Makefile_Geo__GDAL install >> >> That it. Enjoy! >> >> Jim >> >> ------------------------------------------------------------------------ >> More new features than ever. Check out the new AOL Mail >> <http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/text.htm?ncid=aolcmp00050000000003>! >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> gdal-dev mailing list >> gdal-dev@... >> http://lists.osgeo.org/mailman/listinfo/gdal-dev > > _______________________________________________ > gdal-dev mailing list > gdal-dev@... > http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list gdal-dev@... http://lists.osgeo.org/mailman/listinfo/gdal-dev |
|
|
Re: GDAL 1.5.0 Perl Binding on CygwinI finally got the GDAL Perl bindings to compile on Cygwin.
In addition to the c++ library issue that Jim mentioned, I used the --without-libtool option in the configure script when building the gdal library. Jingmu Yang wrote: > I experienced the same problem when I initially built GDAL 1.5.0 on > Cygwin. After analyzing the libraries I found that I had old GDAL > libraries installed on /usr/local/lib/. What I did was to delete > those old libraries from /usr/local/lib and then built GDAL 1.5.0 > without Perl binding. After GDAL 1.5.0 was installed on /usr/local/ I > built Perl binding as I described and I no longer have the link problems. > > Hope this can help. > > Jim > > Paul Mallas wrote: >> I fixed this problem by editing a Cygwin script /usr/bin/perlld from: >> >> my $CC = 'gcc'; >> to: >> my $CC = 'g++'; >> >> This seems to fix other perl problems (non-GDAL) with Cygwin as well. >> When I pointed this out, the Cygwin folks thought it was a bug but >> wanted to investigate why this was set to gcc in the first place. >> >> Anyway, my problem remains with perl swig bindings on Cygwin. I know >> Ari wants nothing more to do with this issue, but since we're on the >> subject, maybe someone else might able to give me a clue. >> >> It seems I have a problem linking with the gdal lib with external >> libs. I get a ton of these types of messages below - I think the >> issue has to do with the beginning underscore in the calls because >> rikdataset.cpp calls "uncompress" not "_uncompress": >> >> /usr/local/lib/libgdal.a(rikdataset.o):rikdataset.cpp:(.text+0x519): >> undefined reference to `_uncompress' >> /usr/local/lib/libgdal.a(jpeg2000dataset.o): In function >> `_ZN18JPEG2000RasterBandC2EP15JPEG2000Datasetiii': >> /home/pmallas/gdal/frmts/jpeg2000/jpeg2000dataset.cpp:257: undefined >> reference to `_jas_matrix_create' >> .... >> >> I am ignorant of how libraries get called - probably the windows >> demands a prepended underscore for library calls or something. And I >> know there are flags to manipulate leading underscores with g++ (like >> -fleading-underscore), but I could never get them to work. I have >> spent considerable time trying to sort this out with no luck. >> >> Any insights would be appreciated. >> >> jingmuyang@... wrote: >>> I have successfully built GDAL 1.5.0 Perl binding on Cygwin and the >>> followings might be helpful for those who experience problems. >>> >>> 1. Go to directory gdal-1.5.0/swig/perl and run 'perl Makefile.PL'. >>> The following four Makefiles should be created if it succeeds: >>> >>> Makefile_Geo__GDAL >>> Makefile_Geo__GDAL__Const >>> Makefile_Geo__OGR >>> Makefile_Geo__OSR >>> >>> 2. Edit each of the four Makefiles by appending -lstdc++ after each >>> -lgdal and save them. >>> >>> 3. Run make using each of the four Makefiles as follows: >>> >>> make -f Makefile_Geo__GDAL >>> make -f Makefile_Geo__GDAL__Const >>> make -f Makefile_Geo__OGR >>> make -f Makefile_Geo__OSR >>> >>> 4. Install the Perl Geo::GDAL package by running >>> >>> make -f Makefile_Geo__GDAL install >>> >>> That it. Enjoy! >>> >>> Jim >>> >>> ------------------------------------------------------------------------ >>> >>> More new features than ever. Check out the new AOL Mail >>> <http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/text.htm?ncid=aolcmp00050000000003>! >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> _______________________________________________ >>> gdal-dev mailing list >>> gdal-dev@... >>> http://lists.osgeo.org/mailman/listinfo/gdal-dev >> >> _______________________________________________ >> gdal-dev mailing list >> gdal-dev@... >> http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list gdal-dev@... http://lists.osgeo.org/mailman/listinfo/gdal-dev |
| Free Forum Powered by Nabble | Forum Help |