IRC log of #maemo-devel for Friday, 2010-06-25

*** fiferboy has quit IRC00:00
*** Venemo has joined #maemo-devel00:19
*** SpeedEvil has quit IRC00:34
*** SpeedEvil has joined #maemo-devel00:38
*** Aranel has quit IRC00:43
*** eitama has joined #maemo-devel00:45
*** _0x471 has quit IRC00:55
*** eitama has left #maemo-devel00:58
*** Ian-- has joined #maemo-devel01:27
*** Venemo has quit IRC01:30
*** Venemo has joined #maemo-devel01:31
*** SpeedEvil has quit IRC01:33
*** SpeedEvil has joined #maemo-devel01:39
*** csaavedra has quit IRC01:46
*** Venemo has quit IRC02:27
*** Venemo has joined #maemo-devel02:29
*** SpeedEvil has quit IRC02:47
*** SpeedEvil has joined #maemo-devel02:57
*** swc|666 has quit IRC03:19
*** GeneralAntilles has quit IRC03:34
*** ScriptFanix has quit IRC03:34
*** Mek has quit IRC03:34
*** Mek has joined #maemo-devel03:35
*** GeneralAntilles has joined #maemo-devel03:44
*** ScriptFanix has joined #maemo-devel03:47
*** SpeedEvil has quit IRC03:50
*** edisson has quit IRC03:50
*** dotblank has quit IRC03:50
*** _0x47 has quit IRC03:50
*** villager has quit IRC03:50
*** SpeedEvil has joined #maemo-devel03:51
*** edisson has joined #maemo-devel03:51
*** dotblank has joined #maemo-devel03:51
*** _0x47 has joined #maemo-devel03:51
*** villager has joined #maemo-devel03:51
*** rcampbell has joined #maemo-devel04:19
*** azakai has quit IRC04:32
*** Venemo has left #maemo-devel04:38
*** SpeedEvil has quit IRC05:11
*** SpeedEvil has joined #maemo-devel05:12
*** rcampbell has quit IRC06:56
*** Aranel has joined #maemo-devel07:00
*** edisson has quit IRC07:21
*** DocScrutinizer has quit IRC07:34
*** DigitalPioneer has joined #maemo-devel07:37
*** kamui__ has joined #maemo-devel07:43
*** kamui__ has quit IRC07:45
*** kamui__ has joined #maemo-devel07:46
*** shinkamui has quit IRC07:47
*** kamui__ has quit IRC08:32
*** kamui__ has joined #maemo-devel08:32
*** bricks has joined #maemo-devel09:25
dotblankSi anyone available to help me fix a bug with my application.. I think I just need a second set of eyes09:46
*** Aorimn has joined #maemo-devel09:49
*** ppenz has joined #maemo-devel09:50
*** amigadave has joined #maemo-devel09:52
*** Venemo has joined #maemo-devel10:01
*** DigitalPioneer has quit IRC10:02
Venemogood morning!10:04
*** DigitalPioneer has joined #maemo-devel10:23
*** pillar has quit IRC11:03
*** shinkamui has joined #maemo-devel11:19
*** kamui__ has quit IRC11:22
Lullengood morgning Venemo11:23
dotblankLullen, hey, I seem to have a bug in program but I can't fiqure out how to fix it11:27
Lullenokey tell me!11:27
dotblankLullen, so I added playlist support to my program but I can't fiqure out why when I add another item it doesn't play11:29
Lullenit works when you add a playlist but not a mp3 file?11:30
dotblankhttps://garage.maemo.org/scm/?group_id=166911:30
dotblankthats my code for my project11:30
dotblankthe issue I think lies in playlist::networkReplyFinished()11:30
dotblankthe signal never "fires" after I add a new item11:31
Lullenokey11:31
dotblankI can't think of any reason why the signal won't be called11:33
dotblankconnect(reply,SIGNAL(finished()),this,SLOT(networkReplyFinish()));11:33
Lullenhmm I never done network programming : )11:34
dotblankyea its a little bit complicated11:34
*** csaavedra has joined #maemo-devel11:34
Lullenhmm11:35
LullenIn the version I see thats outcommented11:35
dotblankin plalist::beginDownload()?11:36
Lullenno networkReplyFinished11:36
*** Venemo1 has joined #maemo-devel11:36
Lullenor11:36
*** Venemo has quit IRC11:37
dotblankah I think that was on purpose11:37
Lullensorry, I was just reading SIGNAL(finished())11:37
dotblankthe qDebug() << "finish"; never gets called11:37
dotblankso I can't fiqure out why it doesn't fire the signal11:37
dotblankwhat happens is that the reply sends a post request with a streamkey11:38
dotblankthen the reply from the server sends back 2 possible things11:38
Lullenconnect(reply,SIGNAL(downloadProgress(qint64,qint64)),this,SLOT(downloadSlot(qint64,qint64))); works?11:39
dotblankLullen, yes11:39
dotblankactually thats a good way to debug it11:39
Lullenstrange11:40
dotblankwell it works in earlier revisions11:40
dotblankbut i'm not using the playlist class11:40
LullenI have to admit I do not understand a thing how this works so I am just trying to look for obvious errors11:42
dotblankLullen, yea its very confusing11:43
dotblankits really complicated the fact it even works its scary11:43
Lullenhaha :)11:43
dotblanksoo much going on11:43
LullenMy errors are so much easier :(11:43
dotblankbut still less code then your project11:43
LullenYe mine is getting bigger and bigger :D11:44
dotblankok after more debugging I find this statement never get checked for true11:44
dotblankb >= t*0.05 && !pList->at(currentdownloaditem)->bufferready && b/(startStreamT.msecsTo(QTime::currentTime()) + 1)*100/1024 >= 1011:44
dotblankthe second time I add a song11:45
dotblankMine is just getting more and more complicated11:45
Lullenin downloadSlot?11:45
dotblankyes11:45
LullenWell if you make it, it will be awesome :)11:45
dotblanksee my media player listens for the bufferReady signal before it starts playback11:46
Lullenso t = 0 i guess?11:46
dotblankbut it doesn't ever seem to get called the second time11:46
dotblankno I think t != 011:47
dotblanktesting now11:47
Lullenremake the if statement11:48
dotblankodd I got it to segfault11:48
Lullendo like if(b>= t*0.05) if(!pList->at(currentdownloaditem)->bufferready)11:49
Lullenthat only happends if you use a uninitalized instance right?11:49
dotblankLullen, yea..11:50
dotblankor an error in the stream and phonon crashes11:50
dotblankhappens rarely11:50
dotblankvery rarely11:51
Lullenokey11:51
dotblankcan never capture the segfault with gdp running11:51
dotblankits always when im not running the debugger... figures11:51
Lullenstrange11:51
LullenI have that error now or something like that I can not figure out. I get segfault when I destroy a dialog11:52
dotblankLullen, hmm11:52
Lullenbut outcomment line after line in that function11:52
Lullenthats how I knew what was wrong11:53
dotblankhmm11:54
dotblankwhoa11:54
dotblankit never sends a bufferReady the second tim11:55
dotblanke11:55
dotblankeven when I remove all that extra qulifiers11:55
*** eitama has joined #maemo-devel11:55
dotblankwhy....11:56
dotblanktime for thinking cap11:56
Lullenno idea...11:57
dotblank!pList->at(this->currentdownloaditem)->bufferready11:57
dotblankmust be returning the state from the previous download11:57
Lullenis currentdownloaditem right?11:57
Lullenwrite it out11:57
dotblanksee what that means is that retrieve the buffer state for the currrentdownloaditem11:58
dotblankif it hasn't been set emit the buffer ready signal11:58
dotblankthe buffer ready signal then sets the state11:59
dotblankthis->currentdownloaditem = position;12:00
dotblankshould set the current download position...12:01
Lullenhmm12:02
LullenI have no idea, sorry12:02
LullenI have to go now12:02
Lullentime to get drunk :>12:02
dotblankAh ha!12:05
dotblankcurrentSkeyItem never gets set12:05
Lullenso you found ti?12:06
Lullen=D12:06
dotblankmaybe testing now12:06
Lullenawesome work dude!12:06
dotblankYES12:07
dotblankYES!!!12:07
dotblankFIXED IT12:07
LullenAWESOME :D12:07
dotblankAHAHAHAHAH12:07
Lullengratz! :)12:07
dotblankman what hard to fiqure out bug12:07
dotblankjeez12:07
Lullenhehe ye12:07
dotblankthat was insaine12:07
dotblankthat might be whuy it segfaults12:08
dotblankuninitialized int12:08
Lullenye : )12:09
dotblankwell I'll ttyl Lullen you need to get drunk12:09
Lullen:)12:09
dotblankI wish I had a beer on me to celebrate12:09
Lullenfixing myself first :)12:09
Lullenleaving in 20 I guess12:09
Lullenwant to look on something first? :)12:09
dotblanksure12:09
Lullenhttp://pastebin.com/bwiLHmG112:10
Lullenwhy is ed on top?12:10
Lullenif count > 112:10
dotblankon top?12:11
dotblankexercises.count() == 112:11
dotblankif its anything but 1 it creates a new ed12:11
Lullenno, it creates it if it is bigger then 1 :P12:12
Lullenif(exercises.count() == 1) do not create12:12
Lullenelse does12:12
dotblankright12:12
Lullenbut I get 2 dialogs12:12
dotblankbut if its 0 it still calls it12:13
Lullen1 wd and 1 ed12:13
Lullenit will not call that function then so its ok12:13
LullenI want wd on top12:13
dotblankyou get 2 dialogs?12:13
Lullenand ed under it12:13
Lullenyes12:13
dotblankdo you still want both made?12:13
dotblankif ed.show() is called last it should be on top12:14
Lullenbut I call wd.show() later12:14
Lullenso wd should be on top right?12:14
dotblankOHh12:14
Lullenyes12:15
dotblankI think you creating a race condition12:15
dotblankyour*12:16
LullenHmm.. Maybe I should do a slot that creates the next dialog when the first dialog is done?12:16
dotblankLullen, yes I think that would be a better approach or don't show it untill you want it to12:17
dotblankyou could try setting focus on a dialog window12:17
LullenOkey12:18
Lullengiving it 1min12:18
dotblankWhy do you want to create 2 dialogs at once?12:18
Lullenthey are called when you have done a exercise12:19
Lullenso the first is to write in the weight12:19
Lullenand the second is to choose the next exercise12:20
dotblankLullen, ah... could you make it show the next dialog after the weight is entered?12:20
LullenI think so12:20
LullenYou made me understand the slot/signal system so :)12:21
dotblankLullen, are you using custom dialogs or are they predifined ones with signals like finished()?12:21
dotblank:)12:21
LullenMMM.... first beer! 11:21am :)12:21
dotblankits 5:21 am for me12:21
LullenI have to make my own signal when a button is pressed12:22
dotblankLullen, uyou sure..12:22
dotblankthe button has a signal12:22
dotblanksignal(clicked());12:22
Lulleni ment slot :D12:22
dotblankLullen, oh yes12:22
dotblankI liek the whole slot /signal thing12:23
dotblankI think I would end up killing small animals if I had to do this in c12:23
Lullenhaha12:24
Lullenye I start to like it12:24
Lullenquite usable12:24
Lullenhttp://pastebin.com/JKEDuT6F12:24
Lullencheck that out thanks :D12:24
Lulleni get segfault when adding to destroy12:24
Lulleni do not see any reason for it :S12:24
*** eitama_ has joined #maemo-devel12:25
dotblankLullen, what line has destroy12:25
dotblankoh ok12:25
dotblankthis->hide does not destroy12:25
Lullenno12:25
Lullenwhen I edit it to this->destroy12:25
dotblankoh12:25
LullenI get the segfault12:25
dotblankyea12:26
LullenI do not call ed anywhere else in that program12:26
dotblankyou need toc all it outside of the program12:26
dotblanker widgert12:26
dotblankwidget*12:26
dotblankbut its stll in the scope12:27
dotblankit will segfault because its going to try and destroy QString name when moving out of scope12:27
dotblankbut its already been destroyed12:27
Lullenhmm12:27
Lullenhow do I fix that?12:28
dotblankdon't call destroy from within ed12:28
Lullenthe destroy function is protected12:28
dotblankhave you tried ed->~QDialog();12:29
dotblankor whatevver class it was12:29
dotblanked->~ExerciseDialog();12:29
dotblankshould destroy the object12:29
Lullenwhere should I do it? In the signal that ed calls?12:29
dotblankwell in a slot outside of scope12:30
dotblanklike in startwindow12:30
Lullenokey12:30
Lullenthanks alot :D12:31
dotblankno problem12:33
*** eitama has quit IRC12:35
*** eitama_ is now known as eitama12:35
*** Venemo1 has quit IRC12:59
*** Venemo has joined #maemo-devel12:59
*** torben_ has joined #maemo-devel13:02
torben_Hi13:02
dotblanktorben_, Hi13:04
torben_Is it possible to get the original libc of my N900 from somewhere? I installed a new libc 2.7 from lenny and now my calendar doesn't work anymore...13:05
SpeedEvilumm...13:05
SpeedEvilWhy did you do that?13:05
SpeedEvilAnyway13:05
SpeedEvilyou're on what release?13:05
torben_( I tried to get aiccu to work)13:05
torben_fremantle 1.2 - i guess. How do I find that out?13:06
SpeedEvilhttp:///www.mauve.plus.com/libc-2.5.so sillly person.13:06
torben_Thanks. Is it possible to get the .deb-file?13:07
SpeedEvilnope13:10
SpeedEvilWell - not from me13:10
torben_apt-get check tells me: "mp-fremantle-generic-pr: Depends: libc6 (=2.5.1-1eglibc25+0m5) but 2.7-18lenny1 is installed"13:10
SpeedEvilJust ftpd it off my n90013:10
torben_That13:10
SpeedEvilNo clue on how to tell apt about it13:10
SpeedEvilI suspect leaving it as it is will prevent any OTA of course13:10
torben_'s my problem: I guess that APT will have errors in future.13:10
torben_What do you mean with OTA?13:11
SpeedEvilOver The Air13:11
SpeedEvilAs in PR1.3 won't install automagically13:11
torben_Now I have both libraries in /lib. ldconfig run without problems and created the link to the new lenny-lib.13:12
torben_If I remove the link, then I can't run any commands.13:12
SpeedEvilif you don't - what happens?13:12
torben_How can I set the link now...13:12
SpeedEvilah13:12
SpeedEvilln isn't there in busybox?13:13
torben_no13:13
torben_ln is dynamic13:13
SpeedEvilFrom a logged in shell - it should work AIUI13:13
torben_Is it possible to run ln somehow "by-hand"?13:13
SpeedEvilman ld.so13:14
SpeedEvillook up LD_PRELOAD13:14
torben_Hmm, I tried this already. It ended up with weird errors. I'll try now again and tell you13:14
SpeedEvilGood luck.13:14
SpeedEvilAnd in future.13:15
SpeedEvilcopy / to /home/user/chroot - and then chroot into that13:15
SpeedEviland then do stuff there13:15
SpeedEvilto test at least13:15
torben_Thanks. Sounds very good.13:16
SpeedEvilIt's not guaranteed that all stuff will work as it does on / - but at least much does.13:18
torben_Doesn't work: "error wihile loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory."13:26
torben_And I gave him in LDD_PRELOAD the old libc...13:27
SpeedEvilLD_PRELOAD13:27
torben_Why does he load the new one?!13:27
torben_UUppss.. yes. And again...13:27
*** polac has quit IRC13:27
torben_The same error!13:28
SpeedEvilIt may not support LD_PRELOAD13:28
SpeedEvilI guess flashing will fix it13:28
torben_My command line: "LD_PRELOAD="/lib/libcrypt.so.1 /lib/libc-2.5.so"; rm /lib/libc.so.6; /lib/ld-linux.so.3 /bin/ln -s /lib/libc-2.5.so /lib/libc.so.6"13:29
torben_If I flash the device, all my data is lost.13:29
torben_Where can I download a static version of ln ?13:30
torben_BTW: The lenny-libc works okay. Except the calendar: It ends with an internal error."13:32
torben_Okay, I'll try again later.13:38
torben_thank you all.13:38
torben_cu13:38
*** torben_ has quit IRC13:39
*** polac has joined #maemo-devel14:04
dotblank** No rule to make target `/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/linux-g++-maemo5/qmake.conf', needed by `Makefile'.  Stop.14:07
dotblankgot that error trying to upload to autobuilder14:07
Lullenhows it going dotblank?14:25
dotblankLullen, try to get it built on the autobuilder14:26
dotblanktrying*14:26
Lullenthe autobuilder is a bitch14:26
dotblankhow did you get yours to work?14:26
dotblankcan I see your debian control?14:26
LullenI did not have that problem14:27
Lullensec14:27
Lullenhttp://pastebin.com/zbJzztfw14:27
LullenGetting drunk did not go that well14:27
dotblankhmm no idea why its not building14:28
Lullenmy cousin who was supposed to pick me up is an big ass and forgot me and now he is drunk so I need to take a taxi for like 60-100 euro :(14:28
dotblankyikes14:28
LullenI sat with my autobuilder problems for a months :D14:28
Lullenhttp://www.youtube.com/watch?v=TXWAv2PF1xI&feature=related14:29
LullenYEAH! :D14:29
dotblankhttp://pastebin.com/maaWsMFs14:30
dotblankthats my .pro file14:30
dotblankI think the problem my lie there14:30
Lullenits not complete14:32
Lullen:)14:32
Lullenbut it is probebly not that, that makes it not compile14:32
*** eitama has quit IRC14:32
dotblankmaybe its debian rules?14:33
Lullenhttp://wiki.maemo.org/MADDE/Packaging14:33
Lullenlook at 7.14:33
Lullenhttp://pastebin.com/xGkVpvWQ14:34
Lullennot that there should not be any spaces, its all tabs14:35
Lullenvery important14:35
*** eitama_ has joined #maemo-devel14:40
dotblankugh autobuilders...14:50
lcukdotblank, nothing wrong with autobuilders14:52
*** Venemo has quit IRC14:52
dotblanklcuk, well when it works14:52
dotblanklcuk, just can't seem to get anything to build14:52
dotblankeverything works in my sbox14:53
lcukhow are you uploading and why is it failing14:53
dotblankhttps://garage.maemo.org/builder/fremantle/groove_0.3-1/armel.build.log.FAILED.txt14:53
dotblankusing the upload assistant14:53
lcukdotblank, ok so you got past the upload bit14:54
dotblankyes14:54
lcukthe qmake portion, is qt correctly specified in the build deps14:54
lcuki know it works on yourscratchbox14:55
lcukbut the autobuilder is just the same as scratchbox - it just starts completely clean first14:55
lcukand has to add everything as required and specified by your package14:55
dotblankhttp://pastebin.com/zkLacmey14:55
lcukso if you fail to specify dependencies correctly it will fail more often than your messy home system14:55
dotblankmy sbox is fairly lean14:56
dotblankI do most of my dev in the qt creater sbox14:56
Lullenlcuk, there is many times when qt creator compiles and the autobuilder does not. I think that is a BIG issue14:56
dotblankbut my package does build in sbox14:56
Lullenhaha yeah exactly :D14:57
dotblank *** No rule to make target `/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/linux-g++-maemo5/qmake.conf', needed by `Makefile'.  Stop.14:57
dotblankI think it has to do with debian/rules14:57
Lullendid you take mine?14:57
Lullenthat one is from the wiki and it does work14:57
lcukdotblank, wheres your makefile14:58
dotblankmake is generated by qmake14:58
dotblankmakefile14:58
*** Venemo has joined #maemo-devel15:00
*** csaavedra has quit IRC15:02
dotblankhttp://www.gossamer-threads.com/lists/maemo/developers/6098215:05
Venemodotblank: I'm sorry, I just arrived, but I see you have packaging issues, right?15:14
dotblankVenemo, correct15:14
dotblankhttps://garage.maemo.org/builder/fremantle/groove_0.3-1/armel.build.log.FAILED.txt15:15
LullenVenemo15:15
dotblankoh nice15:15
Lullendid you get how I solved my problem?15:15
dotblankI got based the first issue I had15:15
dotblankhttps://garage.maemo.org/builder/fremantle/groove_0.3-1/armel.build.log.FAILED.txt15:16
dotblanknow for my new issue15:16
VenemoLullen, yes15:16
Lullengood :)15:16
VenemoLullen, you help me avoid the same problem15:16
Venemohelped*15:16
Lullenbeen looking for you for days because I forgot to tell you15:16
Lullendotbland, we should create a repo that only make you have to upload a15:17
VenemoLullen, I was here when someone told you the solution :)15:17
Lullen.deb15:17
Venemodotblank: /usr/bin/rcc: File does not exist '../reasource.qrc'15:17
LullenYe I know but you might have missed it :P15:17
Venemodotblank is it really named 'reasource'?15:17
Venemodotblank: not 'resource'?15:18
dotblankVenemo, actually I really didn't bother with it15:18
VenemoLullen, okay, thank you :)15:18
dotblankVenemo, like i don't use that file at all15:18
Venemodotblank: then remove it from the .pro file15:18
dotblankVenemo, I'm about to.. the parser.h error I have is related to me not setting includes correctly15:18
dotblankk15:19
Venemothe auto builder doesn't care if you use it or not15:19
LullenVenemo, you tried to help me and for that I will always try to help you15:19
Lullensame goes for dotblank15:19
VenemoLullen: thanks, you are very generous :)15:19
Lullenmore wine FTW!15:19
Venemodotblank: can I take a look at your .pro file?15:19
*** VDVsx has joined #maemo-devel15:19
dotblankVenemo, sure one sec i'm fixing them15:20
LullenIts more about me being angry with the community not helping (been posting like 10 threads at the forum and no one helps)15:20
Lullenjust look at my qexercise thread it is like 3 ppl that talks in it :(15:21
Venemodotblank: the INCLUDEPATHs usually should begin with /usr/...15:21
Venemodotblank: see this one: http://vcs.maemo.org/svn/eve-watcher/trunk/poc/sticky-notes/sticky-notes/src/QtExtensions/QtExtensions.pri15:21
dotblankhttp://pastebin.com/EQGKrbzi15:22
dotblankthis is the modified one15:22
dotblankI forgot to change the location on the last upload to the autobuilder15:23
Lullendoes anyone of you work with programming?15:24
*** VDVsx has quit IRC15:24
VenemoLullen: I do, but I don't use Qt/C++ at work15:24
dotblankright now this my hobby15:25
dotblanklearning qt4/c++15:25
dotblankso far its pretty cool15:25
dotblankim soo close15:28
dotblankhttps://garage.maemo.org/builder/fremantle/groove_0.3-2/armel.build.log.FAILED.txt15:28
dotblankLullen, I fixed the first error by copying your debian/rules15:31
Lullennice15:35
dotblankomg15:37
dotblankit built15:37
dotblankYES!15:37
dotblankmaemo-optify-deb: mode auto15:38
dotblankgroove: optified 0 entries, saving about 0 kB.15:38
dotblank:(15:38
Venemodotblank: ?15:40
dotblankim just wondering why optify didn't save any space15:41
*** DigitalPioneer is now known as DocScrutinizer15:43
dotblankoh wow ok the package still isn't right15:45
dotblankim going to get this working15:46
*** JPohlmann has joined #maemo-devel15:49
Venemodotblank: optification is done by setting target.path to a path in /opt15:55
Venemoeg.15:55
Venemotarget.path = /opt/sticky-notes/15:55
dotblankah om15:55
dotblankah ok15:55
Venemoalso, if it is an app, you should provide a .desktop file if you want it to have an icon in the app menu15:55
dotblankwell I found deeper issues15:56
Venemooh15:56
Venemofor example?15:56
dotblanklike the .deb it generates doesn't seem to have the binary in it15:56
dotblankbefore it did.. now it doesn't15:56
dotblankkinda a big thing15:56
Venemoomg15:56
Venemoshow me the deb15:56
dotblankk one sec15:57
dotblankhttp://encodable.com/cgi-bin/filechucker.cgi?action=landing&path=/&file=groove_0.3-2_armel.deb15:58
dotblankits a bit odd15:58
dotblanknvm I think I found out why the .deb file doesn't have the binary16:00
*** lizardo has joined #maemo-devel16:00
dotblankok now its good16:01
*** eitama_ has quit IRC16:05
*** fiferboy has joined #maemo-devel16:05
*** fiferboy has quit IRC16:05
*** fiferboy has joined #maemo-devel16:05
Venemodotblank: don't worry16:06
Venemodotblank: it failed 10 times for me before I finally got mine to work16:06
Venemodotblank: then another 3 revisions till I fixed an issue with postinstall and prerm scripts :D16:07
dotblankI think I'm finally getting this16:07
dotblankoh jeez16:07
mortiniyeah, packaging takes time to get proper16:07
mortini(i think with any packaging system)16:07
*** eitama has joined #maemo-devel16:08
dotblankI was able to build on ubuntu's buildsystem16:08
dotblankthat was really picky16:08
dotblanktook me a long time to fiquire that one out16:08
dotblankim just amazed at how complicated the autobuilder really is16:11
dotblankI mean wow16:11
dotblankand how it actually works too16:11
dotblankits scary16:11
*** eitama has quit IRC16:15
*** ppenz has quit IRC16:18
dotblankgroove: optified 1 entries, saving about 132 kB.16:22
dotblank;)16:22
Venemo:)16:25
Venemocongrats16:25
*** _Lucretia_ has quit IRC16:28
*** _Lucretia_ has joined #maemo-devel16:32
_0x47dotblank: you said you were building using ubuntu's buildsystem? do you mean you got rid of the scratchbox SDK thingy?16:35
dotblank_0x47, well what I did is made a symlink into the scratchbox16:37
dotblankso I can easily build in and out of the sbox16:37
_0x47dotblank: i'm having serious issues with building in the sbox, prolly due to outdated packages. So would this help me there? Can I build for armel from outside the sbox?16:38
dotblank_0x47, no you can't build for armel outside the sbox.. I built separate binaries for my desktop x64 computer16:39
dotblankI programed my app to be truly cross platform16:40
_0x47so that doesn't hepl me much :( thanks anyway16:40
_0x47that's a good thing :)16:40
dotblank_0x47, no proeblem16:40
Venemo_0x47: perhaps try to get yourself an up-to-date version of Scratchbox?16:40
_0x47it's pretty up to date from sbox point of view, it's just that the packages inside are damn old and I even have difficulties to satify build dependencies. or is there a way to get the sbox updated to some really new, shiny versions?16:42
dotblankVenemo, do you have extras devel enabled on your n900?16:42
_0x47Venemo: also, iirc you're the c++ pro guy, right? mind looking at a compile error for me? dunno if it makes sense if you don't know most of the sources...16:43
Venemodotblank, of course16:43
Venemo_0x47: I'm not a pro, at all16:44
dotblankdoes apt-get install groove work?16:44
Venemo_0x47: but I can take a look, if you give me a link16:44
Venemodotblank: a moment, I'll try16:44
_0x47Venemo: oh, you _don't_ user c++ lol16:45
_0x47nvm then16:45
_0x47use*16:45
Venemo_0x47: I had a university semester in C and another in C++16:45
Venemo_0x47: I've been using Qt for a few weeks16:45
Venemo_0x47: but, you may show me the source :)16:46
Venemo_0x47: I gladly take a look16:46
_0x47Venemo: That's neat, thanks a lot. It's not a project of mine, I'm trying to port an existing project. If you don't mind I'll send you that link to a board I was already explaining the issue: http://forum.vcmi.eu/viewtopic.php?t=327 Don't hesitate to answer here, I'll let them know if you could figure it out.16:47
_0x47This is actually the original project site.16:48
Venemookay, wait a little16:48
_0x47sure16:48
Venemothis seems to be the error (among many warnings):16:49
VenemoIn file included from  ../hch/CMusicHandler.cpp:11:16:49
Venemo../hch/CMusicHandler.h:24: error: using typedef-name 'Mix_Chunk' after  'struct'16:49
_0x47correct16:49
_0x47keep in mind it builds on my ubuntu machine16:49
Venemookay16:49
_0x47let me also send you a link to the svn if you want to take a look16:49
Venemolink to the source, pls16:50
_0x47Here we go: http://vcmi.svn.sourceforge.net/16:50
_0x47I updated to rev 1613 in the meantime, same issue16:50
_0x47so no need to change the revision16:50
Venemohm16:52
Venemothis is weird16:53
_0x47Indeed :/16:53
Venemowhat if you put line 25 before line 23?16:53
_0x47Let me try16:53
_0x47you mean struct Mix_Chunk; before typedef struct _Mix_Music Mix_Music; ?16:54
_0x47in .h16:54
Venemono16:55
Venemo"  struct Mix_Chunk; " before "struct _Mix_Music; "16:56
_0x47ah ok, sry16:56
Venemoit complains about the struct being there after the typedef16:57
Venemoalthough I don't know why is that the issue, just change the order and see what happens16:57
_0x47That makes sense. Let me try to build, it takes a while. I'll come back here...16:57
Venemookay16:58
Venemothis was just a guess, btw16:58
Venemoit is possible that the real problem is something else16:58
*** achipa has joined #maemo-devel16:59
*** amigadave has quit IRC17:07
_0x47Venemo: The error changed slighly, let me pastebin it for you.17:10
_0x47Venemo: http://pastebin.com/8YnQbyLW17:11
_0x47God damned, my fault17:11
_0x47Building again...17:12
Venemoehhem, okay17:13
_0x47I messed it up, the hot weather makes me think slow I guess, 2 minutes and we should have a result.17:14
Venemookay, no problem17:14
VenemoI know the feeling17:14
_0x47Venemo: Well the error didn't change, the source did tho. Source: http://pastebin.com/NQJMkCJC Error: http://pastebin.com/qgALyhZG17:18
_0x47Mix_Chunk is something from libsdl-mixer btw, so it might be a problem that the struct is declared in the CMusicHandler.h file. But if I remove the struct from the header file it complains about it being not declared. :/17:20
Venemoaaah17:20
Venemookay17:20
Venemoso Mix_Chunk is a typedeffed name17:20
Venemotherefore it may not be used as the name of a struct, either17:21
_0x47err... yes?17:21
Venemobtw, if it is already declared any typedeffed17:21
Venemoyou should not define it at all17:22
_0x47That kinda makes sense, but how would you explain it builds on my Ubuntu machine? And how would you try to solve this?17:22
Venemowhat happens if you delete its declaration?17:22
Venemodelete the line "struct Mix_Chunk;" alltogether17:22
Venemoit is not used anywhere in the source17:22
_0x47I already tried that, it will complain about it being not there when used later in the .h file.17:23
_0x47it is17:23
Venemomore correctly: "Mix_Chunk" is used, but "struct Mix_Chunk" is not17:23
_0x47let me point it out17:23
_0x47One guy from #vcmi told me the CMusicHandler should actually be disabled completely from what he knows.17:23
_0x47http://vcmi.svn.sourceforge.net/viewvc/vcmi/trunk/hch/CMusicHandler.h?revision=1558&view=markup17:23
_0x47line 73 and 7517:23
Venemothat is misleading17:23
Venemoit is "Mix_Chunk", and not "struct Mix_Chunk"17:24
_0x47regarding the disabled thing, I'm wondering if it may have something to do with the existing ./configure in the sources. As I try to build a .deb I guess it might not make use of it. May it be disabled by configuration, hence letting me compile with it on my Ubuntu machine?17:24
_0x47ok, anyways, let me comment the struct Mix_Chunk out and show you the prob.17:25
Venemookay17:25
Venemowell17:25
_0x47Any thoughts about the .configure thing while it compiles?17:25
Venemodifferent compilers may treat these stuff differently17:25
Venemoafaik, such declaration, and then using it that way is not valid17:26
_0x47Yeah, that was my best guess too, at least due to the SDK using really old stuff.17:26
_0x47i see17:26
*** eitama has joined #maemo-devel17:26
_0x47Venemo: I have to leave. Hope you'll be here in a few days as I am gone for the weekend. Either case if I could sort it out (or someone helping me) I'll let you know too.17:28
_0x47sec, I'll post you the error before I leave17:28
_0x47(Removed struct) http://pastebin.com/SqCpzxSZ17:29
Venemoookay17:29
_0x47k g2g, thanks for your help! :)17:29
Venemohm17:29
Venemowait a minute17:29
_0x47ok, i'm in hurry, fast :)17:30
Venemo_0x47: what happens if you include the header in which  Mix_Chunk is declared?17:30
_0x47same thing, also tried. it's actually included in the .cpp17:30
Venemono17:30
Venemowhat happens17:30
Venemoif you include it into that .h?17:30
Venemoeg: still get rid of "sruct Mix_Chunk", but include the file that defines it17:31
_0x47yeah, i tried that already, doesn't change anything. In fact I tried all combinations of removing or adding the SDL_mixer.h and struct.17:32
_0x47I meant the SDL_mixer.h also in the .cpp, if that changes anything.17:32
_0x47Venemo: I really have to leave, people are about to hit me if I won't stand up17:33
_0x47I'll come back here on Sunday17:33
_0x47bb17:33
Venemookay17:33
Venemobb :)17:33
dotblankVenemo, did you get a chance to see if it installs?17:33
Venemodotblank: I'm trying now, was busy17:34
Venemodotblank: sorry :)17:34
dotblankthats ok17:34
Venemodotblank: installed17:34
dotblankdoes it run17:34
dotblankgroove is the command17:34
Venemodotblank:17:35
Venemorun-standalone.sh groove -> this17:35
dotblankyea well there are some issues17:36
dotblanklike QNetwork seems broken in my sbox17:36
Venemodotblank: although it doesn't have an icon in the app menu17:36
dotblankat least on the i36617:37
Venemodotblank: I searched for Bolero, and it found it17:37
Venemodotblank: although nothing happens when I hit play17:37
dotblankVenemo, give it time to play17:37
dotblankI haven't added a progress bar yet17:37
Venemookay17:37
dotblankVenemo, is it on wifi?17:37
Venemodotblank: yes17:37
Venemodotblank: doesn't seem to do anything17:38
dotblankmake sure your profile isn't on silent17:38
dotblankand volume is up17:38
Venemodotblank: I'm listening through earphones17:38
Venemodotblank: ah, yes, the volume is very low17:38
dotblankI had at one point a progress bar and it was super slick but I had to rewrite a lot of the program so im going to add the progress bar in the next update17:39
Venemoalthough it is rather an issue with the music itself, not the app :)17:39
Venemodotblank: a regular song plays well17:40
Venemoit found Nemo from Nightwish17:40
Venemohm17:40
Venemowhat is this, btw?17:40
Venemosome sort of music-pirating app?17:40
dotblankits a listen.grooveshark.com client17:41
Venemooh17:41
Venemookay17:41
Venemowhat does the "Song" button do?17:41
dotblankit will support artist and album search17:41
Venemooooh17:41
Venemookay :)17:41
Venemodotblank: the playlist feature is not working, either17:42
dotblankVenemo, yup its not added. the playlist class and core is implemented not the gui yet17:43
Venemodotblank: okay :)17:43
dotblankit has some work to go but im learning c++ as I write this app17:43
Venemodotblank: is this a Qt app?17:43
dotblankyes17:43
Venemowhat sort of IDE and SDK do you use?17:44
dotblankNokia QtCreater beta and sbox17:44
Venemookay17:44
dotblankI run ubuntu 10.0417:44
Venemodo you use .ui files?17:44
dotblankx6417:44
dotblankno17:44
Venemouh-huh17:44
Venemowhy not?17:44
Venemothat would make it bloody easy for you to make UIs17:45
dotblankI felt since it was aQt:app forms wouldn't work well with portrait modes and appear weird on other platforms17:45
Venemothat is not the case17:45
dotblankVenemo, plus im kinda going the hard route to learn qt417:45
Venemohm, well17:46
dotblankVenemo, well I dopn't really know17:46
Venemoif you listen to my opinion17:46
dotblankI just kinda stuck with it17:46
Venemoyou should let yourself focus on the app itself, and not the UI17:46
Venemothe .ui files is basically a convenience feature that spares you the adding of UI elements from C++ code17:46
dotblankyea thats what I mainly been doing.. the playlist support is there just no ui yet17:47
Venemodotblank: I even use a .ui for sticky notes17:47
dotblankVenemo, really?17:47
Venemodotblank: it has 3 buttons and a text box, but still, it makes it so much easier17:47
dotblankVenemo, maybe I'll use UI files later or convert them all17:47
*** csaavedra has joined #maemo-devel17:48
Venemodotblank: it is not something evil17:48
Venemodotblank: it spares you the headache of manually doing thing17:48
Venemodotblank: if you're doing software development, you should automate as many things about it as you can17:48
dotblankVenemo, I see your point. its just I had no idea what the best/optimal practice is with programming yet17:49
Venemodotblank: no worries17:49
Venemodotblank: this is a very promising app :)17:49
dotblankAlthout 90% of my headaches are not with the ui elements17:49
dotblankits the network communication17:50
dotblankand how to layout classes without being too modular17:50
Venemohm17:50
Venemoare you a beginner with programming in general, or just with Qt?17:51
dotblankMy rewrite I worry adds a lot more conditional statements which slows down performance whilst downloading17:51
dotblankI'm a begginer17:51
dotblankalthough ive fiddled with c before17:51
dotblanknothing this scale17:51
Venemo"a lot more conditional statements which slows down performance whilst downloading" -> what do you mean?17:52
dotblankok let me get an example17:53
Venemowhat do you mean by "conditional statement"?17:53
dotblank!pList->at(this->currentdownloaditem)->bufferready gets called everytime a new packet of data arrives17:53
Venemoand?17:54
dotblankI just think its starting to add up because thats not the only condition17:54
Venemowhat is the condition in this stuff?17:54
dotblankand I noticed slower performance since I added more code in that section17:54
Venemooh.17:54
Venemowell, don't worry17:55
Venemothe people in this community are very helpful17:55
dotblankI've already gotten lots of help17:55
Venemofirst, focus on having it working17:55
dotblankI actually went on #qt17:55
Venemothen you can start optimizing it17:56
dotblankand a guy helped me get phonon working with network streams17:56
dotblankbecause no one really knew it could be done17:56
dotblankat least no one tried17:56
dotblankwhich I found very odd17:56
Venemowhat is phonon?17:56
dotblankits the library I use for media playback17:57
Venemooh.17:57
Venemookay17:57
Venemohm17:57
Venemodoesn't qt have something for that?17:57
dotblankyou can specify urls for download but I needed more control so I had to create my own buffers and other things to get it to work17:57
dotblankyea its libqt-phonon17:57
dotblankI use it17:57
Venemoah, okay17:58
dotblankhas some issues though17:58
dotblankperformance wise I think its a bit of a hog17:58
Venemowell17:58
dotblankits about 30% cpu playing music + pulse17:59
Venemowhat makes you think that the default version is quicker?17:59
Venemofor me, it barely used the CPU17:59
dotblankVenemo, what default version?17:59
Venemothe one that you just give a URL17:59
dotblankVenemo, oh that will still use the same cpu18:00
dotblankVenemo, but there is a bug with phonon not scalling the data length internally for the size of the incoming network stream18:00
dotblankso I had to hack phonon to get it to work18:00
dotblank            StreamIO* stream = (StreamIO*) media->currentSource().stream();18:01
dotblank            stream->setStreamSize(pl->getBuffer(p)->size());18:01
*** gsever has joined #maemo-devel18:01
gseverhello18:01
Venemodotblank: well okay18:01
gseverI have some installation problems following the instructions at http://wiki.forum.nokia.com/index.php/Maemo_5_SDK_installation_for_beginners18:01
Venemodotblank: don't worry about it18:01
gseverat Maemo 5 SDK installation step18:01
Venemodotblank: just make it work, then you can worry about optimizing18:02
dotblankVenemo, im actually happy with it now.. I actually think it stutters less then the media player18:02
gseverusing a Ubuntu 10.04 desktop in VirtualBox18:02
Venemogsever: if I were you, I would try the Nokia Qt SDK18:02
gseverhmm18:02
gseverI want to build my own kernel :D18:02
Venemogsever: oh. omg. sorry then :)18:02
gseverso I want to setup my own scratchbox env18:03
gseveractually I did18:03
Venemogsever: okay18:03
gseverhttp://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Kernel_and_Debugging_Guide/Maemo_Kernel_Guide18:03
gseverbut but but18:03
Venemogsever: I have no experience with Scratchbox18:03
gseverthis guy fails me18:03
gsever./maemo-sdk-install_5.0.sh18:03
gseverI am trying it for the third time18:03
Venemodotblank: if you ever need help with user interface design, I can help18:04
Venemonah, I have to go now18:04
Venemobye guys :)18:04
mortinigsever: under which os?18:04
gseverit is getting the packages, but during the installation phase it gives me bunch of errors and quit18:04
gseverusing a Ubuntu 10.04 desktop in VirtualBox18:04
mortini32 bit?18:05
eitamaafaik it's only supposed to run under 8.04 ?18:05
mortinii used 9.10 and it worked fine18:05
gseveryes 3218:05
mortinii'd probably try that first18:05
eitamaMaybe, but installation without bumps and problems is tested on 8.0418:05
mortinior if you paste the errors they might be of some help18:05
gseverpahh can I manually install say only apt-get in scratchbox18:05
gseverI don't need all other packages actually18:05
gseverI should be fine getting apt-get only18:06
gseverfor kernel build18:06
gseverI didn't see any way to build maemo kernel on N900 itself18:06
gseveryep I will paste errors once it completes the download phase18:06
gseverin the meantime I could try installing apt-get only in my scratchbox session18:07
*** Venemo has left #maemo-devel18:07
gseverI can't execute this command: [sbox-MaemoKernel: ~] > fakeroot apt-get update  since apt is missing in my scratchbox18:10
gsevernor this one apt-get source kernel18:10
*** rrlix has joined #maemo-devel18:14
gseverhere a sample error:18:14
gseverdpkg: error processing pulseaudio-module-hal (--configure):  dependency problems - leaving unconfigured dpkg: too many errors, stopping18:15
gseverin the end18:15
gseverProcessing was halted because there were too many errors. E: Sub-process /scratchbox/devkits/debian-etch/bin/dpkg returned an error code (1) E: Unable to install maemo-sdk-dev on FREMANTLE_ARMEL target. E: Please check the sources.list for errors. E: Scratchbox login returned error 100.18:15
*** gsever has quit IRC18:19
*** bricks has left #maemo-devel18:34
*** lcuk2 has joined #maemo-devel18:35
*** lcuk has quit IRC18:37
rrlixHi, I am trying to catch some signal in my client using dbus_g_proxy_connect_signal but It doesn't work,  I am using like reference the code of http://static.maemo.org/static/0/0a283372fdb911dd80aed97025304c974c97_source_code_for_the_glib_d-bus_signal_example.pdf, how I can debug that ?  Can I enable some debug option to see what is happening?18:44
*** JPohlmann has quit IRC18:59
*** gsever has joined #maemo-devel19:02
gseverhi again19:02
gseverI was trying to make an apt-get work from within a scratchbox session19:03
gseverthis command from ./maemo-sdk-install_5.0.sh19:03
gseverwas failing on Ubuntu 10.04 desktop (32-bit) within virtualbox19:03
gseverfunnily, I can't fake it using:19:04
gsever[sbox-MaemoKernel: ~] > fakeroot /scratchbox/devkits/apt-https/bin/apt-get source kernel E: Unable to determine a suitable packaging system type19:04
gseverany ideas?19:04
*** csaavedra has quit IRC19:06
gseverlet me ask another question19:06
gseveris it possible to build maemo kernel from withing the maemo itself (on N900) without dealing with scratchbox and such?19:07
SpeedEvilyes19:12
SpeedEvilcp / /home/user/chroot (with the right flags)19:12
SpeedEvilcd /home/user/chroot19:12
SpeedEvilinstall the sdk repository19:12
SpeedEvil(after chroot . /bin/sh)19:12
SpeedEvilthen apt-get build-essentials19:12
SpeedEvilhowever - I haven't gotten the kernel I built booting19:13
SpeedEvilI haven't tried for a while.19:13
gseverok let me try this thing first19:13
gseverwhen I do apt-get source kernel19:13
gseverwhat does it fetch from http://repository.maemo.org/pool/fremantle/free/k/kernel/19:13
gseverI mighty manually get the file or files to give scracthbox based setup a try19:14
SpeedEvilno isea19:14
*** azakai has joined #maemo-devel19:17
gseverhehe not many kernel builders around I suppose :)19:18
*** achipa has quit IRC19:25
gseverinterestingly19:28
gseverwhen I put these two lines in my /etc/apt/sources.list19:28
gseverdeb http://repository.maemo.org/ fremantle/sdk free non-free deb-src http://repository.maemo.org/ fremantle/sdk free19:29
gseverand when I issue out of scratchbox "apt-get source kernel"19:29
gseverhehe it stopped complaining :D19:30
gsevernevermind19:30
gseverok figured it is getting kernel_2.6.28.orig.tar.gz19:33
*** gsever has left #maemo-devel19:49
*** csaavedra has joined #maemo-devel20:00
*** Ian-- has quit IRC20:07
*** Ian-- has joined #maemo-devel20:16
*** gsever has joined #maemo-devel21:55
gseverhello21:55
gseverany kernel compilers around :D21:55
gsevercould someone give some insight on this topic? http://talk.maemo.org/showthread.php?p=72936722:07
*** csaavedra has left #maemo-devel22:18
*** T7g has quit IRC23:16
*** kamui__ has joined #maemo-devel23:19
*** shinkamui has quit IRC23:23
*** csaavedra has joined #maemo-devel23:24
*** gsever has quit IRC23:27
*** T7g has joined #maemo-devel23:29
*** T7g has quit IRC23:30
*** T7g has joined #maemo-devel23:32
*** lizardo has quit IRC23:52

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!