Results 1 to 20 of 24

Thread: Compiling error with wwWidtes.qt 4.6.2

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    27
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Compiling error with wwWidtes.qt 4.6.2

    Hello all!
    i build wwwidgets like this :
    qmake -spec win32-g++ -r CONFIG+=release,
    Mingw32-make-install.
    and now i got a problem with compiling simple project with wwWidgets :
    .pro
    TEMPLATE = app
    SOURCES += main.cpp
    CONFIG += wwwidgets
    Qt Code:
    1. #include <QtGui/QApplication>
    2. #include <QwwTwoColorIndicator>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication a(argc, argv);
    7. QwwTwoColorIndicator id;
    8. id.show();
    9. return a.exec();
    10. }
    To copy to clipboard, switch view to plain text mode 

    buildind in release. So, i got error message :
    testWWW/../../Qt/include/wwWidgets/qwwtwocolorindicator.h:21: undefined reference to `QwwPrivatable::~QwwPrivatable()'
    But QwwPrivatable is defined in #include <wwglobal.h> witch is including in all qww classes.
    Why is happening and what i'am doing wrong?
    Because every example coming with wwWidgets is compiling, cleaning and re-building and qmake'ing as well, as normal project.
    Last edited by Andrewshkovskii; 19th May 2010 at 18:12.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compiling error with wwWidtes.qt 4.6.2

    Is this the only error you are getting?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2009
    Posts
    27
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling error with wwWidtes.qt 4.6.2

    Hello, Wysota
    yes, it is only compilation i get, but i cant understand, why wwW examples are compiling, my projects - not?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compiling error with wwWidtes.qt 4.6.2

    I would guess you are not linking with the library but it's just a guess. Could you provide the whole compilation log for your project (please attach it as a file to your post)?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Oct 2009
    Posts
    27
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling error with wwWidtes.qt 4.6.2

    here it is!
    Attached Files Attached Files

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compiling error with wwWidtes.qt 4.6.2

    Could you post the complete project here so that I can try to reproduce the problem myself? Either the log is mixed up or the project builds and then something fails but I need to see the actual code, maybe there is a bug in wwWidgets.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Oct 2009
    Posts
    27
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling error with wwWidtes.qt 4.6.2

    It's very simple code, with one your widget at all.. May be i build and install wwWidgets wrong or something?
    Attached Files Attached Files

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compiling error with wwWidtes.qt 4.6.2

    It compiles without problems on my machine (after removing the incorrect include from main.cpp, of course). How exactly did you install wwWidgets? Do you have the latest version (0.9.6)?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Oct 2009
    Posts
    27
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling error with wwWidtes.qt 4.6.2

    #include "C:\storage\programming\wwWidgets\widgets\wwglobal _p.h"
    this incorrect include? ok, i removed it, but nothing happened.
    I removed widgets and re-install them now by :
    C:\storage\programming\wwWidgets>qmake wwwidgets4.pro -spec win32-g++ -r CONFIG
    +=release
    Reading C:/storage/programming/wwWidgets/widgets/widgets.pro
    Reading C:/storage/programming/wwWidgets/plugin/plugin.pro

    C:\storage\programming\wwWidgets>mingw32-make
    And now i get this make error
    g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
    -DWW_NO_BREADCRUMB -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_L
    IB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_THREAD_SUPPORT -I"
    ..\..\Qt\include\QtDesigner" -I"..\..\Qt\include\QtCore" -I"..\..\Qt\include\QtG
    ui" -I"..\..\Qt\include\QtXml" -I"..\..\Qt\include\QtScript" -I"..\..\Qt\include
    " -I"..\widgets\qwwcolorbutton" -I"..\widgets\qwwcolorcombobox" -I"..\widgets\qw
    wconfigwidget" -I"..\widgets\qwwhuesatpicker" -I"..\widgets\qwwhuesatradialpicke
    r" -I"..\widgets\qwwlistwidget" -I"..\widgets\qwwlongspinbox" -I"..\widgets\qwwn
    avigationbar" -I"..\widgets\qwwnumpad" -I"..\widgets\qwwrichtextbutton" -I"..\wi
    dgets\qwwtaskpanel" -I"..\widgets\qwwtextspinbox" -I"..\widgets\qwwtipwidget" -I
    "..\widgets\qwwtwocolorindicator" -I"..\widgets\qwwfilechooser" -I"..\widgets\qw
    wloginbox" -I"..\widgets\qwwbuttonlineedit" -I"..\widgets\qwwclearlineedit" -I".
    .\widgets\qwwresetlineedit" -I"..\widgets\qwwrichtextedit" -I"..\widgets\qwwlist
    navigator" -I"..\widgets\qwwled" -I"..\widgets" -I"." -I"..\..\Qt\include\Active
    Qt" -I"release" -I"." -I"..\..\Qt\mkspecs\win32-g++" -o release\moc_qwwlediface.
    o release\moc_qwwlediface.cpp
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    oc -Wl,-s -mthreads -Wl -shared -Wl,--out-implib,release\libwwwidgetsplugin.a -o
    release\wwwidgetsplugin.dll object_script.wwwidgetsplugin.Release -L"c:\storag
    e\programming\Qt\lib" -L../widgets/release -lwwwidgets4 -L../widgets/debug -lwww
    idgets4d -lQtScript4 -lQtXml4 -lQtGui4 -lQtCore4 -lQtDesigner4
    c:/storage/programming/mingw/bin/../lib/gcc/mingw32/4.4.1-dw2/../../../../mingw3
    2/bin/ld.exe: cannot find -lwwwidgets4d
    collect2: ld returned 1 exit status
    mingw32-make[2]: *** [release\wwwidgetsplugin.dll] Error 1
    mingw32-make[2]: Leaving directory `C:/storage/programming/wwWidgets/plugin'
    mingw32-make[1]: *** [release] Error 2
    mingw32-make[1]: Leaving directory `C:/storage/programming/wwWidgets/plugin'
    mingw32-make: *** [sub-plugin-make_default-ordered] Error 2
    So, i copy wwwidgets4.dll, rename it to wwwidgets4d, and put it into
    ...\wwWidgets\widgets\debug and ..\wwWidgets\widgets\release
    and run make again, after make finished, i installed wwwidgets (make-install) and it installed.
    So, i think the compilation error was caused becouse of my actions with *.dll files.

  10. #10
    Join Date
    Oct 2009
    Posts
    27
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling error with wwWidtes.qt 4.6.2

    I fixed this error with adding CONFIG-=debug to plugin.pro, and run mingw32-make , mingw32-make install again, so it compiled
    But project compiling is failed again with message :
    mingw32-make: Entering directory `C:/storage/programming/workspace/testWWW'
    C:/storage/programming/MinGW/bin/mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory `C:/storage/programming/workspace/testWWW'
    g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DWWWIDGETS -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\Qt\include\QtCore" -I"..\..\Qt\include\QtGui" -I"..\..\Qt\include" -I"..\..\Qt\include\wwWidgets" -I"..\..\Qt\include\ActiveQt" -I"release" -I"..\..\Qt\mkspecs\win32-g++" -o release\main.o main.cpp
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o release\testWWW.exe release/main.o -L"c:\storage\programming\Qt\lib" -lmingw32 -lqtmain -lwwwidgets4 -lQtGui4 -lQtCore4
    mingw32-make[1]: Leaving directory `C:/storage/programming/workspace/testWWW'
    mingw32-make: Leaving directory `C:/storage/programming/workspace/testWWW'
    release/main.o:main.cpp.text+0x72): undefined reference to `QwwPrivatable::~QwwPrivatable()'
    release/main.o:main.cpp.text+0xce): undefined reference to `QwwPrivatable::~QwwPrivatable()'
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [release\testWWW.exe] Error 1
    mingw32-make: *** [release] Error 2
    And designer say's that wwwidgetsplugin.dll could not be found/loaded, but wwwidgetsplugin.dll is in /Qt/plugins/designer/ directory.
    Last edited by Andrewshkovskii; 20th May 2010 at 13:33.

  11. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compiling error with wwWidtes.qt 4.6.2

    Start from scratch, unpack the archive, cd into the "widgets" directory, run qmake, run make, run make install, cd ../plugin, run qmake, run make, run make install. Everything should be fine then - it's a foulproof method of installing this particular widget set - it should create a debug and release version of the widget set and release version of the designer plugin.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Error in compiling
    By Tarun in forum Qt-based Software
    Replies: 1
    Last Post: 3rd February 2010, 14:04
  2. error while compiling ....
    By sh123 in forum Qt Programming
    Replies: 2
    Last Post: 13th December 2008, 07:23
  3. Replies: 1
    Last Post: 25th October 2008, 19:18
  4. i always get an error when compiling Qt4.4.0
    By mismael85 in forum Installation and Deployment
    Replies: 9
    Last Post: 21st July 2008, 14:08
  5. Error when compiling with x86-64
    By atm in forum Installation and Deployment
    Replies: 2
    Last Post: 28th July 2006, 16:41

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.