Author Topic: QtHelper plugin  (Read 17609 times)

Offline critic

  • Multiple posting newcomer
  • *
  • Posts: 93
Re: QtHelper plugin
« Reply #15 on: April 20, 2010, 12:57:53 pm »
Ok! I created project on Google Code here: http://code.google.com/p/qthelper/.
You can obtain plugin sources and download binaries, but discussion is going on here.

Genkaku

  • Guest
Re: QtHelper plugin
« Reply #16 on: September 19, 2010, 03:28:42 pm »
I've came across upon numerous problems when trying to compile QTHelper plugin.

I'm on 64bit Linux.

I've opened the project, added directories, so that codeblocks' sdk.h and others could be found, pressed "build" and
Code: [Select]
cc1plus: error: unrecognized command line option "-mthreads", so I've deleted the line
<Add option="-mthreads" />
from qthelper.cbp. Obviously gcc 4.4 doesn't support that. What that option was supposed to do?

but there I've found these lines:
Code: [Select]
<Option host_application="D:\bin\dev\c++\CodeBlocks\codeblocks.exe" />
<Add option="-DHAVE_W32API_H" />
<Add option="-D__WXMSW__" />
<Add option="-DWXUSINGDLL" />
<Add directory="$(#wx.lib)\gcc_dll\mswu" />
<Add library="wxmsw28u" />
<Add directory="$(#wx.lib)\gcc_dll" />

These (I do not know if all of these) look windows-specific.

I guess that I don't need
<Add option="-DHAVE_W32API_H" />
<Add option="-D__WXMSW__" />
<Add option="-DWXUSINGDLL" />
So I deleted them, that way getting rid of some compilation errors, but new showed up:
Code: [Select]
In file included from /usr/include/wx/wxprec.h:13,
                 from /usr/include/codeblocks/sdk_common.h:34,
                 from /usr/include/codeblocks/sdk_precomp.h:13,
                 from /usr/include/codeblocks/sdk.h:17,
                 from /home/me/CodeBlocks_projects/qthelper/qthelper-read-only/QtCfgDlg.cpp:10:
/usr/include/wx/defs.h:42:13: error: #error "No Target! You should use wx-config program for compilation flags!"

defs.h, around line 42:
Code: [Select]
#ifdef __cplusplus
/*  Make sure the environment is set correctly */
#   if defined(__WXMSW__) && defined(__X__)
#       error "Target can't be both X and Windows"
#   elif defined(__WXMSW__) && defined(__PALMOS__)
#       error "Target can't be both PalmOS and Windows"
#   elif !defined(__WXMOTIF__) && \
         !defined(__WXMSW__)   && \
         !defined(__WXPALMOS__)&& \
         !defined(__WXGTK__)   && \
         !defined(__WXPM__)    && \
         !defined(__WXMAC__)   && \
         !defined(__WXCOCOA__) && \
         !defined(__X__)       && \
         !defined(__WXMGL__)   && \
         !defined(__WXDFB__)   && \
         !defined(__WXX11__)   && \
          wxUSE_GUI
#       ifdef __UNIX__
#           error "No Target! You should use wx-config program for compilation flags!"
#       else /*  !Unix */
#           error "No Target! You should use supplied makefiles for compilation!"
#       endif /*  Unix/!Unix */
#   endif
#endif /*__cplusplus*/

Line
<Add option="-D__X__" />
in the project file helped, but:

Code: [Select]
In file included from /usr/include/wx/debug.h:18,
                 from /usr/include/wx/defs.h:521,
                 from /usr/include/wx/wxprec.h:13,
                 from /usr/include/codeblocks/sdk_common.h:34,
                 from /usr/include/codeblocks/sdk_precomp.h:13,
                 from /usr/include/codeblocks/sdk.h:17,
                 from /home/me/CodeBlocks_projects/qthelper/qthelper-read-only/QtCfgDlg.cpp:10:
/usr/include/assert.h:39:42: error: missing binary operator before token "("
/usr/include/assert.h:105:42: error: missing binary operator before token "("
In file included from /usr/include/libio.h:62,
                 from /usr/include/stdio.h:75,
                 from /usr/include/wx/wxchar.h:21,
                 from /usr/include/wx/debug.h:22,
                 from /usr/include/wx/defs.h:521,
                 from /usr/include/wx/wxprec.h:13,
                 from /usr/include/codeblocks/sdk_common.h:34,
                 from /usr/include/codeblocks/sdk_precomp.h:13,
                 from /usr/include/codeblocks/sdk.h:17,
                 from /home/me/CodeBlocks_projects/qthelper/qthelper-read-only/QtCfgDlg.cpp:10:
/usr/include/sys/cdefs.h:46:44: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:50:44: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:135:19: error: missing binary operator before token "("

At this point, I don't have a clue what to do.
Any suggestions?