Bug 446953 - program does not start after install
Summary: program does not start after install
Status: RESOLVED WORKSFORME
Alias: None
Product: KXStitch
Classification: Applications
Component: general (show other bugs)
Version: 2.2.0
Platform: Compiled Sources Linux
: NOR critical
Target Milestone: ---
Assignee: Steve Allewell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-13 21:41 UTC by boboshaq
Modified: 2022-01-26 10:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description boboshaq 2021-12-13 21:41:18 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Download from here: https://download.kde.org/stable/kxstitch/2.2.0/kxstitch-2.2.0.tar.xz
2. Extract, enter to directory and build with command: ./build -v
3. Start witch command: kxstitch

OBSERVED RESULT
QLayout: Attempting to add QLayout "" to MainWindow "MainWindow#", which already has a layout
kf5.kxmlgui: cannot find .rc file "kxstitchui.rc" for component "kxstitch"

EXPECTED RESULT
start the program

SOFTWARE/OS VERSIONS
Linux: Centos 7 / gnome with qt5 and kf5 required packages installed
(available in About System)
KDE Plasma Version: 5
KDE Frameworks Version: 5
Qt Version: 5

ADDITIONAL INFORMATION
Comment 1 Steve Allewell 2022-01-01 14:43:56 UTC
Please check the output of the following command:
qtpaths --install-prefix
On my system this is /usr

Please check the install_manifest.txt file in the build folder which should have something like the following:
/usr/share/kxmlgui5/kxstitch/kxstitchui.rc
where /usr will be replaced by the output from qtpaths.

Check that the file exists in the folder specified.

I have just tried the steps you specified and KXStitch starts correctly for me.  Ignore the warning about the layout.

Thanks
Comment 2 Bug Janitor Service 2022-01-16 04:36:42 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 boboshaq 2022-01-17 11:32:26 UTC
Hi,
Result of command: 
qtpaths --install-prefix 
is:
/usr/lib64/qt5

I build kxstitch  a few times, so I have now two buid folders. In first folder i install_manifest.txt file I have path:
/share/kxmlgui5/kxstitch/kxstitchui.rc
and in second build folder I have path:
/usr/lib64/qt5/share/kxmlgui5/kxstitch/kxstitchui.rc
When I go to those folders and run kxstitch (./kxstitch) in both cases error arrive.
I doing this in Centos 7 with kde installed via yum group install command.
When I created virtual machine with fedora 35 and I can install and run kxstitch normally, without any error.

Can I somehow uninstall kxstitch from the system? Install script was installed it to /usr/bin/ maybe first install from first build folder was wrong and I must uninstall it completely before second attempt. Is there any uninstall script to do this? Or I just need to remove folders:
/share/kxmlgui5/kxstitch
/usr/lib64/qt5/share/kxmlgui5/kxstitch
?

Regards!
Comment 4 Steve Allewell 2022-01-23 13:37:37 UTC
I'm confused as to how you have installed to different folders.  But to remove the files you can either open the respective install_manifest.txt files and then either manually delete the files listed, or I believe you can run the following command:

xargs rm <install_manifest.txt

This will pass all the files listed in install_manifest.txt to the rm command.  I haven't ever tried this personally, but it comes up in a google search.  If you do this for each of the build folders, it should remove everything that was installed for KXStitch.  You can then try installing again.  As you noted, it worked fine for Fedora, so it may be a peculiarity with the CentOS installation and I'm not familiar enough with it to come to a conclusive diagnosis.

Thanks