This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Failed to Open .skg File Created by Later Skrooge Version

Tags: None
(comma "," separated)
User avatar
cmb
Registered Member
Posts
25
Karma
0
OS
Recently I had to reinstall my Linux Mint 18.1 Serena Cinnamon 64-bit operating system. I am now running Skrooge version 1.9.3 BETA but I think the splash screen shows version 1.10.0 BETA. The KDE version is 4.14.16. Before the operating system reload, I was probably running a later version of Skrooge.

Now when I try to open my .skg file, I receive these error messages:

[ERR-5]: Failed to open '/path/to/Documents/Skrooge/<MyName>.skg'.
[ERR-4]: Impossible to load a document generated by a more recent version


Then I tried to get one of the later versions of Skrooge. I attempted to add the PPA to my repository list. In a terminal I entered:
sudo add-apt-repository ppa:s-mankowski/ppa

but the response is:
'This PPA does not support xenial'
Cannot add PPA: ''This PPA does not support xenial''.


Will the PPA be upgraded soon?
Is there a way that I can open my .skg file in Skrooge version 1.9.3 BETA?
Shall I just build my own copy of Skrooge?


Charles
nrob
Registered Member
Posts
17
Karma
0
OS
I think that the later version uses an encripted database that the earlier version can't handle.
User avatar
cmb
Registered Member
Posts
25
Karma
0
OS
I have decided to attempt the build of Skrooge version 1.12.5 on my Linux Mint 18.1 system. I have downloaded the source code of Skrooge based on KDE4 and Qt4. (Filename: skrooge-1.12.5.tar.xz.)

The README file and other instructions say "Extract the archive" but they do not specify a directory. I can place the uncompressed files anywhere but what is the best practice?

Last edited by cmb on Fri Jan 06, 2017 8:48 pm, edited 1 time in total.


Charles
User avatar
smankowski
Moderator
Posts
1047
Karma
7
OS
You just have to follow the README.
  • Uncompress the file where you want.
  • Install dependencies
  • Build Skrooge
  • Install it. It will be installed at the right place.


Skrooge, a personal finances manager powered by KDE
Image - PayPal
User avatar
cmb
Registered Member
Posts
25
Karma
0
OS
Following the directions in the README file for an Ubuntu build, I found that cmake fails. Q_WS_WIN, Q_WS_QWS and Q_WS_MAC are apparently involved.

From the newly-created build directory, I ran:
Code: Select all
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=release


It appears that this board does not allow file attachment so I'll insert the CMakeError.log here.

Code: Select all
Determining if the Q_WS_WIN exist failed with the following output:
Change Dir: /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d455a/fast"
/usr/bin/make -f CMakeFiles/cmTC_d455a.dir/build.make CMakeFiles/cmTC_d455a.dir/build
make[1]: Entering directory '/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d455a.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/qt4   -o CMakeFiles/cmTC_d455a.dir/CheckSymbolExists.c.o   -c /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘Q_WS_WIN’ undeclared (first use in this function)
   return ((int*)(&Q_WS_WIN))[argc];
                   ^
/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/cmTC_d455a.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_d455a.dir/CheckSymbolExists.c.o' failed
make[1]: *** [CMakeFiles/cmTC_d455a.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory '/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_d455a/fast' failed
make: *** [cmTC_d455a/fast] Error 2

File /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_WIN
  return ((int*)(&Q_WS_WIN))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the Q_WS_QWS exist failed with the following output:
Change Dir: /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_3fff7/fast"
/usr/bin/make -f CMakeFiles/cmTC_3fff7.dir/build.make CMakeFiles/cmTC_3fff7.dir/build
make[1]: Entering directory '/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3fff7.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/qt4   -o CMakeFiles/cmTC_3fff7.dir/CheckSymbolExists.c.o   -c /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘Q_WS_QWS’ undeclared (first use in this function)
   return ((int*)(&Q_WS_QWS))[argc];
                   ^
/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/cmTC_3fff7.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_3fff7.dir/CheckSymbolExists.c.o' failed
make[1]: *** [CMakeFiles/cmTC_3fff7.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory '/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_3fff7/fast' failed
make: *** [cmTC_3fff7/fast] Error 2

File /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_QWS
  return ((int*)(&Q_WS_QWS))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the Q_WS_MAC exist failed with the following output:
Change Dir: /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d84f6/fast"
/usr/bin/make -f CMakeFiles/cmTC_d84f6.dir/build.make CMakeFiles/cmTC_d84f6.dir/build
make[1]: Entering directory '/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d84f6.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/qt4   -o CMakeFiles/cmTC_d84f6.dir/CheckSymbolExists.c.o   -c /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘Q_WS_MAC’ undeclared (first use in this function)
   return ((int*)(&Q_WS_MAC))[argc];
                   ^
/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/cmTC_d84f6.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_d84f6.dir/CheckSymbolExists.c.o' failed
make[1]: *** [CMakeFiles/cmTC_d84f6.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory '/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_d84f6/fast' failed
make: *** [cmTC_d84f6/fast] Error 2

File /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_MAC
  return ((int*)(&Q_WS_MAC))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_37d6c/fast"
/usr/bin/make -f CMakeFiles/cmTC_37d6c.dir/build.make CMakeFiles/cmTC_37d6c.dir/build
make[1]: Entering directory '/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_37d6c.dir/CheckSymbolExists.c.o
/usr/bin/cc     -o CMakeFiles/cmTC_37d6c.dir/CheckSymbolExists.c.o   -c /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_37d6c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_37d6c.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTC_37d6c.dir/CheckSymbolExists.c.o  -o cmTC_37d6c -rdynamic
CMakeFiles/cmTC_37d6c.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_37d6c.dir/build.make:97: recipe for target 'cmTC_37d6c' failed
make[1]: *** [cmTC_37d6c] Error 1
make[1]: Leaving directory '/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_37d6c/fast' failed
make: *** [cmTC_37d6c/fast] Error 2

File /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_0236f/fast"
/usr/bin/make -f CMakeFiles/cmTC_0236f.dir/build.make CMakeFiles/cmTC_0236f.dir/build
make[1]: Entering directory '/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0236f.dir/CheckFunctionExists.c.o
/usr/bin/cc    -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_0236f.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_0236f
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0236f.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_0236f.dir/CheckFunctionExists.c.o  -o cmTC_0236f -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_0236f.dir/build.make:97: recipe for target 'cmTC_0236f' failed
make[1]: *** [cmTC_0236f] Error 1
make[1]: Leaving directory '/home/charles/Desktop/skrooge-1.12.5/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_0236f/fast' failed
make: *** [cmTC_0236f/fast] Error 2


Of course, make fails. I searched this board for a solution but "no suitable matches were found."

Operating System: Linux Mint 18.1 Serena Cinnamon 64-bit
From the CMakeOutput.log: The system is: Linux - 4.4.0-57-generic - x86_64

What shall I do to correct these errors?


Charles
User avatar
smankowski
Moderator
Posts
1047
Karma
7
OS
Are you sure that you have QT4 installed (and not QT5)?

Anyway, I think you should build the latest version (2.6) based on Qt5 and Kf5.


Skrooge, a personal finances manager powered by KDE
Image - PayPal
User avatar
cmb
Registered Member
Posts
25
Karma
0
OS
Today I was able to add the ppa:s-mankowski/ppa-kf5 repository to my Linux Mint 18.1 system. When I ran install skrooge-kf5 in a terminal, I received some errors that mentioned Skrooge 1.9.3 so I used Synaptic to remove all traces of that earlier program. Then I installed skrooge-kf5 and skrooge-kf5-common.

I'm now at Skrooge version 2.5.0, KDE Frameworks 5.18.0 and Qt 5.5.1. Everything appears to be working again.


Charles


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]