=== X_o is now known as Guest46513 | ||
Guest46513 | error: QtGui/QMainWindow: No such file or directory #include <QtGui/QMainWindow> <--I have this error. How can I install this library ?? Sorry I'm rookie | 03:06 |
---|---|---|
AkivaAvraham | Guest46513, is this an include? | 03:06 |
AkivaAvraham | #include <QtGui> | 03:06 |
AkivaAvraham | ? | 03:06 |
Guest46513 | yes | 03:07 |
AkivaAvraham | Guest46513, what version of ubuntu you running? | 03:07 |
Guest46513 | 14.10 | 03:07 |
AkivaAvraham | Guest46513, upgraded or newly installed? | 03:07 |
Guest46513 | newly | 03:08 |
AkivaAvraham | okay... and its ubuntu | 03:08 |
AkivaAvraham | not lubuntu | 03:08 |
AkivaAvraham | or edubuntu | 03:08 |
AkivaAvraham | or xubuntu | 03:08 |
Guest46513 | ubuntu | 03:08 |
AkivaAvraham | okay | 03:08 |
AkivaAvraham | if thats the case... sec | 03:08 |
Guest46513 | okay..!! | 03:09 |
AkivaAvraham | Guest46513, take out the slash | 03:09 |
AkivaAvraham | #include <QtGui> | 03:09 |
Guest46513 | okay | 03:09 |
AkivaAvraham | Guest46513, you shouldnt need QMainWindow. | 03:10 |
AkivaAvraham | Guest46513, speaking of which; what are you trying to develop? | 03:10 |
AkivaAvraham | Guest46513, or are you just practicing? | 03:10 |
Guest46513 | ./Videos/Qt-prog/q/mainwindow.h:7: error: QtGui: No such file or directory #include <QtGui> ^ | 03:11 |
AkivaAvraham | Guest46513, have you done something to muck up your qt libraries? | 03:12 |
Guest46513 | ./Videos/Qt-prog/q/main.cpp:2: error: QApplication: No such file or directory #include <QApplication> ^ | 03:12 |
AkivaAvraham | pastebin your header file. | 03:13 |
AkivaAvraham | or whatever file this is on | 03:13 |
Guest46513 | #ifndef MAINWINDOW_H #define MAINWINDOW_H #if QT_VERSION >= 0x050000 #include <QtWidgets/QMainWindow> #else //#include <QMainWindow> #endif namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); protected: void changeEvent(QEvent *e); private: Ui::MainWindow *ui; }; #endif // MAINWINDOW_H | 03:13 |
AkivaAvraham | Guest46513, thats not pastebin | 03:14 |
Guest46513 | #include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); } | 03:14 |
Guest46513 | oh, sorry | 03:14 |
AkivaAvraham | on the left, there is a pastebin button | 03:14 |
AkivaAvraham | np | 03:15 |
AkivaAvraham | we were all newbies at one point. | 03:15 |
Guest46513 | http://pastebin.com/yRs7w541 << that is mainwindow.cpp | 03:17 |
AkivaAvraham | okay lets see the header | 03:18 |
Guest46513 | http://pastebin.com/SMaCb6ea <<-- mainwindow.h | 03:19 |
AkivaAvraham | By the way; do you know c++? | 03:19 |
Guest46513 | something not that much | 03:20 |
AkivaAvraham | Guest46513, you are using the sdk right? | 03:20 |
Guest46513 | yes | 03:21 |
AkivaAvraham | Guest46513, http://i.imgur.com/lNNHVtP.png | 03:21 |
AkivaAvraham | future reference, that is where the better pastebin is. | 03:22 |
AkivaAvraham | Guest46513, are you trying to write a program here? | 03:22 |
AkivaAvraham | Guest46513, what program are you trying to write? | 03:22 |
AkivaAvraham | Is this supposed to be for ubuntu touch? | 03:22 |
Guest46513 | show a message hello world | 03:23 |
AkivaAvraham | Guest46513, okay :) | 03:23 |
AkivaAvraham | Guest46513, that is easy | 03:23 |
AkivaAvraham | #include <QDebug> | 03:23 |
Guest46513 | ui->pushButton->setText("Hello")l | 03:23 |
Guest46513 | ui->pushButton->setText("Hello"); | 03:23 |
AkivaAvraham | qDebug() << "Hello world" | 03:23 |
AkivaAvraham | ah you are building a UI. | 03:24 |
AkivaAvraham | are you following a tutorial from Bucky or Void realms? | 03:24 |
Guest46513 | yes | 03:24 |
AkivaAvraham | Guest46513, who? Bucky? | 03:24 |
Guest46513 | voidrealm | 03:24 |
AkivaAvraham | ah | 03:24 |
AkivaAvraham | Voidy; very good | 03:24 |
AkivaAvraham | Guest46513, and your goal is to develop what ultimately? | 03:25 |
Guest46513 | I like the way explaint in that tutorial | 03:25 |
AkivaAvraham | The reason I ask, is because if you want to develop for the phone, you should learn qml first, and qt second. | 03:26 |
Guest46513 | not, at this time I just want to develop a program for BBB | 03:27 |
AkivaAvraham | BBB? | 03:27 |
AkivaAvraham | better business bureau? | 03:27 |
Guest46513 | Beaglebone black | 03:27 |
* AkivaAvraham looks that up | 03:27 | |
Guest46513 | no, lol | 03:28 |
AkivaAvraham | raspberry pie sort of thing? | 03:28 |
AkivaAvraham | Guest46513, Let me ask you a c++ question... If you don't know it, then I can save you some headaches. | 03:29 |
AkivaAvraham | Guest46513, what's the stack, and what's the heap? | 03:29 |
Guest46513 | I know as guru but I can works with classes and variables | 03:30 |
AkivaAvraham | what? | 03:30 |
Guest46513 | I dont know as a guru | 03:30 |
AkivaAvraham | okay | 03:30 |
AkivaAvraham | Guest46513, this isn't a guru sort of thing when working with c++ | 03:30 |
AkivaAvraham | a little bit | 03:30 |
Guest46513 | :\ | 03:31 |
AkivaAvraham | Guest46513, easier question, What is & for? | 03:31 |
AkivaAvraham | Guest46513, trust me on this; I tried learning qt from scratch. | 03:31 |
Guest46513 | I want to learn qt I like it | 03:31 |
Guest46513 | address= & | 03:31 |
AkivaAvraham | good :) | 03:31 |
Guest46513 | :) | 03:31 |
AkivaAvraham | Whats does dereference mean? | 03:32 |
AkivaAvraham | What* | 03:32 |
Guest46513 | hold on let me thing | 03:32 |
Guest46513 | referr to a character | 03:33 |
Guest46513 | referr to a characters | 03:33 |
AkivaAvraham | mmmm nope | 03:33 |
AkivaAvraham | it takes the address, and grabs the object it points to. | 03:34 |
AkivaAvraham | so if int* x = new int(1); | 03:34 |
AkivaAvraham | x would equal the address to the new integer, that was created on the heap. | 03:35 |
Guest46513 | I know "new" was involved | 03:35 |
AkivaAvraham | so x wouldn't return an object, just the address. | 03:35 |
AkivaAvraham | you would go *x, and that would dereference the address, and return you the object. | 03:36 |
AkivaAvraham | Guest46513, anyways; I have the perfect thing for you | 03:36 |
AkivaAvraham | http://www.reddit.com/r/UbuntuAppDev/comments/2qy5ko/guide_for_new_ubuntu_developers/ | 03:36 |
AkivaAvraham | at the bottom of this tutorial I am making, I provide a link | 03:36 |
AkivaAvraham | to a guide that you can get for free, that teaches you "C++ the Qt Way" | 03:37 |
AkivaAvraham | so you learn Qt and C++ at the same time | 03:37 |
AkivaAvraham | instead of having to learn C++ with a bunch of standard libs, and then Qt by itself. | 03:37 |
AkivaAvraham | Guest46513, https://drive.google.com/file/d/0B2XdRsCSWUwWaFhIOFJCX0V5YVE/view is a version you can download from my google drive. | 03:38 |
Guest46513 | one question | 03:39 |
AkivaAvraham | Guest46513, sure | 03:39 |
=== chihchun_afk is now known as chihchun | ||
Guest46513 | How can I fix that problem ?? | 03:39 |
AkivaAvraham | Guest46513, I don't know. It looks like you have messed up your qt libraries, or that you are following an obsolete tutorial from void | 03:40 |
AkivaAvraham | he works with Qt4, and you are on Qt5 | 03:40 |
AkivaAvraham | Guest46513, in any case, I can guarantee you, just given the fact that I am self taught c++ and qt, | 03:41 |
AkivaAvraham | if you do not go through the instruction manual I gave you, and just stick to Void Realms or Bucky Roberts, you are not going to learn it properly | 03:42 |
AkivaAvraham | mainly, you will not be able to understand the documentation provided by Qt. | 03:43 |
AkivaAvraham | Guest46513, I think Void Realms is best when you want a demonstration on how to use a Qt Class, as he covers most of them. | 03:43 |
Guest46513 | to fix that problem I have to install a library? | 03:44 |
AkivaAvraham | But you have to remember; he is assuming a ton, A TON of C++ knowledge, when he takes you through that. | 03:44 |
AkivaAvraham | Guest46513, You shouldn't have to... | 03:45 |
Guest46513 | lol...!! | 03:45 |
AkivaAvraham | Guest46513, hmmm? | 03:46 |
Guest46513 | I want to follow voidrealms tutorial but with that error I can't do it | 03:47 |
AkivaAvraham | Guest46513, you can try bucky as well, but you seriously, need to learn C++ or you will be spinning your wheels for months. | 03:49 |
AkivaAvraham | Guest46513, Like, I made the mistake of trying to learn Qt through Void Realms without learning C++; it was a huge waste of time. The best tutorial is the one from ICS that teaches you Qt and C++ at the same time. | 03:51 |
Guest46513 | AkivaAvraham: can I uninstall qt and re-install | 03:58 |
Guest46513 | ?? | 03:58 |
AkivaAvraham | Guest46513, is this a fresh ubuntu install? | 03:59 |
Guest46513 | yes | 03:59 |
AkivaAvraham | You shouldnt need to do anything unless you really screwed soemthing up | 03:59 |
AkivaAvraham | reinstalling Qt I don't think will help. | 03:59 |
Guest46513 | :( | 04:00 |
AkivaAvraham | You can try installing qt4 | 04:00 |
AkivaAvraham | but then you are learning to use an old library. | 04:00 |
AkivaAvraham | Guest46513, why not try to build a qml app? | 04:01 |
AkivaAvraham | that would be a better starting point if you just want to build a gui | 04:01 |
Guest46513 | Im installing qt4 | 04:02 |
AkivaAvraham | QML was designed specifically to make qt apps quicker. That is what Most of Ubuntu uses these days ... | 04:02 |
AkivaAvraham | okay. :P | 04:02 |
Guest46513 | if I can't fix it I will format my computer :S | 04:03 |
Guest46513 | to fix that problem | 04:03 |
AkivaAvraham | Guest46513, I think the tutorial is just old | 04:03 |
Guest46513 | qt witn C++? | 04:03 |
AkivaAvraham | I know qt4 uses an import not used in qt5 | 04:03 |
AkivaAvraham | Guest46513, no, voidrealms | 04:04 |
AkivaAvraham | Guest46513, are you going to use the documentation I suggested to you? "Learn c++ the Qt way"? | 04:04 |
Guest46513 | I tried make a program by default and the program show the same error | 04:05 |
Guest46513 | yes | 04:05 |
AkivaAvraham | cool | 04:05 |
Guest46513 | that tutorial use qt5 or qt4? | 04:06 |
AkivaAvraham | I'm a bit tired now, almost asleep... | 04:06 |
Guest46513 | okay, thx dude | 04:06 |
AkivaAvraham | it was written for qt4, but the stuff you learn off the bat is synonymous with both | 04:06 |
AkivaAvraham | but if you get teamviewer, I can check it out for you | 04:07 |
Guest46513 | ok | 04:07 |
AkivaAvraham | you make it sound like you have a borked installation, or you havent set up your runtime properly | 04:07 |
Guest46513 | runtime properly << do you have any info for that ? | 04:08 |
AkivaAvraham | build environment I mean. | 04:08 |
Guest46513 | okay | 04:08 |
=== chihchun is now known as chihchun_afk | ||
dholbach | good morning | 08:29 |
justCarakas | good morning | 08:30 |
dholbach | mhall119: do you recall who wrote the content hub docs on developer.u.c? I just saw https://bugs.launchpad.net/developer-ubuntu-com/+bug/1407753 and wondered who to ping about it | 10:37 |
JamesTait | Good morning all; happy Apple Tree Day! :-) | 10:37 |
ubot5 | Launchpad bug 1407753 in Ubuntu App Developer site "Content Hub documentation is missing various pieces" [Undecided,New] | 10:37 |
=== _salem is now known as salem_ | ||
dholbach | davidcalle, did we decide what to do with the cookbook section(s)? | 11:13 |
davidcalle | dholbach, not really, afaik. But I think we should fix what we have on the site, it's a few links, and decide after. | 11:14 |
dholbach | davidcalle, so remove cookbook links for now? | 11:15 |
davidcalle | dholbach, no, fixing them :) | 11:15 |
dholbach | ah ok | 11:15 |
dholbach | are you working on that now? | 11:15 |
dholbach | (I saw you had the bug assigned to yourself) | 11:15 |
davidcalle | dholbach, what do you think ? (I'm happy with both solutions) and I don't mind doing it | 11:15 |
dholbach | we should probably have a chat with mhall119 | 11:16 |
dholbach | I could imagine that in the future we would hook up the djangosnippets instance with the developer site | 11:17 |
davidcalle | dholbach, ok. On a related note, we should find a design pattern (a box probably) to hook up askubuntu links and snippets in articles. | 11:17 |
dholbach | yeah, that'd be nice | 11:20 |
t1mp | gcollura: hello | 12:01 |
gcollura | t1mp, hi :) | 12:02 |
t1mp | I just noticed https://code.launchpad.net/~gcollura/ubuntu-ui-toolkit/fix-1341814-and-1400297/+merge/245552 when I was going to start to figure out how to fix those bugs | 12:02 |
t1mp | awesome that you worked on it :) | 12:02 |
gcollura | t1mp, :D | 12:02 |
t1mp | the diff in that MR however shows some unrelated changes to the .po files | 12:03 |
gcollura | t1mp, I know, that's because I had to re-propose the branch targetting /staging this time | 12:03 |
gcollura | because my branch was based off trunk, sorry, if you want I can rebase everything | 12:04 |
t1mp | gcollura: give me a few minutes and I'll get back to you, I'm in a short meeting now | 12:11 |
gcollura | yeah sure t1mp :) | 12:11 |
t1mp | I'm back | 12:25 |
t1mp | gcollura: yes, please rebase it from staging | 12:25 |
gcollura | t1mp, sure, give me a second :) | 12:30 |
t1mp | gcollura: awesome :) I also left two small suggestions for improvements as comments on https://code.launchpad.net/~gcollura/ubuntu-ui-toolkit/fix-1341814-and-1400297/+merge/24555 | 12:31 |
gcollura | great idea, t1mp thanks for your review :) | 12:32 |
gcollura | t1mp, done https://code.launchpad.net/~gcollura/ubuntu-ui-toolkit/staging-fix-1341814-and-1400297/+merge/245645 | 12:39 |
t1mp | gcollura: I top-approved https://code.launchpad.net/~gcollura/ubuntu-ui-toolkit/staging-fix-1341814-and-1400297/+merge/245645 | 12:57 |
t1mp | gcollura: thanks again :) if all goes will it will land in staging automatically today. | 12:58 |
gcollura | thanks t1mp :D | 12:59 |
jgdx | dholbach, hi, are cpp docs missing from developer.u.c? | 13:03 |
dholbach | jgdx, what are you looking for? | 13:04 |
dholbach | jgdx, I don't think we ever went into much detail regarding C++ Qt app development - the scopes docs talk about C++ though | 13:05 |
dholbach | but maybe you can explain what specifically you were looking for | 13:05 |
jgdx | dbarth, that's it—was looking for /api/devel/ubuntu-14.10/cplusplus/connectivity-api/ | 13:05 |
jgdx | dholbach, ^ | 13:05 |
dholbach | ok | 13:05 |
jgdx | dbarth, tabfail, sorry! | 13:05 |
dholbach | oh ok | 13:06 |
jgdx | dholbach, [1] refers to this documentation IIUC [1] https://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Connectivity.index/ | 13:07 |
dholbach | jgdx, I guess you mean dbarth? | 13:08 |
jgdx | dholbach, I actually meant you :) | 13:10 |
dholbach | jgdx, what can I do for you? | 13:11 |
dholbach | jgdx, everything under /api/ is pulled in from the actual docs in the source itself | 13:12 |
gcollura | t1mp, do you know if this change can get backported to ubuntu-sdk-14.10? I need this fix in an app | 13:12 |
jgdx | dholbach, thanks! | 13:12 |
dholbach | jgdx, you could try to ping pete-woods on #ubuntu-touch about it | 13:13 |
dholbach | or any of the folks who are listed as committers here: https://code.launchpad.net/~unity-api-team/connectivity-api/trunk.15.04 | 13:14 |
jgdx | dholbach, right. | 13:15 |
dholbach | davidcalle, if you run linkchecker again - does it look better now? I think I fixed most of things now | 13:42 |
dholbach | (apart from some blog entries and the cookbook) | 13:43 |
davidcalle | dholbach, running | 13:43 |
dholbach | yoohoo | 13:43 |
davidcalle | dholbach, almost perfect, I'm fixing a few missing stuff... and didn't checked zh-cn yet :p | 14:01 |
dholbach | davidcalle, great - looks like we're finally getting somewhere | 14:01 |
davidcalle | dholbach, indeed. Now, there is only https://developer.ubuntu.com/en/web/api/ubuntu-13-10/ , we have kinda lost the documentation (it wasn't on the API website). I'm going to retrieve it. | 14:05 |
dholbach | davidcalle, do you know if somebody talked to dbarth about those pieces and where we're going to host them? | 14:07 |
davidcalle | dholbach, no, probably because the project is being replaced by the new webapps. It won't be updated anymore. | 14:08 |
dholbach | I'm wondering if we should drop it already(?) | 14:09 |
dbarth | dholbach: i'm there | 14:14 |
dbarth | we're keeping the 13.10 documentaiton for reference, as the last supported release | 14:15 |
dbarth | however i felt there was not much point in making a 14.04 version, knowing that tihngs would change within the 5 years of the LTS cycle | 14:15 |
dholbach | dbarth, 13.10 is not supported anymore | 14:16 |
dbarth | ie, the apis are there as-is, but we'd like to be able to upate the APIs once we fully understand how they fit into the desktop convergence scenario | 14:16 |
dbarth | ah | 14:16 |
dbarth | well, i'd still keep the documentation around; i updated the text to clarify that it was desktop only, and mostly there as a reference | 14:17 |
dbarth | unless it is a major pain to support the doc from a site structure or package pov | 14:17 |
dholbach | dbarth, we moved to a new infrastructure and it looks like the page was not moved over, but something else referred to it | 14:18 |
dholbach | davidcalle, right? ^ | 14:19 |
davidcalle | dholbach, dbarth, right. The branch is at https://code.launchpad.net/webapps-documentation and we would need to host it somewhere (or port the content). | 14:21 |
dholbach | maybe I'm missing something, but if we don't support it any more, it would likely confuse developers, no? | 14:23 |
dbarth | dholbach: that's a point | 14:25 |
dbarth | dholbach: could we then also remove the cookbook questions? or filter them out in the web section ? | 14:25 |
dholbach | dbarth, so the content in https://developer.ubuntu.com/en/web/cookbook/ is stale as well? | 14:26 |
dbarth | yes, refers to the destkop webapp integration afaict | 14:26 |
dbarth | i could provide the videos from our last online workshop as a substitute for the cookbook content | 14:27 |
dholbach | davidcalle, ^ shall we unpublish https://developer.ubuntu.com/en/web/cookbook/ for now then? | 14:27 |
dbarth | also if you can shortcut the tutorials and guides links to just the content, ie without having to go via that short intermediate page? | 14:28 |
davidcalle | dholbach, probably yes. Ok if I unpublish the whole? | 14:29 |
dbarth | davidcalle: the whole section, yes i think so | 14:29 |
dbarth | ie the whole cookbook section | 14:29 |
davidcalle | dbarth, and API right? | 14:30 |
davidcalle | dbarth, https://developer.ubuntu.com/en/web/api/ | 14:30 |
dbarth | davidcalle: yes | 14:30 |
davidcalle | dbarth, ok. | 14:31 |
dbarth | davidcalle: you can also add this link to the tutorials section: https://plus.google.com/events/c3prd0erlagajl8tq9d689q6en4 | 14:31 |
dbarth | UOS - Ubuntu Webapps & HTML5 Apps Workshop | 14:31 |
dbarth | and that's the slide deck link for the presentation as well: http://goo.gl/NTdTTy | 14:32 |
davidcalle | dbarth, ok, and I'll move the guide to be only one page, since it covers all aspects. | 14:33 |
dbarth | coolio, thanks | 14:33 |
davidcalle | dbarth, np | 14:34 |
davidcalle | dholbach, ^ | 14:34 |
dholbach | davidcalle, brilliant, thanks | 14:34 |
dholbach | davidcalle, maybe we should leave the other pages as redirects afterwards still? | 14:34 |
dholbach | just to make sure we don't lose anyone on the way :) | 14:34 |
dbarth | seo, yes | 14:35 |
davidcalle | dholbach, yep | 14:36 |
dbarth | or rather avoiding broken links | 14:36 |
dholbach | yep | 14:36 |
dholbach | great | 14:36 |
mhall119 | dholbach: most likely kenvandine wrote the content-hub docs | 14:52 |
dholbach | ok, thanks | 14:52 |
nik90_ | aquarius: ping | 15:05 |
aquarius | nik90_, pong | 15:06 |
nik90_ | aquarius: I added python-bzrlib as a dependency to the debian control file...are there any other dependecies? | 15:06 |
aquarius | erm | 15:06 |
nik90_ | Does it require python > 3.0? | 15:06 |
aquarius | it does not | 15:06 |
aquarius | because there is no bzrlib for pytohn3 afaict :( | 15:06 |
aquarius | I blame Barry :) | 15:07 |
nik90_ | ah ok | 15:07 |
nik90_ | so I need to add python2.7 as a dependency | 15:07 |
aquarius | I even started off writing the thing as python 3, like a good boy | 15:07 |
aquarius | shouldn't need to -- bzrlib should surely pull it in? | 15:07 |
aquarius | but I don't know much aboutpackaging dependency stuff | 15:07 |
nik90_ | true | 15:07 |
nik90_ | bzrlib pulls in python-configobj, python2.7, python (>= 2.7.1-0ubuntu2), python (<< 2.8), libc6 (>= 2.14) | 15:08 |
aquarius | it's All One Script -- doesn't dh_python or whatever it's called work this stuff out for you? | 15:08 |
aquarius | pkgme did. | 15:08 |
nik90_ | so I guess then python-bzrlib should be sufficient | 15:08 |
nik90_ | I am not sure....I am at a basic level of debian packaging | 15:08 |
aquarius | sounds plausible to me, but the reason I didn't do the debian packaging is that I don't know anything about it ;) | 15:08 |
nik90_ | ok | 15:08 |
nik90_ | it should work | 15:08 |
aquarius | so I ain't the guy you wanna ask here. Should be reasonably easy to test that it works though, rihgt? | 15:09 |
nik90_ | yes | 15:09 |
nik90_ | I am doing that now | 15:09 |
aquarius | nice one | 15:09 |
nik90_ | aquarius: debian packaging done -> https://code.launchpad.net/~nik90/component-store/fix-debian-packaging/+merge/245661 | 15:15 |
nik90_ | aquarius: so when you branch lands in trunk, I will push out an update to the PPA (trusty, utopic and vivid) | 15:16 |
nik90_ | s/you/your | 15:16 |
aquarius | ay | 15:17 |
aquarius | yay | 15:17 |
aquarius | nice one | 15:17 |
=== charles_ is now known as charles | ||
t1mp | gcollura: no, the new stuff is only for vivid | 15:28 |
t1mp | bzoltan: ^we don't backport to utopic right? | 15:28 |
gcollura | t1mp, :/ ok then | 15:28 |
t1mp | gcollura: unless you can get someone to mark this as rtm critical | 15:29 |
bzoltan | t1mp: not the UITK... only the tools | 15:31 |
t1mp | bzoltan: ok. It was about this fix, https://code.launchpad.net/~gcollura/ubuntu-ui-toolkit/staging-fix-1341814-and-1400297/+merge/245645 which is UITK | 15:31 |
bzoltan | t1mp: yes, I have seen that MR. It is good, but obviously it is for Vivid only | 15:42 |
t1mp | gcollura: it is ugly, but maybe you can set your Page.config.contents.parent to null when your Page.active becomes false | 15:55 |
t1mp | as a workaround for vivid | 15:55 |
gcollura | t1mp, it's not enough, because that patch also fix the bug 1400297 | 15:57 |
ubot5 | bug 1400297 in ubuntu-ui-toolkit (Ubuntu) "PageHeadState doens't correctly update head.contents" [Undecided,New] https://launchpad.net/bugs/1400297 | 15:57 |
om26er | mhall119, who takes care of the Ubuntu membership certificates ? | 16:06 |
om26er | mhall119, I requested the certificate in 2013, never received it. | 16:07 |
t1mp | gcollura: oh, pity. | 16:08 |
t1mp | gcollura: working around that is more work (maybe by having a single contents Item of which the contents is updated by the app, and setting the back action depending on whether you are in search mode or default mode).. | 16:09 |
t1mp | gcollura: eventually devices should switch to vivid, but that is not going to happen very soon | 16:09 |
t1mp | hmm | 16:10 |
t1mp | gcollura: I wonder if you can add a MyPageHeadState that inherits PageHeadState, and then use MyPageHeadState instead to define the states | 16:10 |
t1mp | gcollura: ^ to your app code (without changing uitk in utopic) | 16:11 |
gcollura | t1mp, maybe I could add a Connections { target: page.head; onContentsChanged: { } } | 16:19 |
rickspencer3 | hey, can anyone here help me write and run auto-pilot tests? | 16:22 |
rickspencer3 | I get this error, and don't know what to make of it: | 16:26 |
rickspencer3 | NotImplementedError: On desktop we can't install click packages yet, so we can only run from source. | 16:26 |
rickspencer3 | balloons, ^ ? | 16:26 |
balloons | rickspencer3, where do you see that? | 16:27 |
justCarakas | beuno do you know what the status is of the online store for the apps ? | 16:28 |
rickspencer3 | balloons, when I do "sh run" on the run file created in the autopilot test directory that was created when I created my project | 16:29 |
balloons | rickspencer3, ahh. I would invoke ap directly; let's look at the run file. just a sec | 16:30 |
rickspencer3 | balloons, I'm not certain what you mean | 16:34 |
rickspencer3 | I get the same thing if I just do: autopilot run FaireDesCourses | 16:34 |
rickspencer3 | if that's what you meant | 16:34 |
balloons | rickspencer3, i recreated your error, so i see what you mean | 16:34 |
balloons | the __init__.py file handles the setup and ll=aunch. it's not seeing the source. clearly a bug in the template | 16:35 |
balloons | rickspencer3, let's fix your file however | 16:38 |
rickspencer3 | balloons, I changed _get_app_qml_source_path(self): to return the hard coded path the main.qml and it worked | 16:38 |
rickspencer3 | of course, not too useful if someone wants to branch the code, but at least I am in business :) | 16:39 |
rickspencer3 | balloons, so, the web page with the autopilot docs if offline, is there somewhere else I can find the docs? | 16:39 |
balloons | right. the file isn't following best practice | 16:39 |
balloons | rickspencer3, yea i know. there's an rt for it :-( | 16:39 |
rickspencer3 | balloons, where else can I find the docs? | 16:40 |
balloons | rickspencer3, this is older but should serve you well enough | 16:40 |
balloons | http://unity.ubuntu.com/autopilot/ | 16:40 |
rickspencer3 | thanks balloons | 16:40 |
beuno | justCarakas, WIP, no release date yet, but not too far off | 16:40 |
* balloons looks for template updating bug | 16:43 | |
rickspencer3 | balloons, it wold be sweet to have that auto-pilot doc available as a pdf | 16:45 |
balloons | it's built with sphinx.. i wonder if we can set that as an output too | 16:46 |
rickspencer3 | if not, there is probably a simple tool that will convert html to pdf | 16:47 |
rickspencer3 | balloons, ooh, or epub might be even nicer! | 16:47 |
balloons | right.. i guess we could publish all those. i'll file a bug to add them | 16:49 |
balloons | rickspencer3, what template do you normally use for new projects | 16:50 |
rickspencer3 | Ubuntu -> Simple | 16:50 |
balloons | not simple (qmake?) | 16:51 |
rickspencer3 | balloons, yes, it's App with Simple UI (QMake) | 16:53 |
rickspencer3 | balloons, so, I want to do page object pattern | 16:58 |
rickspencer3 | any hints on how to do that with qml? | 16:58 |
rickspencer3 | i.e. how do I call a function on the page in qml from the test? | 16:58 |
balloons | rickspencer3, we have an article on it on d.u.c | 16:58 |
rickspencer3 | balloons, http://developer.ubuntu.com/en/apps/platform/guides/acceptance-testing-using-the-page-object-model/ | 16:59 |
rickspencer3 | ? | 16:59 |
balloons | yes. does it help? | 16:59 |
rickspencer3 | balloons, I guess so | 17:00 |
balloons | you can't reference a qml function durectly from ap. that's too low level. ap tests should be user stories,user interaction | 17:00 |
rickspencer3 | I assumed that I would write the functions in teh qml | 17:00 |
balloons | you can test at that level in qml | 17:00 |
rickspencer3 | but it looks like I write a wrapper function in the test | 17:00 |
rickspencer3 | and call that | 17:00 |
mhall119 | om26er: you're not the only one, I'll find out who's responsible now that jono's left | 17:00 |
aquarius | justCarakas, you might like appstore.bhdouglass.com until an "official" store comes alone | 17:02 |
aquarius | obviously not :) | 17:03 |
balloons | aquarius, oO | 17:03 |
balloons | rickspencer3, many of the core apps follow the model well and follow best practices for setup, etc. you can sneak a peek at them | 17:09 |
rickspencer3 | balloons, which one is the easiest to understand, and can you paste me a link? | 17:09 |
rickspencer3 | balloons, do you know how I am supposed to use autopilot to click on an action button? seems objectName does not work for it :/ | 17:12 |
balloons | rickspencer3, lp:ubuntu-calculator-app and lp:ubuntu-calendar-app | 17:13 |
balloons | calc is easy app, and more or less gets it right | 17:13 |
balloons | rickspencer3, there is a helper for many of the uitk elements | 17:14 |
balloons | the docs for that is offline too, linked for d.u.c. the local copy on your machine isn't in html sadly | 17:14 |
balloons | rickspencer3, syntax is like this | 17:16 |
balloons | header = self.get_header() | 17:16 |
balloons | header.click_action_button('objectname') | 17:16 |
rickspencer3 | ah | 17:16 |
balloons | rickspencer3, you'll want to clone the setup of one of the core apps or otherwise import ubuntuuitoolkit to get the helpers | 17:17 |
rickspencer3 | balloons, where is get_header implemented? | 17:17 |
rickspencer3 | lp:ubuntu-calculator-app | 17:17 |
rickspencer3 | oops | 17:17 |
rickspencer3 | AttributeError: 'MainViewTestCase' object has no attribute 'get_header' | 17:18 |
balloons | rickspencer3, import ubuntuuitoolkit | 17:18 |
balloons | inside calc, look at it's helpers | 17:18 |
balloons | __init__.py | 17:18 |
balloons | one does the setup work, the other is the helper definitions | 17:18 |
balloons | it has class objects and useful functions | 17:19 |
rickspencer3 | balloons, can you link me to the specific file that you mean in lp? | 17:20 |
balloons | rickspencer3, yes | 17:20 |
rickspencer3 | it doesn't seem that the calculator app used "get_header" | 17:22 |
balloons | http://bazaar.launchpad.net/~ubuntu-calculator-dev/ubuntu-calculator-app/trunk/view/head:/tests/autopilot/ubuntu_calculator_app/__init__.py | 17:23 |
balloons | rickspencer3, if you pull the calc reboot branch, andrea just bootstrapped it so you can see a proper shell with no tests if you wish | 17:25 |
elopio | rickspencer3: the get_header method is implement in the MainView page object. | 17:26 |
balloons | anyways, the file linked contains what we call helpers for the test suite. it inherits from the uitk helpers | 17:26 |
rickspencer3 | elopio, so self.get_header() is supposed to work? | 17:26 |
elopio | so you would have something like self.app = self.launch_test_app(...) | 17:26 |
rickspencer3 | because I get this | 17:26 |
rickspencer3 | AttributeError: 'MainViewTestCase' object has no attribute 'get_header' | 17:26 |
elopio | then self.main_view = self.app.select_single(ubuntuuitoolkit.MainView) | 17:26 |
balloons | rickspencer3, your testsuite isn't setup in a way that allows you to easily use it | 17:27 |
elopio | and then you do self.main_view.get_header() | 17:27 |
rickspencer3 | balloons, well, I didn't set up the test case! | 17:27 |
balloons | yes, elopio has laid it out | 17:27 |
rickspencer3 | I am using what came with the template | 17:27 |
elopio | rickspencer3: but as the templates in qt creator are terribly outdated, I'm not sure what's the state of your code. | 17:27 |
balloons | rickspencer3, i know :( i'm filing a bug to fix that | 17:27 |
rickspencer3 | oh geez | 17:27 |
elopio | if you want you can push it and we can take a look. | 17:27 |
rickspencer3 | elopio, ok | 17:27 |
rickspencer3 | elopio, lp:~rick-rickspencer3/+junk/fairedescourses/ | 17:28 |
elopio | rickspencer3: I see. Give me 15 minutes to remove the ugly parts from your test case. | 17:30 |
balloons | probably easiest to just propose a merge to fix it | 17:30 |
rickspencer3 | not sure what those are, but ok | 17:30 |
balloons | elopio, rickspencer3 fyi: https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1408042 | 17:31 |
ubot5 | Launchpad bug 1408042 in qtcreator-plugin-ubuntu (Ubuntu) "Template tests don't reflect best practice" [Undecided,New] | 17:31 |
rickspencer3 | balloons, so, I think someone needs to stay on top of that | 17:31 |
rickspencer3 | not sure how the sdk team is supposed to find out that the templates are out of date | 17:31 |
balloons | ideally, via a test | 17:32 |
bzoltan | rickspencer3: balloons: Now that the templates are stable for various training programmes it is good time to get the template tests in shape. It is in my January plans. | 17:34 |
rickspencer3 | elopio, so, I think I shall go get some lunch and exercise, so will check when I get back, is that ok, or are you near eod? | 17:34 |
elopio | rickspencer3: the day is young. I will send you an email with my diff. | 17:35 |
rickspencer3 | thanks elopio | 17:35 |
rickspencer3 | you are a prince among men :) | 17:35 |
elopio | np | 17:35 |
rickspencer3 | I really appreciate the help | 17:35 |
rickspencer3 | I am keen to post a video showing autopilot working on my app ;) | 17:35 |
balloons | :) | 17:36 |
elopio | flattery will get you everywhere :) | 17:36 |
elopio | and beer. | 17:37 |
balloons | elopio, flat beer however wins you no friends | 17:38 |
=== bfiller is now known as bfiller_dentist | ||
renatu | om26er, I am getting this error on jenkins: 15:43:09.172 ERROR content:47 - Could not add content object 'None' due to IO Error: [Errno 13] Permission denied: '/var/log/syslog' | 17:47 |
renatu | om26er, could you help me with that? | 17:47 |
elopio | balloons: flat beer will get you half the way. | 17:51 |
aquarius | Is it possible to tweak the background colour of the emulator window? I think it ought to be black, so that when you record videos or take screenshots of it you don't get tiny white corners around the Ubuntu Edge image. | 19:38 |
aquarius | Also, we'll get a bq skin for it, right? :) | 19:38 |
aquarius | ooh, /usr/share/ubuntu-emulator/skins. Interesting. Maybe I can do a nicer shot of the edge which doesn't have the horrible artifacts in the image. Although I can't see how to configure the skin that I use; is there a way? | 19:42 |
=== salem_ is now known as _salem | ||
rickspencer3 | elopio, not as easy as you were hoping? | 20:00 |
rickspencer3 | :) | 20:00 |
elopio | rickspencer3: https://code.launchpad.net/~elopio/+junk/fairesdescourses/ | 20:01 |
elopio | rickspencer3: fixing it was easy: http://bazaar.launchpad.net/~elopio/+junk/fairesdescourses/revision/25 | 20:01 |
rickspencer3 | huh | 20:02 |
elopio | I got a little too far, because I would feel ashamed of that code if you show it around. So the following revisions are what the template should lead you to. | 20:02 |
rickspencer3 | so if I just try to merge r30, I'm good to go? | 20:03 |
elopio | rickspencer3: yes. | 20:04 |
elopio | rickspencer3: and if you get stuck while implementing the rest of the test, ping ubuntu-qa and we'll give you a hand. | 20:04 |
elopio | btw, the task to prettify the templates is already in our backlog. I think that today it's priority will be bumped a little :) | 20:05 |
rickspencer3 | elopio, between qmltestrunner and autopilot, we have a really excellent story for developers | 20:06 |
rickspencer3 | I think we should show it off a lot more | 20:06 |
elopio | rickspencer3: I agree. | 20:07 |
elopio | balloons: one thing we are missing is a document where we make it clear which tests we want in autopilot and which ones we want in qttest. | 20:08 |
elopio | balloons: we don't have that yet, right? | 20:08 |
rickspencer3 | elopio, cools, seems to be working now | 20:08 |
rickspencer3 | thanks | 20:08 |
elopio | your welcome. | 20:08 |
=== bfiller_dentist is now known as bfiller | ||
ahoneybun | does anyone have the problem with the device always shown as booting in the SDK? | 20:49 |
rickspencer3 | elopio, hey, so I have a page stack ... main_view.wait_select_single doesn't seem to be able to find anything a page pushed onto the page stack | 20:52 |
rickspencer3 | elopio, nm | 20:53 |
rickspencer3 | I didn't use the objectName keyword :) | 20:53 |
rickspencer3 | hey, does anyone know how to use get_children_by_type ? | 21:22 |
rickspencer3 | in autopilot? | 21:22 |
veebers | rickspencer3: it should be something like: myproxy_obj.get_children_by_type('TextField') | 21:24 |
veebers | rickspencer3: it will only select immediate children though | 21:28 |
rickspencer3 | hmmm | 21:29 |
aquarius | sergiusens, ping about the emulator skin :) | 21:31 |
rickspencer3 | veebers do you know I how specify the "typename" for a standard list item? | 21:50 |
rickspencer3 | is it like: | 21:51 |
rickspencer3 | list.select_many("Ubuntu.Components.ListItem.Standard") | 21:51 |
rickspencer3 | ? | 21:51 |
rickspencer3 | nm, I guess it's | 21:51 |
veebers | rickspencer3: just 'Standard' | 21:51 |
rickspencer3 | list.select_many("Standard") | 21:51 |
rickspencer3 | weird, but ok :) | 21:51 |
elopio | rickspencer3: actually, select_many|select_single(ubuntuuitoolkit.listitems.Standard) | 22:00 |
rickspencer3 | elopio oh? | 22:01 |
elopio | then you will inherit some helpers already implemented, like swipe_to_delete. | 22:01 |
DanChapman | aquarius: are you wanting to use a custom skin? if so you can set it something like ubuntu-emulator run --skin="blah" ... | 22:01 |
rickspencer3 | elopio, any helpers for CheckBox ? | 22:01 |
elopio | rickspencer3: of course. | 22:01 |
aquarius | DanChapman, I am! how do you know this? :) And... where does it look for skins? only in the system folder? | 22:01 |
elopio | rickspencer3: http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/view/head:/tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_checkbox.py#L27 | 22:02 |
rickspencer3 | elopio, is there reference somewhere that I can see how to do it? | 22:02 |
elopio | select_single(ubuntuuitoolkit.CheckBox) | 22:02 |
elopio | rickspencer3: the autopilot tutorial explains how to define and use custom proxy objects. And the toolkit API docs show the existing custom proxy objects that you can use. | 22:03 |
elopio | but everything is offline atm. | 22:03 |
rickspencer3 | hmmm | 22:03 |
rickspencer3 | ok | 22:03 |
rickspencer3 | I am making good progress | 22:03 |
veebers | elopio: ah nice, thanks for the further info. I really need to get into the UI code to see what extra helpers etc. are all there | 22:04 |
rickspencer3 | elopio, so, I assume there is a helper in the header to go back? | 22:04 |
elopio | rickspencer3: there is :) | 22:05 |
elopio | http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/view/head:/tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_header.py#L94 | 22:05 |
elopio | rickspencer3: but better use self.main_view.go_back() | 22:06 |
DanChapman | aquarius i found it by poking around ubuntu-emulator :-) anyway i believe these are the paths it checks http://bazaar.launchpad.net/~phablet-team/goget-ubuntu-touch/trunk/view/head:/ubuntu-emulator/run.go#L49 | 22:06 |
elopio | rickspencer3: actually, now that I see it you shouldn't do header.click_action_button(...). You should do self.main_view.click_action_button(...) | 22:08 |
elopio | that way if they go crazy again and move the actions to a different place, your test will not have to change. | 22:08 |
rickspencer3 | oh nice | 22:08 |
rickspencer3 | by the way .. "they" == "me" | 22:09 |
rickspencer3 | also, I don't think designers "go crazy" so much as "improve designs" :) | 22:09 |
rickspencer3 | we should not malign them for doing their jobs! right? | 22:09 |
elopio | right... :D | 22:09 |
aquarius | DanChapman, aha, I can pass it skindir | 22:13 |
aquarius | DanChapman, I like how all these command line options are totally undocumented ;) | 22:13 |
aquarius | DanChapman, but now I can make other skins... although I am not the most talented artist. mhall119, it'd be very cool if someone got on to the design team and got a bq emulator skin ready for the phone release. (And a bunch of Ubuntu bq images for publishing screenshots of one's app on websites, too, for similar reasons) | 22:15 |
rickspencer3 | \o/ my first autopilot test | 22:16 |
balloons | o/ | 22:17 |
balloons | elopio, no we don't have a doc explaining the difference nicely, but it's on the list for me. sucks i can't type now | 22:17 |
balloons | its intended to go on the revamped d.u.c site | 22:18 |
mhall119 | aquarius: probably wouldn't be the design team skinning the emulator | 22:18 |
elopio | balloons: we have added a task to our backlog to do autopilot and qttest docs. Maybe you should talk to jfunk to join our team during that sprint, at least partial time. | 22:18 |
elopio | that would be awesome. | 22:18 |
veebers | elopio, balloons: aye that would be awesome :-) | 22:18 |
aquarius | mhall119, not expecting a designer to skin the emulator. What's needed is a png of the bq phone at the appropriate size. That's totally a designer job :) Dropping that png into the emulator deb file is not. | 22:19 |
balloons | ohh excellebt. a whole sprint for that. | 22:19 |
aquarius | mhall119, I'd ping one of them myself with the specs for the png file but I don't think I know anyone there who's a visual designer any more :) | 22:19 |
mhall119 | aquarius: right, I'll poke the emulator maintainers to tell design what they need to make it happen | 22:19 |
aquarius | mhall119, nice one; that's exactly what I was hoping for | 22:20 |
mhall119 | once I figure out who is maintaining the ubuntu-emulator | 22:20 |
aquarius | then the emulator will look like our new phone | 22:20 |
aquarius | and not be an Edge with horrible artifacts around the, er, edge | 22:20 |
elopio | balloons: well, not a whole sprint. We probably will have to fix the templates and do some other cleaning during those two weeks. | 22:20 |
balloons | yes.. but a sprint for cleanup tasks and docs will be nice. i asked for some of those cards | 22:21 |
AkivaAvraham | ubuntu-emulator; this is new... | 22:23 |
rickspencer3 | elopio, does ap work with scopes? | 22:26 |
elopio | rickspencer3: yes, we have some initial helpers in unity to do the basic things, open them, click items, get information. | 22:27 |
rickspencer3 | groovy | 22:27 |
elopio | but some more work is needed. It's in progress as part of the click sccope automation. | 22:27 |
rickspencer3 | elopio, https://plus.google.com/109101768243927790674/posts/G3ZqXLR7WtN | 22:28 |
elopio | rickspencer3: awesome! specially the last sentence :) | 22:30 |
balloons | :) | 22:30 |
AkivaAvraham | Cannot install /tmp/com.ubuntu.developer.akiva.classical-music-youtube-dl_0.1_i386.click: Framework "ubuntu-sdk-14.10" not present on system (use --force-missing-framework option to override) | 22:34 |
AkivaAvraham | am I just missing a package? | 22:34 |
AkivaAvraham | What would be the best way to go about getting youtube-dl installed on the ubuntu touch? | 23:22 |
AkivaAvraham | it is a python script through and through so | 23:23 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!