User forums > Help
Unable to compile ClangCompletion cbplugin
astrapi:
Oye oye oye...
It's in progress ! I've set a folder to my global variable (but I don't know what it is)
After little probleme of include I've got this :
-------------- Build: Release in clanglib (Unix) (compiler: GNU GCC Compiler)---------------
g++-5 -DBUILDING_PLUGIN -O3 -Wextra -Wall -std=c++0x -ansi /home/astrapi/.lib/codeBlocks -I/usr/lib/llvm-3.4/include -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -pthread -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -Wall -D__GXX_EXPERIMENTAL_CXX0X__ -I/usr/include/codeblocks -I/usr/lib/llvm-3.4/include/ -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0/ -I. -I../codeblocks-1510/src/include -c /home/astrapi/.lib/codeBlocks/ClangLib-master/cclogger.cpp -o .objs/plugins/clanglib/cclogger.o
In file included from /usr/include/wx-3.0/wx/string.h:24:0,
from /home/astrapi/.lib/codeBlocks/ClangLib-master/cclogger.h:9,
from /home/astrapi/.lib/codeBlocks/ClangLib-master/cclogger.cpp:10:
/usr/include/wx-3.0/wx/defs.h:46:13: error: #error "No Target! You should use wx-config program for compilation flags!"
# error "No Target! You should use wx-config program for compilation flags!"
My other compilations options of the built program :
$(#CB_RELEASE_TYPE)
`wx-config --version=2.8 --cflags`
-I`llvm-config --includedir`
-fmessage-length=0
-fexceptions
-Winvalid-pch
-fPIC
-pthread
I'm all yours
oBFusCATed:
What is the output of "wx-config --version=2.8 --cflags" if you run it in a console?
astrapi:
--- Code: ---✔ astrapi 18:34:21 ~ ▶ wx-config --version=2.8 --cflags
Warning: No config found to match: /usr/bin/wx-config --version=2.8 --cflags
in /usr/lib/x86_64-linux-gnu/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default
✘ astrapi 18:34:44 ~ ▶ which wx-config
/bin/wx-config
✔ astrapi 18:34:54 ~ ▶ wx-config --list
Default config is gtk2-unicode-3.0
Default config will be used for output
Alternate matches:
base-unicode-3.0
--- End code ---
stahta01:
The Plugin seems to not yet support wxWidgets 3.0.
Does your Code::Blocks installation use wxWidgets 3.0? (yes or no)
Do you or can you self-build Code::Blocks? (yes,no,maybe)
I have forked one of the Git Repos listed above and I am doing changes in this location https://github.com/stahta01/ClangLib/tree/build/tim_s
Tim S.
astrapi:
So, for my codeblocks version :
✔ astrapi 18:40:50 ~ ▶ codeblocks -v
Starting Code::Blocks Release 16.01 rev 10760 Feb 2 2016, 03:11:29 - wx2.8.12 (Linux, unicode) - 64 bit
Can I "down"date my wx-config to wx2.8 ? (does this question have a sense ?)
I think I can probably built codeblocks, with some probleme maybe.
I try to built right now your clanglib, thank you a lot !
(Codeblocks at start up of your project clanglib wx3.0.x ask me Global variable editor current variable cb, I don't what that mean, is this important ?)
I've got this error
-------------- Build: use_pch in clanglib wx3.0.x - Unix (compiler: GNU GCC Compiler)---------------
g++-5 -DBUILDING_PLUGIN -DCB_PRECOMP -DWX_PRECOMP -O3 -Wextra -Wall -std=c++0x -ansi -fPIC /home/astrapi/.lib/codeBlocks -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I/usr/lib/llvm-3.4/include -fmessage-length=0 -fexceptions -Winvalid-pch -pthread -DcbDEBUG -Wall -std=c++11 -std=c++14 -D__GXX_EXPERIMENTAL_CXX0X__ -I/usr/include/codeblocks -I/usr/lib/llvm-3.4/include/ -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0/ -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;
reference to that part of code :
--- Code: ---/**
* \brief A parsed comment.
*/
typedef struct {
const void *ASTNode;
CXTranslationUnit TranslationUnit;
} CXComment;
--- End code ---
Thanks again !
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version