easybuilders / easybuild-easyconfigs

A collection of easyconfig files that describe which software to build using which build options with EasyBuild.
https://easybuild.io
GNU General Public License v2.0
364 stars 698 forks source link

Octave - no syntax highligting #2767

Open hajgato opened 8 years ago

hajgato commented 8 years ago

Octave needs QScintilla2 to have syntax highlighting. QScintilla2 depends on Qt (can be used with both Qt4 and Qt5, and it installs itself into the original Qt directory. I did not investigate how could I install the necessary files to another directory, and if it is installed in another directory, how could be used. Its the fascinating world of qmake

ocaisa commented 8 years ago

I got around this by adding Qscintilla to the initial Qt install. The relevant bits are:

#QScintilla
qscintilla = 'QScintilla'
qscintilla_version = '2.9.2'

source_urls = [
    'http://download.qt.io/official_releases/qt/%(version_major_minor)s/%(version)s/',
    'http://download.qt.io/archive/qt/%(version_major_minor)s/%(version)s/',
    #Qscintilla
    'http://sourceforge.net/projects/pyqt/files/QScintilla2/%s-%s/' % (qscintilla, qscintilla_version),
]
sources = [
    '%(namelower)s-everywhere-opensource-src-%(version)s.tar.gz',
    '%s_gpl-%s.tar.gz' % (qscintilla, qscintilla_version),
]

and

# Install QScintilla (needed by Octave) by brute force
installqscintilla = "cd %(builddir)s &&"
installqscintilla += "cd %s_gpl-%s/Qt4Qt5 &&" % (qscintilla, qscintilla_version)
installqscintilla += "%(installdir)s/bin/qmake qscintilla.pro && make && make install"
postinstallcmds = [installqscintilla]
hajgato commented 8 years ago

@ocaisa Where does it install QScintilla? To the origininal Qt directory, or somewhere else? I am not so happy if it installs to the original Qt directory.

ocaisa commented 8 years ago

Yeah, its a hack, it installs at the same time as Qt so adds the libs to the same directory

boegel commented 8 years ago

@ocaisa any reason why you're not including QScintilla as a dependency?

ocaisa commented 8 years ago

Because I don't know how to install Qt extensions without them ending up in the initial Qt install path.

On 2 May 2016 5:12 p.m., "Kenneth Hoste" notifications@github.com<mailto:notifications@github.com> wrote:

@ocaisahttps://github.com/ocaisa any reason why you're not including QScintilla as a dependency?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHubhttps://github.com/hpcugent/easybuild-easyconfigs/issues/2767#issuecomment-216246139



Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,

Prof. Dr. Sebastian M. Schmidt


hajgato commented 8 years ago

@boegel @ocaisa I tried to look into this issue at the beginning, and I found that it is not possible to install Qt extensions to a separate directory without patching Qt. At least I was not able to figure out, although I did not spend too much time with this issue, as it was not crucial for me.