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 |
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. |
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. |
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. |
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 |
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. |
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 |
since this is about dxf, we should only saves whatever in the dxf specifications
|
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 |
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' |
Free forum by Nabble | Edit this page |