=== chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk [12:26] mzanetti: hey, I am having trouble including the u1db class in the timezonemodel [12:26] nik90: hi [12:26] mzanetti: I was told to install libu1db-qt5-dev and libu1db-qt5-doc [12:26] mzanetti: hi [12:26] yeah, that sounds about right [12:27] nik90: have a branch I could look at? [12:27] mzanetti: the docs say that I should import #include , however qtc says that it cannot be found [12:27] mzanetti: sure, https://code.launchpad.net/~nik90/ubuntu-clock-app/15-world-clocks [12:27] nik90: mist likely you're missing some pkg_config stuff in CMakeLists.txt [12:28] mzanetti: yeah I never figured how to determine what to put in pkg_config stuff [12:28] mzanetti: like the DBus issue I had earlier [12:28] nik90: well, for qt modules its quite easy [12:28] nik90: you just use qt5_use_module( module ... ) [12:29] nik90: and each qt doc page should tell you in which module a class is [12:29] mzanetti: ah [12:29] mzanetti: for dbus, i see the module name at http://qt-project.org/doc/qt-5/qdbus.html [12:29] cool [12:30] nik90: in /usr/lib/x86_64-linux-gnu/cmake/ you see the installed ones [12:30] and their names [12:31] * nik90 looks [12:32] nik90: in the example of u1db I'd do this: [12:33] first, check out the contents of the -dev pacakge with dpkg -L libu1db-qt5-dev [12:33] and see if there's some cmake module file or a pkgconfig file (.pc) [12:33] in this case, yes, there is: /usr/lib/x86_64-linux-gnu/pkgconfig/libu1db-qt5.pc [12:34] mzanetti: ah..there it says I should put lu1db-qt5 in the cmake [12:34] I mean u1db-qt5 [12:35] nik90: and then find another CMakeLists.txt that uses some pkgconfig stuff :), I mostly use unity8 [12:36] grepping for pkgconfig over the CMakeLists.txt files gives me a few results, lets check the one in plugins/Unity/Launcher/CMakeLists.txt for example [12:37] so, looks like you need this to include PkgConfig in general, if you don't have it yet: [12:37] include(FindPkgConfig) [12:37] and then you can use pkg_check_modules to include the modules you need [12:37] sorry but I am not sure I follow the last few lines from the grepping part [12:38] hehe... ok let me try again [12:38] so you grep pkgconfig in the unity8 cmake files? [12:38] yeah, like this: grep -ri pkgconfig * [12:38] ok [12:38] just to find all usages of pkgconfig in there [12:38] and get some examples [12:38] ah [12:39] that gives you, amongs others, this file: plugins/Unity/Launcher/CMakeLists.txt [12:39] I just picked this randomly [12:39] * nik90 branches the unity8 code to try this out [12:40] that one has nice examples how to include stuff using pkgconfig [12:40] right at the top of the file [12:40] I'm sure you can figure how to adapt this for libu1db-qt5-dev [12:40] if not, ping me again [12:41] will do .. thnx [12:54] mzanetti: I did http://paste.ubuntu.com/7824803/ [12:55] same error though [12:55] let me try [13:01] nik90: I guess that gives you a cmake error/warning [13:02] mzanetti: I got query.h: no file or folder found [13:02] nik90: just try running cmake alone [13:03] doesn't that tell you: [13:03] -- checking for module 'lu1db-qt5' [13:03] -- package 'lu1db-qt5' not found [13:03] * nik90 checks [13:04] mzanetti: yup [13:04] nik90: so that's the first thing... you misspelled the package name [13:04] its libu1db-qt5, not lu1db-qt5 [13:05] mzanetti: I copied the library name from http://paste.ubuntu.com/7824851/ (the .pc file) [13:06] * mzanetti can't find lu1db-qt5 in there [13:06] ah right... the -l call [13:06] Libs: -L${libdir} -lu1db-qt5 [13:06] you need to give the name of that .pc file, not what it does inside [13:06] ah [13:07] nik90: next issue: [13:07] nik90: the pkgconfig seems to work a bit different, unlike other cmake files you don't give the target where you want to include the stuff, you give a variable prefix (don't ask me why) [13:07] nik90: so you'd do something like that: [13:08] nik90: pkg_check_modules(LIBU1DB libu1db-qt5) [13:08] nik90: that would then prepare a bunch of variables for you. [13:08] all of them starting with LIBU1DB [13:09] one of them is LIBU1DB_INCLUDE_DIRS [13:09] you can add that in include_directories() [13:09] ah ok [13:10] nik90: and another is LIBU1DB_LDFLAGS which you should pass to target_link_libraries [13:11] nik90: check out that unity8/plugins/Unity/Launcher/CMakeLists.txt and what it does with the GSETTINGS_QT_* vars [13:11] mzanetti: yeah i see it [13:11] nik90: so there's one more problem though :( [13:12] nik90: libu1db-qt5.pc seems to have an issue preparing the _INCLUDE_DIRS var correctly :/ [13:12] nik90: so it still won't work. and I believe that's a bug of that .pc file. But I'm not entirely sure [13:12] * mzanetti is not a cmake/pkgconfig expert [13:13] nik90: you can print each of these variables with [13:13] ah :/ [13:13] message("${LUBU1DB_INCLUDE_DIRS}") [13:13] that would then print the contents of that var during the cmake step [13:14] and the correct include path (/usr/include/libu1db-qt5/) is not contained in there [13:14] while I think it should [13:14] nik90: so as a workaround, you can use this: [13:15] #include "libu1db-qt5/query.h" [13:15] err [13:15] #include [13:15] but please ask libu1db devs if that's a bug or I just got something wrong [13:16] will do [13:16] when I did message the INCLUDE_DIRS variables, it was empty [13:16] hmm.. its not empty for me [13:17] message("TEST: Lib name: ${LUBU1DB_INCLUDE_DIRS}") [13:17] I got TEST:Lib name: [13:17] how does you pkg_check_module entry look like? [13:18] pkg_check_modules(LIBU1DB libu1db-qt5) [13:18] include_directories( [13:18] ${CMAKE_CURRENT_SOURCE_DIR} [13:18] ${LIBU1DB_INCLUDE_DIRS} [13:18] ) [13:18] same mistake: LU1DB vs LIBU1DB [13:18] oh god ... :P [13:18] ah no... slightly different [13:18] there's a typo [13:18] LUB vs LIB [13:19] yeah [13:19] that returned it now properly [13:19] lib name [13:19] /usr/;/usr/include/x86_64-linux-gnu/qt5/QtQuick;/usr/include/x86_64-linux-gnu/qt5;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5;/usr/include/x86_64-linux-gnu/qt5/QtQml;/usr/include/x86_64-linux-gnu/qt5;/usr/include/x86_64-linux-gnu/qt5/QtNetwork;/usr/include/x86_64-linux-gnu/qt5;/usr/include/x86_64-linux-gnu/qt5/QtSql;/usr/include [13:19] /x86_64-linux-gnu/qt5;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/include/x86_64-linux-gnu/qt5 [13:19] yeah, but still the wanted path isn't in there, is it? [13:19] yeah... IMO it should also have /usr/inlclude/libuqdb-qt5/ too [13:20] ok, I will let the u1db developer kalikiana know about this [13:21] nik90: this is what I did to make it compile: http://paste.ubuntu.com/7824925 [13:21] nik90: I think the fact that I had to manually add the Sql module to qt5_use_modules isn't correct either. [13:21] nik90: that should be done by the included .pc file too [13:22] should I add Network too? or including Sql is sufficient? [13:22] suprisingly it compiles for me without the Sql line [13:22] oh.... right... maybe an issue here [13:23] nik90: if you look at the print above, [13:23] you'll see that the path's for QtNetwork and QtSql are included in the LIBU1DB_INCLUDE_DIRS [13:23] yes [13:24] I did target_link_libraries(timezone ${LIBU1DB_INCLUDE_DIRS}), but I will change that similar to yours [13:24] nik90: my paste is totally wrong, close that immediately :D [13:24] ok :P [13:26] mzanetti: thnx, now that the include is working, I will start working on building the model itself. Should be fun :) [13:26] nik90: this should be better: http://paste.ubuntu.com/7824956 [13:27] mzanetti: I would still need to do the target library link? [13:36] nik90: right... yeah... you'll get the undefined reference thing later without that === digi_ is now known as digitaldrowning [15:44] hi. please say, how i can install netbeans package with ext. ".sh" ? [15:45] allowed to "run application as programm" [15:46] this action don't help me [19:18] Does anyone know what the 'recommended' way to run autopilot tests on an emulator are? I'm trying to verify some tests I've made some changes to. [19:19] I've tried using adt-run, without much luck. I've also tried ssh-ing to the emulator instance and installing/running the tests locally. [19:26] gerlowskija: Did you talk to balloons about this? He wrote a blog post about using adt-run to run tests and should be delighted to hear your feedback and issues. [19:26] gerlowskija: http://www.theorangenotebook.com/2014/07/a-new-test-runner-approaches.html [19:29] Thanks nik90 that's actually where I heard about adt-run initially. And no I haven't talked to balloons about my adt-run struggles..I tried yesterday, and wasn't sure if he's around on the weekends. [19:29] "I tried yesterday" = "I initially ran into my adt-run issues yesterday" [19:30] and "issues" = "I probably am just doing something wrong" [19:34] :) [19:34] gerlowskija: yeah best to wait until tomorrow to ask him. [19:34] I don't anyone is in this channel during the weekends [19:34] think* [19:39] Yeah, that makes sense. I'll bug him about it tomorrow, thanks nik90 [19:44] np [19:51] mzanetti: Do you know how to iterate through a QVariant object and output the values? [19:51] mzanetti: I have the following QVariant, [19:51] QVariant(QVariantMap, QMap(("city", QVariant(QString, "Amsterdam") ) ( "country" , QVariant(QString, "Netherlands") ) ( "timezone" , QVariant(QString, "Europe/Amsterdam") ) ) ) === renato is now known as Guest89836 === Guest89836 is now known as renato___ [20:10] mzanetti: never mind, I think I figured it out :) === Julian is now known as Guest33497