openAVproductions/openAV-Sorcer

without system wide install, header.png not found

Closed this issue · 4 comments

hard coded location:

gui/canvas.hxx:225: imagePointer = Gdk::Pixbuf::create_from_file ("/usr/lib/lv2/sorcer.lv2/header.png");
gui/canvas.hxx:236: imagePointer = Gdk::Pixbuf::create_from_file ("/usr/local/lib/lv2/sorcer.lv2/header.png");

Work is ongoing to include the image as a header file and compile it into the .so, fixing this issue.

Thanks for the report, -Harry

No problem, was taking some of my own advice ;-)

You could also use the waf function to write config headers, and use then a defined macro to load the image.
/gui/wscript

ctx.env.CXXFLAGS = ['-I./','-I/usr/lib/faust/','-I/usr/lib/faust/gui','-Wall','-O3','-ffast-math']

ctx.define('SOURCER_INSTALL_DIR', ctx.env['PREFIX'])
ctx.write_config_header('config.h')

compileinstall.sh
if [ $(whoami) = root ]
then
path="/usr/lib/lv2/sorcer.lv2"
else
path=$HOME"/.lv2/sorcer.lv2"
fi

cd gui

./waf configure --prefix=$path > /dev/null 2>&1

/gui/canvas.hxx
#include "config.h"

// Load pixbuf
try {
imagePointer = Gdk::Pixbuf::create_from_file (SOURCER_INSTALL_DIR"/header.png");
headerLoaded = true;
}

The UI overhaul for Sorcer 1.1 has fixed this issue. Marking as closed.