<?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 Problem with compiling API Example using ARCHICAD27 and Visual Studio 2022 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571279#M8735</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping someone can give us a hand in solving the following problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We just downloaded the API Development Kit for Archicad 27 and tried to compile an example API(Communication_Manager). But ran into problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The CMake process has completed successfully and Python has been installed, but the following message is output during build and it does not complete.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;gt;------ Build All started: Project: Communication_Manager, Configuration: x64-Debug ------
  [Microsoft (R) Build Engine version 16.10.2+857e5a733 for .NET Framework]
  Copyright (C) Microsoft Corporation.All rights reserved.
  
    Compiling resources...
    Python 
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: 'D:\Users\hori\Documents\tps2022_24\Communication_Manager\out\build\x64-Debug\CMakeFiles\dd9445f5f69aac1b619e8d669ae551ed\AddOnResources.stamp.rule;D:\Users\hori\Documents\tps2022_24\Communication_Manager\out\build\x64-Debug\CMakeFiles\de08dd971fc2e36bebf5c91ed235a88a\AddOnResources.rule'[ custom build ended with code 9009.]

Build All failed.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We apologize for the inconvenience, but some of the above messages have been translated from Japanese and may not be accurate. (The range enclosed in [] is the translated part)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N.H&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 10:46:44 GMT</pubDate>
    <dc:creator>NH</dc:creator>
    <dc:date>2024-09-17T10:46:44Z</dc:date>
    <item>
      <title>Problem with compiling API Example using ARCHICAD27 and Visual Studio 2022</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571279#M8735</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping someone can give us a hand in solving the following problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We just downloaded the API Development Kit for Archicad 27 and tried to compile an example API(Communication_Manager). But ran into problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The CMake process has completed successfully and Python has been installed, but the following message is output during build and it does not complete.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;gt;------ Build All started: Project: Communication_Manager, Configuration: x64-Debug ------
  [Microsoft (R) Build Engine version 16.10.2+857e5a733 for .NET Framework]
  Copyright (C) Microsoft Corporation.All rights reserved.
  
    Compiling resources...
    Python 
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: 'D:\Users\hori\Documents\tps2022_24\Communication_Manager\out\build\x64-Debug\CMakeFiles\dd9445f5f69aac1b619e8d669ae551ed\AddOnResources.stamp.rule;D:\Users\hori\Documents\tps2022_24\Communication_Manager\out\build\x64-Debug\CMakeFiles\de08dd971fc2e36bebf5c91ed235a88a\AddOnResources.rule'[ custom build ended with code 9009.]

Build All failed.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We apologize for the inconvenience, but some of the above messages have been translated from Japanese and may not be accurate. (The range enclosed in [] is the translated part)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N.H&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 10:46:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571279#M8735</guid>
      <dc:creator>NH</dc:creator>
      <dc:date>2024-09-17T10:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with compiling API Example using ARCHICAD27 and Visual Studio 2022</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571283#M8736</link>
      <description>&lt;P&gt;Hi NH!&lt;BR /&gt;&lt;BR /&gt;Please also post the way you configure CMake. (&lt;STRONG&gt;CMakeSettings.json&lt;/STRONG&gt; or &lt;STRONG&gt;CMakePresets.json&lt;/STRONG&gt; or the command line you use)&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 06:01:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571283#M8736</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-10-18T06:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with compiling API Example using ARCHICAD27 and Visual Studio 2022</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571284#M8737</link>
      <description>&lt;P&gt;Hi Bernd&lt;/P&gt;&lt;P&gt;Thank you for your reply&lt;/P&gt;&lt;P&gt;Send the contents of CMakeSettings.json.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "configurations": [
    {
      "name": "x64-Debug",
      "generator": "Visual Studio 16 2019 Win64",
      "configurationType": "Debug",
      "inheritEnvironments": [ "msvc_x64_x64" ],
      "buildRoot": "${projectDir}\\out\\build\\${name}",
      "installRoot": "${projectDir}\\out\\install\\${name}",
      "cmakeCommandArgs": "",
      "buildCommandArgs": "",
      "ctestCommandArgs": "",
      "variables": [
        {
          "name": "AC_API_DEVKIT_DIR",
          "value": "C:/Program Files/GRAPHISOFT/API Development Kit 27.3001",
          "type": "PATH"
        }
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The contents of &lt;STRONG&gt;AddOnResources.rule&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;and &lt;STRONG&gt;AddOnResources.stamp.rule&lt;/STRONG&gt; listed in the error were both below.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# generated from CMake&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please inspect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HN&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 06:31:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571284#M8737</guid>
      <dc:creator>NH</dc:creator>
      <dc:date>2023-10-18T06:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with compiling API Example using ARCHICAD27 and Visual Studio 2022</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571291#M8738</link>
      <description>&lt;P&gt;The contents of &lt;STRONG&gt;AddOnResources.rule&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;and &lt;STRONG&gt;AddOnResources.stamp.rule&lt;/STRONG&gt; are normal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK &lt;STRONG&gt;CMakeSettings.json&lt;/STRONG&gt; look good too. I'm just a confused now which Visual Studio version you are using. Because for compiling you are using VS2019, but in the topic title you mentioned VS2022. I would recommend to open the project also in VS2019 in case that's not what you were doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also now I'm wondering, why the build output has a line which explicitly states "Python".&lt;/P&gt;
&lt;P&gt;Normally there should be the name of a resource file next.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the following and report back:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open "Developer PowerShell for VS 2019" and execute&lt;BR /&gt;&lt;LI-CODE lang="c"&gt; python -c "import os, sys; print(os.path.dirname(sys.executable))​"&lt;/LI-CODE&gt;so we see which python is used for the build process.&lt;/LI&gt;
&lt;LI&gt;Please confirm if the two files are available in the Communication_Manager project:&lt;BR /&gt;RFIX\Communication_ManagerFix.grc&lt;BR /&gt;RINT\Communication_Manager.grc&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 07:00:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571291#M8738</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-10-18T07:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with compiling API Example using ARCHICAD27 and Visual Studio 2022</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571295#M8739</link>
      <description>&lt;P&gt;Hi Bernd&lt;/P&gt;&lt;P&gt;Thank you for your reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual Studio is mainly using 2022.&lt;BR /&gt;I tried opening and building in 2019 as instructed, but there seems to be no change in the results.&lt;BR /&gt;Regarding the project status in 2019, I have attached an image including the state of &lt;STRONG&gt;RFIX\Communication_ManagerFix.grc&lt;/STRONG&gt; and &lt;STRONG&gt;RINT\Communication_Manager.grc&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47397iCF306E4D63BC5F2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, paste the image resulting from "python -c".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 979px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47398i6C2E5444EE8DC120/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the only result returned is "Python", it seems likely that the installation did not go well.&lt;BR /&gt;I have also pasted the "Tools" - "Get Tools and Features" section below (please forgive me for the inscription in Japanese).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47399iC3AD40B9B4DCB850/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please inspect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HN&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 07:41:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571295#M8739</guid>
      <dc:creator>NH</dc:creator>
      <dc:date>2023-10-18T07:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with compiling API Example using ARCHICAD27 and Visual Studio 2022</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571313#M8740</link>
      <description>&lt;P&gt;Hi NH,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes I agree, that most likely there's some issue with finding the python installation.&lt;/P&gt;
&lt;P&gt;First I would check if there's python installed here: &lt;STRONG&gt;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64&lt;/STRONG&gt; (or similar last folder)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's installed there, than you could try adding that path to the &lt;STRONG&gt;system environment variable called "PATH".&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Then try again by deleting the &lt;STRONG&gt;CMake cache and reconfigure&lt;/STRONG&gt; (In Visual Studio menu "Project -&amp;gt; Delete Cache and Reconfigure")&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 09:18:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571313#M8740</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-10-18T09:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with compiling API Example using ARCHICAD27 and Visual Studio 2022</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571465#M8745</link>
      <description>&lt;P&gt;Hi Bernd&lt;BR /&gt;Thank you for the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had checked the PATH settings in another article, but since "Python was not found;" did not appear, I assumed that it was working normally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I look forward to working with you.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 23:54:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-compiling-API-Example-using-ARCHICAD27-and-Visual/m-p/571465#M8745</guid>
      <dc:creator>NH</dc:creator>
      <dc:date>2023-10-18T23:54:10Z</dc:date>
    </item>
  </channel>
</rss>

