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] problem with SDK version 5 June 2014
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. 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