Re: KF5 with qmake problems

2015-04-24 Thread Christian Gagneraud
On Fri, 24 Apr 2015 08:48:53 Kevin Funk wrote: > On Friday, April 24, 2015 17:24:34 Christian Gagneraud wrote: > > Hi there, > > > > I've just installed kubuntu-15.04, and I'm trying to run this tutorial > > [1]. I'm using stock Qt5, KF5 and Qt Creator. > > > > In my .pro file, I have "QT += KXml

K_PLUGIN_FACTORY_WITH_JSON and qmake

2015-04-24 Thread Christian Gagneraud
Hi there, I'm exploring the KF5, and I'm giving a try to the KPluginFactory/Info/Trader/Loader. I'm using Qt Creator with qmake. I have been unsuccessful at using the K_PLUGIN_FACTORY_WITH_JSON macro, for some reason qmake/moc don't see the code generated by this macro and so never create the

Re: Exporting symbols to access them from tests

2015-04-24 Thread Thiago Macieira
On Friday 24 April 2015 16:41:32 Milian Wolff wrote: > > Or you want to conditionally define the Q_AUTOTEST_EXPORT depending on > > whether BUILD_TESTING (cmake variable) is on? > > This would add some differences into the libraries developers&CI and > > users use (which isn't ideal) but should be

Re: Exporting symbols to access them from tests

2015-04-24 Thread Aleix Pol
On Fri, Apr 24, 2015 at 4:41 PM, Milian Wolff wrote: > On Friday 24 April 2015 14:31:27 Aleix Pol wrote: >> On Fri, Apr 24, 2015 at 2:17 PM, Milian Wolff wrote: >> > Hey all, >> > >> > what's the best-practice to export symbols for tests only? In Qt, there is >> > the Q_AUTOTEST_EXPORT macro: >>

Re: Exporting symbols to access them from tests

2015-04-24 Thread Milian Wolff
On Friday 24 April 2015 14:31:27 Aleix Pol wrote: > On Fri, Apr 24, 2015 at 2:17 PM, Milian Wolff wrote: > > Hey all, > > > > what's the best-practice to export symbols for tests only? In Qt, there is > > the Q_AUTOTEST_EXPORT macro: > > > > qglobal.h: > > /* > > > >No, this is not an evil

Re: Managing different build configurations with kdesrc-build

2015-04-24 Thread Milian Wolff
On Friday 24 April 2015 05:52:40 Jeremy Whiting wrote: > Millian, > > For that it should be adequate to have two separate config files. You > could leave one named ~/.kdesrc-buildrc and name the other > ~/.debugkdesrc-buildrc or whatnot. Then to use the debug one, just > pass it to --rc-file=~/.de

Re: Exporting symbols to access them from tests

2015-04-24 Thread Jeremy Whiting
Most of the frameworks I've seen do something like the following to explicitely link in the cpp files needed for the test. This taken from knewstuff/autotests/CMakeLists.txt macro(knewstuff_unit_tests) foreach(_testname ${ARGN}) add_executable(${_testname} ${_testname}.cpp ../src/core/a

Re: Exporting symbols to access them from tests

2015-04-24 Thread Aleix Pol
On Fri, Apr 24, 2015 at 2:17 PM, Milian Wolff wrote: > Hey all, > > what's the best-practice to export symbols for tests only? In Qt, there is the > Q_AUTOTEST_EXPORT macro: > > qglobal.h: > /* >No, this is not an evil backdoor. QT_BUILD_INTERNAL just exports more > symbols >for Qt's inter

Exporting symbols to access them from tests

2015-04-24 Thread Milian Wolff
Hey all, what's the best-practice to export symbols for tests only? In Qt, there is the Q_AUTOTEST_EXPORT macro: qglobal.h: /* No, this is not an evil backdoor. QT_BUILD_INTERNAL just exports more symbols for Qt's internal unit tests. If you want slower loading times and more symbols t

Re: Managing different build configurations with kdesrc-build

2015-04-24 Thread Jeremy Whiting
Millian, For that it should be adequate to have two separate config files. You could leave one named ~/.kdesrc-buildrc and name the other ~/.debugkdesrc-buildrc or whatnot. Then to use the debug one, just pass it to --rc-file=~/.debugkdesrc-buildrc when you run kdesrc-build. If you want them to in

Managing different build configurations with kdesrc-build

2015-04-24 Thread Milian Wolff
Hey all, esp. Jeremy. I have a question regarding kdesrc-build: Is it possible to manage multiple build configurations with kdesrc-build? Most notably, I'd like to have two builds of all modules in my configuration: One CMAKE_BUILD_TYPE=Debug build and a ...=RelWithDebInfo build. This is an im

Re: KF5 with qmake problems

2015-04-24 Thread Kevin Funk
On Friday, April 24, 2015 20:34:33 Christian Gagneraud wrote: > On 24/04/15 19:35, Kevin Funk wrote: > > On Friday, April 24, 2015 08:48:53 Kevin Funk wrote: > >> On Friday, April 24, 2015 17:24:34 Christian Gagneraud wrote: > >>> Hi there, > >>> > >>> I've just installed kubuntu-15.04, and I'm tr

Re: KF5 with qmake problems

2015-04-24 Thread Christian Gagneraud
On 24/04/15 19:35, Kevin Funk wrote: On Friday, April 24, 2015 08:48:53 Kevin Funk wrote: On Friday, April 24, 2015 17:24:34 Christian Gagneraud wrote: Hi there, I've just installed kubuntu-15.04, and I'm trying to run this tutorial [1]. I'm using stock Qt5, KF5 and Qt Creator. In my .pro fil

Re: KF5 with qmake problems

2015-04-24 Thread Andreas Pakulat
Hi, On Fri, Apr 24, 2015 at 8:48 AM, Kevin Funk wrote: > On Friday, April 24, 2015 17:24:34 Christian Gagneraud wrote: > > Hi there, > > > > I've just installed kubuntu-15.04, and I'm trying to run this tutorial > > [1]. I'm using stock Qt5, KF5 and Qt Creator. > > > > In my .pro file, I have "Q

Re: KF5 with qmake problems

2015-04-24 Thread Kevin Funk
On Friday, April 24, 2015 08:48:53 Kevin Funk wrote: > On Friday, April 24, 2015 17:24:34 Christian Gagneraud wrote: > > Hi there, > > > > I've just installed kubuntu-15.04, and I'm trying to run this tutorial > > [1]. I'm using stock Qt5, KF5 and Qt Creator. > > > > In my .pro file, I have "QT +