Results 1 to 5 of 5

Thread: patch: freebsd and qt-2 build fixes

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    51

    patch: freebsd and qt-2 build fixes

    http://sourceforge.net/tracker/index...31&atid=310131

    This patch should be considered for merge to CVS. It should not affect the build under linux. Verified that apply of patch to clean CVS today (4/18) builds.

    Summary:

    md5 verification using grep rather than harcoded field location

    use sys/types.h instead of nonexistant <stdint.h> for FreeBSD

    QT_VERSION check suppresses setStyle calls if QT < 3.0 (necessary to build)

    avoid conflict between FreeBSD getopt and GNU getopt

    use UINT_MAX from limits.h on FreeBSD

    ioctl sets BPF to immediate mode (because in FreeBSD, a timeout of 0 means wait forever and you only get updates when the buffer fills)

    use FreeBSD BYTE_ORDER and include necessary inet headers in packet.h

    implement lrint (for FreeBSD)


    None of these changes should hurt the Linux build process.


    The (bash) script I use to build (rather than hacking autoconf, sorry):

    QTDIR=/usr/local/qt
    PATH=$QTDIR/bin:$PATH
    LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:$LD_LIBRARY_PATH

    export QTDIR PATH LD_LIBRARY_PATH
    export CC="g++30"

    export CPP="$CC -E"
    export CXX="$CC"
    export CXXCPP="$CPP"
    export LIBS="-lgnugetopt"
    export CPPFLAGS="-I/usr/local/include/"
    export LDFLAGS="-L/usr/local/lib/"

    gmake -f Makefile.dist no-backup
    ./configure --without-qt-validation
    gmake
    cp /usr/local/bin/showeq showeq-`date +%y%m%d`
    echo now su root and gmake install

  2. #2
    Developer Ratt's Avatar
    Join Date
    Dec 2001
    Posts
    533
    Attach the patch and I'll take a look at it.
    The problem with defending the purity of the English language is that English is about as pure as a cribhouse whore. We don't just borrow words; on occasion, English has pursued other languages down alleyways to beat them unconscious and riffle their pockets for new vocabulary.

  3. #3
    Registered User
    Join Date
    Aug 2002
    Posts
    51
    Patch is attached in the patches section (link at top of my post)

    However, I realized that I didn't need to disable the setStyle stuff for old QT; the old method (which was commented out) still works. I've updated the patch in the section to revert to the old method for QT 2 and will attach it here as well:
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    Aug 2002
    Posts
    51
    Either there is some sort of moderation for attachments or something is broken with my browser or these boards.

    Verified that my patch does have the file attached properly - get it here:

    http://sourceforge.net/tracker/downl...127&aid=723901

  5. #5
    Registered User
    Join Date
    Apr 2003
    Posts
    48
    Doh, just found this after compiling the new qt for some hours to find out I did forget the "-thread" in ./configure and restarting qt compile again.
    Ok next time I use Search before getting new qt stuff and having my old box crunching on some code for 10+ hrs.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On