<?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[&quot;No such plugin: &#x27;socketcan&#x27;&quot;]]></title><description><![CDATA[<p dir="auto">I'm using QT 6.6 android arm64-v8A, and i need to build a interface that communicates through CAN protocol.</p>
<p dir="auto">When I deploy the App to the board, I got this error "No such plugin: 'socketcan'".</p>
<p dir="auto">Does anyone knows how to fix it?</p>
<p dir="auto">We tried to cross building libqtsocketcan, and when we deploy the application the erros changed to the ones bellow.<br />
W qt.canbus.plugins.socketcan: : Cannot load library socketcan: (dlopen failed: library "socketcan" not found)<br />
I qt.canbus.plugins.socketcan: : Cannot load library libsocketcan, some functionality will not be available.<br />
I qt.canbus.plugins.socketcan: Cannot load library socketcan: (dlopen failed: library "socketcan" not found)</p>
<p dir="auto">thanks.</p>
]]></description><link>https://forum.qt.io/topic/152017/no-such-plugin-socketcan</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 19:54:50 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/152017.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Nov 2023 11:51:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Tue, 14 Nov 2023 06:03:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leonardol">@<bdi>LeonardoL</bdi></a><br />
It seems like working, right?<br />
I don't know why it still gives the plugin not found error. It is weird.</p>
<p dir="auto">Check my issue. I wrote "SELinux allow" policies for Qt socketcan apps on Enforcing mode. If you have android source code of your device, you can add the policy in the source code.<br />
My issue:  <a href="https://bugreports.qt.io/browse/QTBUG-118600" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-118600</a></p>
]]></description><link>https://forum.qt.io/post/779671</link><guid isPermaLink="true">https://forum.qt.io/post/779671</guid><dc:creator><![CDATA[osos11]]></dc:creator><pubDate>Tue, 14 Nov 2023 06:03:05 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Thu, 30 Nov 2023 12:19:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leonardol">@<bdi>LeonardoL</bdi></a><br />
You are welcome.</p>
<p dir="auto">Can you click on the link below and do what is said in the last 1-2 messages so that the Selinux problem can at least be investigated by Qt, or can you at least share a log( with device specs, at least Android version etc.) indicating that you have the same problem in the link?</p>
<p dir="auto"><a href="https://bugreports.qt.io/browse/QTBUG-118600" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-118600</a></p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.qt.io/post/781425</link><guid isPermaLink="true">https://forum.qt.io/post/781425</guid><dc:creator><![CDATA[osos11]]></dc:creator><pubDate>Thu, 30 Nov 2023 12:19:32 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Tue, 28 Nov 2023 14:39:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/osos11">@<bdi>osos11</bdi></a> said in <a href="/post/780113">"No such plugin: 'socketcan'"</a>:</p>
<blockquote>
<p dir="auto">android:arm64-v8a:LIBS += -L/$$PWD/android_libs/libsocketcan/lib -lsocketcan<br />
android:arm64-v8a:INCLUDEPATH += /$$PWD/android_libs/libsocketcan/include<br />
android:arm64-v8a:DEPENDPATH += /$$PWD/android_libs/libsocketcan/include</p>
</blockquote>
<p dir="auto">It worked. Thank you again. you've saved me :D</p>
]]></description><link>https://forum.qt.io/post/781184</link><guid isPermaLink="true">https://forum.qt.io/post/781184</guid><dc:creator><![CDATA[LeonardoL]]></dc:creator><pubDate>Tue, 28 Nov 2023 14:39:37 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Tue, 28 Nov 2023 14:28:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/osos11">@<bdi>osos11</bdi></a> Thank you so much, I'll try this solution.</p>
]]></description><link>https://forum.qt.io/post/781180</link><guid isPermaLink="true">https://forum.qt.io/post/781180</guid><dc:creator><![CDATA[LeonardoL]]></dc:creator><pubDate>Tue, 28 Nov 2023 14:28:27 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Sat, 18 Nov 2023 11:53:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leonardol">@<bdi>LeonardoL</bdi></a><br />
I did some research and realized there is another library called libsocketcan. When the application starts, it searches for that library. Apps gives a warning if apps cannot find libsocketcan.<br />
I compiled and tested the libsocketcan library for Android. I couldn't test the "resetController" function because my can devices never entered to "BusOff" state. Also, "BusStatus" functions works fine. If you would like to include libsocketcan in your project, I shared it on my github page.</p>
<p dir="auto">Check the two functions at the bottom of the page : <a href="https://doc.qt.io/qt-6/qtserialbus-socketcan-overview.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qtserialbus-socketcan-overview.html</a><br />
Libsocketcan sources: <a href="https://github.com/lalten/libsocketcan/tree/master" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/lalten/libsocketcan/tree/master</a><br />
My github for precompiled libsocketcan : <a href="https://github.com/osos11-Git/libsocketcan_android" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/osos11-Git/libsocketcan_android</a><br />
You should add the following to your .pro project file:<br />
$$PWD -&gt; your project directory</p>
<pre><code>android:arm64-v8a:LIBS += -L/$$PWD/android_libs/libsocketcan/lib -lsocketcan
android:arm64-v8a:INCLUDEPATH += /$$PWD/android_libs/libsocketcan/include
android:arm64-v8a:DEPENDPATH += /$$PWD/android_libs/libsocketcan/include
 
contains(ANDROID_TARGET_ARCH,arm64-v8a) {

    ANDROID_EXTRA_LIBS = \
        $$PWD/android_libs/libsocketcan/lib/libsocketcan.so
}
</code></pre>
]]></description><link>https://forum.qt.io/post/780113</link><guid isPermaLink="true">https://forum.qt.io/post/780113</guid><dc:creator><![CDATA[osos11]]></dc:creator><pubDate>Sat, 18 Nov 2023 11:53:15 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Tue, 14 Nov 2023 17:00:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/osos11">@<bdi>osos11</bdi></a> It worked!!!! the problem were in my board with permissive.</p>
]]></description><link>https://forum.qt.io/post/779727</link><guid isPermaLink="true">https://forum.qt.io/post/779727</guid><dc:creator><![CDATA[LeonardoL]]></dc:creator><pubDate>Tue, 14 Nov 2023 17:00:13 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Tue, 14 Nov 2023 06:03:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leonardol">@<bdi>LeonardoL</bdi></a><br />
It seems like working, right?<br />
I don't know why it still gives the plugin not found error. It is weird.</p>
<p dir="auto">Check my issue. I wrote "SELinux allow" policies for Qt socketcan apps on Enforcing mode. If you have android source code of your device, you can add the policy in the source code.<br />
My issue:  <a href="https://bugreports.qt.io/browse/QTBUG-118600" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-118600</a></p>
]]></description><link>https://forum.qt.io/post/779671</link><guid isPermaLink="true">https://forum.qt.io/post/779671</guid><dc:creator><![CDATA[osos11]]></dc:creator><pubDate>Tue, 14 Nov 2023 06:03:05 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Mon, 13 Nov 2023 18:26:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/osos11">@<bdi>osos11</bdi></a> I did as you mentioned earlier and i got this log when i deploy my application to my board.</p>
<p dir="auto">Additionally i set this parameters on the board.</p>
<pre><code>setenforce 0
ip link set can0 up type can bitrate 250000     
</code></pre>
<p dir="auto">Log when the application was deployed</p>
<pre><code>D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 1010109; state: ENABLED
W ziparchive: Unable to open '/data/app/~~Z9lSHxcSdAN667SHOjZS4g==/teste.qmake-YkNiMRALxdP-xXK51Dmo4A==/base.dm': No such file or directory
W ziparchive: Unable to open '/data/app/~~Z9lSHxcSdAN667SHOjZS4g==/teste.qmake-YkNiMRALxdP-xXK51Dmo4A==/base.dm': No such file or directory
V GraphicsEnvironment: ANGLE Developer option for 'teste.qmake' set to: 'default'
V GraphicsEnvironment: ANGLE GameManagerService for teste.qmake: false
V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
D NetworkSecurityConfig: No Network Security Config specified, using platform default
D NetworkSecurityConfig: No Network Security Config specified, using platform default
I RenderThread: type=1400 audit(0.0:100): avc: denied { open } for path="/dev/__properties__/u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=319 scontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=1
I RenderThread: type=1400 audit(0.0:101): avc: denied { getattr } for path="/dev/__properties__/u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=319 scontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=1
W System  : ClassLoader referenced unknown path:
I RenderThread: type=1400 audit(0.0:102): avc: denied { map } for path="/dev/__properties__/u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=319 scontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=1
I QtCore  : Start
I Qt      : qt started
D CompatibilityChangeReporter: Compat change id reported: 210923482; UID 1010109; state: DISABLED
D CompatibilityChangeReporter: Compat change id reported: 37756858; UID 1010109; state: ENABLED
E OpenGLRenderer: Device claims wide gamut support, cannot find matching config, error = EGL_SUCCESS
W OpenGLRenderer: Failed to initialize 101010-2 format, error = EGL_SUCCESS
I display : open gpu gralloc module!
E OpenGLRenderer: Unable to match the desired swap behavior.
W Parcel  : Expecting binder but got null!
W Qt A11Y : Could not (yet) activate platform accessibility.
W qt.canbus.plugins.socketcan: : Cannot load library socketcan: (dlopen failed: library "socketcan" not found)
I qt.canbus.plugins.socketcan: : Cannot load library libsocketcan, some functionality will not be available.
I qt.canbus.plugins.socketcan: Cannot load library socketcan: (dlopen failed: library "socketcan" not found)
W qt.canbus.plugins.socketcan: : Function can_set_bitrate() is not available.
W qt.canbus.plugins.socketcan: : Cannot apply parameter: 4 with value: 500000.
D libteste_Android_Qmake_arm64-v8a.so: QList("passthrucan", "peakcan", "socketcan", "tinycan", "virtualcan")
I qtMainLoopThrea: type=1400 audit(0.0:103): avc: denied { create } for scontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tcontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tclass=can_socket permissive=1
I qtMainLoopThrea: type=1400 audit(0.0:104): avc: denied { ioctl } for path="socket:[234517]" dev="sockfs" ino=234517 ioctlcmd=0x8933 scontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tcontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tclass=can_socket permissive=1
I qtMainLoopThrea: type=1400 audit(0.0:105): avc: denied { bind } for scontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tcontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tclass=can_socket permissive=1
I qtMainLoopThrea: type=1400 audit(0.0:106): avc: denied { setopt } for scontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tcontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tclass=can_socket permissive=1
D libteste_Android_Qmake_arm64-v8a.so: 0
D libteste_Android_Qmake_arm64-v8a.so: 0
D libteste_Android_Qmake_arm64-v8a.so: 0
I qtMainLoopThrea: type=1400 audit(0.0:107): avc: denied { read } for scontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tcontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tclass=can_socket permissive=1
D libteste_Android_Qmake_arm64-v8a.so: true
D libteste_Android_Qmake_arm64-v8a.so: false
I qtMainLoopThrea: type=1400 audit(0.0:108): avc: denied { read } for scontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tcontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tclass=can_socket permissive=1
I qtMainLoopThrea: type=1400 audit(0.0:109): avc: denied { ioctl } for path="socket:[234517]" dev="sockfs" ino=234517 ioctlcmd=0x8906 scontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tcontext=u:r:untrusted_app_30:s0:c109,c256,c522,c768 tclass=can_socket permissive=1
</code></pre>
]]></description><link>https://forum.qt.io/post/779648</link><guid isPermaLink="true">https://forum.qt.io/post/779648</guid><dc:creator><![CDATA[LeonardoL]]></dc:creator><pubDate>Mon, 13 Nov 2023 18:26:42 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Mon, 13 Nov 2023 17:32:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/osos11">@<bdi>osos11</bdi></a> Hi thanks, i'll try as you described.</p>
]]></description><link>https://forum.qt.io/post/779634</link><guid isPermaLink="true">https://forum.qt.io/post/779634</guid><dc:creator><![CDATA[LeonardoL]]></dc:creator><pubDate>Mon, 13 Nov 2023 17:32:20 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Mon, 13 Nov 2023 14:17:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leonardol">@<bdi>LeonardoL</bdi></a><br />
I'm using 6.5.3. I did it as described above and I use it flawlessly. I recommend you compile and install the whole qtcanbus project. Just compiling the plugin and putting it into the project file does not work. I tried it too and it didn't work.</p>
]]></description><link>https://forum.qt.io/post/779605</link><guid isPermaLink="true">https://forum.qt.io/post/779605</guid><dc:creator><![CDATA[osos11]]></dc:creator><pubDate>Mon, 13 Nov 2023 14:17:19 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Mon, 13 Nov 2023 12:55:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a>  i've put<br />
libplugins_canbus_qtsocketcanbus_arm64-v8a.so, libplugins_canbus_qtpassthrucanbus_arm64-v8a.so, libplugins_canbus_qtpeakcanbus_arm64-v8a.so, libplugins_canbus_qttinycanbus_arm64-v8a.so, libplugins_canbus_qtvirtualcanbus_arm64-v8a.so</p>
<p dir="auto">Now i'm trying to cross compile <a href="http://libsocketcan.so" target="_blank" rel="noopener noreferrer nofollow ugc">libsocketcan.so</a> to aarch64.</p>
]]></description><link>https://forum.qt.io/post/779596</link><guid isPermaLink="true">https://forum.qt.io/post/779596</guid><dc:creator><![CDATA[LeonardoL]]></dc:creator><pubDate>Mon, 13 Nov 2023 12:55:35 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Mon, 13 Nov 2023 12:06:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leonardol">@<bdi>LeonardoL</bdi></a> said in <a href="/post/779587">"No such plugin: 'socketcan'"</a>:</p>
<blockquote>
<p dir="auto">which plugins?</p>
</blockquote>
<p dir="auto">qt.canbus.plugins.socketcan</p>
<p dir="auto">Did you deploy the dependencies of this plug-in?</p>
]]></description><link>https://forum.qt.io/post/779590</link><guid isPermaLink="true">https://forum.qt.io/post/779590</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 13 Nov 2023 12:06:51 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Mon, 13 Nov 2023 12:01:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a><br />
Hi, thanks for the quick response, which plugins?</p>
]]></description><link>https://forum.qt.io/post/779587</link><guid isPermaLink="true">https://forum.qt.io/post/779587</guid><dc:creator><![CDATA[LeonardoL]]></dc:creator><pubDate>Mon, 13 Nov 2023 12:01:42 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Mon, 13 Nov 2023 06:40:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Qt does not provide "socketcan" support for android by default.<br />
Download the "qtserialbus" repo from Github.<br />
Link: <a href="https://github.com/qt/qtserialbus/tree/6.6" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/qt/qtserialbus/tree/6.6</a></p>
<p dir="auto">Comment out the "if not Android" and "only Linux" conditions within the cmake files. Compile and install. So you get all plugins for Android including "socketcan".</p>
<p dir="auto">Check this 3 files:<br />
<a href="https://github.com/qt/qtserialbus/blob/6.6/tests/auto/CMakeLists.txt" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/qt/qtserialbus/blob/6.6/tests/auto/CMakeLists.txt</a> -&gt; comment out line 25 and 27</p>
<p dir="auto"><a href="https://github.com/qt/qtserialbus/blob/6.6/src/serialbus/configure.cmake" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/qt/qtserialbus/blob/6.6/src/serialbus/configure.cmake</a> -&gt; comment out line 32 and 36</p>
<p dir="auto"><a href="https://github.com/qt/qtserialbus/blob/6.6/src/tools/CMakeLists.txt" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/qt/qtserialbus/blob/6.6/src/tools/CMakeLists.txt</a> -&gt; comment out line 6</p>
<p dir="auto">Make sure you are using the correct version of the "qtserialbus" repo .<br />
Make sure you are using android cmake of Qt.  (in your 6.6 sources. Like this /home/ubuntu/Qt/6.6/android_arm64_v8a/bin/qt-cmake)</p>
<p dir="auto">And check it out: <a href="https://blog.csdn.net/qq_19649851/article/details/126227486" target="_blank" rel="noopener noreferrer nofollow ugc">https://blog.csdn.net/qq_19649851/article/details/126227486</a><br />
<a href="https://bugreports.qt.io/browse/QTBUG-118600" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-118600</a></p>
]]></description><link>https://forum.qt.io/post/779538</link><guid isPermaLink="true">https://forum.qt.io/post/779538</guid><dc:creator><![CDATA[osos11]]></dc:creator><pubDate>Mon, 13 Nov 2023 06:40:32 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;No such plugin: &#x27;socketcan&#x27;&quot; on Fri, 10 Nov 2023 20:58:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Did you also deploy the plugin's dependencies ?</p>
]]></description><link>https://forum.qt.io/post/779412</link><guid isPermaLink="true">https://forum.qt.io/post/779412</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 10 Nov 2023 20:58:36 GMT</pubDate></item></channel></rss>