On Monday 16 November 2015 02:12:13 D. Michael McIntyre wrote:
> I ran some tests on my laptop.  I wanted to test the consumer experience 
> with an installed release build.  Some observations...

Good idea ;)

> I expected running "cmake .." with no arguments would default to a 
> release build.  That does not appear to be the case.

I would expect so too.

It is somewhat a release build, I see  -DBUILD_RELEASE -DNDEBUG
when doing `make VERBOSE=1`.

But
* it was enabling unit tests and shared libs - I just fixed that
* I don't see -O2 or -O3.

OK, googling around says I need to set the default build type explicitly -> 
done.

> Starting fresh and doing an explicit release build:
> 
> Runs fine from ../rosegarden.
> 
> Installed, the resource bundle is missing.  No stylesheet, no 
> translations, no menus, no icons, no toolbars, etc.

Ouch.

Oh.... now I remember.... Resources in static libs need to be initialized
explicitly. Fixed.

> This is serious.  If it works from ../rosegarden then the resource 
> bundle must have been linked, but it isn't finding it at runtime when 
> running installed for some reason.

It sounds to me like you were not running the same binary from
the builddir and the install dir, somehow? They should have behaved the same.

> Debug builds run fine from ../rosegarden, but do not find the installed 
> library when run installed.  That's probably by design

Actually I expected that to work out of the box, with a RUNPATH in the binary.
But I see there's only one in the uninstalled binary, not in the installed one.
It works in KDE because we tune the cmake RPATH behavior a little bit.
OK, I imported that code now. I wish cmake would do this better out of the box.

I want installed debug binaries to work - this is how I use every Qt app out 
there ;) 

-- 
David Faure, [email protected], http://www.davidfaure.fr
Working on KDE Frameworks 5


------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to