Error compiling ncreport - qt3

Help
repaco
2007-07-09
2013-04-08
  • repaco
    repaco
    2007-07-09

    Dear Norbert,
    Your project is really a good job and very interesting. Please apologise me for my bad english (I'm writing from Italy).

    I'm trying to compile nc report qt3 version.
    I've installed Mysql5.0 and QT3. I'm using Kubuntu feisty.
    I've done QMAKE and then MAKE.

    When I issue MAKE, I get an error like this:

    ****

    david@frodo:~/ncreport-qt3-0.5.52$ make
    cd ncreport && make -f Makefile
    make[1]: Entering directory `/home/david/ncreport-qt3-0.5.52/ncreport'
    g++ -c -pipe -Wall -W -O2 -D_REENTRANT -fPIC  -D_EXPORTING_NCREPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -I../moc/ -o ../obj/ncreport.o ncreport.cpp
    In file included from ncreport.cpp:21:
    ncreport.h:28:19: error: qlist.h: No such file or directory

    ***

    Where could I get the qlist component? Is that a part of QT Libraries? Is that really important?
    Where do I mistake?

    Tks in advance.
    Bye.
    DAVID

     
    • Norbert Szabo
      Norbert Szabo
      2007-07-09

      Hello David,

      It seems your Qt include path is not set correctly. Could you see if your $QTDIR env. variable is correct?
      If you can compile any Qt test application you shold be able to compile NCReport as well.
      qlist.h (and others) is an important neccessary header file.
      Please check also if Qt development libraries art installed by package manager,

      best regards,
      Norbert

       
    • repaco
      repaco
      2007-07-09

      Ciao Norbert,
      thanks for you quick answer.
      I missed to install libqt3-compact-headers, it seems to be a component that contain some backward QT libraries compatibilities.

      I'm really sorry to bother you again but now I get a new error:

      ****
      g++  -o ../testform ../obj/main.o ../obj/ncreporttestform.o ../obj/ncsqlquery.o ../obj/moc_ncreporttestform.o   -L/usr/share/qt3/lib -L/usr/X11R6/lib -lncreport -L../ncreport -lqt-mt -lXext -lX11 -lm -lpthread
      /usr/bin/ld: cannot find -lncreport
      collect2: ld returned 1 exit status
      make[1]: *** [../testform] Error 1
      make[1]: Leaving directory `/home/david/ncreport-qt3-0.5.52/test'
      make: *** [sub-test] Error 2
      ***

      I issue a "find" command but i do not have that file in my pc.

      Sorry again.

       
    • Norbert Szabo
      Norbert Szabo
      2007-07-10

      Hello,

      I tried a test compilation and everything have done without any problem.
      In ncreport-qt3-0.5.52 directory:
      qmake
      make

      What is important to be sure the ncreport lib is created first. After succes compilation libncreport.so will be created in ncreport-qt3-0.5.52 directory. After the testform should be compiled as well. If not, try to put libncreport.so into "test" dir. or to /usr/lib or /usr/local/lib
      (This is important to be able to run ncreport test form)

      ciao,
      Norbert

       
    • Norbert Szabo
      Norbert Szabo
      2007-07-10

      Hi again,

      You may do this one:

      fix the following line in test.pro file by this (add -L..):
      unix: LIBS += -lncreport -L../ncreport -L..

      after run qmake and nmake again, in test directory

       
    • Norbert Szabo
      Norbert Szabo
      2007-07-10

      sorry, not nmake just make :)

       
    • repaco
      repaco
      2007-07-10

      Ciao Norbert,
      Thanks for your help.
      This moorning I solved the problem following your previous work-around. I run make the first time, getting error, then I copied in /usr/lib the file libncreport.so and then I "re"-make the project. It was fine.
      Just to test I will fix the .pro file.
      My goal is just to play with QT3 or QT4 develop environment. I'd like to setup a software to manage a family account (costs and incomes).
      I'm not a professional programmer, the computer and the develop tools are my hobby.

      Are you from Poland?

       
    • Norbert Szabo
      Norbert Szabo
      2007-07-10

      Hi David!

      Nice!
      I'm from Hungary, (I'm rather the man who is not so good in english :) )