Solaris 11.2 compiling master

Discuss the future of Warzone 2100 with us.
User avatar
Tzeentch
Trained
Trained
Posts: 309
Joined: 14 Oct 2012, 14:24

Solaris 11.2 compiling master

Post by Tzeentch »

hey,

Begun my attempt to get warzone on this system and so far it has gone easier than FreeBSD. Alot of the checking sections from ./configure finds the right stuff after install, including gcc etc. only minor things missing giving the 'no' output.

Code: Select all

git clone https://github.com/Warzone2100/warzone2100/ war-test/ 
Only issue is I have qt5 installed but it cannot detect this during configure stage

Code: Select all

checking for QT5... no
configure: error: Qt 5 not found - required!
and here is where I have got it

Code: Select all

/export/home/user/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/bin/qmake -v
QMake version 3.0
Using Qt version 5.2.0 in /export/home/user/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib
I tried doing the following and same error appears.

Code: Select all

export QT_SELECT=/export/home/user/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib
or
export QT_SELECT=/export/home/user/qt-everywhere-opensource-src-5.2.0
Was installed using the following

Code: Select all

wget http://download.qt-project.org/official_releases/qt/5.2/5.2.0/single/qt-everywhere-opensource-src-5.2.0.tar.gz
cd qt-everywhere-opensource-src-5.2.0
./configure -prefix $MY_PREFIX -opensource -confirm-license -nomake tests \
    -R /opt/csw/lib/64 -R /opt/csw/X11/lib/64 -qt-xcb -platform solaris-g++-64 \
    -verbose
gmake -j16
gmake -j16 install
As per this page states http://stackoverflow.com/questions/2087 ... solaris-10




ideas?
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Solaris 11.2 compiling master

Post by vexed »

It can't find Qt 5's dev files... so, add that to your ./configure line, and it should find it then.
This seems like a pkg-config error if it can't find it though... did you do make install for Qt 5, or did you just download the packages someone else made?
/facepalm ...Grinch stole WarzoneπŸ™ˆπŸ™‰πŸ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
User avatar
Tzeentch
Trained
Trained
Posts: 309
Joined: 14 Oct 2012, 14:24

Re: Solaris 11.2 compiling master

Post by Tzeentch »

"add that to your ./configure line" urm like this? something I've done wrong

Code: Select all

./configure --QT5_LIBS="/export/home/user/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib"
configure: error: unrecognized option: `--QT5_LIBS=/export/home/user/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib'
Try `./configure --help' for more information
I got it from this site from QT which gives latest version, downloaded using wget as I posted. From there I did gmake then gmake install http://download.qt-project.org/official ... .0/single/
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Solaris 11.2 compiling master

Post by cybersphinx »

No -- before QT5_LIBS.
We want information... information... information.
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Solaris 11.2 compiling master

Post by vexed »

What he said... and BTW, master now requires SDL 2.
/facepalm ...Grinch stole WarzoneπŸ™ˆπŸ™‰πŸ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
User avatar
Tzeentch
Trained
Trained
Posts: 309
Joined: 14 Oct 2012, 14:24

Re: Solaris 11.2 compiling master

Post by Tzeentch »

Hmm tried that exactly as stated

Code: Select all

./configure QT5_LIBS="/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib" 
which still gives same...

checking for QT5... no
configure: error: Qt 5 not found - required!

note path changed as I moved under QT, so still the correct path to this lib. As per

Code: Select all

ls -la /export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib
total 8216
drwxr-xr-x   3 Tzeentch staff          6 Mar  9 17:42 .
drwxr-xr-x   6 Tzeentch staff          6 Mar  9 17:42 ..
-rw-r--r--   1 Tzeentch staff    4162464 Mar  9 17:42 libQt5Bootstrap.a
-rw-r--r--   1 Tzeentch staff        700 Mar  9 17:42 libQt5Bootstrap.la
-rw-r--r--   1 Tzeentch staff        887 Mar  9 17:42 libQt5Bootstrap.prl
drwxr-xr-x   2 Tzeentch staff          3 Mar  9 17:42 pkgconfig
the pkgconfig dir contains

Code: Select all

ls -la /export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib/pkgconfig/
total 8
drwxr-xr-x   2 Tzeentch staff          3 Mar  9 17:42 .
drwxr-xr-x   3 Tzeentch staff          6 Mar  9 17:42 ..
-rw-r--r--   1 Tzeentch staff        368 Mar  9 17:42 Qt5Bootstrap.pc

 
I'll take another look when I get some time, unless you'd be able to assist further would be great. I'm quite new to qt, don't know much about it
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Solaris 11.2 compiling master

Post by stiv »

.../qtbase/-opensource/...
Dir names starting with a '-' ? Seems a bit sketchy.
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Solaris 11.2 compiling master

Post by vexed »

Also, you might have to point PKG_CONFIG=... as well.
What is in your qt5 pc file anyway?
/facepalm ...Grinch stole WarzoneπŸ™ˆπŸ™‰πŸ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
User avatar
Tzeentch
Trained
Trained
Posts: 309
Joined: 14 Oct 2012, 14:24

Re: Solaris 11.2 compiling master

Post by Tzeentch »

it contains:

Code: Select all

prefix=/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include


Name: Qt5 Bootstrap
Description: Qt Bootstrap module
Version: 5.2.0
Libs: -L${libdir} -lQt5Bootstrap 
Libs.private: -L/usr/sfw/lib/64 -lpthread -lrt -lz  
Cflags: -I${includedir}/QtBootstrap -I${includedir}
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Solaris 11.2 compiling master

Post by vexed »

When you did make install for Qt's source, did it put the .pc file in the correct location so package config can find it?
/facepalm ...Grinch stole WarzoneπŸ™ˆπŸ™‰πŸ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
User avatar
Tzeentch
Trained
Trained
Posts: 309
Joined: 14 Oct 2012, 14:24

Re: Solaris 11.2 compiling master

Post by Tzeentch »

Uncertain so I used

Code: Select all

./configure PKG_CONFIG="/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib/pkgconfig/Qt5Bootstrap.pc"
gave different output next to QT5.

Code: Select all

checking for pkg-config >= 0.9... found 0.23, ok
checking for backend... SDL
checking for QT5... ./configure[8727]: --modversion: not found [No such file or directory]
checking for moc-qt5... no
checking for moc... no
checking for uic-qt5... no
checking for uic... no
checking for rcc-qt5... no
checking for rcc... no
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Solaris 11.2 compiling master

Post by vexed »

No, that won't work.
PKG_CONFIG=... is for the program itself.
Do echo $PKG_CONFIG_PATH to see what it shows now, and if Qt's .pc file is in the path.
If not, in your shell, do export PKG_CONFIG_PATH=/opt/where/I/installed/my/lib/pkgconfig/

Do you really have /export/home/... ? That is a odd way to do it, in your case it would be:
export PKG_CONFIG_PATH=/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib/pkgconfig/
(But, as stiv, said, I am unsure what -opensource will do in a shell, so echo $PKG_CONFIG_PATH and see it is correct).
/facepalm ...Grinch stole WarzoneπŸ™ˆπŸ™‰πŸ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
User avatar
Tzeentch
Trained
Trained
Posts: 309
Joined: 14 Oct 2012, 14:24

Re: Solaris 11.2 compiling master

Post by Tzeentch »

echo $PKG_CONFIG_PATH

blank.

Yes Solaris has /export/home by default (I don't know exact reasons.) http://www.c0t0d0s0.org/archives/4120-L ... utofs.html
Tried as stated.

Code: Select all

export PKG_CONFIG_PATH=/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib/pkgconfig/
echo $PKG_CONFIG_PATH
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib/pkgconfig/
./autogen.sh
./configure QT5_LIBS="/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib"
...
checking for backend... SDL
checking for QT5... no
configure: error: Qt 5 not found - required!
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Solaris 11.2 compiling master

Post by vexed »

No idea why pkg-config isn't working correctly on solaris.
Can you find where it stuffs the other *.pc files and then copy that over to there?
/facepalm ...Grinch stole WarzoneπŸ™ˆπŸ™‰πŸ™Š contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
User avatar
Tzeentch
Trained
Trained
Posts: 309
Joined: 14 Oct 2012, 14:24

Re: Solaris 11.2 compiling master

Post by Tzeentch »

ah right here so looks like its placed around, do I do the pch files as well?

Code: Select all

find / -iname *.pc* | grep -i qt
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtwebkit/Tools/MiniBrowser/mac/MiniBrowser_Prefix.pch
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/gtk/webkit.pc.in
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/efl/ewebkit.pc.in
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/JavaScriptCore/javascriptcoregtk.pc.in
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit2/webkit2gtk.pc.in
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit2/efl/ewebkit2.pc.in
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/qmake/.pch
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/src/corelib/.pch
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/src/3rdparty/zlib/zlib.pc.in
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/src/tools/rcc/.pch
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/src/tools/bootstrap/.pch
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/src/tools/moc/.pch
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/lib/pkgconfig/Qt5Bootstrap.pc
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/lib/pkgconfig/Qt5Core.pc
/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib/pkgconfig/Qt5Bootstrap.pc
copied em over.

Code: Select all

cp /export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/lib/pkgconfig/Qt5Bootstrap.pc /export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib/pkgconfig/
cp /export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/lib/pkgconfig/Qt5Core.pc /export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib/pkgconfig/
./autogen.sh
./configure
...
checking for backend... SDL
checking for QT5... no
configure: error: Qt 5 not found - required!
also tried with
./configure QT5_LIBS="/export/home/Tzeentch/QT/qt-everywhere-opensource-src-5.2.0/qtbase/-opensource/lib" but same output.

Do'h. Not trying to be a pain, would just love this on this OS.
Post Reply