User forums > Help
Unable to compile ClangCompletion cbplugin
astrapi:
Ok, so I think I understand some part of you say.
But what is a NOPCH patch ?
You said you have the newer version of wxWidgets3.0.x so does that mean that your codeblocks is built with too ?
(The computer can't use an older version for a software and a new for an other does he ?)
--- Code: ---✔ astrapi 14:47:00 ~ ▶ wx-config --libs all
-L/usr/lib/x86_64-linux-gnu -pthread -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_stc-3.0 -lwx_gtk2u_richtext-3.0 -lwx_gtk2u_ribbon-3.0 -lwx_gtk2u_propgrid-3.0 -lwx_gtk2u_aui-3.0 -lwx_gtk2u_gl-3.0 -lwx_gtk2u_media-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0
✔ astrapi 14:47:18 ~ ▶
--- End code ---
Does this not mean I'm yousing wxWidgets3.0 ?
But I know that my codeblocks is using wxWidgets2.8.x :
--- Code: ---✔ astrapi 14:47:18 ~ ▶ codeblocks -v
Starting Code::Blocks Release 16.01 rev 10760 Feb 2 2016, 03:11:29 - wx2.8.12 (Linux, unicode) - 64 bit
--- End code ---
I'm a bit confuse... If you don't want explain me no problem, I will do what you say I understand.
You add an answere during my righting, I try to built later (if I have to, I don't understand very well sorry...)
oBFusCATed:
To build the plugin you need to built it against the wx2.8.
To do so you need to install the dev/devel package for wxgtk 2.8.
Obviously you have the runtime wxgtk-2.8 packages. You just need to install the development packages.
astrapi:
Ok I'll try this in a moment ! Thanks everybody !
astrapi:
Arh ! I'm surely miss something...
I've install libwxgtk2.8-dev, so now I-ve got the header files, I remove the `wx-config --cflags` because I've
got the gtk3.0 install so it gives only include for it. And put by hand the flags and include that I think is needed.
(I hope this plugin is very good....)
I try to built it again... and got the same error (maybe it's normal I've just don't understand somethingsss ?)
--- Code: ----------------- Build: default in clanglib wx2.8.x - Unix (compiler: GNU GCC Compiler)---------------
g++-5 -I/usr/include/codeblocks -I/usr/include/codeblocks/tinyxml -I/usr/include/codeblocks/scripting/include -I/usr/include/codeblocks/scripting/bindings -I/usr/include/codeblocks/scripting/sqplus -I/usr/include/codeblocks/wxscintilla/include -DBUILDING_PLUGIN -DNOPCH -Wextra -Wall -std=c++0x -ansi -fPIC /home/astrapi/.lib/codeBlocks -I/usr/lib/llvm-3.4/include -fmessage-length=0 -fexceptions -Winvalid-pch -pthread -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DcbDEBUG -Wall -std=c++11 -std=c++14 -D__GXX_EXPERIMENTAL_CXX0X__ -I/usr/include/codeblocks -I/usr/include/wx-2.8/ -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8/ -I/usr/include/codeblocks/wxscintilla/include/ -c /home/astrapi/.lib/codeBlocks/ClangLib-build-tim_s/clangccsettingsdlg.cpp -o .objs/plugins/clanglib/clangccsettingsdlg.o
In file included from /home/astrapi/.lib/codeBlocks/ClangLib-build-tim_s/translationunit.h:5:0,
from /home/astrapi/.lib/codeBlocks/ClangLib-build-tim_s/clangproxy.h:11,
from /home/astrapi/.lib/codeBlocks/ClangLib-build-tim_s/clangplugin.h:9,
from /home/astrapi/.lib/codeBlocks/ClangLib-build-tim_s/clangccsettingsdlg.cpp:39:
/usr/include/clang-c/Documentation.h:40:3: error: conflicting declaration ‘typedef struct CXComment CXComment’
} CXComment;
^
In file included from /home/astrapi/.lib/codeBlocks/ClangLib-build-tim_s/translationunit.h:4:0,
from /home/astrapi/.lib/codeBlocks/ClangLib-build-tim_s/clangproxy.h:11,
from /home/astrapi/.lib/codeBlocks/ClangLib-build-tim_s/clangplugin.h:9,
from /home/astrapi/.lib/codeBlocks/ClangLib-build-tim_s/clangccsettingsdlg.cpp:39:
/usr/lib/llvm-3.4/include/clang-c/Index.h:2149:3: note: previous declaration as ‘typedef struct CXComment CXComment’
} CXComment;
--- End code ---
What do I miss ?
oBFusCATed:
It seems that you have two different versions of clang/llvm.
Is this the case?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version