Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Installing Qt » Source Install on Solaris 10 » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page Source Install on Solaris 10
Author
Post « Previous Thread | Next Thread »
doctorwatson
Assistant


Registration Date: 10.04.2008
Posts: 4

Level: 5 [?]
Experience: 149
Next Level: 173

24 points of experience needed for next level

Source Install on Solaris 10 Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

I'm having some trouble installing Qt 4.3.4. I read the HTML documentation for installing Qt X11 as well as the README and INSTALL files, and I first ran the configure script. It stopped part way through because it could not detect the endianess of my Sun Blade 100 system. So I re-ran the ./configure with the -big-endian option and the configuration script does complete. I also had to add a symlink CC to /usr/sfw/bin/g++.

However, during configuration the script spews out a lot of warnings like the following:
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
 Reading /opt/qt-x11-opensource-src-4.3.4/examples/designer/containerextension/containerextension.pro
WARNING: Failure to find: multipagewidgetcontainerextension.cpp
WARNING: Failure to find: multipagewidgetextensionfactory.cpp
WARNING: Failure to find: multipagewidgetcontainerextension.h
WARNING: Failure to find: multipagewidgetcontainerextension.cpp
WARNING: Failure to find: multipagewidgetextensionfactory.cpp
WARNING: Failure to find: multipagewidgetcontainerextension.h


When I try to run "gmake", the Makefile runs for about thirty minutes before it spits out an error saying it cannot find cc. I have two C compilers on the system, /usr/ucb/cc and then I have /usr/sfw/bin/gcc (and /usr/sfw/bin/g++ too). I want to tell the Qt make system to use /usr/sfw/bin/g++, but I searched in the make file and I did not see any place that I could remove cc and use the GNU versions in their place.

Is there more detailed documentation on installing Qt 4 on Solaris? Or is the INSTALL file really all there is?
10.04.2008 13:56 doctorwatson is offline Send an Email to doctorwatson Search for Posts by doctorwatson Add doctorwatson to your Buddy List
Junior Junior is a male
Expert


images/avatars/avatar-328.png

Registration Date: 27.11.2006
Posts: 406
Location: San Antonio, TX USA

Level: 29 [?]
Experience: 217,891
Next Level: 242,754

24,863 points of experience needed for next level

RE: Source Install on Solaris 10 Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

doctorwatson (I presume...) {couldn't resist...sri} smile

It's something simpler than that. I think I posted on this before, but it may have been a while ago.

Some reason the tar ball from qt doesn't uncompress well under solaris, some of the filenames get mutated or over wrote. You will probably find partial filenames of some of the output files in the directory if you search. However, that is a pain in the neck to go and rename them individual files by hand because of the amount of them. So I highly suggest the following...

Down load the tar to a windows box, unzip the tar (automatically with winzip) then re-zip it on the windows box. Then copy it on the solaris box and unzip the zip file with cmd: unzip -a <winzip file>. I do this now for everything going to a solaris box (out of habit).

Let me know if this doesn't work for you, but you will find the missing files will no longer be missing. Why this is, I don't have the foggiest, something to do with what you were saying I suppose.

Anyway, hope this helps.

Junior
11.04.2008 21:03 Junior is offline Send an Email to Junior Homepage of Junior Search for Posts by Junior Add Junior to your Buddy List YIM Account Name of Junior: junior3563
doctorwatson
Assistant


Registration Date: 10.04.2008
Posts: 4

Level: 5 [?]
Experience: 149
Next Level: 173

24 points of experience needed for next level

Thread Starter Thread Started by doctorwatson
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

No problem, that is exactly where I took the name from!

I unpacked and repacked the source archive on Cygwin and then moved it back to Solaris. That cleared up the previous error, thank you! I also edited the PATH variable and symlinked "g++" to "cc" and "CC". From the screen output it seems that halfway through the make process, the variable switches from CC to cc. I don't know if that is a mistake or intentional, and I don't know where to change it, so I just used symlinks to get over the issue. Hopefully it is g++ and gcc that is needed.

I still get an error when I try to build the source though. It appears to be a source code problem and I don't know if it is something I can fix.

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
cc -c -O -DQT_BOOTSTRAPPED -DQT_RCC -DQT_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_UNICODETABLES -DQT_NO_LIBRARY -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -I../../../mkspecs/solaris-cc -I. -I../../corelib/arch/generic -I../../../include -I. -I../../../include/QtCore -I../../../include/QtXml -I../../3rdparty/zlib -I.uic/release-shared -I/usr/sfw/include -o .obj/release-shared/adler32.o ../../3rdparty/zlib/adler32.c
../../3rdparty/zlib/adler32.c:57: error: `uLong adler32' redeclared as different kind of symbol
../../3rdparty/zlib/zlib.h:1274: error: previous declaration of `uLong adler32(uLong, const Bytef*, uInt)'
../../3rdparty/zlib/adler32.c:57: error: declaration of `uLong adler32'
../../3rdparty/zlib/zlib.h:1274: error: conflicts with previous declaration `uLong adler32(uLong, const Bytef*, uInt)'
../../3rdparty/zlib/adler32.c:57: error: `adler' was not declared in this scope
../../3rdparty/zlib/adler32.c:57: error: `buf' was not declared in this scope
../../3rdparty/zlib/adler32.c:57: error: `len' was not declared in this scope
../../3rdparty/zlib/adler32.c:58: error: initializer expression list treated as compound expression
../../3rdparty/zlib/adler32.c:58: error: expected `,' or `;' before "uLong"
../../3rdparty/zlib/adler32.c:61: error: expected unqualified-id before '{' token
../../3rdparty/zlib/adler32.c:61: error: expected `,' or `;' before '{' token
../../3rdparty/zlib/adler32.c:128: error: `uLong adler32_combine' redeclared as different kind of symbol
../../3rdparty/zlib/zlib.h:1290: error: previous declaration of `uLong adler32_combine(uLong, uLong, long int)'
../../3rdparty/zlib/adler32.c:128: error: declaration of `uLong adler32_combine'
../../3rdparty/zlib/zlib.h:1290: error: conflicts with previous declaration `uLong adler32_combine(uLong, uLong, long int)'
../../3rdparty/zlib/adler32.c:128: error: `adler1' was not declared in this scope
../../3rdparty/zlib/adler32.c:128: error: `adler2' was not declared in this scope
../../3rdparty/zlib/adler32.c:128: error: `len2' was not declared in this scope
../../3rdparty/zlib/adler32.c:129: error: initializer expression list treated as compound expression
../../3rdparty/zlib/adler32.c:129: error: expected `,' or `;' before "uLong"
../../3rdparty/zlib/adler32.c:132: error: expected unqualified-id before '{' token
../../3rdparty/zlib/adler32.c:132: error: expected `,' or `;' before '{' token
gmake[1]: *** [.obj/release-shared/adler32.o] Error 1
gmake[1]: Leaving directory `/opt/qt-4.3.4/src/tools/rcc'
gmake: *** [sub-rcc-make_default-ordered] Error 2



I have to say I'm really not impressed with Qt at the moment. I'm using the open source version for the moment, and if this little in-house project goes well my department is talking about getting some licenses for the commercial version for use in future projects for customers. But the install process seems to either bug ridden or under-documented. Random Sourceforge source bundles are normally easier to build than this Qt 4.3.4 mess of a source installer. I looked around for packages and SunFreeware.com only has Qt 3.x Solaris packages, and Blastwave only has Qt 3.x packages as well.
15.04.2008 01:16 doctorwatson is offline Send an Email to doctorwatson Search for Posts by doctorwatson Add doctorwatson to your Buddy List
Junior Junior is a male
Expert


images/avatars/avatar-328.png

Registration Date: 27.11.2006
Posts: 406
Location: San Antonio, TX USA

Level: 29 [?]
Experience: 217,891
Next Level: 242,754

24,863 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

doctorwatson,

I should of mentioned prior that it was needed to set the exec modes:
chmod -R 755 qt/bin
chmod -R 755 qt/config.tests
chmod 755 qt/configure

You probably figured this out since your already compling. Sorry about that.

Seem's to be with the third party packages Qt is introducing into there product. I know I have had some problems in the past with compling some of the 3rd party downloads without regards to Qt being involved (zlib being one of them). You mentioned using a mix of sunfreeware and blastwave downloads, I too have done this and found some problems during builds.

Usually updating the PATH var overcomes this:
(e.g. (bash) export PATH=/opt/csw/bin:/opt/csw/gcc3/bin:/usr/ccs/bin:$PATH )

As far as the CC to cc var, I haven't seen that although I have been know to update the mkspecs file before for Var transitioning on earlier releases.

I compiled Qt-4.3.4 with config.status:
./configure -platform solaris-g++ -fast -lrt

You might consider adding the librt for backward compatibility.

Let me know how it goes.

Junior
16.04.2008 15:50 Junior is offline Send an Email to Junior Homepage of Junior Search for Posts by Junior Add Junior to your Buddy List YIM Account Name of Junior: junior3563
doctorwatson
Assistant


Registration Date: 10.04.2008
Posts: 4

Level: 5 [?]
Experience: 149
Next Level: 173

24 points of experience needed for next level

Thread Starter Thread Started by doctorwatson
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

I tried installing the blastwave g++ packages and diverting the the path to CC and cc to the that compiler, but the make process still stops in the same spot. I also tried building with the following, but the make process stops at the same place.

./configure -big-endian -platform solaris-g++ -fast -lrt

I think I'm going to have to spend some time hacking away at the makefiles. Perhaps I can disabled the third-party tools. If I figure it out I'll post again in case someone else has this problem in the future.

I am also going to try the 30-day commercial version and see if it installs better on my system.
18.04.2008 03:29 doctorwatson is offline Send an Email to doctorwatson Search for Posts by doctorwatson Add doctorwatson to your Buddy List
doctorwatson
Assistant


Registration Date: 10.04.2008
Posts: 4

Level: 5 [?]
Experience: 149
Next Level: 173

24 points of experience needed for next level

Thread Starter Thread Started by doctorwatson
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

I upgraded to the Solaris 10 May 2008 release and the configure process went better. I thought I was going to get through the make process as well, but after about 30 minutes of compilation, I get the following error:


code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
cd src/corelib/ && gmake -f Makefile 
gmake[1]: Entering directory `/opt/qt-x11-opensource-src-4.3.4/src/corelib'
g++ -c -O -mt -KPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_44_API_QSQLQUERY_FINISH -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/solaris-cc -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared -I.uic/release-shared -I/usr/sfw/include -o .obj/release-shared/qatomic32.o arch/sparc/qatomic32.s
g++: unrecognized option `-KPIC'
CC -c -O2 -mt -KPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_44_API_QSQLQUERY_FINISH -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/solaris-cc -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared -I.uic/release-shared -I/usr/sfw/include -o .obj/release-shared/qglobal.o global/qglobal.cpp
CC: unrecognized option `-KPIC'
cc1plus: error: invalid option `t'
gmake[1]: *** [.obj/release-shared/qglobal.o] Error 1
gmake[1]: Leaving directory `/opt/qt-x11-opensource-src-4.3.4/src/corelib'
gmake: *** [sub-corelib-make_default-ordered] Error 2


Since the error is in the core library, I assume it is rather critical. Anyone dealt with this issue before? confused
30.04.2008 17:22 doctorwatson is offline Send an Email to doctorwatson Search for Posts by doctorwatson Add doctorwatson to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Installing Qt » Source Install on Solaris 10

views today: 6.049 | views yesterday: 12.104 | total views: 10.251.522


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich