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