Make errors making qtcreator on Solaris



  • I’ve seen a few “qtcreator on solaris from source” posts here around.
    One saying: “Just build it!”

    So I tried.

    What I have:
    Solaris 10 on Intel x86-64
    gcc/g++ (GCC) 4.6.2
    qt binaries and libraries: qmake —version returns
    QMake version 2.01a
    Using Qt version 4.7.4 in /usr/gnu/64/lib
    qtcreator.tar.zip expanded to qt/qt-creator-2.5.2-src

    What I do is:
    qmake qtcreator.pro -> produces a Makefile
    make -> fails after a lot of ok messages from many compilations

    cd utils/ && make -f Makefile.process_stub
    gcc -c -m64 -O2 -Wall -W -DIDE_LIBRARY_BASENAME=\“lib\” -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -I/afs/ipp-garching.mpg.de/aug/gnu/sunx86_510/64/mkspecs/solaris-g++-64 -I. -I../../../src -I../../libs -I/afs/ipp-garching.mpg.de/home/k/kcb/ftp/qt/qt-creator-2.5.2-src/tools -I../../plugins -I/afs/ipp-garching.mpg.de/aug/gnu/sunx86_510/include -o .obj/release-shared/process_stub_unix.o process_stub_unix.c
    In file included from process_stub_unix.c:46:0:
    /afs/ipp-garching.mpg.de/aug/gnu/sunx86_510/include/signal.h:16:0: warning: ignoring #pragma ident [-Wunknown-pragmas]
    process_stub_unix.c: In function ‘main’:
    process_stub_unix.c:187:13: warning: implicit declaration of function ‘ptrace’ [-Wimplicit-function-declaration]
    gcc -m64 -Wl,-R,/usr/gnu/64/lib -o ../../../bin/qtcreator_process_stub .obj/release-shared/process_stub_unix.o -L/usr/gnu/64/lib -L~/ftp/qt/qt-creator-2.5.2-src/lib/qtcreator
    .obj/release-shared/process_stub_unix.o: In function main’: process_stub_unix.c:(.text.startup+0×38): undefined reference tosocket’
    process_stub_unix.c:(.text.startup+0×8b): undefined reference to connect’ process_stub_unix.c:(.text.startup+0×20e): undefined reference toptrace’
    process_stub_unix.c:(.text.startup+0×312): undefined reference to `ptrace’
    collect2: ld returned 1 exit status

    Error code 1
    make: Fatal error: Command failed for target `../../../bin/qtcreator_process_stub’
    Current working directory ~/ftp/qt/qt-creator-2.5.2-src/src/libs/utils

    Error code 1
    make: Fatal error: Command failed for target `sub-utils-process_stub-pro-make_default-ordered’
    Current working directory ~/ftp/qt/qt-creator-2.5.2-src/src/libs

    Error code 1
    make: Fatal error: Command failed for target `sub-libs-make_default-ordered’
    Current working directory ~/ftp/qt/qt-creator-2.5.2-src/src

    Error code 1
    make: Fatal error: Command failed for target `sub-src-make_default-ordered’

    225.35user 36.70sys 4:36.28 94.8%

    Any help much appreciated,

    Karl


  • Moderators

    Looks like solaris has moved ptrace and socket into a separate library. Find out where those symbols are defined and add it into the .pro-file.

    We never tested Crator with Solaris, you will most likely run into more issues. The fastest way to get them resolved is most likely dropping by on frenode.net in the #qt-creator channel on IRC (european business hours work best).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.