<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>You have to set PD_INCLUDEDIR to point to Pd's "src" folder
      because the build system needs to find the header files.</p>
    <p>That being said, cyclone's build system could have some code to
      set some reasonable default values. That's what I do in my CMake
      based Pd externals, so I know it's possible :-)</p>
    <p>---<br>
    </p>
    <p>On the other hand, cyclone also supports the pd-lib-builder build
      system. Just cd into the top level folder (containing "Makefile")
      and type "make". pd-lib-builder should be able to find the Pd
      header files automagically.<br>
    </p>
    <p>Christof<br>
    </p>
    <div class="moz-cite-prefix">On 24.03.2022 06:32, Philip Stone via
      Pd-list wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:BY5PR08MB6423BA5ED124F216EB92D89FA7199@BY5PR08MB6423.namprd08.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal">Hello,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I hope this is a proper question for the
          general list. It borders on being something for the ‘dev’
          list, but is very basic, I’m afraid. I’m trying to compile
          darwin-arm64 or perhaps ‘fat’ binaries for Cyclone. When I run
          CMake on the ‘cyclone’ source, I get this :<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">The C compiler identification is AppleClang
          13.1.6.13160021<o:p></o:p></p>
        <p class="MsoNormal">Detecting C compiler ABI info<o:p></o:p></p>
        <p class="MsoNormal">Detecting C compiler ABI info - done<o:p></o:p></p>
        <p class="MsoNormal">Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
          - skipped<o:p></o:p></p>
        <p class="MsoNormal">Detecting C compile features<o:p></o:p></p>
        <p class="MsoNormal">Detecting C compile features - done<o:p></o:p></p>
        <p class="MsoNormal"><span style="color:red">CMake Error at
            CMakeLists.txt:9 (message):<br>
            Please provide a path to the pure-data source files.</span><o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">These are the first eleven lines of
          cmake.txt, where the error originates:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">cmake_minimum_required (VERSION 3.0)<o:p></o:p></p>
        <p class="MsoNormal">project (cyclone C)<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">option(BUILD_SHARED_LIBS "Build shared
          libraries" ON)<o:p></o:p></p>
        <p class="MsoNormal">option(BUILD_SINGLE_LIBRARY "Compile
          everything into one single library." OFF)<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">set(PD_INCLUDE_DIR "" CACHE PATH "Path to
          pure-data sources (this can be the pure-data/src folder in the
          sources of libpd)")<o:p></o:p></p>
        <p class="MsoNormal">if (NOT PD_INCLUDE_DIR)<o:p></o:p></p>
        <p class="MsoNormal">    message(FATAL_ERROR "Please provide a
          path to the pure-data source files.")<o:p></o:p></p>
        <p class="MsoNormal">endif()<o:p></o:p></p>
        <p class="MsoNormal">------------------------<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">What ‘pure-data source files’ is this
          referring to? Please forgive my compiling-newbie question!<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Best,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Phil Stone<o:p></o:p></p>
        <p class="MsoNormal">Davis, CA<o:p></o:p></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
  </body>
</html>