GUI moving forward, and Quiet 0.008 tag

7 views
Skip to first unread message

Gabriel M. Beddingfield

unread,
Sep 25, 2010, 6:55:40 PM9/25/10
to compos...@googlegroups.com

Hello,

If anyone has been tracking the sources in Gitorious, you
may have seen that I quietly made a 0.008 tag. It contains
some minor changes and patches from Debian. I tagged it
because I was about to make big changes again.

Which brings me to big changes.... :-)

GUI:

I've reshuffled the old GUI code to an out-of-the-way place
and, well, started from scratch. If some of the old widgets
and dialogs prove useful, they'll be integrated back in and
brought in line with current coding practice.

The consequence is that Composite is no longer "a broken
version of Hydrogen." Instead it's "a totally useless
program that looks more hideous than the wireframes in the
specification." :-)

AUDIO BACKEND:

Some of the refactoring from Hydrogen is being continued in
order to provide infrastructure for elastic audio loops.
You shouldn't notice any difference.

LV2 SAMPLER:

There have been no changes, and AFAIK it should still work
fine.

Note that there's a known (minor) issue with the MIDI event
port. It assumes that all events it receives are indeed
MIDI events... which is a false assumption. Fixing it
requires adding the URI-map extension and checking the event
type. I've put off fixing this until I need to do other LV2
stuff... or until somebody complains about a crash. (So far
I've had no reports.)

The workaround: Only connect MIDI things to the Composite
Events port.

-gabriel

Patrick Shirkey

unread,
Sep 25, 2010, 8:40:30 PM9/25/10
to compos...@googlegroups.com
Good to hear you are moving forward again.

Does any of the ui work now?

Gabriel M. Beddingfield

unread,
Sep 25, 2010, 9:57:51 PM9/25/10
to compos...@googlegroups.com
On Saturday, September 25, 2010 07:40:30 pm Patrick Shirkey
wrote:

> Good to hear you are moving forward again.
>
> Does any of the ui work now?

Yes, but it's just buttons. It doesn't even try to load the
sound engine, yet.

Also, there's a new dependency on Imagemagick (specifically
the 'convert' command) in order to build.

-gabriel

Patrick Shirkey

unread,
Sep 25, 2010, 10:19:14 PM9/25/10
to compos...@googlegroups.com
Looking good so far except for this:

-- Found ImageMagick: TRUE
CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1080 (FILE):
  file Internal CMake error when trying to open file:
  /usr/local/src/composite/build/src/Composite/composite.qrc for reading.
Call Stack (most recent call first):
  src/Composite/CMakeLists.txt:83 (QT4_ADD_RESOURCES)


Something missing from the repo?


Cheers.

Gabriel M. Beddingfield

unread,
Sep 26, 2010, 7:42:10 AM9/26/10
to compos...@googlegroups.com, Patrick Shirkey
On Saturday, September 25, 2010 09:19:14 pm Patrick Shirkey
wrote:

> Looking good so far except for this:
>
> -- Found ImageMagick: TRUE
> CMake Error at
> /usr/share/cmake/Modules/FindQt4.cmake:1080 (FILE): file
> Internal CMake error when trying to open file:
> /usr/local/src/composite/build/src/Composite/composite.q
> rc for reading. Call Stack (most recent call first):
> src/Composite/CMakeLists.txt:83 (QT4_ADD_RESOURCES)
>
>
> Something missing from the repo?

Nope... nothing missing from the repo. Looks like a CMake
"issue". composite.qrc.in should be transformed to
composite.qrc. This generated file is given to
QT4_ADD_RESOURCES. However, it may not exist at that point
in the process. Looks like FindQt4.cmake is beeing a little
aggressive with its input checking.

What version of CMake do you have? I'm using 2.8.0.

Possible workaround:

* in src/Composite/CMakeLists.txt, comment out line 83
(the line with QT4_ADD_RESOURCES)

* Run cmake.

* Go back and uncomment the line.

* Run cmake again.

-gabriel

Patrick Shirkey

unread,
Sep 26, 2010, 7:52:10 AM9/26/10
to compos...@googlegroups.com
On Sun, Sep 26, 2010 at 9:42 PM, Gabriel M. Beddingfield <gabr...@gmail.com> wrote:
On Saturday, September 25, 2010 09:19:14 pm Patrick Shirkey
wrote:
> Looking good so far except for this:
>
> -- Found ImageMagick: TRUE
> CMake Error at
> /usr/share/cmake/Modules/FindQt4.cmake:1080 (FILE): file
> Internal CMake error when trying to open file:
> /usr/local/src/composite/build/src/Composite/composite.q
> rc for reading. Call Stack (most recent call first):
>   src/Composite/CMakeLists.txt:83 (QT4_ADD_RESOURCES)
>
>
> Something missing from the repo?

Nope... nothing missing from the repo.  Looks like a CMake
"issue".  composite.qrc.in should be transformed to
composite.qrc.  This generated file is given to
QT4_ADD_RESOURCES.  However, it may not exist at that point
in the process.  Looks like FindQt4.cmake is beeing a little
aggressive with its input checking.

What version of CMake do you have?  I'm using 2.8.0.


I'm running cmake version 2.6-patch 4. I will try updating.
 
Possible workaround:

 * in src/Composite/CMakeLists.txt, comment out line 83
   (the line with QT4_ADD_RESOURCES)

 * Run cmake.

 * Go back and uncomment the line.

 * Run cmake again.


disabled: 
=====================
 # cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local -DWANT_LRDF=ON

Configuration Summary for Tritium
---------------------------------

ENABLED..... QT4
ENABLED..... JACK
ENABLED..... LibSndfile
ENABLED..... LRDF
ENABLED..... FLAC
ENABLED..... FLAC++
disabled.... LibTar
disabled.... ZLIB
ENABLED..... LibArchive
ENABLED..... Boost
ENABLED..... Boost_UNIT_TEST_FRAMEWORK

Configuration Summary for Tritium Tests
---------------------------------------

ENABLED..... Boost
ENABLED..... Boost_UNIT_TEST_FRAMEWORK

Configuration Summary for Composite
-----------------------------------

ENABLED..... QT4

Configuration Summary for composite-gui
---------------------------------------

ENABLED..... QT4

Overall Configuration Summary
-----------------------------
* Install Directory           : /usr/local
* Data path                   : /usr/local/share/composite/data


-----------------------------------------------------------------
FOR ADVANCED CONFIGURATION, USE ccmake INSTEAD OF cmake

IMPORTANT:
after installing missing packages, remove CMakeCache.txt before
running cmake again!
-----------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/composite/build
[root@waiata build]# vi ../src/Composite/CMakeLists.txt 

Enabled:
=====================


[root@waiata build]# cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local -DWANT_LRDF=ON

Configuration Summary for Tritium
---------------------------------

ENABLED..... QT4
ENABLED..... JACK
ENABLED..... LibSndfile
ENABLED..... LRDF
ENABLED..... FLAC
ENABLED..... FLAC++
disabled.... LibTar
disabled.... ZLIB
ENABLED..... LibArchive
ENABLED..... Boost
ENABLED..... Boost_UNIT_TEST_FRAMEWORK

Configuration Summary for Tritium Tests
---------------------------------------

ENABLED..... Boost
ENABLED..... Boost_UNIT_TEST_FRAMEWORK
CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1080 (FILE):
  file Internal CMake error when trying to open file:
  /usr/local/src/composite/build/src/Composite/composite.qrc for reading.
Call Stack (most recent call first):
  src/Composite/CMakeLists.txt:83 (QT4_ADD_RESOURCES)



Configuration Summary for Composite
-----------------------------------

ENABLED..... QT4

Configuration Summary for composite-gui
---------------------------------------

ENABLED..... QT4

Overall Configuration Summary
-----------------------------
* Install Directory           : /usr/local
* Data path                   : /usr/local/share/composite/data


-----------------------------------------------------------------
FOR ADVANCED CONFIGURATION, USE ccmake INSTEAD OF cmake

IMPORTANT:
after installing missing packages, remove CMakeCache.txt before
running cmake again!
-----------------------------------------------------------------

-- Configuring incomplete, errors occurred!




--
Patrick Shirkey
Boost Hardware Ltd.

Gabriel M. Beddingfield

unread,
Sep 26, 2010, 2:15:32 PM9/26/10
to compos...@googlegroups.com
On Sunday, September 26, 2010 06:52:10 am Patrick Shirkey
wrote:

> I'm running cmake version 2.6-patch 4. I will try
> updating.

Thanks, I'll see if I can make it work with 2.6.

-gabriel

Gabriel M. Beddingfield

unread,
Sep 26, 2010, 3:15:48 PM9/26/10
to compos...@googlegroups.com
On Sunday, September 26, 2010 01:15:32 pm Gabriel M.

Fixed in Git.

-gabriel

Patrick Shirkey

unread,
Sep 27, 2010, 7:49:33 AM9/27/10
to compos...@googlegroups.com
Nice. Passed that one.

Now I have the following build error.

using: gcc (GCC) 4.4.4 20100630 (Red Hat 4.4.4-10)

=========

[  3%] Building CXX object src/Tritium/CMakeFiles/Tritium.dir/src/Action.o
In file included from /usr/local/src/composite/src/Tritium/./Tritium/EngineInterface.hpp:25,
                 from /usr/local/src/composite/src/Tritium/./Tritium/Engine.hpp:26,
                 from /usr/local/src/composite/src/Tritium/src/Action.cpp:25:
/usr/local/src/composite/src/Tritium/./Tritium/memory.hpp: In function ‘bool Tritium::not_aligned_N(void*, int)’:
/usr/local/src/composite/src/Tritium/./Tritium/memory.hpp:51: error: cast from ‘void*’ to ‘int’ loses precision
make[2]: *** [src/Tritium/CMakeFiles/Tritium.dir/src/Action.o] Error 1
make[1]: *** [src/Tritium/CMakeFiles/Tritium.dir/all] Error 2
make: *** [all] Error 2

=========


Cheers.

Gabriel M. Beddingfield

unread,
Sep 27, 2010, 8:16:18 AM9/27/10
to compos...@googlegroups.com

Hi Patrick,

On Monday, September 27, 2010 06:49:33 am Patrick Shirkey
wrote:


> :51: error: cast from ‘void*’ to ‘int’ loses precision
> make[2]: ***

Thanks for the report. I'm guessing you're doing a 64-bit
build? (Just curious... I'll get it fixed today...)

-gabriel

Patrick Shirkey

unread,
Sep 27, 2010, 8:36:31 AM9/27/10
to compos...@googlegroups.com
Ah yeah. I forget that sometimes.

No hurry. Just trying to help keep on top of the build process.


Cheers.

Gabriel M. Beddingfield

unread,
Sep 27, 2010, 8:44:21 AM9/27/10
to compos...@googlegroups.com

Hello,

On Monday, September 27, 2010 07:36:31 am Patrick Shirkey

wrote:
> > > :51: error: cast from ‘void*’ to ‘int’ loses
> > > :precision
> > >
> > > make[2]: ***
> >
> > Thanks for the report. I'm guessing you're doing a
> > 64-bit build? (Just curious... I'll get it fixed
> > today...)
>
> Ah yeah. I forget that sometimes.
>
> No hurry. Just trying to help keep on top of the build
> process.

It's fixed now. Was a 2-line fix.

-gabriel

Patrick Shirkey

unread,
Sep 27, 2010, 9:20:28 AM9/27/10
to compos...@googlegroups.com
Woohooo.  I see you!!!

Very nice. U got the look and feel perfectly :-)


Cheers.

--

Gabriel M. Beddingfield

unread,
Oct 4, 2010, 8:56:05 AM10/4/10
to compos...@googlegroups.com
On Monday, September 27, 2010 08:20:28 am Patrick Shirkey
wrote:

>
> Woohooo. I see you!!!
>
> Very nice. U got the look and feel perfectly :-)

Looks: Changed red to navy. Still looks bad... but not as
bad. :-)

Sounds: Composite now loads the GMkit and triggers sounds
whenever you click one of the matrix squares. Very
useless... but it hits a milestone of getting the audio
engine loaded again.

-gabriel


Reply all
Reply to author
Forward
0 new messages