Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157501 - media-sound/canorus :: music score editor (new ebuild)
Summary: media-sound/canorus :: music score editor (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://canorus.berlios.de
Whiteboard: sunrise suggested
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-12-08 02:38 UTC by Franz Trischberger
Modified: 2009-08-29 12:09 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/usr/share/cmake/Modules/FindPythonLibs.cmake (FindPythonLibs.cmake,6.34 KB, text/plain)
2006-12-08 02:40 UTC, Franz Trischberger
Details
/usr/share/cmake/Modules/FindPythonInterp.cmake (FindPythonInterp.cmake,2.13 KB, text/plain)
2006-12-08 02:42 UTC, Franz Trischberger
Details
README (for help with patching some *.cmake-files) (README,3.39 KB, text/plain)
2006-12-08 02:44 UTC, Franz Trischberger
Details
media-sound/canorus-9999.ebuild (canorus-9999.ebuild,822 bytes, text/plain)
2006-12-08 02:46 UTC, Franz Trischberger
Details
media-sound/canorus-9999.ebuild (added dev-lang/swig to dependencies) (canorus-9999.ebuild,844 bytes, text/plain)
2006-12-08 09:24 UTC, Franz Trischberger
Details
media-sound/canorus-0.2.5 (canorus-0.2.5.ebuild,1.24 KB, text/plain)
2007-04-13 02:00 UTC, Daniel Lin
Details
files/0.2.5-link-fix.patch (0.2.5-link-fix.patch,553 bytes, patch)
2007-04-13 02:03 UTC, Daniel Lin
Details | Diff
Canorus svn-ebuild from proaudio-overlay with a few modifications (canorus-9999.ebuild,1.22 KB, text/plain)
2009-04-24 15:43 UTC, Jussi Saarinen
Details
Patch fixing cmake's MAKE_DIRECTORY-commands (fix-MAKE_DIRECTORY-commands.diff,981 bytes, patch)
2009-04-24 15:45 UTC, Jussi Saarinen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2006-12-08 02:38:19 UTC
Canorus is the successor of Noteedit, using Qt4 for the Gui.
Canorus is still in hard development, so many features are missing, but development is really fast.

In order to build canorus succesfully, you need to change some cmake-files:
* patched FindPython*.cmake (both attached, thx to Jeremias Epperlein :) )
* patched FindRuby.cmake (look at the attached README)
* probably patched FindSWIG.cmake (look at the attached README)

As there were some important updates since the release of the 0.1-Version, I will only post a svn-ebuild. Without these changes to the code canorus wont run. (Thx to Matevž Jekovec for the really fast help :) )
Comment 1 Franz Trischberger 2006-12-08 02:40:12 UTC
Created attachment 103613 [details]
/usr/share/cmake/Modules/FindPythonLibs.cmake
Comment 2 Franz Trischberger 2006-12-08 02:42:12 UTC
Created attachment 103614 [details]
/usr/share/cmake/Modules/FindPythonInterp.cmake

FindPython*.cmake:
-> cmake bug entry: http://www.cmake.org/Bug/bug.php?op=show&bugid=2257&pos=21
Comment 3 Franz Trischberger 2006-12-08 02:44:11 UTC
Created attachment 103615 [details]
README (for help with patching some *.cmake-files)

Please read this for patching FindRuby.cmake (and probably some other files).
Comment 4 Franz Trischberger 2006-12-08 02:46:46 UTC
Created attachment 103616 [details]
media-sound/canorus-9999.ebuild

Canorus svn-ebuild
Comment 5 Franz Trischberger 2006-12-08 09:24:07 UTC
Created attachment 103632 [details]
media-sound/canorus-9999.ebuild (added dev-lang/swig to dependencies)

Sorry, I forgot to add swig to DEPEND. Fixed that.
Comment 6 Daniel Lin 2007-04-13 02:00:57 UTC
Created attachment 116111 [details]
media-sound/canorus-0.2.5

I'm not entirely sure this ebuild is correct, but it works for me.
Comment 7 Daniel Lin 2007-04-13 02:03:02 UTC
Created attachment 116113 [details, diff]
files/0.2.5-link-fix.patch

This should probably be made conditional on Python, but I was lazy.
Comment 8 Franz Trischberger 2007-04-20 10:15:57 UTC
(In reply to comment #7)
> Created an attachment (id=116113) [edit]
> files/0.2.5-link-fix.patch
> 
> This should probably be made conditional on Python, but I was lazy.
> 
Thx for the ebuild. When I tried it, portage claimed, the tar wasnt bzip-compressed. So the canorus-team finally managed to correct this :)

Canorus uses the Scripting-engine for generating new documents.
When i disable swig-useflag, cmake claims to not know the command SWIG_ADD_MODULE, which is needed for both, ruby and python-scripting. When i disable all USE-Flags, the build fails:

-----------------------------------------
/var/tmp/portage/media-sound/canorus-0.2.5/work/canorus-0.2.5/src/interface/plugin.cpp:226: error: 'CACanorus' has not been declared
/var/tmp/portage/media-sound/canorus-0.2.5/work/canorus-0.2.5/src/interface/plugin.cpp:226: error: invalid type in declaration before '(' token
/var/tmp/portage/media-sound/canorus-0.2.5/work/canorus-0.2.5/src/interface/plugin.cpp:226: error: invalid conversion from 'CADocument*' to 'int'
/var/tmp/portage/media-sound/canorus-0.2.5/work/canorus-0.2.5/src/interface/plugin.cpp:228: error: 'CACanorus' has not been declared
/var/tmp/portage/media-sound/canorus-0.2.5/work/canorus-0.2.5/src/interface/plugin.cpp:228: error: invalid type in declaration before '(' token
/var/tmp/portage/media-sound/canorus-0.2.5/work/canorus-0.2.5/src/interface/plugin.cpp:228: error: initializer expression list treated as compound expression
/var/tmp/portage/media-sound/canorus-0.2.5/work/canorus-0.2.5/src/interface/plugin.cpp:228: error: invalid conversion from 'CASheet*' to 'int'
---------------------------------

So it is better to remove the swig-useflag. And of course, if both, ruby and python flags, are diabled, we should use at least one (python, as it comes by default with gentoo).

I will try to get this done ASAP.

Franz
Comment 9 kavol 2007-07-31 10:57:47 UTC
(In reply to comment #8)
> When i disable swig-useflag, cmake claims to not know the command
> SWIG_ADD_MODULE,

there is an easy workaround, see bug 187236

however, for me it fails at 99% while linking :-(
Comment 10 Franz Trischberger 2007-08-01 07:45:16 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > When i disable swig-useflag, cmake claims to not know the command
> > SWIG_ADD_MODULE,
> 
> there is an easy workaround, see bug 187236

Sorry, but in this case the workaround doesn't work :/
It's a problem with upstream-CMakeLists. I've posted a note on the mailing-list.
The problem is that they ask if swig is present and set USE_SWIG. BUT! When setting up ruby/python, they do not anymore ask for USE_SWIG. This of course crashes the cmake-run. As there are of course systems without swig installed, i think swig should get installed per default to avoid this.

The symlinking i've done of course.
 
> however, for me it fails at 99% while linking :-(

If it fails due to python, try the FindPython*-files I've posted here. (They are in the CMake-Bugzilla since long time, but still they are not yet in the official release, what's a shame... )
Comment 11 kavol 2007-08-01 08:57:03 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > > When i disable swig-useflag, cmake claims to not know the command
> > > SWIG_ADD_MODULE,
> > 
> > there is an easy workaround, see bug 187236
> 
> Sorry, but in this case the workaround doesn't work :/

my mistake, I did not read carefully - of course swig has to be installed; no swig use flag in the pro-audio overlay ebuild ...

> > however, for me it fails at 99% while linking :-(
> 
> If it fails due to python, try the FindPython*-files I've posted here.

thanks for it, now it compiles ... and works ;-)
Comment 12 keenblade 2007-10-14 01:09:34 UTC
Hi. Although I tried the FindPython*-files found here and created the swig symbolic link, emerge fails with the following log:

SWIG found, using scripting extensions.
Ruby Library and Development files *not* found. Ruby extensions disabled!
Using the Python installation in /usr
Python Library and Development files found. Python extensions enabled.
-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999
[  1%] Swig source
core/canorusml.h:32: Warning(401): Nothing known about base class 'QXmlDefaultHandler'. Ignored.
interface/playback.h:20: Warning(401): Nothing known about base class 'QThread'. Ignored.
interface/mididevice.h:19: Warning(401): Nothing known about base class 'QObject'. Ignored.
Scanning dependencies of target _CanorusPython
[  1%] Building CXX object src/CMakeFiles/_CanorusPython.dir/scripting/canoruspythonPYTHON_wrap.o
[  2%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/document.o
[  3%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/sheet.o
[  4%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/context.o
[  4%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/staff.o
[  5%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/lyricscontext.o
[  6%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/functionmarkingcontext.o
[  7%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/canorusml.o
[  7%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/muselement.o
[  8%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/voice.o
[  9%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/barline.o
[ 10%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/clef.o
[ 11%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/keysignature.o
[ 11%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/timesignature.o
[ 12%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/playable.o
[ 13%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/note.o
[ 14%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/slur.o
[ 14%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/rest.o
[ 15%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/syllable.o
[ 16%] Building CXX object src/CMakeFiles/_CanorusPython.dir/core/functionmarking.o
[ 17%] Building CXX object src/CMakeFiles/_CanorusPython.dir/rtmidi/RtMidi.o
[ 17%] Building CXX object src/CMakeFiles/_CanorusPython.dir/interface/rtmididevice.o
In file included from /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h:12,
                 from /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/interface/rtmididevice.cpp:12:
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/mainwin.h:17:24: error: ui_mainwin.h: No such file or directory
In file included from /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h:13,
                 from /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/interface/rtmididevice.cpp:12:
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/settingsdialog.h:15:31: error: ui_settingsdialog.h: No such file or directory
In file included from /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h:12,
                 from /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/interface/rtmididevice.cpp:12:
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/mainwin.h:76: error: expected class-name before ',' token
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/mainwin.h:76: error: 'Ui' has not been declared
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/mainwin.h:76: error: expected `{' before 'uiMainWindow'
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/mainwin.h:76: error: function definition does not declare parameters
In file included from /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h:13,
                 from /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/interface/rtmididevice.cpp:12:
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/settingsdialog.h:19: error: 'Ui' has not been declared
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/settingsdialog.h:19: error: expected `{' before 'uiSettingsDialog'
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/settingsdialog.h:19: error: function definition does not declare parameters
In file included from /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/interface/rtmididevice.cpp:12:
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h:29: error: 'CASettingsPage' in class 'CASettingsDialog' does not name a type
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h: In static member function 'static void CACanorus::removeViewPort(CAViewPort*)':
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h:47: error: invalid use of incomplete type 'class CAMainWin'
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/mainwin.h:76: error: forward declaration of 'class CAMainWin'
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h: In static member function 'static void CACanorus::restartTimeEditedTimes(CADocument*)':
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h:49: error: invalid use of incomplete type 'class CAMainWin'
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/mainwin.h:76: error: forward declaration of 'class CAMainWin'
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h:49: error: invalid use of incomplete type 'class CAMainWin'
/var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/mainwin.h:76: error: forward declaration of 'class CAMainWin'
make[2]: *** [src/CMakeFiles/_CanorusPython.dir/interface/rtmididevice.o] Error 1
make[1]: *** [src/CMakeFiles/_CanorusPython.dir/all] Error 2
make: *** [all] Error 2
 *
 * ERROR: media-sound/canorus-9999 failed.
 * Call stack:
 *             ebuild.sh, line 1687:  Called dyn_compile
 *             ebuild.sh, line 1025:  Called qa_call 'src_compile'
 *             ebuild.sh, line   44:  Called src_compile
 *   canorus-9999.ebuild, line   40:  Called die
 * The specific snippet of code:
 *      emake || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/media-sound:canorus-9999:20071014-010259.log'.
 * This ebuild is from an overlay: '/usr/local/overlays/proaudio/'
Comment 13 Franz Trischberger 2007-10-16 12:19:31 UTC
(In reply to comment #12)
> Hi. Although I tried the FindPython*-files found here and created the swig
> symbolic link, emerge fails with the following log:
> In file included from
> /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/core/canorus.h:12,
>                  from
> /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/interface/rtmididevice.cpp:12:
> /var/tmp/portage/media-sound/canorus-9999/work/canorus-9999/src/ui/mainwin.h:17:24:
> error: ui_mainwin.h: No such file or directory
> [...]

That is (was) an error in the sources. That's one problem when using live-svn-sources ;) This error is now fixed and canorus should compile fine.
Comment 14 Stephen E. Baker 2008-10-08 22:48:45 UTC
Is anyone still looking into this.  
Canorus' precursor noteedit which is in portage (media-sound/noteedit) has been inactive for years and is not compatible with kde4.
Comment 15 Auke Booij (tulcod) 2009-03-26 21:00:29 UTC
Although it seems that not much seems to be working yet, I was able to build canorus 0.7beta using a simple:
cmake CMakeLists.txt
make -j4
I didn't use any of the patches/cmake files provided in this bug. Arch: ~amd64 (last updated a day or two ago)
Comment 16 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-28 02:03:16 UTC
(this is an automated message based on filtering criteria that matched this bug)
'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached 
to this bug.
This bug is assigned to maintainer-wanted which means that it is not in the 
main tree.
Heuristics show that no Gentoo developer has commented on your ebuild.

Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Because this is a mass message, we are also asking you to be patient with us. 
We anticipate a large number of requests in a short time. 

Thanks,
On behalf of the Gentoo Sunrise Team,
Jeremy.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 17 Jussi Saarinen 2009-04-24 15:43:32 UTC
Created attachment 189326 [details]
Canorus svn-ebuild from proaudio-overlay with a few modifications

Hi!

Here another version of canorus-9999.ebuild-file. It is pretty much the same file that I found in the proaudio-overlay ( http://proaudio.tuxfamily.org ) with the following modifications:

1) I added a couple of missing dependencies: x11-libs/qt-webkit and x11-libs/qt-assistant

2) With the dependencies fixed the original ebuild from proaudio-overlay compiled OK but failed during install (access violation error) when in tried to create directories /usr/share/canorus/doc and  /usr/share/canorus/doc/usersguide. I made a patch (fix-MAKE_DIRECTORY-commands.diff) that fixed the commands by adding \$ENV{DESTDIR}/ to the directory making commands.

At least one problem remains with this ebuild: it doen's install canorus.desktop-file.
Comment 18 Jussi Saarinen 2009-04-24 15:45:02 UTC
Created attachment 189327 [details, diff]
Patch fixing cmake's MAKE_DIRECTORY-commands

And here's the patch I mentioned previously.
Comment 19 Samuli Suominen (RETIRED) gentoo-dev 2009-08-29 12:09:54 UTC
+*canorus-0.7_p1002 (29 Aug 2009)
+
+  29 Aug 2009; Samuli Suominen <ssuominen@gentoo.org>
+  +files/0.7_p1002-desktop_entry.patch, +canorus-0.7_p1002.ebuild,
+  +files/0.7_p1002-sandbox.patch:
+  Initial commit wrt #157501, thanks to multiple committers.