We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2015-01-26 18:33:00 +0200 |
I would like to contribute some features to sailfish-office (the pdf viewer plugin). So here is how far I progressed on the way, this might apply to eg the sailfish-browser as well
Find the source https://github.com/sailfishos/sailfish-office
fork/clone it
create a checkout (of your fork)
git clone git@github.com:sailfishos/sailfish-office.git
open some (new/placeholder) project in the sailfish IDE
start the SDK
ssh into the SDK login in to the mer sdk as user "mersdk":
ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
go to the checkout dir (your home dir is mounted in ~/share/)
cd ~/share/path/to/the/code/sailfish-office/
try compiling an rpm
For the emulator:
mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build
For your device:
mb2 -t SailfishOS-armv7hl -s rpm/sailfish-office.spec build
Notice missing dependencies
[mersdk@SailfishSDK sailfish-office]$ mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build Package 'libjollasignonuiservice-qt5-devel' not found. Building target platforms: i486-meego-linux-gnu Building for target i486-meego-linux-gnu error: Failed build dependencies: libqt5sparql-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5 is needed by sailfish-office-1.1.5-1.i486 poppler-devel is needed by sailfish-office-1.1.5-1.i486 cmake is needed by sailfish-office-1.1.5-1.i486 libjollasignonuiservice-qt5-devel is needed by sailfish-office-1.1.5-1.i486
STOP following here
install dependencies
sudo zypper in libqt5sparql-devel poppler-qt5-devel poppler-devel cmake
fail
There is no package providing libjollasignonuiservice-qt5-devel
Installing the other packages does not in fact make mb2 happy, ie
[mersdk@SailfishSDK sailfish-office]$ mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build Package 'libjollasignonuiservice-qt5-devel' not found. Building target platforms: i486-meego-linux-gnu Building for target i486-meego-linux-gnu error: Failed build dependencies: libqt5sparql-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5 is needed by sailfish-office-1.1.5-1.i486 poppler-devel is needed by sailfish-office-1.1.5-1.i486 cmake is needed by sailfish-office-1.1.5-1.i486 libjollasignonuiservice-qt5-devel is needed by sailfish-office-1.1.5-1.i486
remains as the output.
Manuall compilation:
have a look at rpm/sailfish-office.spec:
BuildRequires: pkgconfig(Qt5Quick) BuildRequires: pkgconfig(Qt5Widgets) #BuildRequires: pkgconfig(Qt5WebKit) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: libqt5sparql-devel BuildRequires: poppler-qt5-devel poppler-qt5 poppler-devel poppler BuildRequires: mapplauncherd-qt5-devel BuildRequires: cmake BuildRequires: qt5-qttools-linguist BuildRequires: libjollasignonuiservice-qt5-devel
so we need to install all of this (additionally to what was installed above)
sudo zypper in qt5-qtdeclarative-qtquick-devel qt5-qtdbus-devel qt5-qttools-linguist mapplauncherd-qt5-develhowever, again, libjollasignonuiservice-qt5-devel is actually not in the repo, so we cant install it
mkdir build cd build cmake ../sailfish-office/
will fail with
[mersdk@SailfishSDK build]$ cmake ../sailfish-office/ -- The C compiler identification is GNU 4.6.4 -- The CXX compiler identification is GNU 4.6.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found QtSparql: /usr/include/Qt5Sparql -- Found Booster: /usr/include/mdeclarativecache5 -- Could NOT find libjollasignonuiservice (missing: JOLLASIGNONUISERVICE_INCLUDE_DIR JOLLASIGNONUISERVICE_LIBRARY) -- Found Poppler: /usr/include/poppler/cpp CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: JOLLASIGNONUISERVICE_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office/plugin used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office/pdf JOLLASIGNONUISERVICE_LIBRARY (ADVANCED) linked by target "sailfish-office" in directory /home/mersdk/share/proggn/jolla/sailfish-office -- Configuring incomplete, errors occurred!
Can anyone help? @Jolla could someone provide the missing package? I will update this entry as I/we progress
2 | No.2 Revision |
I would like to contribute some features to sailfish-office (the pdf viewer plugin). So here is how far I progressed on the way, this might apply to eg the sailfish-browser as well
Find the source https://github.com/sailfishos/sailfish-office
fork/clone it
create a checkout (of your fork)
git clone git@github.com:sailfishos/sailfish-office.git
open some (new/placeholder) project in the sailfish IDE
start the SDK
ssh into the SDK login in to the mer sdk as user "mersdk":
ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
go to the checkout dir (your home dir is mounted in ~/share/)
cd ~/share/path/to/the/code/sailfish-office/
try compiling an rpm
For the emulator:
mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build
For your device:
mb2 -t SailfishOS-armv7hl -s rpm/sailfish-office.spec build
Notice missing dependencies
[mersdk@SailfishSDK sailfish-office]$ mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build Package 'libjollasignonuiservice-qt5-devel' not found. Building target platforms: i486-meego-linux-gnu Building for target i486-meego-linux-gnu error: Failed build dependencies: libqt5sparql-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5 is needed by sailfish-office-1.1.5-1.i486 poppler-devel is needed by sailfish-office-1.1.5-1.i486 cmake is needed by sailfish-office-1.1.5-1.i486 libjollasignonuiservice-qt5-devel is needed by sailfish-office-1.1.5-1.i486
STOP following here
install dependencies
sudo zypper in libqt5sparql-devel poppler-qt5-devel poppler-devel cmake
fail
There is no package providing libjollasignonuiservice-qt5-devel
Installing the other packages does not in fact make mb2 happy, ie
[mersdk@SailfishSDK sailfish-office]$ mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build Package 'libjollasignonuiservice-qt5-devel' not found. Building target platforms: i486-meego-linux-gnu Building for target i486-meego-linux-gnu error: Failed build dependencies: libqt5sparql-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5 is needed by sailfish-office-1.1.5-1.i486 poppler-devel is needed by sailfish-office-1.1.5-1.i486 cmake is needed by sailfish-office-1.1.5-1.i486 libjollasignonuiservice-qt5-devel is needed by sailfish-office-1.1.5-1.i486
remains as the output.
Manuall compilation:
have a look at rpm/sailfish-office.spec:
BuildRequires: pkgconfig(Qt5Quick) BuildRequires: pkgconfig(Qt5Widgets) #BuildRequires: pkgconfig(Qt5WebKit) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: libqt5sparql-devel BuildRequires: poppler-qt5-devel poppler-qt5 poppler-devel poppler BuildRequires: mapplauncherd-qt5-devel BuildRequires: cmake BuildRequires: qt5-qttools-linguist BuildRequires: libjollasignonuiservice-qt5-devel
so we need to install all of this (additionally to what was installed above)
sudo zypper in qt5-qtdeclarative-qtquick-devel qt5-qtdbus-devel qt5-qttools-linguist mapplauncherd-qt5-develhowever, again, libjollasignonuiservice-qt5-devel is actually not in the repo, so we cant install it
mkdir build cd build cmake ../sailfish-office/
will fail with
[mersdk@SailfishSDK build]$ cmake ../sailfish-office/ -- The C compiler identification is GNU 4.6.4 -- The CXX compiler identification is GNU 4.6.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found QtSparql: /usr/include/Qt5Sparql -- Found Booster: /usr/include/mdeclarativecache5 -- Could NOT find libjollasignonuiservice (missing: JOLLASIGNONUISERVICE_INCLUDE_DIR JOLLASIGNONUISERVICE_LIBRARY) -- Found Poppler: /usr/include/poppler/cpp CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: JOLLASIGNONUISERVICE_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office/plugin used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office/pdf JOLLASIGNONUISERVICE_LIBRARY (ADVANCED) linked by target "sailfish-office" in directory /home/mersdk/share/proggn/jolla/sailfish-office -- Configuring incomplete, errors occurred!
https://together.jolla.com/question/7793/nemo-qml-plugin-alarms-qt5-binary-packages-missing-in-sdk-how-to-compile-from-source/
Can anyone help? @Jolla could someone provide the missing package? I will update this entry as I/we progress
3 | No.3 Revision |
I would like to contribute some features to sailfish-office (the pdf viewer plugin). So here is how far I progressed on the way, this might apply to eg the sailfish-browser as well
Find the source https://github.com/sailfishos/sailfish-office
fork/clone it
create a checkout (of your fork)
git clone git@github.com:sailfishos/sailfish-office.git
open some (new/placeholder) project in the sailfish IDE
start the SDK
ssh into the SDK login in to the mer sdk as user "mersdk":
ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
go to the checkout dir (your home dir is mounted in ~/share/)
cd ~/share/path/to/the/code/sailfish-office/
try compiling an rpm
For the emulator:
mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build
For your device:
mb2 -t SailfishOS-armv7hl -s rpm/sailfish-office.spec build
Notice missing dependencies
[mersdk@SailfishSDK sailfish-office]$ mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build Package 'libjollasignonuiservice-qt5-devel' not found. Building target platforms: i486-meego-linux-gnu Building for target i486-meego-linux-gnu error: Failed build dependencies: libqt5sparql-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5 is needed by sailfish-office-1.1.5-1.i486 poppler-devel is needed by sailfish-office-1.1.5-1.i486 cmake is needed by sailfish-office-1.1.5-1.i486 libjollasignonuiservice-qt5-devel is needed by sailfish-office-1.1.5-1.i486
STOP following here
install dependencies
sudosb2 -t SailfishOS-i486 -m sdk-install -R zypperininstall cmake poppler-qt5-devel libqt5sparql-develpoppler-qt5-devel poppler-devel cmakelibjollasignonuiservice-qt5-devel
fail
There is no package providing libjollasignonuiservice-qt5-devel
Installing the other packages does not in fact make mb2 happy, ie
[mersdk@SailfishSDK sailfish-office]$ mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build Package 'libjollasignonuiservice-qt5-devel' not found. Building target platforms: i486-meego-linux-gnu Building for target i486-meego-linux-gnu error: Failed build dependencies: libqt5sparql-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5 is needed by sailfish-office-1.1.5-1.i486 poppler-devel is needed by sailfish-office-1.1.5-1.i486 cmake is needed by sailfish-office-1.1.5-1.i486 libjollasignonuiservice-qt5-devel is needed by sailfish-office-1.1.5-1.i486
remains
Installing the required packages into the correct chroot (?) instead of the vm solves the dependencies as the output.intended.
Manuall compilation:
have a look at rpm/sailfish-office.spec:
BuildRequires: pkgconfig(Qt5Quick) BuildRequires: pkgconfig(Qt5Widgets) #BuildRequires: pkgconfig(Qt5WebKit) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: libqt5sparql-devel BuildRequires: poppler-qt5-devel poppler-qt5 poppler-devel poppler BuildRequires: mapplauncherd-qt5-devel BuildRequires: cmake BuildRequires: qt5-qttools-linguist BuildRequires: libjollasignonuiservice-qt5-devel
so we need to install all of this (additionally to what was installed above)
sudo zypper in qt5-qtdeclarative-qtquick-devel qt5-qtdbus-devel qt5-qttools-linguist mapplauncherd-qt5-develhowever, again, libjollasignonuiservice-qt5-devel is actually not in the repo, so we cant install
mkdir build cd build sb2 -t SailfishOS-i486 cmake ../sailfish-office/
will fail with
[mersdk@SailfishSDK build]$ sb2 -t SailfishOS-i486 cmake ../sailfish-office/ -- The C compiler identification is GNU 4.6.4 -- The CXX compiler identification is GNU 4.6.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found QtSparql: /usr/include/Qt5Sparql -- Found Booster: /usr/include/mdeclarativecache5 -- Could NOT find libjollasignonuiservice (missing: JOLLASIGNONUISERVICE_INCLUDE_DIR JOLLASIGNONUISERVICE_LIBRARY) -- Found Poppler: /usr/include/poppler/cpp CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: JOLLASIGNONUISERVICE_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office/plugin used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office/pdf JOLLASIGNONUISERVICE_LIBRARY (ADVANCED) linked by target "sailfish-office" in directory /home/mersdk/share/proggn/jolla/sailfish-office -- Configuring incomplete, errors occurred!
https://together.jolla.com/question/7793/nemo-qml-plugin-alarms-qt5-binary-packages-missing-in-sdk-how-to-compile-from-source/
How to install packages:
https://together.jolla.com/question/22379/porting-sdl-20-game-to-sailfish/
Can anyone help? @Jolla could someone provide the missing package? I will update this entry as I/we progress
4 | No.4 Revision |
I would like to contribute some features to sailfish-office (the pdf viewer plugin). So here is how far I progressed on the way, this might apply to eg the sailfish-browser as well
Find the source https://github.com/sailfishos/sailfish-office
fork/clone it
create a checkout (of your fork)
git clone git@github.com:sailfishos/sailfish-office.git
open some (new/placeholder) project in the sailfish IDE
start the SDK
ssh into the SDK login in to the mer sdk as user "mersdk":
ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
go to the checkout dir (your home dir is mounted in ~/share/)
cd ~/share/path/to/the/code/sailfish-office/
try compiling an rpm
For the emulator:
mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build
For your device:
mb2 -t SailfishOS-armv7hl -s rpm/sailfish-office.spec build
Notice missing dependencies
[mersdk@SailfishSDK sailfish-office]$ mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec buildPackage 'libjollasignonuiservice-qt5-devel' notfound.found. Building target platforms: i486-meego-linux-gnu Building for target i486-meego-linux-gnu error: Failed build dependencies: libqt5sparql-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5 is needed by sailfish-office-1.1.5-1.i486 poppler-devel is needed by sailfish-office-1.1.5-1.i486 cmake is needed by sailfish-office-1.1.5-1.i486libjollasignonuiservice-qt5-devel is needed bysailfish-office-1.1.5-1.i486
STOP following here
sailfish-office-1.1.5-1.i486install dependencies
sb2 -t SailfishOS-i486 -m sdk-install -R zypper install cmake poppler-qt5-devellibqt5sparql-devel libjollasignonuiservice-qt5-devel
faillibqt5sparql-devel
compile rpm
There is no
mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build
put the rpm (you can find it in subdir RPMS of your sourcedir) on some webserver (python -m SimpleHTTPServer 8081)
ssh to the Emulator
ssh -p 2223 -i ~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root root@localhostDownload the package:
curl your_LAN_ip:8081/sailfish-office-1.1.5-1.i486.rpm >> sailfish-office.rpm
[root@SailfishEmul nemo]# rpm -i sailfish-office.rpm error: Failed dependencies: calligra-components >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 calligra-filters >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 libpoppler-qt5.so.1 is needed by sailfish-office-1.1.5-1.i486 sailfish-office-all-translations is needed by sailfish-office-1.1.5-1.i486
pkcon install zypper
zypper on poppler-qt5
[root@SailfishEmul nemo]# zypper se calligra Loading repository data... Reading installed packages... S | Name | Summary | Type --+------------------------------------------+--------------------------------------------------------+----------- | calligra-extra-cmake-modules | Extra CMake modules for Calligra |package
Installing the other
[root@SailfishEmul nemo]# rpm -i -f sailfish-office.rpm error: Failed dependencies: calligra-components >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 calligra-filters >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 sailfish-office-all-translations is needed by sailfish-office-1.1.5-1.i486
So I propably need to add some extra repositories to the emulator? Or maybe the calligra
packagesInstalling the required packages into the correct chroot (?) instead of the vm solves the dependencies as intended.
How do I build the translations rom? Comment it out/ignore it using rpm --nodeps?
Manuall compilation:
again, libjollasignonuiservice-qt5-devel is actually not in the repo, so we cant install it
mkdir build cd build sb2 -t SailfishOS-i486 cmake ../sailfish-office/
will fail with
[mersdk@SailfishSDK build]$ sb2 -t SailfishOS-i486 cmake ../sailfish-office/ -- The C compiler identification is GNU 4.6.4 -- The CXX compiler identification is GNU 4.6.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found QtSparql: /usr/include/Qt5Sparql -- Found Booster: /usr/include/mdeclarativecache5 -- Could NOT find libjollasignonuiservice (missing: JOLLASIGNONUISERVICE_INCLUDE_DIR JOLLASIGNONUISERVICE_LIBRARY) -- Found Poppler: /usr/include/poppler/cpp CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: JOLLASIGNONUISERVICE_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office/plugin used as include directory in directory /home/mersdk/share/proggn/jolla/sailfish-office/pdf JOLLASIGNONUISERVICE_LIBRARY (ADVANCED) linked by target "sailfish-office" in directory /home/mersdk/share/proggn/jolla/sailfish-office -- Configuring incomplete, errors occurred!
https://together.jolla.com/question/7793/nemo-qml-plugin-alarms-qt5-binary-packages-missing-in-sdk-how-to-compile-from-source/
How to install packages:
https://together.jolla.com/question/22379/porting-sdl-20-game-to-sailfish/
Can anyone help? @Jolla could someone provide the missing package? I will update this entry as I/we progress
5 | No.5 Revision |
I would like to contribute some features to sailfish-office (the pdf viewer plugin). So here is how far I progressed on the way, this might apply to eg the sailfish-browser as well
Find the source https://github.com/sailfishos/sailfish-office
fork/clone it
create a checkout (of your fork)
git clone git@github.com:sailfishos/sailfish-office.git
open some (new/placeholder) project in the sailfish IDE
start the SDK
ssh into the SDK login in to the mer sdk as user "mersdk":
ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
go to the checkout dir (your home dir is mounted in ~/share/)
cd ~/share/path/to/the/code/sailfish-office/
try compiling an rpm
For the emulator:
mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build
For your device:
mb2 -t SailfishOS-armv7hl -s rpm/sailfish-office.spec build
Notice missing dependencies
[mersdk@SailfishSDK sailfish-office]$ mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec buildPackage 'libjollasignonuiservice-qt5-devel' not found.Building target platforms: i486-meego-linux-gnu Building for target i486-meego-linux-gnu error: Failed build dependencies: libqt5sparql-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5 is needed by sailfish-office-1.1.5-1.i486 poppler-devel is needed by sailfish-office-1.1.5-1.i486 cmake is needed by sailfish-office-1.1.5-1.i486libjollasignonuiservice-qt5-devel is needed by sailfish-office-1.1.5-1.i486
install dependencies
sb2 -t SailfishOS-i486 -m sdk-install -R zypper install cmake poppler-qt5-devel libqt5sparql-devel
compile rpm
mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build
put the rpm (you can find it in subdir RPMS of your sourcedir) on some webserver (python -m SimpleHTTPServer 8081)
ssh to the Emulator
ssh -p 2223 -i ~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root root@localhostDownload the package:
curl your_LAN_ip:8081/sailfish-office-1.1.5-1.i486.rpm >> sailfish-office.rpm
[root@SailfishEmul nemo]# rpm -i sailfish-office.rpm error: Failed dependencies: calligra-components >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 calligra-filters >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 libpoppler-qt5.so.1 is needed by sailfish-office-1.1.5-1.i486 sailfish-office-all-translations is needed by sailfish-office-1.1.5-1.i486
pkcon install zypper
zypperonin poppler-qt5
[root@SailfishEmul nemo]# rpm -i -f sailfish-office.rpm error: Failed dependencies: calligra-components >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 calligra-filters >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 sailfish-office-all-translations is needed by sailfish-office-1.1.5-1.i486
[root@SailfishEmul nemo]# zypper se calligra Loading repository data... Reading installed packages... S | Name | Summary | Type --+------------------------------------------+--------------------------------------------------------+----------- | calligra-extra-cmake-modules | Extra CMake modules for Calligra | package | calligra-extra-cmake-modules | Extra CMake modules for Calligra | srcpackage | calligra-extra-cmake-modules-debugsource | Debug sources for package calligra-extra-cmake-modules | package
[root@SailfishEmul nemo]# rpm -i -f sailfish-office.rpm error: Failed dependencies: calligra-components >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 calligra-filters >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 sailfish-office-all-translations is needed by sailfish-office-1.1.5-1.i486
So I propably need to add some extra repositories to the emulator? Or maybe the calligra packages need to be added to the repository?
How do I build the translations rom? rpm? Comment it out/ignore it using rpm --nodeps?
mkdir build cd build sb2 -t SailfishOS-i486 cmake ../sailfish-office/
https://together.jolla.com/question/7793/nemo-qml-plugin-alarms-qt5-binary-packages-missing-in-sdk-how-to-compile-from-source/
How to install packages:
https://together.jolla.com/question/22379/porting-sdl-20-game-to-sailfish/
Can anyone help? @Jolla could someone provide the missing package? I will update this entry as I/we progress
6 | retagged |
I would like to contribute some features to sailfish-office (the pdf viewer plugin). So here is how far I progressed on the way, this might apply to eg the sailfish-browser as well
Find the source https://github.com/sailfishos/sailfish-office
fork/clone it
create a checkout (of your fork)
git clone git@github.com:sailfishos/sailfish-office.git
open some (new/placeholder) project in the sailfish IDE
start the SDK
ssh into the SDK login in to the mer sdk as user "mersdk":
ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
go to the checkout dir (your home dir is mounted in ~/share/)
cd ~/share/path/to/the/code/sailfish-office/
try compiling an rpm
For the emulator:
mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build
For your device:
mb2 -t SailfishOS-armv7hl -s rpm/sailfish-office.spec build
Notice missing dependencies
[mersdk@SailfishSDK sailfish-office]$ mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec buildPackage 'libjollasignonuiservice-qt5-devel' not found.Building target platforms: i486-meego-linux-gnu Building for target i486-meego-linux-gnu error: Failed build dependencies: libqt5sparql-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5-devel is needed by sailfish-office-1.1.5-1.i486 poppler-qt5 is needed by sailfish-office-1.1.5-1.i486 poppler-devel is needed by sailfish-office-1.1.5-1.i486 cmake is needed by sailfish-office-1.1.5-1.i486libjollasignonuiservice-qt5-devel is needed by sailfish-office-1.1.5-1.i486
install dependencies
sb2 -t SailfishOS-i486 -m sdk-install -R zypper install cmake poppler-qt5-devel libqt5sparql-devel
compile rpm
mb2 -t SailfishOS-i486 -s rpm/sailfish-office.spec build
put the rpm (you can find it in subdir RPMS of your sourcedir) on some webserver (python -m SimpleHTTPServer 8081)
ssh to the Emulator
ssh -p 2223 -i ~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root root@localhostDownload the package:
curl your_LAN_ip:8081/sailfish-office-1.1.5-1.i486.rpm >> sailfish-office.rpm
[root@SailfishEmul nemo]# rpm -i sailfish-office.rpm error: Failed dependencies: calligra-components >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 calligra-filters >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 libpoppler-qt5.so.1 is needed by sailfish-office-1.1.5-1.i486 sailfish-office-all-translations is needed by sailfish-office-1.1.5-1.i486
pkcon install zypper
zypper in poppler-qt5
[root@SailfishEmul nemo]# rpm -i -f sailfish-office.rpm error: Failed dependencies: calligra-components >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 calligra-filters >= 2.7.9+git4 is needed by sailfish-office-1.1.5-1.i486 sailfish-office-all-translations is needed by sailfish-office-1.1.5-1.i486
[root@SailfishEmul nemo]# zypper se calligra Loading repository data... Reading installed packages... S | Name | Summary | Type --+------------------------------------------+--------------------------------------------------------+----------- | calligra-extra-cmake-modules | Extra CMake modules for Calligra | package | calligra-extra-cmake-modules | Extra CMake modules for Calligra | srcpackage | calligra-extra-cmake-modules-debugsource | Debug sources for package calligra-extra-cmake-modules | package
So I propably need to add some extra repositories to the emulator? Or maybe the calligra packages need to be added to the repository?
How do I build the translations rpm? Comment it out/ignore it using rpm --nodeps?
mkdir build cd build sb2 -t SailfishOS-i486 cmake ../sailfish-office/
https://together.jolla.com/question/7793/nemo-qml-plugin-alarms-qt5-binary-packages-missing-in-sdk-how-to-compile-from-source/
How to install packages:
https://together.jolla.com/question/22379/porting-sdl-20-game-to-sailfish/
Can anyone help? @Jolla could someone provide the missing package? I will update this entry as I/we progress