HELP with BiblioteQ compilation

IRIX and IRIX software discussion including open source and commerical offerings.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
nekobean
Posts: 240
Joined: Sat Oct 27, 2007 12:12 pm
Location: MI

HELP with BiblioteQ compilation

Unread postby nekobean » Thu Jun 14, 2012 10:45 am

Hello!

BiblioteQ is a fantastic library management system that I am using. Although I have it compiled on an x*86 Debian system, I would prefer to run it on my Fuel, so I am trying to compile it, but it is not coming along very smoothly, and I quickly came to an impasse. I am not a skilled programmer, and cannot understand more complicated errors, so I was wondering if anyone would be interested in trying to through a package together, or at least compile and publish porting notes here.

Thank you!
:Fuel: 500MHz 2GB V12

hamei
Posts: 9886
Joined: Tue Feb 24, 2004 5:10 pm

Re: HELP with BiblioteQ compilation

Unread postby hamei » Thu Jun 14, 2012 6:48 pm

nekobean wrote: I was wondering if anyone would be interested in trying to through a package together, or at least compile and publish porting notes here.

Took a quick look - it's QT 4.

Good luck with that.

User avatar
bplaa.yai
Posts: 315
Joined: Wed Mar 26, 2008 12:04 pm
Location: Paris

Re: HELP with BiblioteQ compilation

Unread postby bplaa.yai » Fri Jun 15, 2012 8:27 am

hamei wrote:
nekobean wrote: I was wondering if anyone would be interested in trying to through a package together, or at least compile and publish porting notes here.

Took a quick look - it's QT 4.

Good luck with that.


I'll try to take some time this week end to make a proper package of Qt 4.8.2
Regarding BiblioteQ, it builds without any problem, it just needs the hard coded /usr/local prefix to be fixed.
Attachments
Screen Shot 2012-06-15 at 14.04.47.png
:Onyx2: :O2: :O3x0: :O3x0:

User avatar
nekobean
Posts: 240
Joined: Sat Oct 27, 2007 12:12 pm
Location: MI

Re: HELP with BiblioteQ compilation

Unread postby nekobean » Fri Jun 15, 2012 8:32 am

Great news! I was not so lucky, though. I had to first go into the Makefile to add a $(QTDIR)=/usr/nekoware/qt4 definition, but it then did not make it past the first file during compilation before quiting.

Did you just:

qmake -o Makefile biblioteq.pro
gmake

? Or did you do anything else?
:Fuel: 500MHz 2GB V12

User avatar
nekobean
Posts: 240
Joined: Sat Oct 27, 2007 12:12 pm
Location: MI

Re: HELP with BiblioteQ compilation

Unread postby nekobean » Fri Jun 15, 2012 8:58 am

I tried again, calling qmake directly, without putting /usr/nekoware/qt4/bin in my path first. Here is what I did:

Code: Select all

IRISBean:/tmp/biblioteq.d$/usr/nekoware/qt4/bin/qmake -o Makefile biblioteq.pro
IRISBean:/tmp/biblioteq.d$gmake
CC -c -n32 -signed -LANG:std:libc_in_namespace_std=ON -woff 1209,1355,1375,1424,3303 -I/usr/nekoware/include -I/usr/nekoware/include/freetype2 -I/usr/nekoware/mysql4/include/mysql -I/usr/nekoware/pgsql/include -Wall -Wextra -Werror -O2 -OPT:Olimit=3000 -I/usr/nekoware/include -I/usr/nekoware/include/freetype2 -I/usr/nekoware/mysql4/include/mysql -I/usr/nekoware/pgsql/include -Wall -Wextra -Werror -fullwarn -DCONFIGFILE='"/usr/local/biblioteq/biblioteq.conf"' -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/nekoware/qt4/mkspecs/irix-cc -I. -I/usr/nekoware/qt4/include/QtCore -I/usr/nekoware/qt4/include/QtCore -I/usr/nekoware/qt4/include/QtNetwork -I/usr/nekoware/qt4/include/QtNetwork -I/usr/nekoware/qt4/include/QtGui -I/usr/nekoware/qt4/include/QtGui -I/usr/nekoware/qt4/include/QtSql -I/usr/nekoware/qt4/include/QtSql -I/usr/nekoware/qt4/include -Iinclude.d -I/usr/local/include -I. -Iinclude.d -o qtbook_a.o qtbook_a.cc
CC WARNING:  -I/usr/nekoware/mysql4/include/mysql does not refer to a valid directory
CC WARNING:  -I/usr/nekoware/pgsql/include does not refer to a valid directory
CC ERROR parsing -Wextra:  unknown flag
CC WARNING:  -I/usr/nekoware/mysql4/include/mysql does not refer to a valid directory
CC WARNING:  -I/usr/nekoware/pgsql/include does not refer to a valid directory
CC ERROR parsing -Wextra:  unknown flag
gmake: *** [qtbook_a.o] Error 2


Any suggestions?
:Fuel: 500MHz 2GB V12

User avatar
bplaa.yai
Posts: 315
Joined: Wed Mar 26, 2008 12:04 pm
Location: Paris

Re: HELP with BiblioteQ compilation

Unread postby bplaa.yai » Fri Jun 15, 2012 9:23 am

nekobean wrote:I tried again, calling qmake directly, without putting /usr/nekoware/qt4/bin in my path first. Here is what I did:

Code: Select all

<snip>
CC ERROR parsing -Wextra:  unknown flag
<snip>
CC ERROR parsing -Wextra:  unknown flag
gmake: *** [qtbook_a.o] Error 2


Any suggestions?


Yes, just comment the QMAKE_CXXFLAGS and QMAKE_CXXFLAGS_RELEASE containing the gcc specific flags in biblioteq.pro before generating the Makefile.
Also, you'll have to build the yaz library ( http://www.indexdata.com/yaz ), but for this one, a plain ./configure --prefix=/usr/nekoware && gmake install will just work.
:Onyx2: :O2: :O3x0: :O3x0:

User avatar
nekobean
Posts: 240
Joined: Sat Oct 27, 2007 12:12 pm
Location: MI

Re: HELP with BiblioteQ compilation

Unread postby nekobean » Fri Jun 15, 2012 10:52 am

Well, YAZ was a breeze, but still no luck with BiblioteQ. I commented out the lines as you said, giving a biblioteq.pro:

Code: Select all

purge.commands = rm -f *~ && rm -f include.d/*~ && rm -f doc.d/*~

TEMPLATE        = app
LANGUAGE        = C++
QT              += sql network
CONFIG          += qt release thread warn_on x11 copy_dir_files
DEFINES         += CONFIGFILE="'\"/usr/local/biblioteq/biblioteq.conf\"'"
# QMAKE_CXXFLAGS        += -Wall -Wextra -Werror
# QMAKE_CXXFLAGS_RELEASE -= -O
QMAKE_CLEAN     += BiblioteQ
# QMAKE_CXXFLAGS_RELEASE += -Wall -Wextra -Werror
QMAKE_EXTRA_TARGETS = purge
INCLUDEPATH     += include.d /usr/local/include
ICON            = icons.d/book.png
LIBS            += -Wl,-R/usr/local/lib -lyaz -lsqlite3
....


but compilation results in:

Code: Select all

# make
        CC -c -n32 -signed -LANG:std:libc_in_namespace_std=ON -woff 1209,1355,1375,1424,3303 -I/usr/nekoware/include -I/usr/nekoware/include/freetype2 -I/usr/nekoware/mysql4/include/mysql -I/usr/nekoware/pgsql/include -O2 -OPT:Olimit=3000 -I/usr/nekoware/include -I/usr/nekoware/include/freetype2 -I/usr/nekoware/mysql4/include/mysql -I/usr/nekoware/pgsql/include -fullwarn -DCONFIGFILE='"/usr/local/biblioteq/biblioteq.conf"' -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/nekoware/qt4/mkspecs/irix-cc -I. -I/usr/nekoware/qt4/include/QtCore -I/usr/nekoware/qt4/include/QtCore -I/usr/nekoware/qt4/include/QtNetwork -I/usr/nekoware/qt4/include/QtNetwork -I/usr/nekoware/qt4/include/QtGui -I/usr/nekoware/qt4/include/QtGui -I/usr/nekoware/qt4/include/QtSql -I/usr/nekoware/qt4/include/QtSql -I/usr/nekoware/qt4/include -Iinclude.d -I/usr/local/include -I. -Iinclude.d -o qtbook_a.o qtbook_a.cc
CC WARNING:  -I/usr/nekoware/mysql4/include/mysql does not refer to a valid directory
CC WARNING:  -I/usr/nekoware/pgsql/include does not refer to a valid directory
CC WARNING:  -I/usr/nekoware/mysql4/include/mysql does not refer to a valid directory
CC WARNING:  -I/usr/nekoware/pgsql/include does not refer to a valid directory
cc-3969 CC: REMARK File = /usr/nekoware/qt4/include/QtCore/qhash.h, Line = 62
  explicit conversion of a 64-bit integral type to a smaller integral type
          (potential portability problem)

          return uint((key >> (8 * sizeof(uint) - 1)) ^ key);
                 ^

cc-3969 CC: REMARK File = /usr/nekoware/qt4/include/QtCore/qhash.h, Line = 64
  explicit conversion of a 64-bit integral type to a smaller integral type
          (potential portability problem)

          return uint(key);
                 ^

cc-3321 CC: WARNING File = /usr/nekoware/qt4/include/QtCore/qlist.h, Line = 335
  The function "operator new(std::size_t, void *)" has no corresponding operator
          "delete" (to be called if an exception is thrown during
          initialization of an allocated object).

              new (from++) T(*reinterpret_cast<T*>(src++));
              ^
          A template was detected during header processing.
            instantiation of "void
                      QList<QString>::node_copy(QList<QString>::Node *,
                      QList<QString>::Node *, QList<QString>::Node *)" at line
                      501
            instantiation of "void QList<QString>::detach_helper()" at line 99
            instantiation of "void QList<QString>::detach()" at line 400
            instantiation of "void QList<QString>::append(const QString &)" at
                      line 50 of
                      "/usr/nekoware/qt4/include/QtCore/qstringlist.h"

cc-3321 CC: WARNING File = /usr/nekoware/qt4/include/QtCore/qlist.h, Line = 316
  The function "operator new(std::size_t, void *)" has no corresponding operator
          "delete" (to be called if an exception is thrown during
          initialization of an allocated object).

      else if (QTypeInfo<T>::isComplex) new (n) T(t);
                                        ^
          A template was detected during header processing.
            instantiation of "void
                      QList<QString>::node_construct(QList<QString>::Node *,
                      const QString &)" at line 402
            instantiation of "void QList<QString>::append(const QString &)" at
                      line 50 of
                      "/usr/nekoware/qt4/include/QtCore/qstringlist.h"

cc-3321 CC: WARNING File = /usr/nekoware/qt4/include/QtCore/qlist.h, Line = 335
  The function "operator new(std::size_t, void *)" has no corresponding operator
          "delete" (to be called if an exception is thrown during
          initialization of an allocated object).

              new (from++) T(*reinterpret_cast<T*>(src++));
              ^
          A template was detected during header processing.
            instantiation of "void
                      QList<QStyleOptionQ3ListViewItem>::node_copy(QList<QStyle
                      OptionQ3ListViewItem>::Node *,
                      QList<QStyleOptionQ3ListViewItem>::Node *,
                      QList<QStyleOptionQ3ListViewItem>::Node *)" at line 501
            instantiation of
                      "void QList<QStyleOptionQ3ListViewItem>::detach_helper()"
                      at line 357
            instantiation of "QList<QStyleOptionQ3ListViewItem>
                      &QList<QStyleOptionQ3ListViewItem>::operator=(const
                      QList<QStyleOptionQ3ListViewItem> &)" at line 640 of
                      "/usr/nekoware/qt4/include/QtGui/qstyleoption.h"
            implicit generation of "QStyleOptionQ3ListView
                      &QStyleOptionQ3ListView::operator=(const
                      QStyleOptionQ3ListView &)" at line 640 of
                      "/usr/nekoware/qt4/include/QtGui/qstyleoption.h"

cc-3969 CC: REMARK File = /usr/nekoware/qt4/include/QtCore/qabstractitemmodel.h, Line = 352
  explicit conversion of a 64-bit integral type to a smaller integral type
          (potential portability problem)

  { return uint((index.row() << 4) + index.column() + index.internalId()); }
           ^

cc-1005 CC: ERROR File = include.d/qtbook_book.h, Line = 14
  The source file "QNetworkReply" is unavailable.

  #include <QNetworkReply>
                          ^

1 catastrophic error detected in the compilation of "qtbook_a.cc".
Compilation terminated.
*** Error code 2 (bu21)
#


Ugh!
:Fuel: 500MHz 2GB V12

User avatar
bplaa.yai
Posts: 315
Joined: Wed Mar 26, 2008 12:04 pm
Location: Paris

Re: HELP with BiblioteQ compilation

Unread postby bplaa.yai » Fri Jun 15, 2012 12:06 pm

nekobean wrote:Well, YAZ was a breeze, but still no luck with BiblioteQ. I commented out the lines as you said, giving a biblioteq.pro:

Code: Select all

<snip>
cc-1005 CC: ERROR File = include.d/qtbook_book.h, Line = 14
  The source file "QNetworkReply" is unavailable.

  #include <QNetworkReply>
                          ^

1 catastrophic error detected in the compilation of "qtbook_a.cc".
Compilation terminated.
*** Error code 2 (bu21)
#


Ugh!


See http://doc.qt.nokia.com/4.7-snapshot/qnetworkreply.html :
This class was introduced in Qt 4.4

Current nekoware version is 4.3.0, so you've hit the Qt >= 4.7 requirement here.

I'll try to package the latest Qt this week end.
:Onyx2: :O2: :O3x0: :O3x0:

User avatar
nekobean
Posts: 240
Joined: Sat Oct 27, 2007 12:12 pm
Location: MI

Re: HELP with BiblioteQ compilation

Unread postby nekobean » Fri Jun 15, 2012 12:25 pm

bplaa.yai wrote:Current nekoware version is 4.3.0, so you've hit the Qt >= 4.7 requirement here.

I'll try to package the latest Qt this week end.

I suppose such details are important, and I should have paid more attention to what I was using. I will keep an eye out for the latest Qt. Thank you for your help!
:Fuel: 500MHz 2GB V12

User avatar
nekobean
Posts: 240
Joined: Sat Oct 27, 2007 12:12 pm
Location: MI

Re: HELP with BiblioteQ compilation

Unread postby nekobean » Wed Jul 18, 2012 8:44 am

bplaa.yai wrote:See http://doc.qt.nokia.com/4.7-snapshot/qnetworkreply.html :
This class was introduced in Qt 4.4

Current nekoware version is 4.3.0, so you've hit the Qt >= 4.7 requirement here.

I'll try to package the latest Qt this week end.

Just curious, have you had any progress with the new Qt package?
:Fuel: 500MHz 2GB V12

User avatar
bplaa.yai
Posts: 315
Joined: Wed Mar 26, 2008 12:04 pm
Location: Paris

Re: HELP with BiblioteQ compilation

Unread postby bplaa.yai » Fri Jul 27, 2012 5:09 am

Sorry, I didn't have any free time to package Qt 4.8.2, but I made my patch available here if anyone wants to package/build himself.
:Onyx2: :O2: :O3x0: :O3x0:


Return to “IRIX and Software”

Who is online

Users browsing this forum: No registered users and 2 guests