<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[cross compiling serial port failure (yes I know there are other answers)]]></title><description><![CDATA[<p dir="auto">I'm trying to cross-compile serialport.  I know there are other answers, but they did not work for me, and there are binaries, but I want to learn how to do it myself for other modules.</p>
<p dir="auto">I have my environment set up, and can build and port a regular c program. However, I can't create an npm module. When I do, I end up with the error ....</p>
<pre><code>root@Omega-B116:/mnt/mmcblk0p1/development/node/source/tmp# node serial.js 
/mnt/mmcblk0p1/development/node/node_modules/bindings/bindings.js:121
        throw e;
        ^

Error: Error loading shared library /mnt/mmcblk0p1/development/node/node_modules/@serialport/bindings/build/Release/bindings.node: Exec format error
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at bindings (/mnt/mmcblk0p1/development/node/node_modules/bindings/bindings.js:112:48)
    at Object.&lt;anonymous&gt; (/mnt/mmcblk0p1/development/node/node_modules/@serialport/bindings/lib/linux.js:2:36)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
</code></pre>
<p dir="auto">My command line is ...</p>
<pre><code>npm --arch=mipsel_24kc install serial port
</code></pre>
<p dir="auto">and it compiles just fine. Any help would be appreciated</p>
]]></description><link>http://community.onion.io/topic/4100/cross-compiling-serial-port-failure-yes-i-know-there-are-other-answers</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 05:31:29 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/4100.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Apr 2020 02:13:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to cross compiling serial port failure (yes I know there are other answers) on Wed, 15 Apr 2020 02:13:35 GMT]]></title><description><![CDATA[<p dir="auto">I'm trying to cross-compile serialport.  I know there are other answers, but they did not work for me, and there are binaries, but I want to learn how to do it myself for other modules.</p>
<p dir="auto">I have my environment set up, and can build and port a regular c program. However, I can't create an npm module. When I do, I end up with the error ....</p>
<pre><code>root@Omega-B116:/mnt/mmcblk0p1/development/node/source/tmp# node serial.js 
/mnt/mmcblk0p1/development/node/node_modules/bindings/bindings.js:121
        throw e;
        ^

Error: Error loading shared library /mnt/mmcblk0p1/development/node/node_modules/@serialport/bindings/build/Release/bindings.node: Exec format error
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at bindings (/mnt/mmcblk0p1/development/node/node_modules/bindings/bindings.js:112:48)
    at Object.&lt;anonymous&gt; (/mnt/mmcblk0p1/development/node/node_modules/@serialport/bindings/lib/linux.js:2:36)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
</code></pre>
<p dir="auto">My command line is ...</p>
<pre><code>npm --arch=mipsel_24kc install serial port
</code></pre>
<p dir="auto">and it compiles just fine. Any help would be appreciated</p>
]]></description><link>http://community.onion.io/post/21498</link><guid isPermaLink="true">http://community.onion.io/post/21498</guid><dc:creator><![CDATA[davidsi]]></dc:creator><pubDate>Wed, 15 Apr 2020 02:13:35 GMT</pubDate></item><item><title><![CDATA[Reply to cross compiling serial port failure (yes I know there are other answers) on Wed, 15 Apr 2020 02:22:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/4793">@davidsi</a> forgot to mention, once everything was compiled I simply copied them to my sd card on my omega2</p>
]]></description><link>http://community.onion.io/post/21499</link><guid isPermaLink="true">http://community.onion.io/post/21499</guid><dc:creator><![CDATA[davidsi]]></dc:creator><pubDate>Wed, 15 Apr 2020 02:22:00 GMT</pubDate></item><item><title><![CDATA[Reply to cross compiling serial port failure (yes I know there are other answers) on Wed, 17 Jun 2020 08:23:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/4793">@davidsi</a> said in <a href="/post/21498">cross compiling serial port failure (yes I know there are other answers)</a>:</p>
<blockquote>
<p dir="auto">I'm trying to cross-compile serialport.  I know there are other answers, but they did not work for me, and there are binaries, but I want to learn how to do it myself for other modules.</p>
<p dir="auto">I have my environment set up, and can build and port a regular c program. However, I can't create an npm module. When I do, I end up with the error ....</p>
<pre><code>root@Omega-B116:/mnt/mmcblk0p1/development/node/source/tmp# node serial.js 
/mnt/mmcblk0p1/development/node/node_modules/bindings/bindings.js:121
        throw e;
        ^

Error: Error loading shared library /mnt/mmcblk0p1/development/node/node_modules/@serialport/bindings/build/Release/bindings.node: Exec format error
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at bindings (/mnt/mmcblk0p1/development/node/node_modules/bindings/bindings.js:112:48)
    at Object.&lt;anonymous&gt; (/mnt/mmcblk0p1/development/node/node_modules/@serialport/bindings/lib/linux.js:2:36)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
</code></pre>
<p dir="auto">My command line is ...</p>
<pre><code>npm --arch=mipsel_24kc install serial port
</code></pre>
<p dir="auto">and it compiles just fine. Any help would be appreciated</p>
</blockquote>
<p dir="auto">Awesome content</p>
]]></description><link>http://community.onion.io/post/21874</link><guid isPermaLink="true">http://community.onion.io/post/21874</guid><dc:creator><![CDATA[NelsonPalmer]]></dc:creator><pubDate>Wed, 17 Jun 2020 08:23:12 GMT</pubDate></item><item><title><![CDATA[Reply to cross compiling serial port failure (yes I know there are other answers) on Thu, 09 Jul 2020 08:50:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/4793">@davidsi</a><br />
Hi,<br />
I'm also trying to cross-compile serialport ,but  failed, did you cross-compile successfully？</p>
]]></description><link>http://community.onion.io/post/22104</link><guid isPermaLink="true">http://community.onion.io/post/22104</guid><dc:creator><![CDATA[Yif]]></dc:creator><pubDate>Thu, 09 Jul 2020 08:50:00 GMT</pubDate></item></channel></rss>