Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
CodeBlocks build on RHEL 5.5
Jenna:
I copy the ./configure line, I use on debian, if I build wxWidgets myself (it's sometimes necessary, for debugging purposes, even if this line is not for debugging, it was to compile wx2.8 from svn).
--- Code: ---../configure --prefix=/home/jens/wx-tmp --with-zlib=sys --disable-reserved-virtual --with-gtk --enable-mediactrl --enable-sound --with-sdl --enable-display --enable-geometry --enable-graphics_ctx --with-libtiff=sys --with-libjpeg=sys --with-libpng=sys --enable-unicode --with-opengl --disable-stl --enable-aui --disable-debug
--- End code ---
Monolithic is useful on windows, but normally not needed on linux (if you use wx-config).
screamingindigital:
Obfuscated( :P) & Jens,
Thank you for your replies, but I tried it again with Jens' configure options, and I still get a segmentation fault when I click "File-Open". Most of the other options seem to work okay. After I ran "make install"(as root), I launched "codeblocks" from the command line to see if there was any output. I have listed it below.
I have four build versions of wxGTK, and I have tested all of them with the samples. I do not have any problems. "Codeblocks" compiles okay, but this runtime error occurs. I do not believe it is a fault of the code or the wxGTK libraries.
I must be retarded. I know you suggested getting RHEL 5.5 binaries, but I cannot find any.
I am going to look in the mirror, shout "Schweinhundt!", take my Computer Science degree from the wall, wipe my dog's rear with it, and use it for target practice! :x
FYI, the latest open source QT will not compile either, because it requires CLIBCXX_3.4.9 for qpatch.
[root@icedearth bin]# ./codeblocks &
[1] 2778
[root@icedearth bin]# Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading toolbar...
ClassWizard: loaded
Autosave: loaded
FilesExtensionHandler: loaded
ToDoList: loaded
AStylePlugin: loaded
ProjectsImporter: loaded
CodeCompletion: loaded
Debugger: loaded
ScriptedWizard: loaded
OpenFilesList: loaded
Compiler: loaded
Class wizard plugin activated
Autosave plugin activated
Files extension handler plugin activated
Todo List plugin activated
Source code formatter (AStyle) plugin activated
Foreign projects importer plugin activated
Code completion plugin activated
Debugger plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
Scripted wizard plugin activated
Open files list plugin activated
Added compiler "GNU GCC Compiler"
Parsing stage done (0 total parsed files, 0 tokens in 0 minute(s), 0.0 seconds).
Updating class browser...
Class browser updated.
Added compiler "Intel C/C++ Compiler"
Added compiler "SDCC Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GDC D Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU ARM GCC Compiler"
Added compiler "GNU AVR GCC Compiler"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for TriCore"
Compiler plugin activated
Initializing plugins...
[1]+ Segmentation fault ./codeblocks
oBFusCATed:
Are you sure that C::B is using the wxGTK it has been built with?
If I were you, I'll remove all wxGTK I don't need and recompile C::B again...
screamingindigital:
I removed all existing builds for wxWidgets & Codeblocks and started over, but the problem still existed.
I launched Codeblocks through the shell and passed a filename(using "--file="). It launched and loaded the file.
However, if I try to use "File-Save File As" or "File Open", it will crash. The log files show lines 2567 and 2477 in "main.cpp". From what I can decipher from the code and the comments, this is the point where these dialog boxes are called.
So, I thought I should try one of the wxWidgets samples that opens a file. I used the "docview" sample, and it worked fine.
I then decided to just start and create a new sample project. I tried three separate projects. They were created, compiled, and ran without issues.
This could be a total "shot in the dark", but looking at the "main.cpp" file, the tags in "default.conf" are accessed using an xpath style. Does wxWidgets have some sort of XML api to read, parse, and return values from this file, or are you using something unrelated to wxWidgets? I do not know enough about wxWidgets to determine this. Since the "docview" sample worked okay, could there be something causing a problem to the values passed to the dialog box for open/save that are read from the "default.conf" file that causes it to "barf"?
Is there any way to get these values parsed, saved, and passed to methods written to the terminal or a file?
Thanks again for your assistance.
If this becomes too much of a headache, I may be forced to go back to Fedora x64. I did not have any issues with that.
oBFusCATed:
Hm, strange... you would have to debug it yourself :(
The easiest way is to build cb from cb and put some breakpoints here and there to see where and why it crashes.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version