Results 1 to 20 of 216

Thread: QCodeEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    Quote Originally Posted by fullmetalcoder View Post
    Trying running "make release" (or "mingw32-make release") instead of just "make"... If it does not work open the project files and make sure the build mode is set to "release" (CONFIG += release)...
    Yes, the primary problem was solved, but then I got undefined references to DOM, so I added QT += xml that helped with the xml, but then I got another error:

    Qt Code:
    1. C:\qcodeedit2\example>make release
    2. make -f Makefile.Release
    3. make[1]: Entering directory `C:/qcodeedit2/example'
    4. g++ -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-ps
    5. eudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o "release\example.exe"
    6. .build\main.o -L"d:\build\qt-win-opensource-src-4.3.2\lib" -lmingw32 -lqtmain -
    7. L.. -lqcodeedit -lQtXml -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -l
    8. winspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvap
    9. i32 -lws2_32
    10. d:\build\qt-win-opensource-src-4.3.2\lib\libQtGui.a(qcompleter.o):qcompleter.cpp
    11. :(.text$_ZN17QCompletionEngineD0Ev[QCompletionEngine::~QCompletionEngine()]+0x0)
    12. : multiple definition of `QCompletionEngine::~QCompletionEngine()'
    13. ..\libqcodeedit.a(qcompletionengine.o):c:/qcodeedit2/lib/language/qcompletioneng
    14. ine.cpp:50: first defined here
    15. d:\build\qt-win-opensource-src-4.3.2\lib\libQtGui.a(qcompleter.o):qcompleter.cpp
    16. :(.text$_ZN17QCompletionEngineD1Ev[QCompletionEngine::~QCompletionEngine()]+0x0)
    17. : multiple definition of `QCompletionEngine::~QCompletionEngine()'
    18. ..\libqcodeedit.a(qcompletionengine.o):c:/qcodeedit2/lib/language/qcompletioneng
    19. ine.cpp:50: first defined here
    20. .build\main.o:main.cpp:(.text+0x51b): undefined reference to `_imp___ZN14QFormat
    21. FactoryC1ERK7QStringP7QObject'
    22. .build\main.o:main.cpp:(.text+0x564): undefined reference to `_imp___ZN9QDocumen
    23. t16setFormatFactoryEP14QFormatFactory'
    24. .build\main.o:main.cpp:(.text+0x58e): undefined reference to `_imp___ZN20QLineMa
    25. rksInfoCenter8instanceEv'
    26. .build\main.o:main.cpp:(.text+0x5a6): undefined reference to `_imp___ZN20QLineMa
    27. rksInfoCenter13loadMarkTypesERK7QString'
    28. .build\main.o:main.cpp:(.text+0x5ef): undefined reference to `_imp___ZN16QLangua
    29. geFactoryC1EP14QFormatFactoryP7QObject'
    30. .build\main.o:main.cpp:(.text+0x638): undefined reference to `_imp___ZN16QLangua
    31. geFactory17addDefinitionPathERK7QString'
    32. .build\main.o:main.cpp:(.text+0x698): undefined reference to `_imp___ZN9QCodeEdi
    33. tC1EP7QWidget'
    34. .build\main.o:main.cpp:(.text+0x6c4): undefined reference to `_imp___ZN14QLineMa
    35. rkPanelC1EP7QWidget'
    36. .build\main.o:main.cpp:(.text+0x6f9): undefined reference to `_imp___ZN9QCodeEdi
    37. t8addPanelEP6QPanelNS_8PositionE'
    38. .build\main.o:main.cpp:(.text+0x71c): undefined reference to `_imp___ZN16QLineNu
    39. mberPanelC1EP7QWidget'
    40. .build\main.o:main.cpp:(.text+0x751): undefined reference to `_imp___ZN9QCodeEdi
    41. t8addPanelEP6QPanelNS_8PositionE'
    42. .build\main.o:main.cpp:(.text+0x774): undefined reference to `_imp___ZN10QFoldPa
    43. nelC1EP7QWidget'
    44. .build\main.o:main.cpp:(.text+0x7a9): undefined reference to `_imp___ZN9QCodeEdi
    45. t8addPanelEP6QPanelNS_8PositionE'
    46. .build\main.o:main.cpp:(.text+0x7cc): undefined reference to `_imp___ZN12QStatus
    47. PanelC1EP7QWidget'
    48. .build\main.o:main.cpp:(.text+0x804): undefined reference to `_imp___ZN9QCodeEdi
    49. t8addPanelEP6QPanelNS_8PositionE'
    50. .build\main.o:main.cpp:(.text+0x827): undefined reference to `_imp___ZN19QSearch
    51. ReplacePanelC1EP7QWidget'
    52. .build\main.o:main.cpp:(.text+0x85f): undefined reference to `_imp___ZN9QCodeEdi
    53. t8addPanelEP6QPanelNS_8PositionE'
    54. .build\main.o:main.cpp:(.text+0x870): undefined reference to `_imp___ZNK9QCodeEd
    55. it6editorEv'
    56. .build\main.o:main.cpp:(.text+0x898): undefined reference to `_imp___ZNK9QCodeEd
    57. it6editorEv'
    58. .build\main.o:main.cpp:(.text+0x8a8): undefined reference to `_imp___ZN7QEditor7
    59. setTextERK7QString'
    60. .build\main.o:main.cpp:(.text+0x8d5): undefined reference to `_imp___ZNK9QCodeEd
    61. it6editorEv'
    62. collect2: ld returned 1 exit status
    63. make[1]: *** [release\example.exe] Error 1
    64. make[1]: Leaving directory `C:/qcodeedit2/example'
    65. make: *** [release] Error 2
    To copy to clipboard, switch view to plain text mode 

    Please help, if you can.

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    Quote Originally Posted by allstar View Post
    Please help, if you can.
    All the linking errors (which presumably includes QtXml related ones) come from the fact that you are trying to build QCodeEdit as a static lib... The simplest way to work around this is to add the following line to your project file :

    Qt Code:
    1. DEFINES += _QCODE_EDIT_BUILD_
    To copy to clipboard, switch view to plain text mode 

    Note : the use of this macro was usually intended as a way to allow direct embedding of the sources but AFAIK it should work just as well with static libs...
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    May 2007
    Location
    England
    Posts
    56
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    Thanks FullMetalCoder, I confirm find is working again.

  4. #4
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    Quote Originally Posted by fullmetalcoder View Post
    All the linking errors (which presumably includes QtXml related ones) come from the fact that you are trying to build QCodeEdit as a static lib... The simplest way to work around this is to add the following line to your project file :

    Qt Code:
    1. DEFINES += _QCODE_EDIT_BUILD_
    To copy to clipboard, switch view to plain text mode 

    Note : the use of this macro was usually intended as a way to allow direct embedding of the sources but AFAIK it should work just as well with static libs...
    Thanks. Finally I added it dircetly without the lib and its working. But it was needed to comment QCompletionEngine::~QCompletionEngine() - empty destructor in qcompletionengine.cpp -there was a conflict,( see above).

    Otherwise. There is a problem, that you cannot scroll with mousewheel when the cursor is on linenumberbar.
    Last edited by allstar; 10th November 2007 at 11:21.

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.