Run issue (Fedora 16, DBus, KLocale)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Run issue (Fedora 16, DBus, KLocale)

someguy
I just mostly built LibreCAD from git on my Fedora 16-64 box.

I say mostly built because the build ended with

===========================================
Reading collection config file...
Generating help for LibreCADdoc.qhp...
Building up file structure...
Insert custom filters...
Insert help data for filter section (1 of 1)...
Insert files...
Insert contents...
Insert indices...
Documentation successfully generated.
Creating collection file...
Cannot open /home/me/libreCAD/LibreCAD/librecad/support/doc/imgs/LibreCADicon.png.
scripts/postprocess-unix.sh: line 28: lrelease: command not found
cp: cannot stat `*.qm': No such file or directory
make[2]: *** [../../unix/librecad] Error 1
make[2]: Leaving directory `/home/me/libreCAD/LibreCAD/librecad/src'
make[1]: *** [sub-src-make_default] Error 2
make[1]: Leaving directory `/home/me/libreCAD/LibreCAD/librecad'
make: *** [sub-librecad-make_default-ordered] Error 2
============================================

I am not sure how to fix this build issue.

The executable file was in the unix directory, so I ran it from the command line.

When I did so, the application started with the initialization window asking for default dimension unit, language, etc.

The language drop down was disabled (greyed) so I pressed OK and moved on.

Upon trying to open a file, I received a DBUS message in an error window.  Upon looking at my  terminal, I found the following:

=====================================================

[root@XPS unix]# ./librecad
KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
kdeinit4: Shutting down running client.
klauncher(18271) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
klauncher(18275) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
klauncher(18278) kdemain: No DBUS session-bus found. Check if you have started the DBUS server

======================================================

I restarted librecad and set the languages (English, English) in the Application Preferences window.  I restarted again.   I still get a DBUS error upon trying to open a file, as well as this on the command line.

======================================================

# ./librecad
KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
klauncher(18379) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
klauncher(18383) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
klauncher(18386) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
startkdeinitlock(18373): couldn't create slave: "Cannot talk to klauncher: Not connected to D-Bus server"
klauncher(18389) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
klauncher(18392) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
startkdeinitlock(18373): couldn't create slave: "Cannot talk to klauncher: Not connected to D-Bus server"
klauncher(18395) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
klauncher(18398) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
startkdeinitlock(18373): couldn't create slave: "Cannot talk to klauncher: Not connected to D-Bus server"
klauncher(18401) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
startkdeinitlock(18373): Couldn't start knotify from knotify4.desktop:  "KLauncher could not be reached via D-Bus. Error when calling start_service_by_desktop_path:
Not connected to D-Bus server
=================================================


The build info in the About window is

Version: master
SCM Revision: 2.0.0alpha4-7-gb396762
Compiled on: Jun 27 2012

I obtained the source for my build via
git clone https://github.com/LibreCAD/LibreCAD

How do I resolve this situation so that I can run my build ?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Run issue (Fedora 16, DBus, KLocale)

someguy
I found the potential source of the build error.

"Cannot open /home/me/libreCAD/LibreCAD/librecad/support/doc/imgs/LibreCADicon.png."

# ls /home/me/libreCAD/LibreCAD/librecad/support/doc
img  
index.html  
LibreCADdoc.qch  
LibreCADdoc.qhc  
LibreCADdoc.qhcp  
LibreCADdoc.qhp  
README  
style.css

The build process is looking for the "imgs" directory, whereas the directory on my machine is "img" and it has a file named "librecadlogo.png" in it and nothing else.

As a work around, I did this.

cp librecadlogo.png LibreCADicon.png
mv img imgs

Which resulted in this.

# make
<snip>
cmake[2]: Leaving directory `/home/me/libreCAD/LibreCAD/tools/ttf2lff'
make[1]: Leaving directory `/home/me/libreCAD/LibreCAD/tools'

However, when I run it, I still get the same DBus errors.













Reply | Threaded
Open this post in threaded view
|

Re: Run issue (Fedora 16, DBus, KLocale)

someguy
I resolved the problem.

I did the build as su in a regular user session, thinking it was going to issue a make-install and require permissions.

I also ran as su.  The errors I posted were when running as su.

When I exited su mode and ran as a regular user, the DBus errors did not occur and the application ran normally.

This is not unique to libreCAD.  I should have recognized what I was doing.  Most applications needing root permissions need to be run under kdesu in order to function correctly in a regular user session.

Sorry for the waste of bandwidth on this part of my struggles.  

I hope this helps someone.      

Reply | Threaded
Open this post in threaded view
|

Re: Run issue (Fedora 16, DBus, KLocale)

R. van Twisk
Administrator
In reply to this post by someguy
That must have been my bad,
I will provide a fix for trunk on that one.

Ries

On Jun 27, 2012, at 12:43 PM, someguy [via LibreCAD] wrote:

I found the potential source of the build error.

"Cannot open /home/me/libreCAD/LibreCAD/librecad/support/doc/imgs/LibreCADicon.png."

# ls /home/me/libreCAD/LibreCAD/librecad/support/doc
img  
index.html  
LibreCADdoc.qch  
LibreCADdoc.qhc  
LibreCADdoc.qhcp  
LibreCADdoc.qhp  
README  
style.css

The build process is looking for the "imgs" directory, whereas the directory on my machine is "img" and it has a file named "librecadlogo.png" in it and nothing else.

As a work around, I did this.

cp librecadlogo.png LibreCADicon.png
mv img imgs

Which resulted in this.

# make
cd src/ && make -f Makefile
make[1]: Entering directory `/home/me/libreCAD/LibreCAD/librecad/src'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/me/libreCAD/LibreCAD/librecad/src'
















If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/Run-issue-Fedora-16-DBus-KLocale-tp5706807p5706809.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Run issue (Fedora 16, DBus, KLocale)

Rallaz
In reply to this post by someguy
Two things... or more.

In Fedora qmake are qmake-qt4 and lrelease are lrelease-qt4
Edit scripts/postprocess-unix.sh and change
lrelease librecad.pro
for
lrelease-qt4 librecad.pro

If you are using KDE make a test, save some drawing in version 2007 and R12
open it with a text editor like kwrite, gedit, etc.
find a line with $ACADVER if the following lines in both files are:
1
AC1021
then you are saving always in v2007, to solve edit
librecad/src/src.pro and uncomment (delete '# ') the line 17:
DEFINES += USEQTDIALOG=1
This change also removes the "KGlobal::locale::Warning your global KLocale.."

And remember for compile LibreCAD or linux kernel, always as normal user
"Don't take the name of root in vain" :-D
http://kernel.org/doc/readme/README
Reply | Threaded
Open this post in threaded view
|

Re: Run issue (Fedora 16, DBus, KLocale)

someguy
Rallaz wrote
If you are using KDE make a test, save some drawing in version 2007 and R12
open it with a text editor like kwrite, gedit, etc.
find a line with $ACADVER if the following lines in both files are:
1
AC1021
then you are saving always in v2007, to solve edit
librecad/src/src.pro and uncomment (delete '# ') the line 17:
DEFINES += USEQTDIALOG=1
Thank you for following up with that because I think you just solved another problem.

What is the best way to do a clean before rebuilding ?  make clean ?  or a complete removal ?  I haven't looked in the makefile.

Edit.  I ran CLEAN.SH.
Reply | Threaded
Open this post in threaded view
|

Re: Run issue (Fedora 16, DBus, KLocale)

someguy
In reply to this post by someguy
A feature request has come out of this experience.

Any chance you could put a drop down for the default drawing format in the application and/or drawing preferences page and have it use that when saving a drawing ?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Run issue (Fedora 16, DBus, KLocale)

dxli
since this is about dxf, we should only saves whatever in the dxf specifications

Reply | Threaded
Open this post in threaded view
|

Re: Run issue (Fedora 16, DBus, KLocale)

Rallaz
In reply to this post by someguy
Add a feature request in:
http://sourceforge.net/tracker/?group_id=342582&atid=1433847

Please be explicit with the request.
If it is possible and useful will be implemented
Reply | Threaded
Open this post in threaded view
|

Re: Run issue (Fedora 16, DBus, KLocale)

RobertPattinson
I am not sure how to fix this build issue.

The executable file was in the unix directory.so I ran it from the command line
# make
cd src/ && make -f Makefile
make[1]: Entering directory `/home/me/libreCAD/LibreCAD/librecad/src'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/me/libreCAD/LibreCAD/librecad/src'

Reply | Threaded
Open this post in threaded view
|

Re: Run issue (Fedora 16, DBus, KLocale)

dxli
In reply to this post by Rallaz
I will try to modify the scripts to make the command names auto.

I am thinking about by 'which rlrelease'. or there is a better way?