<div dir="ltr">Please find attached the code and associated error after compilation...<br><br>gcc -o test imagescale.cpp -I /usr/include/gdal -lgdal<br>/usr/bin/ld: /tmp/ccrySeCX.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'<br>//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line<br>collect2: error: ld returned 1 exit status<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 3, 2014 at 1:41 PM, Johan Van de Wauw <span dir="ltr"><<a href="mailto:johan.vandewauw@gmail.com" target="_blank">johan.vandewauw@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please include the error. And possibly also the file if it is no<br>
secret, will help you get a much better answer.<br>
<br>
Johan<br>
<br>
BTW: keep the ubuntugis list in cc, other people may benefit from<br>
reading how we solved your problem.<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Nov 3, 2014 at 9:39 PM, alassane toure <<a href="mailto:atourej@gmail.com">atourej@gmail.com</a>> wrote:<br>
> Hi Johan,<br>
> I am not a sophisticated user of gdal.  I am looking for the easiest way to<br>
> have the compiler running.  As such, I followed your instruction by running<br>
> the version included in ubuntu "sudo apt-get install libgdal-dev" but the<br>
> compilation of the program test.cpp did not work.  This issue started when i<br>
> install the latest ubuntu version.<br>
><br>
> Again, thanks for your insight!<br>
><br>
> On Mon, Nov 3, 2014 at 1:26 PM, Johan Van de Wauw<br>
> <<a href="mailto:johan.vandewauw@gmail.com">johan.vandewauw@gmail.com</a>> wrote:<br>
>><br>
>> Hello Alassane,<br>
>><br>
>> First of all, you should tell us what you actually want to achieve.<br>
>> You may be better of using the gdal libraries which are already part<br>
>> of ubuntu rather than compiling your own version.<br>
>><br>
>> If you want to use the version of gdal included in ubuntu install the<br>
>> package libgdal-dev . You can do so using your favorite package<br>
>> manager or using the command prompt: sudo apt-get install libgdal-dev<br>
>><br>
>> If you do that your command will probably work without extra effort.<br>
>><br>
>> If there is a good reason to install your own version, you can still<br>
>> do so, but you should be aware that you are probably installing to<br>
>> /usr/local instead of /usr.<br>
>><br>
>> In that case you should adjust for the include:<br>
>> gcc -o test test.cpp -I /usr/local/include/gdal -lgdal<br>
>><br>
>> adjusting the linking is slightly more work.try running ldconfig (as<br>
>> root so sudo ldconfig) first after the installation. If that does not<br>
>> work make sure  that the directory /usr/local/lib is part of<br>
>> /etc/ld.so.conf and run ldconfig again.<br>
>><br>
>> Johan<br>
>><br>
>> Johan<br>
>><br>
>> On Mon, Nov 3, 2014 at 9:12 PM, alassane toure <<a href="mailto:atourej@gmail.com">atourej@gmail.com</a>> wrote:<br>
>> > I was able to run it successfully but the following command did not<br>
>> > work..<br>
>> > gcc -o test test.cpp -I /usr/include/gdal -lgdal<br>
>> ><br>
>> > Any thoughts?<br>
>> > Thanks,<br>
>> ><br>
>> > On Mon, Nov 3, 2014 at 12:24 PM, Johan Van de Wauw<br>
>> > <<a href="mailto:johan.vandewauw@gmail.com">johan.vandewauw@gmail.com</a>> wrote:<br>
>> >><br>
>> >> On ubuntu, run "sudo make install"<br>
>> >><br>
>> >> Alternatively, you may wait a few days until gdal 1.11.1 hits<br>
>> >> ubuntugis-unstable.<br>
>> >><br>
>> >> Johan<br>
>> >><br>
>> >> On Mon, Nov 3, 2014 at 8:11 PM, alassane toure <<a href="mailto:atourej@gmail.com">atourej@gmail.com</a>><br>
>> >> wrote:<br>
>> >> > Group,<br>
>> >> > I downloaded the gdal version 1.11.1 and followed instructions<br>
>> >> > provided<br>
>> >> > in<br>
>> >> > <a href="http://trac.osgeo.org/gdal/wiki/BuildingOnUnix" target="_blank">http://trac.osgeo.org/gdal/wiki/BuildingOnUnix</a><br>
>> >> ><br>
>> >> > % cd gdal<br>
>> >> > % ./configure<br>
>> >> > % make<br>
>> >> > % su<br>
>> >> > Password: ********<br>
>> >> > # make install<br>
>> >> > # exit<br>
>> >> ><br>
>> >> > All went well but without a 'su' credential, I was unable to complete<br>
>> >> > the<br>
>> >> > installation.<br>
>> >> > I am running windows and unix on the same machine with the same<br>
>> >> > access<br>
>> >> > username and password.  Do i need to create a su account<br>
>> >> ><br>
>> >> > or is there another way to have the gdal compiler working again?<br>
>> >> ><br>
>> >> > I appreciate your help<br>
>> >> ><br>
>> >> > Regards,<br>
>> >> > Alassane<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > On Thu, May 24, 2012 at 1:16 PM, Alassane Toure <<a href="mailto:atourej@gmail.com">atourej@gmail.com</a>><br>
>> >> > wrote:<br>
>> >> >><br>
>> >> >> Group,<br>
>> >> >> I need help to install GDAL 1.9.1 on Ubuntu 12.04.  I first<br>
>> >> >> downloaded<br>
>> >> >> gdal-1.9.1.tar.gz, uncompressed it and executed  ./configure.  Where<br>
>> >> >> do<br>
>> >> >> I go<br>
>> >> >> from here?<br>
>> >> >><br>
>> >> >> Thanks for your help<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > _______________________________________________<br>
>> >> > UbuntuGIS mailing list<br>
>> >> > <a href="mailto:Ubuntu@lists.osgeo.org">Ubuntu@lists.osgeo.org</a><br>
>> >> > <a href="http://lists.osgeo.org/mailman/listinfo/ubuntu" target="_blank">http://lists.osgeo.org/mailman/listinfo/ubuntu</a><br>
>> >> > <a href="http://trac.osgeo.org/ubuntugis/wiki" target="_blank">http://trac.osgeo.org/ubuntugis/wiki</a><br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>