You didn't specify your development environment so I'm just guessing
here. Under Linux, you usually have to install a development package in
order to link to libraries. If you are compiling your own libgeotiff you
might want to install the library before trying to link to it. You
might also be linking to a library that links to the libgeotiff in
question.<br><font color="#888888">
<br>Eric<br></font><br><div class="gmail_quote">On Thu, Jun 16, 2011 at 5:56 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I added a simple:<br>
<br>
target_link_libraries(myprogram geotiff)<br>
<br>
to my CMakeLists.txt file. I have a libgeotiff.so in a directory on my<br>
LD_LIBRARY_PATH. The code compiled, but when I tried to run it, I got<br>
an error that I was missing libgeotiff.so.2. I made a symlink from<br>
libgeotiff.so.2 to libgeotiff.so, and then everything worked. Why was<br>
this .2 introduced? Is there either 1) a way to stop it from getting<br>
introduced or 2) a way to tell it "just use the closest file" so it<br>
would use the libgeotiff.so without me needing to make a symlink?<br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>