<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>a Problem when compiling  in Seeger Embedded studio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77877/a-problem-when-compiling-in-seeger-embedded-studio</link><description>Hi I made some changes in the chat project that is found in NRF Connect SDK and when I build the change project this error occurs 
 kobj-types-enum.h: No such file or directory Build failed 
 this is the full building output: Building ‘C:/Users/OMAR/ncs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Jul 2021 19:26:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77877/a-problem-when-compiling-in-seeger-embedded-studio" /><item><title>RE: a Problem when compiling  in Seeger Embedded studio</title><link>https://devzone.nordicsemi.com/thread/322317?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 19:26:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e4cfa99-c6f8-4a98-888f-32c70af52d14</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I did the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Used NCS v1.5.1&lt;/li&gt;
&lt;li&gt;Placed project in ncs/nrf&amp;amp;samples/chat2&lt;/li&gt;
&lt;li&gt;Built it using&amp;nbsp;&lt;code&gt;west build -b nrf52840dk_nrf52840 -d build_52840 -p&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;Got the following error&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;../src/Keepalive.c:187:1: error: expected &amp;#39;=&amp;#39;, &amp;#39;,&amp;#39;, &amp;#39;;&amp;#39;, &amp;#39;asm&amp;#39; or &amp;#39;__attribute__&amp;#39; at end of input
  187 | a&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Removed the &amp;#39;a&amp;#39;&amp;nbsp;from the bottom of&amp;nbsp;&lt;span&gt;keepalive.c&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Built it again using&amp;nbsp;&lt;span&gt;west build -b nrf52840dk_nrf52840 -d build_52840 -p&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Got the following errror:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;../src/Keepalive.c:175:32: error: &amp;#39;BT_MESH_KEEPALIVE_OP_PRIVATE_MESSAGE&amp;#39; undeclared (first use in this function); did you mean &amp;#39;BT_MESH_KEEPALIVE_OP_MESSAGE&amp;#39;?
  175 |  BT_MESH_MODEL_BUF_DEFINE(buf, BT_MESH_KEEPALIVE_OP_PRIVATE_MESSAGE,
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Then I added the following in keepalive.h to make it compile&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;/** Presence message opcode. */
#define BT_MESH_KEEPALIVE_OP_PRESENCE BT_MESH_MODEL_OP_3(0x0D, \
				       BT_MESH_KEEPALIVE_VENDOR_COMPANY_ID)

/** I added this below, to make it compile*/
#define BT_MESH_KEEPALIVE_OP_PRIVATE_MESSAGE BT_MESH_MODEL_OP_3(0x0D, \
				       BT_MESH_KEEPALIVE_VENDOR_COMPANY_ID)&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Built again&lt;/span&gt;&lt;span&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;It worked!&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Configuring done
-- Generating done
-- Build files have been written to: /home/simon/ncs/nrf/samples/chat2/build_52840
-- west build: building application
[1/270] Preparing syscall dependency handling

[148/270] Building C object CMakeFiles/app.dir/src/model_handler.c.obj
../src/model_handler.c:97:1: warning: &amp;quot;/*&amp;quot; within comment [-Wcomment]
   97 | /**
      |  
../src/model_handler.c:187:2: warning: &amp;quot;/*&amp;quot; within comment [-Wcomment]
  187 |  /* Don&amp;#39;t print own messages. * /
      |   
[265/270] Linking C executable zephyr/zephyr_prebuilt.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      225200 B         1 MB     21.48%
            SRAM:       42524 B       256 KB     16.22%
        IDT_LIST:         152 B         2 KB      7.42%
[270/270] Linking C executable zephyr/zephyr.elf&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is strange that it didn&amp;#39;t work for you. I built on both Windows and Linux and it built successfully. I tried with both &amp;#39;build&amp;#39; and &amp;#39;build_nrf52840dk_nrf52840&amp;#39;, as well as&amp;nbsp;&amp;#39;build_nrf52840dk_nrf52840_123456789123456789&amp;#39; to test the Windows path length issue, but it still worked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you test on a different computer? Try to uninstall and install NCS and see if it works then.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a Problem when compiling  in Seeger Embedded studio</title><link>https://devzone.nordicsemi.com/thread/322288?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 15:17:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af4f58d5-39c2-4ede-8e06-045cc2dbbd7d</guid><dc:creator>Omar</dc:creator><description>&lt;p&gt;I uploaded the wrong file sorry.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3513.chat2.zip"&gt;devzone.nordicsemi.com/.../3513.chat2.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a Problem when compiling  in Seeger Embedded studio</title><link>https://devzone.nordicsemi.com/thread/322275?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 14:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3257c51e-f255-49e2-9e0b-507e37f01040</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Did you give me the whole project? The file model_handler.c included the file&amp;nbsp;&lt;em&gt;AdsumNet_Keepalive.h&lt;/em&gt;, which was not included in your project.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;../src/model_handler.c:15:10: fatal error: AdsumNet_Keepalive.h: No such file or directory
   15 | #include &amp;quot;AdsumNet_Keepalive.h&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;Can you upload your whole project, and all the files you&amp;#39;ve used.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I used NCS v1.5.1 by the way. Is that the version you&amp;#39;re using?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a Problem when compiling  in Seeger Embedded studio</title><link>https://devzone.nordicsemi.com/thread/322108?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 18:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7d69ceb-5e7c-46fa-b9c8-b1e896249c88</guid><dc:creator>Omar</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m actually trying to create a model that sends a periodic message, so I begin modifying the chat example.&lt;/p&gt;
&lt;p&gt;I uploaded my source code without the build folder so that you can build it correctly&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a Problem when compiling  in Seeger Embedded studio</title><link>https://devzone.nordicsemi.com/thread/321891?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 17:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9848487-fe1a-4b03-b5b9-cddb3ccb4cfd</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try to&amp;nbsp;&lt;span&gt;place NCS closer to &amp;quot;C:/&amp;quot; (place it in&amp;nbsp;&lt;/span&gt;&lt;em&gt;C:/ncs/v1.5.1/&lt;/em&gt;&lt;span&gt;&amp;nbsp;instead of&amp;nbsp;&lt;/span&gt;&lt;em&gt;C:/Users/OMAR/ncs/v1.5.1/&lt;/em&gt;&lt;span&gt;) to shorten the path length.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If it still doesn&amp;#39;t work, can you please upload your project and I&amp;#39;ll try to reproduce it on my side.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a Problem when compiling  in Seeger Embedded studio</title><link>https://devzone.nordicsemi.com/thread/321889?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 17:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5f931eb-6504-4d08-a9cc-f57094df6db2</guid><dc:creator>Omar</dc:creator><description>&lt;p&gt;the name was&lt;strong&gt;&amp;nbsp;build_nrf52840dk_nrf52840,&amp;nbsp;&lt;/strong&gt;i rename it to &lt;strong&gt;build&lt;/strong&gt; but the same problem occurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a Problem when compiling  in Seeger Embedded studio</title><link>https://devzone.nordicsemi.com/thread/321865?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 14:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80f1fd70-d170-4699-9123-bd2e915cd2df</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;This may be caused by the Windows path length issue:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/known_issues.html#build-system"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/known_issues.html#build-system&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Try to name the build name &amp;quot;build&amp;quot; instead of &amp;quot;build_nrf5340dk_nrf5340_cpuappns&amp;quot; or place NCS closer to &amp;quot;C:/&amp;quot; (in &lt;em&gt;C:/ncs/v1.5.1/&lt;/em&gt; instead of &lt;em&gt;C:/Users/OMAR/ncs/v1.5.1/&lt;/em&gt;) to shorten the path length.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>