On 06/11/2018 03:11 AM, Ted Felix wrote:
On 06/07/2018 02:19 AM, david wrote:
CMake Error at /usr/share/cmake-3.7/Modules/FindX11.cmake:429 (message):
   Could not find X11
Call Stack (most recent call first):
   CMakeLists.txt:152 (find_package)

  That's odd.  I would expect the X11 libs to be required by the Qt libs.  Do you have the Qt4 and/or Qt5 libs installed?  (libqt4-dev,

Already QT4 had that installed.

qtbase5-dev, qttools5-dev)  Qt5 appears to depend on libxext-dev.  Qt4 doesn't appear to depend on anything that looks like X at all.

apt-get install qtbase5-dev qttools5-dev x11proto-core-dev

went to make the following changes:

The following additional packages will be installed:
libegl1 libgl1 libgl1:i386 libgl1-mesa-dev libgles2 libglu1-mesa-dev libglvnd-core-dev libglvnd-dev libglvnd0 libglvnd0:i386 libglx0 libglx0:i386 libopengl0 libpthread-stubs0-dev libx11-dev libx11-xcb-dev libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxshmfence-dev libxxf86vm-dev mesa-common-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-xext-dev x11proto-xf86vidmode-dev xtrans-dev
Suggested packages:
libxcb-doc libxext-doc default-libmysqlclient-dev firebird-dev libegl1-mesa-dev libpq-dev libsqlite3-dev unixodbc-dev
Recommended packages:
  libx11-doc libqt5opengl5-dev
The following NEW packages will be installed:
libgl1-mesa-dev libglu1-mesa-dev libglvnd-core-dev libglvnd-dev libopengl0 libpthread-stubs0-dev libx11-dev libx11-xcb-dev libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxshmfence-dev libxxf86vm-dev mesa-common-dev qtbase5-dev qttools5-dev x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-xext-dev
  x11proto-xf86vidmode-dev xtrans-dev
The following packages will be upgraded:
libegl1 libgl1 libgl1:i386 libgles2 libglvnd0 libglvnd0:i386 libglx0 libglx0:i386

There's no package in Debian called X11. There are many many X11 packages that include "-dev" in their names. x11proto-dev is the only one not marked as a dummy package. I installed x11proto-dev but that makes no difference.

  Of the ones I have installed, x11proto-core-dev jumps out at me. That might be it.

Installed it.

Tried again, it got past the X11 and liblo check, then failed at finding package "lrdf".

So track that down, then:

apt-get install liblrdf0-dev

That makes these changes:

The following additional packages will be installed:
gir1.2-harfbuzz-0.0 icu-devtools libcurl4-gnutls-dev libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libicu-le-hb-dev libicu-le-hb0:i386 libicu60:i386 libpcre16-3 libpcre3-dev libpcre32-3 libraptor2-dev libxml2 libxml2:i386 libxml2-dev libxslt1-dev libyajl-dev python3-distutils python3-lib2to3
Suggested packages:
libcurl4-doc libgnutls28-dev libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev libglib2.0-doc libgraphite2-utils icu-doc libraptor2-doc
Recommended packages:
  raptor2-utils
The following NEW packages will be installed:
gir1.2-harfbuzz-0.0 icu-devtools libcurl4-gnutls-dev libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libicu-le-hb-dev libicu-le-hb0:i386 libicu60:i386 liblrdf0-dev libpcre16-3 libpcre3-dev libpcre32-3 libraptor2-dev libxml2-dev libxslt1-dev libyajl-dev python3-distutils python3-lib2to3
The following packages will be upgraded:
  libxml2 libxml2:i386

Then cmake 3.7 ran and it's building right now.

Which one(s) do I need?

  It's a good question.  It sounds like the list we have on the wiki is incomplete:

https://www.rosegardenmusic.com/wiki/dev:contributing

I have cmake 3.7, will 3.11 work better?

  Not sure.  My first thought is, no.  But then again, this might be happening because of whatever boilerplate is used to detect the presence of Qt (or something else).  And that boilerplate might be provided by cmake.

I think cmake 3.7 was ok. Just a lot of -dev packages to install.

Saw this while watching the build:

In file included from /home/david/Downloads/rosegarden-18.06/src/gui/seqmanager/MetronomeMapper.cpp:31:0: /home/david/Downloads/rosegarden-18.06/src/sound/MappedEvent.h: In member function ‘virtual void Rosegarden::MetronomeMapper::fillBuffer()’: /home/david/Downloads/rosegarden-18.06/src/sound/MappedEvent.h:258:27: warning: ‘pitch’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         m_recordedDevice(0) {}
                           ^
/home/david/Downloads/rosegarden-18.06/src/gui/seqmanager/MetronomeMapper.cpp:202:22: note: ‘pitch’ was declared here
             MidiByte pitch;
                      ^~~~~
In file included from /home/david/Downloads/rosegarden-18.06/src/gui/seqmanager/MetronomeMapper.cpp:31:0: /home/david/Downloads/rosegarden-18.06/src/sound/MappedEvent.h:258:27: warning: ‘velocity’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         m_recordedDevice(0) {}
                           ^
/home/david/Downloads/rosegarden-18.06/src/gui/seqmanager/MetronomeMapper.cpp:201:22: note: ‘velocity’ was declared here
             MidiByte velocity;

and these:

/home/david/Downloads/rosegarden-18.06/src/base/Exception.cpp: In constructor ‘Rosegarden::Exception::Exception(const char*, const char*, int)’: /home/david/Downloads/rosegarden-18.06/src/base/Exception.cpp:31:55: warning: unused parameter ‘file’ [-Wunused-parameter]
 Exception::Exception(const char *message, const char *file, int line) :
                                                       ^~~~
/home/david/Downloads/rosegarden-18.06/src/base/Exception.cpp:31:65: warning: unused parameter ‘line’ [-Wunused-parameter]
 Exception::Exception(const char *message, const char *file, int line) :
                                                                 ^~~~
/home/david/Downloads/rosegarden-18.06/src/base/Exception.cpp: In constructor ‘Rosegarden::Exception::Exception(std::__cxx11::string, std::__cxx11::string, int)’: /home/david/Downloads/rosegarden-18.06/src/base/Exception.cpp:49:55: warning: unused parameter ‘file’ [-Wunused-parameter]
 Exception::Exception(std::string message, std::string file, int line) :
                                                       ^~~~
/home/david/Downloads/rosegarden-18.06/src/base/Exception.cpp:49:65: warning: unused parameter ‘line’ [-Wunused-parameter]
 Exception::Exception(std::string message, std::string file, int line) :
                                                                 ^~~~
/home/david/Downloads/rosegarden-18.06/src/base/Exception.cpp: In constructor ‘Rosegarden::Exception::Exception(QString, QString, int)’: /home/david/Downloads/rosegarden-18.06/src/base/Exception.cpp:67:47: warning: unused parameter ‘file’ [-Wunused-parameter]
 Exception::Exception(QString message, QString file, int line) :
                                               ^~~~
/home/david/Downloads/rosegarden-18.06/src/base/Exception.cpp:67:57: warning: unused parameter ‘line’ [-Wunused-parameter]
 Exception::Exception(QString message, QString file, int line) :

And some more:

/home/david/Downloads/rosegarden-18.06/src/commands/segment/AudioSegmentAutoSplitCommand.cpp: In member function ‘virtual void Rosegarden::AudioSegmentAutoSplitCommand::execute()’: /home/david/Downloads/rosegarden-18.06/src/commands/segment/AudioSegmentAutoSplitCommand.cpp:72:1: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
 AudioSegmentAutoSplitCommand::execute()
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/david/Downloads/rosegarden-18.06/src/commands/segment/AudioSegmentAutoSplitCommand.cpp:140:20: note: ‘sprintf’ output between 2 and 11 bytes into a destination of size 10
             sprintf(splitNumber, "%d", splitCount++);

I get to see this because I forgot the parameter to make the job use more than one core ...

OK, target rosegarden built. :)

Unfortunately ... :(

~/Downloads/rosegarden-18.06/build$ ./rosegarden
[main] Thorn -  true
[main] System Locale: "en_US"
[main] Qt translations path:  "/usr/share/qt5/translations"
[main] Qt translations not loaded.
[main] RG Translation: trying to load :locale/ "en_US"
[main] RG Translations loaded successfully.
[main] Loaded application icon " "rg-rwb-rose3-16x16" "
[main] Loaded application icon " "rg-rwb-rose3-32x32" "
[main] Loaded application icon " "rg-rwb-rose3-48x48" "
[main] Loaded application icon " "rg-rwb-rose3-64x64" "
[main] Loaded application icon " "rg-rwb-rose3-128x128" "
[main] *** This is the first time running this Rosegarden version
[AlsaDriver] setCurrentTimer(): WARNING: using system timer with only 250 Hz resolution! [AlsaDriver] setCurrentTimer(): WARNING: using system timer with only 250 Hz resolution! [Composition] Composition::getTrackById( 0 ) - WARNING - track id not found, this is probably a BUG /home/david/Downloads/rosegarden-18.06/src/base/Composition.cpp : 1655
[AlsaDriver] renameDevice(): WARNING: Cannot find device  1  in port map
double free or corruption (out)
Aborted

Splash screen appears and vanishes almost immediately. Perhaps related to those warnings about format overflows and sprintf trying to put too many bytes into too small a space?

--
David W. Jones
gn...@hawaii.rr.com
authenticity, honesty, community
http://dancingtreefrog.com

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Reply via email to