Steve,
To be platform independent use FIND_LIBRARY and its HINTS option.
You may want to check CMake/Modules/Find*.cmake files. There are great
examples how to be fully platform independent.
If BUILD_SHARED_LIBS, then ALL libraries in your project will be built
shared. I use for this one separat
2009/3/23 Andreas Pakulat
> On 23.03.09 16:53:15, Stephen Collyer wrote:
> > 2009/3/23 Stephen Collyer
>
> > However, I'm not entirely happy as:
> >
> > a) I've hardcoded the relative path ../plugins/sqldrivers in the
> > SQL_LIB_DIRS
>
> Thats ok, anybody who doesn't have this simply has a brok
On 23.03.09 16:53:15, Stephen Collyer wrote:
> 2009/3/23 Stephen Collyer
>
> > I'm trying to build a fully static exe on Opensuse 11.1 against a static
> > build of Qt 4.5, and
> > I'm trying to link against a static QMySQL plugin.
> >
> > I'm getting a link error when I do so, and I suspect it's
2009/3/23 Stephen Collyer
> I'm trying to build a fully static exe on Opensuse 11.1 against a static
> build of Qt 4.5, and
> I'm trying to link against a static QMySQL plugin.
>
> I'm getting a link error when I do so, and I suspect it's because I'm not
> telling LINK_LIBRARIES how to link again
Steve,
Linking statically is always more work. Shared object dependencies are resolved
automatically. Static dependencies - not.
To link against shared OpenSSL I need only to specify -lopenssl. To link
statically I need -lopenssl and -lcrypto, because libopenssl.a depends on
libcrypto.a and t
2009/3/23 Andreas Pakulat
>
> Are you sure yout Qt4.5 has the mysql plugin built in? There's only two
> cases for the plugins (AFAIK):
>
> a) real plugins as shared objects in the plugins dir
> b) built directly into the static Qt libs
>
> So obviously in case a) you don't need to link against th
Hi!
You need to also link against libqsqlmysql.so library. It must appear after qt
libraries (and any other libraries that use qsqlmysql interfaces).
Denis
> I'm trying to build a fully static exe on Opensuse 11.1
> against a static
> build of Qt 4.5, and
> I'm trying to link against a static
On 23.03.09 08:16:35, Stephen Collyer wrote:
> I'm trying to build a fully static exe on Opensuse 11.1 against a static
> build of Qt 4.5, and
> I'm trying to link against a static QMySQL plugin.
>
> I'm getting a link error when I do so, and I suspect it's because I'm not
> telling LINK_LIBRARIES
I'm trying to build a fully static exe on Opensuse 11.1 against a static
build of Qt 4.5, and
I'm trying to link against a static QMySQL plugin.
I'm getting a link error when I do so, and I suspect it's because I'm not
telling LINK_LIBRARIES how
to link against the static plugin.
/usr/bin/c++ -