1. use any open vrml library 0.18.x
2. set environment variable BOOST_ROOT to point to the root of the boost. 
(needed for cmake to set boost entries automatically)
3. you will have to replace  the outdated content of 
<OpenSceneGraph>\src\osgPlugins\vrml\CMakeLists.txt with this:

FIND_PACKAGE(Boost 1.40.0 COMPONENTS thread)

IF(NOT Boost_FOUND)
        RETURN()
ENDIF()

INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})

INCLUDE_DIRECTORIES(${OPENVRML_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${OPENVRML_INCLUDE_DIR}/openvrml)

IF (WIN32)

    INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR})
    INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
    INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
    
    SET(TARGET_LIBRARIES_VARS
        OPENVRML_LIBRARY
        JPEG_LIBRARY
        PNG_LIBRARY
        ZLIB_LIBRARY)
    SET(TARGET_EXTERNAL_LIBRARIES
        Ws2_32.lib)
ELSE()
    SET(TARGET_LIBRARIES_VARS
        OPENVRML_LIBRARY)
ENDIF()

ADD_DEFINITIONS(-D OPENVRML_USE_DLL)


SET(TARGET_SRC 
    IndexedFaceSet.cpp
    Primitives.cpp
    ReaderWriterVRML2.cpp 
    ConvertToVRML.cpp
)

SET(TARGET_H
    ReaderWriterVRML2.h
    ConvertToVRML.h
)

#### end var setup  ###
SETUP_PLUGIN(vrml vrml)

4. rerun cmake and set vrml and/or boost related  entries

Robert Milharcic

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Paolo Piazzi
Sent: Friday, September 02, 2011 3:07 PM
To: [email protected]
Subject: [osg-users] [osgPlugins] VRML plugin: help in compiling

Hi,

I followed the instructions for VRML plugin, but I wasn't able to compile it 
with openVRML 0.14. Then I downloaded openVRML 0.18 & Boost 1.46, but I wasn't 
able to compile openVRML in order to use the .lib in the VRML plugin in OSG.
The error are like this:
"Error  536     error LNK2019: riferimento al simbolo esterno "void * __cdecl 
openvrml::local::dl::sym(struct HINSTANCE__ *,class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &)" 
(?sym@dl@local@openvrml@@YAPAXPAUHINSTANCE__@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
 non risolto nella funzione _openvrml_open_node_module   
...\Projects\openvrml-0.18.8\src\libopenvrml\node_metatype_registry_impl.obj    
openvrml"

There are 14 errors like that. In the recent past, I tried to compile openVRML 
also in Linux Ubuntu, but I coudn't do it.

Thank you!

Cheers,
Paolo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42382#42382





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

Reply via email to