QCAD is by far more advanced than the formerly branched LibreCad which is crashing from time to time and has several other issues with file export and blocks etc.. I don't see license restrictions. The version is free to use, only Pro Addons are Trial-only versions. http://www.qcad.org/en/component/content/article/78-qcad/111-qcad-compilation-from-sources I followed the guide and it runs fine on amd64. Please provide an ebuild and get QCad back in portage. Reproducible: Always
Created attachment 372454 [details] qcad-9999-ebuild.zip This is the world's quickest and dirtiest git ebuild so apologies in advance but it might give someone somewhere to start from. I wrote it back in September and it's been working well enough for me since then. A small wrapper script to go in /usr/bin for launching due to LD_LIBRARY_PATH weirdness is included. Maybe it will work for tarball releases too. The official build instructions are here: http://www.qcad.org/en/component/content/article/78-qcad/111-qcad-compilation-from-sources and curiously omit a "make install" step and recommend just running from the source directory. I remember trying back when I wrote this originally and I've just tried it again to confirm, "make install" doesn't actually install anything except the README file, hence the collection of doins lines. I probably should have filled in DEPEND more thoroughly too. Someone more well-versed in this can probably pick out the ones that aren't implictly available. $ ldd /usr/lib/qcad/qcad-bin | sed -nr 's,.* => (/\S+).*,\1,p' | xargs -- equery -C b | awk '{print $1}' | sed 's,-[0-9].*,,' | uniq app-arch/bzip2 dev-db/sqlite dev-lang/orc dev-libs/expat dev-libs/glib dev-libs/icu dev-libs/libffi dev-libs/libxml2 dev-libs/openssl dev-qt/designer dev-qt/qtcore dev-qt/qtgui dev-qt/qthelp dev-qt/qtopengl dev-qt/qtscript dev-qt/qtsql dev-qt/qtsvg dev-qt/qtwebkit dev-qt/qtxmlpatterns media-libs/fontconfig media-libs/freetype media-libs/glu media-libs/gst-plugins-base media-libs/gstreamer media-libs/libpng media-libs/mesa media-libs/nas sys-apps/util-linux sys-devel/gcc sys-libs/glibc sys-libs/zlib x11-libs/libICE x11-libs/libSM x11-libs/libX11 x11-libs/libXau x11-libs/libXcursor x11-libs/libXdamage x11-libs/libXdmcp x11-libs/libXext x11-libs/libXfixes x11-libs/libXi x11-libs/libXinerama x11-libs/libXrandr x11-libs/libXrender x11-libs/libXt x11-libs/libXxf86vm x11-libs/libdrm x11-libs/libxcb x11-libs/libxshmfence
Created attachment 372474 [details] Improved ebuilds with LINGUAS, DEPEND, 3.4.6 & 9999 versions File counts for localized files that I found in the distribution: de: 1064 en: 489 es: 1013 fr: 1017 it: 1012 ja: 1045 nl: 277 pl: 558 pt: 1009 ru: 280 sl: 558 No ill effects that I can see from removing them, it doesn't save much disk space - about 6MB of ~80MB moving from all to en only - but removing ~7800 files certainly speeds up the install process.
Created attachment 375250 [details] ebuild for qcad-3.4.7
Created attachment 376930 [details] qcad-3.5.1.0.ebuild 3.4.7.1, 3.5.0.0, 3.5.1.0 released. It looks like my hard-coding the ".0" in the version wasn't wise after all. With that removed, one ebuild still works for (at least) 3.4.5.0 through 3.5.1.0.
I was able to build qcad manually, but the latest ebuild (thanks for that) wants to add: Calculating dependencies... done! [ebuild N ] x11-misc/qcad-3.5.1.0::portage_pdmb1-linux LINGUAS="de en -es -fr -it -ja -nl -pl -pt -ru -sl" 0 kB [ebuild N ] media-libs/nas-1.9.4 USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 1,431 kB [ebuild N ] x11-misc/gccmakedep-1.0.2-r1 USE="-static-libs" 69 kB So I guess at least the dep media-libs/nas is not necessary. Are there any plans to re-insert qcad into official portage? Otherway some Overlay may be willing to include it, like the science Overlay.
(In reply to Massimo Burcheri from comment #5) Oops, that's my bad, I was taking the entire tree of library dependenncies, not the immediate ones (forgetting I should have used lddtree not ldd) - dev-qt/qtcore[nas] brought in that library on my system. Here's a less outrageous set: dev-libs/glib dev-qt/designer dev-qt/qtcore dev-qt/qtgui dev-qt/qthelp dev-qt/qtopengl dev-qt/qtscript dev-qt/qtsql dev-qt/qtsvg dev-qt/qtwebkit dev-qt/qtxmlpatterns media-libs/glu media-libs/mesa The compile documentation mentions dbus and libssl-dev (openssl), but those might be for compiling Qt. Maybe that should be dev-qt/qtcore[ssl] just in case.
Thanks. The ebuild fails like: * QA Notice: file does not exist: * dobin: /usr/local/portage/x11-misc/qcad/files/qcad does not exist Any additional files required?
(In reply to Massimo Burcheri from comment #7) > Thanks. The ebuild fails like: > * QA Notice: file does not exist: > * dobin: /usr/local/portage/x11-misc/qcad/files/qcad does not exist > Any additional files required? Just create files/qcad: ``` #!bin/sh LD_LIBRARY_PATH=/usr/lib/qcad ```
Fix: .../sci-misc/qcad/files/qcad: #!bin/sh LD_LIBRARY_PATH=/usr/lib/qcad /usr/lib/qcad/qcad-bin
Sorry, have problems with code formatting, .../sci-misc/qcad/files/qcad: #!/bin/sh LD_LIBRARY_PATH=/usr/lib/qcad /usr/lib/qcad/qcad-bin
You can pull an updated live ebuild (qcad-9999.ebuild) from my git overlay: https://github.com/nilathak/gentoo-overlay/tree/master/sci-misc/qcad Released versions from the QCAD git repo all failed due to QT lib mismatches. QCAD works fine so far when using the latest QT5 libs as dependencies.
Hi, your overlay repo is not available anymore. Is there a maintained ebuild currently? I'm not able to compile qcad currently: https://www.qcad.org/rsforum/viewtopic.php?f=76&t=4819&p=17683#p17683 Tried with qt4: RGraphicsViewQt.h:116:29: error: ‘QNativeGestureEvent’ has not been declared Tried with qt5: Project ERROR: Unknown module(s) in QT: scripttools
(In reply to Massimo Burcheri from comment #12) > Hi, your overlay repo is not available anymore. Is there a maintained ebuild > currently? I'm not able to compile qcad currently: > https://www.qcad.org/rsforum/viewtopic.php?f=76&t=4819&p=17683#p17683 > > Tried with qt4: > RGraphicsViewQt.h:116:29: error: ‘QNativeGestureEvent’ has not been declared > > Tried with qt5: > Project ERROR: Unknown module(s) in QT: scripttools Perhaps this should work (not tested for a long time, not at the pc right nohttps://git.backbone.ws/linux/overlay/source/0a3ec81d07b3c593386ce6c35d16cc8d431f157d:sci-misc/qcad
Created attachment 468530 [details] qcad-3.16.7.0.ebuild Here's my latest attempt at it, I'm currently unable to get it to compile with either qt4 or at5 on my system though. qt5 error is at least meaningful (while running qmake): Cannot read /var/tmp/portage/media-gfx/qcad-3.16.7.0/work/qcad-3.16.7.0/qcad-3.16.7.0.pro: No such file or directory MAKEFILE_GENERATOR variable not set as a result of parsing : qcad-3.16.7.0.pro. Possibly qmake was not able to find files included using "include(..)" - enable qmake debugging to investigate more. [ !! ] However if I rename qcad.pro to qcad-$PV.pro and re-run qmake, it gets into an infinite loop. 3.16.5.0 is the last version I can get to work, if you rename the ebuild I've just attached to that it will compile just fine with qt5. I'm still looking for a cause, I can't seem to figure this one out.
Latest portage qtcore:5 is 5.7.1-r2, however I've seen in https://qcad.org/en/changelog that 3.16.6 (2017/03/20) switched to 5.8.0, this may help you. Thanks for the ebuilds.
sci-misc/qcad-3.16.5.0 currently fails with x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/usr/lib64 -o ../../release/qcad-bin release/main.o -L/var/tmp/portage/sci-misc/qcad-3.16.5.0/work/qcad-3.16.5.0/release -lqcadecmaapi -lqcadgui -lqcadentity -lqcadoperations -lqcadspatialindex -lspatialindexnavel -lqcadgrid -lqcadsnap -lqcadcore -lqcadstemmer -lstemmer -lqcadzip -lquazip -lopennurbs -lzlib -lGLU -lQt5PrintSupport -lQt5Svg -lQt5OpenGL -lQt5Help -lQt5UiTools -lQt5Designer -lQt5Widgets -lQt5Gui -lQt5Script -lQt5ScriptTools -lQt5Sql -L/usr/lib64/mysql -lQt5XmlPatterns -lQt5Network -lQt5Xml -lQt5Core -lGL -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/../../../../lib64/libQt5Core.so: undefined reference to `operator delete[](void*, unsigned long)@CXXABI_1.3.9' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/../../../../lib64/libQt5Core.so: undefined reference to `operator delete(void*, unsigned long)@CXXABI_1.3.9' collect2: error: ld returned 1 exit status However building from git worked fine with installed dev-qt/qtcore-4.8.7-r2 and export QT_SELECT=qt5.
Created attachment 506720 [details] QCAD 3.19.1.0 ebuild I've updated the QCAD ebuild found here to support QCAD 3.19.1.0 compilation. As qtwebkit-4 has recently been hardmasked I have tested the ebuild only with USE=qt5. It compiles against QT 5.9.2 - with a minor patch of QCAD that the ebuild takes care of. QCAD seems to work flawlessly as far as I can tell.
Thanks for keeping the QCad Community Version ebuild updated. However I had issues with missing icons on the self compiled version from GIT: https://www.qcad.org/rsforum/viewtopic.php?f=76&t=5201 .. while the binary packages are with their own Qt included works flawlessly. They also said that their own Qt versions are custom patched, so they kind of recommend against building against default Qt... weird. Beside trying to keep a source ebuild, as the source repo is there, I would appreciate a qcad-bin ebuild fetching the binary tarballs (deleting the mentioned pro plugins switch the trial version to a free community version).
(In reply to Massimo Burcheri from comment #18) > Thanks for keeping the QCad Community Version ebuild updated. > However I had issues with missing icons on the self compiled version from > GIT: https://www.qcad.org/rsforum/viewtopic.php?f=76&t=5201 > .. while the binary packages are with their own Qt included works > flawlessly. They also said that their own Qt versions are custom patched, so > they kind of recommend against building against default Qt... weird. I have compiled QCAD and QT from sources and I don't seem to have the same issue. I have posted a screenshot in the forum above. Please try my ebuild and QT version 5.9.2. Regarding custom patching: Their Changelog (mentioned in https://bugs.gentoo.org/498656#c15) lists which patches are applied to QT for which versions. I haven't checked, but would expect those patches to be generic patches and not specific to QCAD. You could always try the respective patches by recompiling QT and using the /etc/portage/patches mechanism. > Beside trying to keep a source ebuild, as the source repo is there, I would > appreciate a qcad-bin ebuild fetching the binary tarballs (deleting the > mentioned pro plugins switch the trial version to a free community version). Gentoo has in the past (and probably still is) been weary of binary packages. Binary packages go against the very concept of Gentoo - against what makes Gentoo so strong in some areas. If we stick with working with sources whenever possible we have a chance the ebuild eventually makes it into mainline Gentoo.
>>> Preparing source in /var/tmp/portage/sci-misc/qcad-3.19.1.0/work/qcad-3.19.1.0 ... * Creating QT configuration for QT 5.9.2 >>> Source prepared. >>> Configuring source in /var/tmp/portage/sci-misc/qcad-3.19.1.0/work/qcad-3.19.1.0 ... * Running qmake ... Info: creating stash file /var/tmp/portage/sci-misc/qcad-3.19.1.0/work/qcad-3.19.1.0/.qmake.stash Info: creating cache file /var/tmp/portage/sci-misc/qcad-3.19.1.0/work/qcad-3.19.1.0/.qmake.cache Reading /var/tmp/portage/sci-misc/qcad-3.19.1.0/work/qcad-3.19.1.0/src/src.pro Reading /var/tmp/portage/sci-misc/qcad-3.19.1.0/work/qcad-3.19.1.0/src/3rdparty/3rdparty.pro Project ERROR: Script bindings not available for Qt version 5.9.3. You can add them to src/3rdparty/qt-labs-qtscriptgenerator-5.9.3 or use another version of Qt.
Created attachment 520106 [details] qcad-3.19.2.2 ebuild supporting QT 5.9.3
Created attachment 520268 [details] QCAD binary ebuild for Massimo Massimo, I had some issues with DXF conversion and had to try out the Professional version. Attached is a binary ebuild that uses all libraries (including QT) coming with QCAD archives. I may not provide updates, because it's not the Gentoo way and it didn't solve my problem. Enjoy! :-)
2018-02-20 10:32:51 (600 KB/s) - ‘/var/cache/portage/distfiles/qcad-3.16.5.0.tar.gz’ saved [28243485] !!! Fetched file: qcad-3.16.5.0.tar.gz VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 28243485 !!! Expected: 28243529
(In reply to Massimo Burcheri from comment #23) > !!! Fetched file: qcad-3.16.5.0.tar.gz VERIFY FAILED! qcad-3.16.5.0 is not a QCAD version from this bug report. Delete it.
Reading /var/tmp/portage/sci-misc/qcad-3.19.2.2/work/qcad-3.19.2.2/src/src.pro Reading /var/tmp/portage/sci-misc/qcad-3.19.2.2/work/qcad-3.19.2.2/src/3rdparty/3rdparty.pro Project ERROR: Script bindings not available for Qt version 5.9.4. You can add them to src/3rdparty/qt-labs-qtscriptgenerator-5.9.4 or use another version of Qt.
(In reply to Massimo Burcheri from comment #25) > Project ERROR: Script bindings not available for Qt version 5.9.4. You can > add them to src/3rdparty/qt-labs-qtscriptgenerator-5.9.4 or use another > version of Qt. That's why I had "supporting QT 5.9.3" in the title. In the ebuild, edit the src_prepare section and replace 5.9.3 by 5.9.4.
Meanwhile I use your source ebuild the gentoo way. (In reply to Dirk Tilger from comment #22) > QCAD binary ebuild for Massimo However good to have a binary ebuild the qcad way. But shouldn't this ebuild also delete the plugins to make it a free version?
(In reply to Massimo Burcheri from comment #27) > But shouldn't this ebuild > also delete the plugins to make it a free version? My main motivation to do a binary ebuild was to get a "Professional" version. If you want "Community" I see zero benefit in using the binaries on Gentoo.
Copied qcad-3.19.2.2.ebuild to qcad-3.21.2.0.ebuild and working.
However both are failing to set line types, or failed to install that: https://qcad.org/rsforum/viewtopic.php?f=76&t=5724 I seems that "linetypes" and "themes" need to be installed to SHRDIR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217975
Created attachment 541844 [details] qcad-3.21.2.0.ebuild I got this fixed by adding doins -r linetypes themes Not sure about other available directories still missing there.
Copied to qcad-3.24.3.0.ebuild but failing with Project ERROR: Script bindings not available for Qt version 5.14.1. You can add them to src/3rdparty/qt-labs-qtscriptgenerator-5.14.1 or use another version of Qt. [ !! ]
Got it built with a copy by cp -a qt-labs-qtscriptgenerator-5.14.0 qt-labs-qtscriptgenerator-5.14.1 and mv qt-labs-qtscriptgenerator-5.14.0.pro qt-labs-qtscriptgenerator-5.14.1.pro
Created attachment 632574 [details] qcad-3.24.3.0.ebuild Updated the ebuild to the latest version (3.24.3.0) and: - dropped qt4 as gentoo repo doesn't have qt4 - changed qt5 dep so that a qt5 version bump will trigger a rebuild of qcad - made the qt version update in src_prepare() more qt version agnostic. - updated the year at the beginning of the ebuild
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=237d2a394306f48855830f38544261b1f0d14a65 commit 237d2a394306f48855830f38544261b1f0d14a65 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-08-24 08:38:13 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-08-24 08:53:30 +0000 sci-misc/qcad: Import 3.21.2.0 from Gentoo Bugzilla Initial ebuild work by Thomas Kear, Dirk Tilger and Massimo Burcheri. - Added missing eclasses, missing quotes - Dropped untested KEYWORDS, Qt5 support, L10N hacks - Fixed indendation and cleaned up leading spaces What a hack this upstream build system is though. Bug: https://bugs.gentoo.org/498656 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> sci-misc/qcad/Manifest | 3 ++- sci-misc/qcad/qcad-3.21.2.0.ebuild | 55 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-)
(In reply to Jacob Floyd from comment #34) > Created attachment 632574 [details] > qcad-3.24.3.0.ebuild > > Updated the ebuild to the latest version (3.24.3.0) and: > - dropped qt4 as gentoo repo doesn't have qt4 > - changed qt5 dep so that a qt5 version bump will trigger a rebuild of qcad > - made the qt version update in src_prepare() more qt version agnostic. > - updated the year at the beginning of the ebuild Unusually this ebuild works fine but triggers a rebuild for every new run like this: # emerge -auDNtv world These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild rR ] sci-misc/qcad-3.24.3.0::portage_local L10N="de en -TW -cs -es -fi -fr -hr -hu -it -ja -lt -nl -pl -pt -ru -sk -sl -sv -zh_CN" 0 KiB
Hi, recent updates lead to * EAPI=6 is not supported. Could you update that to the recent EAPI?
Created attachment 689475 [details] qcad-3.26.0.0.ebuild Based on qcad-3.24.3.0.ebuild with fixed domenu bug. Also added desktop entry for wayland interface. Tested on my computer. Regards, Damien - DarKou
(In reply to Damien Broqua from comment #38) > qcad-3.26.0.0.ebuild # ebuild qcad-3.26.0.0.ebuild digest * *) die "EAPI=${EAPI:-0} is not supported" ;; !!! getFetchMap(): aux_get() error reading sci-misc/qcad-3.19.1.0; aborting.
(In reply to Massimo Burcheri from comment #39) > (In reply to Damien Broqua from comment #38) > > qcad-3.26.0.0.ebuild > > # ebuild qcad-3.26.0.0.ebuild digest > * *) die "EAPI=${EAPI:-0} is not supported" ;; > !!! getFetchMap(): aux_get() error reading sci-misc/qcad-3.19.1.0; aborting. Hi, I don't understand your problem. In my ebuild I specify the version of EAPI. Regards
Not sure why that command was complaining about the older outdated ebuilds. After I removed those all I was able to create a digest and build your ebuild. Thanks.
Updated the ebuild to 3.27.6.3 and pushed to ::booboo.
Does anybody have a new ebuild for current version 3.28.2.0? EAPI 7 is not supported anymore.
Created attachment 870908 [details] qcad-3.28.2.0.ebuild