Hi Robert,
I'm at home now and will first be at work tomorrow to test it.. sorry.
regards,
Peter
robertosfield wrote:
> Hi Peter.
>
> On 23 July 2013 14:52, Peter Wraae Marino < ()> wrote:
>
> > when compiling for android with oopenscenegraph 3.2 i get this error:
> >
> > C:/Android/OpenSceneGraph-3.2/src/osgPlugins/osc/ip/win32/NetworkingUtils.cpp:32:77:
> > fatal error: winsock2.h: No such file or directory
> >
> >
> > where do I remove or fix this?
> >
>
>
> Are posix API's available under Android? If so we should be able to change
> the osc/CMakeLists.txt to select the non Win32 part. The part of the
> osc/CMakeLists.txt of interest is:
>
> if(WIN32)
> SET(TARGET_SRC
> ${TARGET_SRC}
> ip/win32/NetworkingUtils.cpp
> ip/win32/UdpSocket.cpp
> )
> SET(TARGET_EXTERNAL_LIBRARIES
> "${TARGET_EXTERNAL_LIBRARIES};Ws2_32.lib;winmm")
> ELSE()
> SET(TARGET_SRC
> ${TARGET_SRC}
> ip/posix/NetworkingUtils.cpp
> ip/posix/UdpSocket.cpp
> )
> ENDIF()
>
> replacing the IF(WIN32) with:
>
> IF(WIN32 AND NOT ANDROID)
>
> Might be sufficient, could you try this? If this works I'll check this
> change into OSG-3.2 branch and svn/trunk. A quick turnaround on this will
> allow me to roll this in the next release candidate that I'll be making this
> afternoon.
>
> Cheers,
> Robert.
>
> ------------------
> Post generated by Mail2Forum
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=55372#55372
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org