<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Compiling C++ WS-Management SDK on Linux in Intel® Business Client Software Development</title>
    <link>https://community.intel.com/t5/Intel-Business-Client-Software/Compiling-C-WS-Management-SDK-on-Linux/m-p/1337453#M7145</link>
    <description>&lt;P&gt;I’m trying to build the WS-Management libraries on Linux so that I can run some sample power operation programs from a Linux OS. I also need to be able to apply my server’s certificate to the AMT device so AMT can trust the server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I downloaded the source from this link: &lt;A href="https://software.intel.com/sites/manageability/AMT_Implementation_and_Reference_Guide/default.htm" target="_blank" rel="noopener"&gt;https://software.intel.com/sites/manageability/AMT_Implementation_and_Reference_Guide/default.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’ve been making small modifications to the Cmake files, like removing WinRMClient from the build, and telling Cmake to use C++11 and C11. I’m building on CentOS 7 (just what I have available) with Cmake version 3.22.0-rc3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My questions are:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Is it advisable to try to build this source or use these libraries from Linux? Am I missing any instructions or modified source for doing this?&lt;/LI&gt;
&lt;LI&gt;Do you have suggestions for alternative technologies that would be supported on Linux? I understand I can use a wsman client with Cim/DMTF protocol. Is that my only other option instead of using this SDK? I’m open to using other languages. A library or SDK with more sophisticated error handling is preferred instead of running command line tools. I have been doing similar operations using HLAPI on Windows but now have a need to support Linux.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;My current build errors are these – my build gets stuck in CimFrameworkUntyped, looking for a Microsoft xml dependency, and can’t get past the strnlen_s error even though it should have the right headers and C++ version:&lt;/P&gt;
&lt;P&gt;Building CXX object CimFrameworkUntyped/CMakeFiles/CimFrameworkUntyped.dir/src/XMLUtils_MS.cpp.o&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;amt_cpp_sdk/WS-Management/CimFrameworkUntyped/src/XMLUtils_MS.cpp:11:20:&lt;/STRONG&gt; fatal error: msxml6.h: No such file or directory&lt;/P&gt;
&lt;P&gt;#include &amp;lt;msxml6.h&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;compilation terminated.&lt;/P&gt;
&lt;P&gt;make[2]: *** [CimFrameworkUntyped/CMakeFiles/CimFrameworkUntyped.dir/src/XMLUtils_MS.cpp.o] Error 1&lt;/P&gt;
&lt;P&gt;make[2]: *** Waiting for unfinished jobs....&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;amt_cpp_sdk/WS-Management/CimFrameworkUntyped/src/CimUtils.cpp:&lt;/STRONG&gt; In function ‘&lt;STRONG&gt;void Intel::Manageability::Cim::Utils::FromBase64(const unsigned char*, unsigned char*, unsigned int*)&lt;/STRONG&gt;’:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;amt_cpp_sdk/WS-Management/CimFrameworkUntyped/src/CimUtils.cpp:69:50:&lt;/STRONG&gt; error: ‘&lt;STRONG&gt;strnlen_s&lt;/STRONG&gt;’ was not declared in this scope&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strnlen_s((const char *)inStr, tmp.length()), (char*)outStr, &amp;amp;state);&lt;/P&gt;</description>
    <pubDate>Thu, 18 Nov 2021 20:59:13 GMT</pubDate>
    <dc:creator>cc_engineer</dc:creator>
    <dc:date>2021-11-18T20:59:13Z</dc:date>
    <item>
      <title>Compiling C++ WS-Management SDK on Linux</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/Compiling-C-WS-Management-SDK-on-Linux/m-p/1337453#M7145</link>
      <description>&lt;P&gt;I’m trying to build the WS-Management libraries on Linux so that I can run some sample power operation programs from a Linux OS. I also need to be able to apply my server’s certificate to the AMT device so AMT can trust the server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I downloaded the source from this link: &lt;A href="https://software.intel.com/sites/manageability/AMT_Implementation_and_Reference_Guide/default.htm" target="_blank" rel="noopener"&gt;https://software.intel.com/sites/manageability/AMT_Implementation_and_Reference_Guide/default.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’ve been making small modifications to the Cmake files, like removing WinRMClient from the build, and telling Cmake to use C++11 and C11. I’m building on CentOS 7 (just what I have available) with Cmake version 3.22.0-rc3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My questions are:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Is it advisable to try to build this source or use these libraries from Linux? Am I missing any instructions or modified source for doing this?&lt;/LI&gt;
&lt;LI&gt;Do you have suggestions for alternative technologies that would be supported on Linux? I understand I can use a wsman client with Cim/DMTF protocol. Is that my only other option instead of using this SDK? I’m open to using other languages. A library or SDK with more sophisticated error handling is preferred instead of running command line tools. I have been doing similar operations using HLAPI on Windows but now have a need to support Linux.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;My current build errors are these – my build gets stuck in CimFrameworkUntyped, looking for a Microsoft xml dependency, and can’t get past the strnlen_s error even though it should have the right headers and C++ version:&lt;/P&gt;
&lt;P&gt;Building CXX object CimFrameworkUntyped/CMakeFiles/CimFrameworkUntyped.dir/src/XMLUtils_MS.cpp.o&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;amt_cpp_sdk/WS-Management/CimFrameworkUntyped/src/XMLUtils_MS.cpp:11:20:&lt;/STRONG&gt; fatal error: msxml6.h: No such file or directory&lt;/P&gt;
&lt;P&gt;#include &amp;lt;msxml6.h&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;compilation terminated.&lt;/P&gt;
&lt;P&gt;make[2]: *** [CimFrameworkUntyped/CMakeFiles/CimFrameworkUntyped.dir/src/XMLUtils_MS.cpp.o] Error 1&lt;/P&gt;
&lt;P&gt;make[2]: *** Waiting for unfinished jobs....&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;amt_cpp_sdk/WS-Management/CimFrameworkUntyped/src/CimUtils.cpp:&lt;/STRONG&gt; In function ‘&lt;STRONG&gt;void Intel::Manageability::Cim::Utils::FromBase64(const unsigned char*, unsigned char*, unsigned int*)&lt;/STRONG&gt;’:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;amt_cpp_sdk/WS-Management/CimFrameworkUntyped/src/CimUtils.cpp:69:50:&lt;/STRONG&gt; error: ‘&lt;STRONG&gt;strnlen_s&lt;/STRONG&gt;’ was not declared in this scope&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strnlen_s((const char *)inStr, tmp.length()), (char*)outStr, &amp;amp;state);&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 20:59:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/Compiling-C-WS-Management-SDK-on-Linux/m-p/1337453#M7145</guid>
      <dc:creator>cc_engineer</dc:creator>
      <dc:date>2021-11-18T20:59:13Z</dc:date>
    </item>
  </channel>
</rss>

