Re: [SailfishDevel] problem with SDK version 5 June 2014
On 12.06.2014 20:35, Iosif Hamlatzis wrote: I uninstalled previous SDK and did a clean installation of the latest SDK (SailfishOSSDK-Alpha-1406-Qt5-windows-offline.exe) under Windows XP SP3 Compilation now fails with error: error: Failed build dependencies: pkgconfig(sdl2) is needed by harbour-wanted-1.0.1-1.armv7hl pkgconfig(glesv1_cm) is needed by harbour-wanted-1.0.1-1.armv7hl pkgconfig(SDL2_image) is needed by harbour-wanted-1.0.1-1.armv7hl pkgconfig(SDL2_ttf) is needed by harbour-wanted-1.0.1-1.armv7hl pkgconfig(SDL2_mixer) is needed by harbour-wanted-1.0.1-1.armv7hl pkgconfig(audioresource) is needed by harbour-wanted-1.0.1-1.armv7hl pkgconfig(glib-2.0) is needed by harbour-wanted-1.0.1-1.armv7hl I have used zypper command line utility to install the normal and development libraries for SDL2, SDL2_image, SDL2_ttf, SDL2_mixer, glib-2.0, audioresource, glesv1_cm and glesv2 libraries. Hi, where and how exactly did you install those packages? The MerSDK virtual machine has two scratchbox2 build targets where the packages should be installed using the sb2 command. You can also use zypper to install exactly what you're seeing in the failure. Here's an example of how to install packages to the arm target: First ssh to the MerSDK virtual machine as user mersdk and then: [mersdk@SailfishSDK ~]$ sb2 -t SailfishOS-armv7hl -R -m sdk-install zypper install 'pkgconfig(sdl2)' This makes the sdl2 development files available to the arm build target. You should do the same for the other build requirements. I'm guessing here, but perhaps you have installed the packages to the MerSDK virtual machine and not in the build target? Looking at your spec file below, I can see that it is not compatible with the Qt Creator based approach we have. That approach requires that the project is a Qt project with a .pro file and a qmake step (which would automatically install the build dependencies to the build target). If you are familiar with IRC, you are welcome to join #sailfishos channel in freenode for a more interactive discussion with other developers. It's difficult and slow to try to solve problems over e-mail in a case where the project is not what the SDK is directly supporting. Best regards, Juha My .spec file is: Name:harbour-wanted Summary: A video slot game with bandits Version: 1.0.1 Release: 1 Group: Games License: Proprietary URL: http://7cecdab4.blogspot.gr/2014/04/wanted.html Source: %{name}-%{version}.tar.bz2 BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(glesv1_cm) BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(SDL2_image) BuildRequires: pkgconfig(SDL2_ttf) BuildRequires: pkgconfig(SDL2_mixer) # for playing sound on DEVICE BuildRequires: pkgconfig(audioresource) BuildRequires: pkgconfig(glib-2.0) # for playing sound on DEVICE %description A video slot game themed with sheriff and bandits %prep %setup -q -n %{name}-%{version} %build # Command used to compile the application make %install rm -rf %{buildroot} # Command used to install files into %{buildroot} %make_install %files %defattr(-,root,root,-) %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/86x86/apps/%{name}.png ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] problem with SDK version 5 June 2014
My SDK installation folder is C:\SailfishOS\ so I went in the C:\SailfishOS\vmshare\ssh\private_keys\engine folder and used the root keys to ssh, I'm sorry don't remember which port I used. Then I used zypper install sdl2-devel and so on to install all my required libraries. This morning before coming to work I tried something else on a new project. By default when creating a new project I noticed that the IDE creates two steps for compiling. The first step calls qmake.cmd and the second calls make.cmd both from folder C:\Documents and Settings\Miami\Application Data\SailfishAlpha4\mer-sdk-tools\MerSDK\SailfishOS-armv7hl These two scripts do exactly the same thing just calling different executable (ie qmake and make), BUT a crucial difference is that when calling qmake.cmd it not only understands the prerequisite libraries but installs them also, which doesn't happen when calling make.cmd. As I have more serious issues with qmake.cmd (have emailed to the list in the past that when calling qmake.cmd there is no distinction between errors and warnings and I cannot double click the warning/error and the IDE jump to the problematic line) I deleted that step and call only make.cmd which just reports the missing prerequisite libraries but doesn't install them. So my solution is: I created a skeleton/dummy project where I define my libraries and compile it using only qmake.cmd so they are installed on the system and then I use make.cmd for all other projects ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Prototype 'TextBaseItem' from 'TextBase' could not be resolved (M301)
Hello The IDE gives me en error on the TextField element. I couldn't find anything to resolve it. Thank you for your inputs! Markus [Translated to english from the german error message:] Prototype 'TextBaseItem' from 'TextBase' could not be resolved (M301) This is the page structure I use: import QtQuick 2.0 import Sailfish.Silica 1.0 Page { id: myPage SilicaFlickable { id: flick ... Column { id: contentColumn ... PageHeader { title: My Title } TextField { id:textEditor ... } } } } ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] rpminstall signal packageStatusChanged
Seems it was a thread issue. my RpmInstall class was constructed in a different thread(SailClient) from mainthread below lines (parent is main class) fixed it: (Actually I need to read more about how threads works in Qt kinda confusing...) moveToThread(parent-thread()); setParent(parent); But now I got a bit confused again because I noticed that my phone emited alot of status 1 for other packages already installed :S is this correct? just a short dump(the full log is alot bigger): .. [D] RpmInstall::onPackageStatusChanged:37 - install (not mine ignored) jolla-email- all-translations-pack status 1 [D] RpmInstall::onPackageStatusChanged:37 - install (not mine ignored) jolla-email- settings status 1 [D] RpmInstall::onPackageStatusChanged:37 - install (not mine ignored) jolla- firstsession status 1 . code: void RpmInstall::onPackageStatusChanged(const QString filename, int status) { SailHttpServer *server = dynamic_cast SailHttpServer *(parent()); if (installFilename != filename) { qDebug() install (not mine ignored) filename status status; return ; } qDebug() install filename status status; if (status == 1) // installed { if (server server-property(removeRpmAfterInstall).toBool()) { QFile file(filename); file.remove(); } } } On Thursday, June 12, 2014 16:34:44 Kimmo Lindholm wrote: does QDBusConnection::sessionBus().lastError().message() give any details on error? From: devel-boun...@lists.sailfishos.org [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Mikael Hermansson Sent: Thursday, June 12, 2014 10:25 AM To: sailfish-devel Subject: [SailfishDevel] rpminstall signal packageStatusChanged I want to connect to the signal packageStatusChanged from the harbour FAQ I read this: signal path=/StoreClient; interface=com.jolla.jollastore; member=packageStatusChanged string filename.rpm int32 0 (not installed?), 1 (installed?) and 2 (progressing?) But I have problem getting the receive the signal from jollastore in my app I connect to the store using QDBus API : result = QDBusConnection::sessionBus().connect(com.jolla.jollastore, /StoreClient, com.jolla.jollastore ,packageStatusChanged, this, SLOT(onPackageStatusChanged(QString,int))); qDebug() DBUSconnect== result; However the signal seems not connect since it returns: [D] RpmInstall::RpmInstall:19 - DBUSconnect== false the signal is not emited... Any idea what I do wrong? Regards Mikael -- Put mankind back on earth -- Put mankind back on earth ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Call for Moderators ( ML, TJC, IRC)
We need community help with moderating... Just yesterday I was thinking about this! I'd like to add tmo to the list, quiet alot of people, devel or not are on talk.maemo.org and some moderators for the SailfishOS part could come handy at this point. I don't mind *Jolla to have moderator accounts too. If you want to take a share contact me (chem|st in #jollamobile/#sailfishos). You want to moderate more than SailfisOS subforums? Just add a list what subforums you would be interested in. so long and thanks for all the fish RĂ¼diger Schiller maemo.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Cover Page Image
I've had an app in development for ages and I've always been able to have an image on the cover page. I've started another app today - created from the template (New File or Project ...) - and using the same code for the cover page, Creator is complaining that it can't find the image. Here's the first bit of code for the cover page. What am I doing wrong / need to check to make this work again? import QtQuick 2.0 import Sailfish.Silica 1.0 CoverBackground { id: coverpage anchors.centerIn: parent Image { id: logo source: images/fuelpad.png anchors.centerIn: parent } For info, the images folder is inside the qml folder so the folder structure is Fuelpad qml cover alongside images, pages and the Fuelpad.qml file. I've searched the mail list since August of last year and nobody seems to have suffered from this problem. Any help appreciated. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Cover Page Image
On Fri, 13 Jun 2014 14:32:44 +0100 Chris Walker cdw_noki...@the-walker-household.co.uk wrote: I've had an app in development for ages and I've always been able to have an image on the cover page. I've started another app today - created from the template (New File or Project ...) - and using the same code for the cover page, Creator is complaining that it can't find the image. Just in case anybody is tempted to ask, there is a line in the .pro file specifying where to find the image. Here's the first bit of code for the cover page. What am I doing wrong / need to check to make this work again? import QtQuick 2.0 import Sailfish.Silica 1.0 CoverBackground { id: coverpage anchors.centerIn: parent Image { id: logo source: images/fuelpad.png anchors.centerIn: parent } For info, the images folder is inside the qml folder so the folder structure is Fuelpad qml cover alongside images, pages and the Fuelpad.qml file. I've searched the mail list since August of last year and nobody seems to have suffered from this problem. Any help appreciated. Is this relevant to my problem above? I don't see how, but you never know! error: unpacking of archive failed on file /usr/share/scratchbox2/modes/sdk-build: cpio: rename failed - Is a directory This was from an attempted update after the above failure. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org