<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=SK link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi all.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I have problem with adding ode library to
the static library in Visual Studio 2008. My project name is oxygen and it is
depend from ODE library version 0.9 (<a
href="http://downloads.sourceforge.net/opende/ode-win32-0.9.zip?modtime=1192176753&big_mirror=0">http://downloads.sourceforge.net/opende/ode-win32-0.9.zip?modtime=1192176753&big_mirror=0</a>
). CMakeLists.txt file for oxygen include following lines:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US># include all headers of project (.h)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>set(oxygen_LIB_HDRS …….. )<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>#include all source files of project
(.cpp)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>set(oxygen_LIB_SRCS ……..)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>#include directory of ODE library. Value
ODE_INCLUDE_DIR is C:/library/ode/include. Also this value is added into VS
project (Project properties -> Configuration Properties
->C/C++->General->Additional Include Directories)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>include_directories(${ODE_INCLUDE_DIR})<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>#create static library oxygen.lib<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>add_library(oxygen STATIC
${oxygen_LIB_SRCS} ${oxygen_LIB_HDRS})<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>#add ode.lib to the oxygen. Value
ODE_LIBRARY is C:/library/ode/lib/releaselib/ode.lib. But this value is not
added into VS project (Project properties -> Configuration Properties
->Librarian->General->Additional Dependencies)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>target_link_libraries(oxygen
${ODE_LIBRARY})<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>If I change project from static library
(lib) to the dynamic library (dll) (change values add_library to the (oxygen
SHARED ${oxygen_LIB_SRCS} ${oxygen_LIB_HDRS})), value ODE_LIBRARY
(C:/library/ode/lib/releaselib/ode.lib) is added into VS Project. I finding
solution about one week but still nothing. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Thank you for every advice.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Marian<span style='color:#1F497D'><o:p></o:p></span></span></p>
</div>
<BR><BR>__________ Information from ESET NOD32 Antivirus, version of virus signature database 3852 (20090213) __________<BR><BR>The message was checked by ESET NOD32 Antivirus.<BR><BR><A HREF="http://www.eset.com">http://www.eset.com</A><BR> </body>
</html>