gerbilvis / gerbil

Gerbil Hyperspectral Visualization and Analysis Framework
http://gerbilvis.org
GNU General Public License v3.0
43 stars 15 forks source link

Fix build on cross compilation environment #30

Closed ribalda closed 9 years ago

ypnos commented 9 years ago

Thank you for your contribution. Could you give more detail on what environment it is tha necessitates this fix?

p.s.: I am working on moving over to Qt5. There is only a small issue to be fixed.

ribalda commented 9 years ago

Hi

I am preparing an openembedded recipe:

./common/recipes-graphics/gerbil/gerbil_git.bb ricardo@neopili:~/curro/qt5022/build-qt5022/repo/qtec$ cat ./common/recipes-graphics/gerbil/gerbil_git.bb DESCRIPTION = "Generic framework for visualization and analysis of multispectral and hyperspectral data that strives to both bring new innovations in analysis capabilities and be of use in a wide range of hyperspectral data applications" HOMEPAGE = "http://gerbilvis.org/"

LICENSE ="GPLv3" LIC_FILES_CHKSUM ="file://LICENSE;md5=d32239bcb673463ab874e80d47fae504"

DEPENDS = "boost qt4-x11-free tbb opencv" RDEPENDS_${PN} += "qt4-x11-free"

SRC_URI = "git://github.com/ribalda/gerbil.git" SRCREV = "eb92e120f815c0725f11ba0f82cf989376519cd5"

S = "${WORKDIR}/git"

inherit distutils-base cmake qt4x11

export EXTRA_OECMAKE = "\ -DQT_MOC_EXECUTABLE=${OE_QMAKE_MOC} \ -DQT_UIC_EXECUTABLE=${OE_QMAKE_UIC} \ -DQT_RCC_EXECUTABLE=${OE_QMAKE_RCC} \ " do_configure() {

Ensure we get the cmake configure and not qmake

cmake_do_configure }

do_install() { install -d ${D}${bindir} install -m 755 bin/gerbil ${D}${bindir}/ install -m 755 bin/qgerbil ${D}${bindir}/ }

On Fri, Sep 11, 2015 at 1:20 PM, ypnos notifications@github.com wrote:

Thank you for your contribution. Could you give more detail on what environment it is that makes this fix necessary?

p.s.: I am working on moving over to Qt5. There is only a small issue to be fixed.

— Reply to this email directly or view it on GitHub https://github.com/gerbilvis/gerbil/pull/30#issuecomment-139518939.

Ricardo Ribalda