<?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>fatal error: zephyr.h: No such file or directory - Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102153/fatal-error-zephyr-h-no-such-file-or-directory---developing-bluetooth-low-energy-products-using-nrf-connect-sdk</link><description>Hi, 
 I am trying to build the &amp;quot;bluetooth remote&amp;quot; example from https://webinars.nordicsemi.com/developing-bluetooth-low-energy-6 
 Using nRF SDK 2.4. 
 I have downloaded the &amp;quot;Webinar_projects&amp;quot; zip and added folder &amp;quot;bluetooth remote&amp;quot; in my workspace directory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jul 2023 08:36:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102153/fatal-error-zephyr-h-no-such-file-or-directory---developing-bluetooth-low-energy-products-using-nrf-connect-sdk" /><item><title>RE: fatal error: zephyr.h: No such file or directory - Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/437798?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 08:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f05f91e-9630-46cd-9dc5-4b7f3fed32a7</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The reason you need to add the zephyr/ prefix is because the public header in Zephyr were moved to include/zephyr in Zephyr 3.1.0, see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.1/zephyr/releases/release-notes-3.1.html"&gt;Zephyr 3.1.0 release notes&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fatal error: zephyr.h: No such file or directory - Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/437795?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 08:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:444fa68f-bf5c-478a-ae4a-bfb61bc60a46</guid><dc:creator>con48</dc:creator><description>&lt;p&gt;Hi Marte, &lt;/p&gt;
&lt;p&gt;Thank you very much! That fixed it.&lt;/p&gt;
&lt;p&gt;I also had to add zephyr/ to the front of the directories below in the remote.h file. Is there a reason I am required to do this but it is not done in the webinar example?&lt;/p&gt;
&lt;p&gt;I also had to update the logging code as per the subject below:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92377/undefined-reference-to-log_strdup"&gt;devzone.nordicsemi.com/.../undefined-reference-to-log_strdup&lt;/a&gt;&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#include&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;zephyr/kernel.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#include&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;zephyr/logging/log.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#include&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;zephyr/bluetooth/bluetooth.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#include&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;zephyr/bluetooth/uuid.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#include&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;zephyr/bluetooth/gatt.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#include&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;zephyr/bluetooth/hci.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Many thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fatal error: zephyr.h: No such file or directory - Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/437789?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 07:29:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ea6e06e-874b-41f4-a468-898c45847de4</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to change &lt;code&gt;#include &amp;lt;zephyr.h&amp;gt;&lt;/code&gt; to &lt;code&gt;#include &amp;lt;zephyr/kernel.h&amp;gt;&lt;/code&gt;, as zephyr.h has been deprecated in favor of kernel.h.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>