Package Details: cutemarked 20210729.r935-1

Git Clone URL: https://aur.archlinux.org/cutemarked.git (read-only, click to copy)
Package Base: cutemarked
Description: Qt Markdown Editor
Upstream URL: https://github.com/Waqar144/CuteMarkEd-NG
Licenses: GPL2
Submitter: nagy
Maintainer: None
Last Packager: FredBezies
Votes: 30
Popularity: 0.000036
First Submitted: 2013-09-29 19:36 (UTC)
Last Updated: 2021-08-04 12:49 (UTC)

Latest Comments

ccorn commented on 2020-09-05 20:04 (UTC)

Some fixes: URLs, whitespace, and getting the submodules URL config right. (Note that hunspell has an extra subdir level, therefore I unrolled the loop.)

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,23 +12,23 @@ license=('GPL2')
 depends=('qt5-webengine')
 makedepends=('git' 'qt5-tools')
 source=("git+$url.git#commit=28c6ea8"
-   "git+https://github.com/hunspell/hunspell.git"
-   "git+https://github.com/mity/md4c"
-   "https://github.com/pbek/qmarkdowntextedit"
+        "git+https://github.com/hunspell/hunspell.git"
+        "git+https://github.com/mity/md4c.git"
+        "git+https://github.com/pbek/qmarkdowntextedit.git"
        )
 md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')

 pkgver() {
   cd $_gitname
-   printf "%s.r%s" $(git log -1 --format="%cd" --date=short | tr -d '-') $(git rev-list --count HEAD)
+  printf "%s.r%s" $(git log -1 --format="%cd" --date=short | tr -d '-') $(git rev-list --count HEAD)
 }

 prepare() {
   cd $_gitname
   git submodule init
-  for __submodule in hunspell md4c qmarkdowntextedit
-  do git config submodule.${__submodule}.url "$srcdir"/${_gitname}/3rdparty/${__submodule}
-  done
+  git config submodule.3rdparty/hunspell/hunspell.url "${srcdir}/hunspell"
+  git config submodule.3rdparty/md4c.url "${srcdir}/md4c"
+  git config submodule.3rdparty/qmarkdowntextedit.url "${srcdir}/qmarkdowntextedit"
   git submodule update
 }

talessx commented on 2020-02-28 06:47 (UTC)

HI, I can't compile:

/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’ 68 | class QAction; | ^~~~~~~ make[1]: [Makefile:1101: optionsdialog.o] Errore 1 make[1]: uscita dalla directory «/home/ale/.cache/pacaur/cutemarked/src/CuteMarkEd-0.11.3/app» make: [Makefile:128: sub-app-make_first] Errore 2 ==> ERRORE: Si è verificato un errore in build(). L'operazione sta per essere interrotta... :: discount è ora un pacchetto orfano :: Errore compilando il/i pacchetto/i cutemarked

LeOn83 commented on 2019-01-31 16:05 (UTC)

include <QAction> is missing in app/optionsdialog.cpp

for the prepare section:

sed -i -e '/#include <QTableWidgetItem>/a #include <QAction>' app/optionsdialog.cpp

dreieck commented on 2019-01-13 13:56 (UTC)

namcap says:

cutemarked E: Dependency hicolor-icon-theme detected and not included (needed for hicolor theme hierarchy)

dreieck commented on 2019-01-13 13:28 (UTC)

Build fails for me:

[...]
make[1]: Entering directory '/tmp/cutemarked/src/CuteMarkEd-0.11.3/app'
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -I../libs/jsonconfig -I../app-static -I../libs -I../3rdparty/peg-markdown-highlight -isystem /usr/include/hunspell -isystem /usr/include/qt -isystem /usr/include/qt/QtWebKitWidgets -isystem /usr/include/qt/QtPrintSupport -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtWebKit -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++ -o optionsdialog.o optionsdialog.cpp
optionsdialog.cpp: In member function ‘void OptionsDialog::validateShortcut(int, int)’:
optionsdialog.cpp:221:46: error: invalid use of incomplete type ‘class QAction’
             new QTableWidgetItem(actions[row]->shortcut().toString()));
                                              ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:228:58: error: invalid use of incomplete type ‘class QAction’
                         new QTableWidgetItem(actions[row]->shortcut().toString()));
                                                          ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:229:129: error: invalid use of incomplete type ‘class QAction’
                     QMessageBox::information(this, tr("Conflict"), tr("This shortcut is already used for \"%1\"").arg(actions[c]->text().remove('&')));
                                                                                                                                 ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:237:40: error: invalid use of incomplete type ‘class QAction’
         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
                                        ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:237:88: error: expected primary-expression before ‘>’ token
         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
                                                                                        ^
optionsdialog.cpp:237:90: error: expected primary-expression before ‘)’ token
         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
                                                                                          ^
optionsdialog.cpp: In member function ‘void OptionsDialog::setupShortcutsTable()’:
optionsdialog.cpp:254:62: error: invalid use of incomplete type ‘class QAction’
         QTableWidgetItem *label = new QTableWidgetItem(action->text().remove('&'));
                                                              ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:256:51: error: invalid use of incomplete type ‘class QAction’
         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
                                                   ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:256:99: error: expected primary-expression before ‘>’ token
         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
                                                                                                   ^
optionsdialog.cpp:256:101: error: expected primary-expression before ‘)’ token
         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
                                                                                                     ^
optionsdialog.cpp:257:19: error: invalid use of incomplete type ‘class QAction’
         if (action->shortcut() != defaultKeySeq) {
                   ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:262:66: error: invalid use of incomplete type ‘class QAction’
         QTableWidgetItem *accel = new KeySequenceTableItem(action->shortcut());
                                                                  ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp: In member function ‘void OptionsDialog::readState()’:
optionsdialog.cpp:317:50: error: invalid use of incomplete type ‘class QAction’
         if (options->hasCustomShortcut(actions[i]->objectName())) {
                                                  ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:318:101: error: invalid use of incomplete type ‘class QAction’
             ui->shortcutsTable->item(i, 1)->setData(Qt::EditRole, options->customShortcut(actions[i]->objectName()));
                                                                                                     ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp: In member function ‘void OptionsDialog::saveState()’:
optionsdialog.cpp:358:46: error: invalid use of incomplete type ‘class QAction’
         options->addCustomShortcut(actions[i]->objectName(), customKeySeq);
                                              ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
make[1]: *** [Makefile:1619: optionsdialog.o] Error 1
make[1]: Leaving directory '/tmp/cutemarked/src/CuteMarkEd-0.11.3/app'
make: *** [Makefile:126: sub-app-make_first] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

It is the error as already reported on 2018-08-08 by @di72nn and works by inserting a #include <QAction> into app/optionsdialog.cpp.

@Esspy: Can you please incorporate this "patch", until upstream fixes it?

fawn commented on 2018-11-09 10:10 (UTC)

TO: di72nn Thanks, this patch is working.

di72nn commented on 2018-07-08 14:58 (UTC) (edited on 2018-07-08 15:01 (UTC) by di72nn)

Hey!

Build fails: https://github.com/cloose/CuteMarkEd/issues/367

Adding the following seems to fix that: sed -i -e "20i#include <QAction>" app/optionsdialog.cpp

Esspy commented on 2016-07-02 16:33 (UTC)

to fix please make a patch on file discountmarkdownconverter.cpp. change initial options to unsigned long converterOptions = MKD_TOC | MKD_NOSTYLE | MKD_FENCEDCODE; I've added "|MKD_FENCEDCODE" to enable fencedcode again. now cutemarked render all md correctly. cheers

Esspy commented on 2016-06-12 08:31 (UTC)

misrendering build-in snippets. e.g. ~~~java System.out.println(System.getProperty("java.version")); ~~~ renders to <p><del>java System.out.println(System.getProperty(&ldquo;java.version&rdquo;)); </del></p> so every codeblock is strikedthrough. Even downgrade discount to version 2.1.7 does not help.

JohnRobson commented on 2015-07-26 08:19 (UTC)

looking for conflicting packages... :: discount and markdown are in conflict. Remove markdown? [y/N] error: unresolvable package conflicts detected error: failed to prepare transaction (conflicting dependencies) :: discount and markdown are in conflict I need to remove markdown?!

Aetf commented on 2015-02-02 08:58 (UTC)

Oh I haven't thought about how CONFIG+=ordered worked before. Thank you for pointing that out. ;) I have updated the pull request to upstream to declare the dependencies. Hopefully the buildfile can be adapted soon.

nagy commented on 2015-02-01 15:47 (UTC)

Thank you. If I understand it correctly CONFIG+=ordered just runs the build with a single core/thread. Just like an "make -j1" would do. In this case the two parallel builds which are currently in the buildfile are faster because they still are run in parallel even if the first one might fail. The problem that causes that parallel build to fail is that upstream has not declared a dependency correctly in one module. I dont know which one. you can read more about that here: http://blog.rburchell.com/2013/10/every-time-you-configordered-kitten-dies.html Anyway, I think that upstream should declare that dependency and then the buildfile can be adapted to just use one make run.

Aetf commented on 2015-02-01 07:43 (UTC)

Hi, drevilt The possible make failure on first run is caused by parallel make. See this: https://github.com/cloose/CuteMarkEd/pull/201 For the current release version, it can be fixed in prepare: prepare() { cd $srcdir/$_realname-$pkgver sed -i -e "s,#include <discount/mkdio.h>,#include <mkdio.h>,g" app-static/converter/discountmarkdownconverter.cpp echo "CONFIG += ordered" >> CuteMarkEd.pro }

nagy commented on 2014-09-10 11:56 (UTC)

I just tested it and i can compile it without problems.

store88 commented on 2014-09-07 12:49 (UTC)

https://github.com/cloose/CuteMarkEd/issues/165 Can't compile, is anyone successed?

fluxboxer commented on 2014-01-30 13:45 (UTC)

Thanks.

nagy commented on 2014-01-30 13:03 (UTC)

you need to update discount to 2.1.7

fluxboxer commented on 2014-01-29 19:53 (UTC)

converter/discountmarkdownconverter.cpp:23:28: fatal error: discount/mkdio.h: No such file or directory #include <discount/mkdio.h> ^ compilation terminated. Makefile:981: recipe for target 'discountmarkdownconverter.o' failed make[1]: *** [discountmarkdownconverter.o] Error 1 make[1]: Leaving directory '/tmp/yaourt-tmp-root/aur-cutemarked/src/CuteMarkEd-0.9.0/app-static' Makefile:143: recipe for target 'sub-app-static-make_first' failed make: *** [sub-app-static-make_first] Error 2 FOR THE FULL OUTPUT: http://hastebin.com/raw/dijusuxafu

fluxboxer commented on 2013-11-07 11:03 (UTC)

Solved, thank you. Sorry for the late response.

nagy commented on 2013-11-05 20:49 (UTC)

562: make[1]: /usr/lib/qt/bin/lrelease: Command not found I have added qt5-tools as makedepends. try it now. it should at least get past that error.

fluxboxer commented on 2013-11-05 18:21 (UTC)

http://hastebin.com/hemidapiri.coffee

nagy commented on 2013-11-04 23:10 (UTC)

i dont get this error. does it say anything more ? can you post the full log in a pastebin ?

fluxboxer commented on 2013-11-04 22:24 (UTC)

Makefile:65: recipe for target 'sub-app-make_first' failed make: *** [sub-app-make_first] Error 2