User forums > Help
Compiling Codeblocks from source (not svn)
stahta01:
I believe the wxWidgets build must be shared files; I am think it might be needed to pass --enable-shared to configure.
What does wx-config return?
Note: I am primary a Windows programmer; so, not sure about Linux.
Tim S.
oBFusCATed:
--- Quote from: hibbity on July 04, 2011, 08:50:35 pm ---I like to be able to build different versions. GTK2 for now, possibly windows later.
Currently, I have installed into /usr/lib:
- libwx_gtk2u-2.8.so
- libwx_gtk2ud-2.8.so
--- End quote ---
I don't see what is the problem with using the system wxGTK.
You can try "ldd /path/to/codeblocks" to see if the correct libs are found and used. If not rebuild using the system wxGTK, it will be easier for you.
(you can hack it of course, but it is not the correct way of doing it and it is for power/masochist users)
hibbity:
First issue I found is in wxWidgets realm (wxWidgets built with --enable-unicode), in custom plugin source.
--- Code: --- char myText[80];
strcpy (myText, "Some message.\n");
wxString myString(myText, wxConvUTF8);
--- End code ---
This constructor invokes
--- Code: ---FromWChar(char *dst, size_t dstLen, const wchar_t *src, size_t srcLen) const
--- End code ---
... which causes SIGSEGV, not sure why exactly this should happen.
Custom plugin causing this problem was removed, then codeblocks 10.05 reconfigured with "--enable-debug", and re-installed (make distclean then re-run configure, then make, then sudo make install) and re-run in gdb.
--- Code: --- ...
Compiler plugin activated
Library finder plugin activated
Open files list plugin activated
Files extension handler plugin activated
Header Fixup plugin activated
BYO Games plugin activated
Keyboard shortcuts plugin activated
Class wizard plugin activated
DragScroll plugin activated
Regular expressions testbed plugin activated
Source code formatter (AStyle) plugin activated
Code completion plugin activated
Foreign projects importer plugin activated
IncrementalSearch plugin activated
Autosave plugin activated
Source Exporter plugin activated
Initializing plugins...
KeyBinder failed UpdateById on[2639][Edit startup script]
[New Thread 0xb17e9b70 (LWP 30699)]
[Thread 0xb7a5ab70 (LWP 30688) exited]
--- End code ---
... and a pop-up message in codeblocks, saying, "Resource files must have the same version number!" [OK]
Is there something I should be editing or deleting, perhaps in /tmp ?
Navigation
[0] Message Index
[*] Previous page
Go to full version