Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Mon Sep 01, 2014 10:43 pm

All times are UTC - 8 hours


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 11 posts ] 
Author Message
Unread postPosted: Thu Jun 14, 2012 9:45 am 
Offline
User avatar

Joined: Sat Oct 27, 2007 11:12 am
Posts: 240
Location: MI
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


Top
 Profile  
 
Unread postPosted: Thu Jun 14, 2012 5:48 pm 
Offline

Joined: Tue Feb 24, 2004 4:10 pm
Posts: 9577
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.


Top
 Profile  
 
Unread postPosted: Fri Jun 15, 2012 7:27 am 
Offline
User avatar

Joined: Wed Mar 26, 2008 11:04 am
Posts: 315
Location: Paris
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
Screen Shot 2012-06-15 at 14.04.47.png [ 50.23 KiB | Viewed 775 times ]

_________________
:Onyx2: :O2: :O3x0: :O3x0:
Top
 Profile  
 
Unread postPosted: Fri Jun 15, 2012 7:32 am 
Offline
User avatar

Joined: Sat Oct 27, 2007 11:12 am
Posts: 240
Location: MI
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


Top
 Profile  
 
Unread postPosted: Fri Jun 15, 2012 7:58 am 
Offline
User avatar

Joined: Sat Oct 27, 2007 11:12 am
Posts: 240
Location: MI
I tried again, calling qmake directly, without putting /usr/nekoware/qt4/bin in my path first. Here is what I did:

Code:
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


Top
 Profile  
 
Unread postPosted: Fri Jun 15, 2012 8:23 am 
Offline
User avatar

Joined: Wed Mar 26, 2008 11:04 am
Posts: 315
Location: Paris
nekobean wrote:
I tried again, calling qmake directly, without putting /usr/nekoware/qt4/bin in my path first. Here is what I did:

Code:
<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:


Top
 Profile  
 
Unread postPosted: Fri Jun 15, 2012 9:52 am 
Offline
User avatar

Joined: Sat Oct 27, 2007 11:12 am
Posts: 240
Location: MI
Well, YAZ was a breeze, but still no luck with BiblioteQ. I commented out the lines as you said, giving a biblioteq.pro:

Code:
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:
# 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


Top
 Profile  
 
Unread postPosted: Fri Jun 15, 2012 11:06 am 
Offline
User avatar

Joined: Wed Mar 26, 2008 11:04 am
Posts: 315
Location: Paris
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:
<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 :
Quote:
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:


Top
 Profile  
 
Unread postPosted: Fri Jun 15, 2012 11:25 am 
Offline
User avatar

Joined: Sat Oct 27, 2007 11:12 am
Posts: 240
Location: MI
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


Top
 Profile  
 
Unread postPosted: Wed Jul 18, 2012 7:44 am 
Offline
User avatar

Joined: Sat Oct 27, 2007 11:12 am
Posts: 240
Location: MI
bplaa.yai wrote:
See http://doc.qt.nokia.com/4.7-snapshot/qnetworkreply.html :
Quote:
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


Top
 Profile  
 
Unread postPosted: Fri Jul 27, 2012 4:09 am 
Offline
User avatar

Joined: Wed Mar 26, 2008 11:04 am
Posts: 315
Location: Paris
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:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group