[Slackbuilds-users] QGIS 3 on Slackware

Benjamin Trigona-Harany slackbuilds at jaxartes.net
Mon Mar 5 15:33:10 UTC 2018


On Monday, 5 March 2018 02:50:51 PST Frédéric Falsetti wrote:
> Hi,
> an idea of what I did wrong ?
> 
> patching file qwtfunctions.pri
> Info: creating stash file /tmp/SBo/qwt-6.1.3/build/.qmake.stash
> cd src/ && ( test -e Makefile || /usr/bin/qmake-qt5
> /tmp/SBo/qwt-6.1.3/src/src.pro LIBDIRSUFFIX= -o Makefile ) && make -f
> Makefile make[1] : on entre dans le répertoire
> « /tmp/SBo/qwt-6.1.3/build/src » compiling
> ../../src/qwt_abstract_scale_draw.cpp
> In file included from ../../src/qwt_global.h:13:0,
>                  from ../../src/qwt_abstract_scale_draw.h:13,
>                  from ../../src/qwt_abstract_scale_draw.cpp:10:
> /usr/include/qt5/QtCore/qglobal.h:1113:4: erreur : #error "You must build
> your code with position independent code if Qt was built with
> -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not
> enough)." #  error "You must build your code with position independent code
> if Qt was built with -r ^

Hi Frédéric, I should have mentioned that I only tested on Slackware64, so 
thanks for checking the process on 32-bit Slackware.

Could you try adding -fPIC to line 82 of the SlackBuild so it looks like this:

CXXFLAGS+="$SLKCFLAGS -std=c++11 -fPIC"

The error message suggests that this is the issue.

> On Sun, 04 Mar 2018 07:41:42 -0800
> 
> Benjamin Trigona-Harany <slackbuilds at jaxartes.net> wrote:
> > If anyone is interested in running QGIS 3.0.0 on Slackware 14.2, I have
> > working build scripts available. I would like feedback and bug reports, of
> > course, but I'm also interested in hearing how much demand there is for
> > QGIS 3 to be an official SlackBuild.
> > 
> > Instructions and new SlackBuilds are located here
> > https://github.com/bosth/
> > qgis3-slackbuild (this is still a work in progress so not everything is
> > intended to be ready for submission). The end product won't be compatible
> > with an existing QGIS 2.x installation.
> > 
> > For the missing but optional Python 3 modules I mentioned in the README,
> > you can just use pip3 install $NAME --user to install them until we have
> > proper Python 3 SlackBuilds. I believe it is just psycopg2, owslib and
> > Jinja2 that need this treatment.
> > 
> > Ben
> > 
> > 
> > _______________________________________________
> > SlackBuilds-users mailing list
> > SlackBuilds-users at slackbuilds.org
> > https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> > Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> > FAQ - https://slackbuilds.org/faq/
> 
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/






More information about the SlackBuilds-users mailing list