Hi Chris,

On Mon, Jun 20, 2011 at 2:52 PM, Chris Jaquet <[email protected]> wrote:
> It seems I only had the dynamic SDL library installed. After I
> installed the static library (for SDL) cmake automatically picks up
> /usr/lib/libSDLmain.a.
>
> Funny thing is that when I manually set SDLMAIN_LIBRARY to the
> shared object (prior to installing the static library), the example
> application worked fine, it is only cmake that complains.
>
> I am using cmake 2.8.4. Oh well, I guess it is just one of those things ;-)
> Thanks again.
>
> Cheers and have a good day,
> Chris
>
>
>
> On Mon, Jun 20, 2011 at 9:53 AM, Robert Osfield <[email protected]>
> wrote:
>>
>> Hi Chris,
>>
>> I haven't seen problems with compiling SDL myself and don't recall
>> others having the problem you are having.  From your description I
>> can't work out what might be amiss.
>>
>> If the CMake build doesn't find SDL then it should happily just ignore
>> the build of the osgviewerSDL pluigin, it shouldn't reported an error.
>>
>> Is that CMake partially found your SDL install?
>>
>> What version of the CMake are you using?

I wonder if this is a CMake issue as we are relying upon it's
FindSDL.cmake implementation.

On my Kubuntu 11.04 system it finds my libsdl-dev install just fine,
finding both the static and dynamic libs, the values I get are:

  SDL_INCLUDE_DIR /usr/include/SDL
  SDL_LIBRARY /usr/lib/libSDLmain.a;/usr/lib/libSDL.so;-lpthread

I have CMake 2.8.3 on this system.

Given we don't provide a FindSDL.cmake I'm not sure what else we can
do other than have you look into CMake's own implementation of
FindSDL.cmake to see if that is causing issues with picking up on
dynamic library only install of libsdl.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to