<?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[Dynamically linking to Hunspell]]></title><description><![CDATA[<p dir="auto">I have a project in which I would like to dynamically link to the Hunspell library so my app can have spell-check. The only problem is, I have no idea how to do it. I'm more familiar with the concept in Visual Studio/ C# but I've never done it in a Qt/C++ app before. I did some research and I learned how to put a reference to the library in my project file but I still haven't figured out how to #include it in the classes that need it (the library never shows up in that list Qt Creator offers for includes). Hopefully it's the correct library; It's the libhunspell-1.3.so.0 file  from Ubuntu's "libhunspell-1.3-0" package.</p>
<p dir="auto">I intend to release on Linux and Windows (and maybe Mac at some point, if I ever find a way to maintain the app on that platform). I know most Linux distros have ready-made Hunspell libraries in their repositories. I hope I can use those to prevent any potential distribution/licensing pitfalls. On Windows I'll probably have to roll my own DLL from source but hopefully the process of linking against it will be the same.</p>
<p dir="auto">This part of Qt programming is completely new to me so I would really appreciate any info/help you guys can give me. Thanks in advance.</p>
]]></description><link>https://forum.qt.io/topic/47173/dynamically-linking-to-hunspell</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 13:41:17 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/47173.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Oct 2014 15:26:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dynamically linking to Hunspell on Sun, 23 Nov 2014 00:09:33 GMT]]></title><description><![CDATA[<p dir="auto">On Fedora you have 'hunspell-devel'<br />
$ sudo yum install hunspell-devel</p>
]]></description><link>https://forum.qt.io/post/251305</link><guid isPermaLink="true">https://forum.qt.io/post/251305</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 23 Nov 2014 00:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamically linking to Hunspell on Sun, 23 Nov 2014 00:09:33 GMT]]></title><description><![CDATA[<p dir="auto">On Fedora you have 'hunspell-devel'<br />
$ sudo yum install hunspell-devel</p>
]]></description><link>https://forum.qt.io/post/251972</link><guid isPermaLink="true">https://forum.qt.io/post/251972</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 23 Nov 2014 00:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamically linking to Hunspell on Sun, 09 Nov 2014 22:44:50 GMT]]></title><description><![CDATA[<p dir="auto">You should ask the Fedora guys about their support for hunspell/hunspell dev package</p>
]]></description><link>https://forum.qt.io/post/250785</link><guid isPermaLink="true">https://forum.qt.io/post/250785</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 09 Nov 2014 22:44:50 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamically linking to Hunspell on Sun, 09 Nov 2014 17:41:39 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, that definitely helped.</p>
<p dir="auto">I got this working on Ubuntu/other distros in the Debian family but I'm having trouble with Fedora b/c there seems to be no hunspell-dev equivalent package on that distro (just dictionaries for various languages). I need a package that has both headers and libraries in it. If I can't find a solution, I may have to abandon Fedora support. It's a real shame but I don't know if I can make this work on every flavor of Linux out there, especially if there aren't packages I can use as dependencies.</p>
<p dir="auto">In the meantime, I'm going to start working on the Windows part.</p>
]]></description><link>https://forum.qt.io/post/250773</link><guid isPermaLink="true">https://forum.qt.io/post/250773</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 09 Nov 2014 17:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamically linking to Hunspell on Sat, 18 Oct 2014 21:08:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">First thing to do is to install the hunspell dev package if you didn't do that already.</p>
<p dir="auto">If you still can't get the include working after that, check where the hunspell includes can be found and add the path to INCLUDEPATH.</p>
<p dir="auto">For the linking part, it should look like:</p>
<p dir="auto">@LIBS += -lhunspell-1.3@</p>
<p dir="auto">If for any reason the library can't be found:</p>
<p dir="auto">@LIBS += -L/path/to/where_libhunspell.so_can_be_found@</p>
<p dir="auto">For the Mac port, you can have hunspell from e.g. macport or brew, you'll have to adapt some path but compiling the application itself should not be problematic. However, the deployment is a bit more complex (but assisted by e.g. macdeployqt)</p>
<p dir="auto">On windows, again, most of the time it will be a question of path to correct, the deployment is also less easy but not overly complicated, you have a fine "wiki entry":<a href="http://qt-project.org/wiki/Deploy_an_Application_on_Windows" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/wiki/Deploy_an_Application_on_Windows</a> to help you (if curious about gory details, take a look at Qt's documentation)</p>
<p dir="auto">Hope it helps</p>
]]></description><link>https://forum.qt.io/post/248146</link><guid isPermaLink="true">https://forum.qt.io/post/248146</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 18 Oct 2014 21:08:52 GMT</pubDate></item></channel></rss>