User forums > General (but related to Code::Blocks)
"codesnippets" error when built rpm package -- svn 7028 [ SOLVED ]
stahta01:
--- Quote from: wangdong1226 on February 26, 2011, 09:19:42 am ---/usr/include/wx-2.8/wx/treebase.h:75:5: note: candidates are: wxTreeItemId::wxTreeItemId(long int)
--- End quote ---
Assuming the treebase.h is the same as mine; you have the WXWIN_COMPATIBILITY_2_4 set.
The building of Code::Blocks does NOT normally have WXWIN_COMPATIBILITY_2_4 set.
(No idea if it is failing because of wxWidgets or Code::Blocks source code error.)
From wxWidgets file treebase.h; so, wxWidgets issue lines 73 to 79
--- Quote ---
--- Code: ---#if WXWIN_COMPATIBILITY_2_4
// deprecated: only for compatibility, don't work on 64 bit archs
wxTreeItemId(long item) { m_pItem = wxUIntToPtr(item); }
operator long() const { return (long)wxPtrToUInt(m_pItem); }
#else // !WXWIN_COMPATIBILITY_2_4
operator bool() const { return IsOk(); }
#endif // WXWIN_COMPATIBILITY_2_4/!WXWIN_COMPATIBILITY_2_4
--- End code ---
--- End quote ---
Try building wxWidgets without using "--enable-compat24"; this assumes I guessed the correct cause of the problem.
Tim S.
wangdong1226:
--- Quote from: jens on February 26, 2011, 07:06:36 pm ---CB_PRECOMP is set!
Anyway: if I compile without CB_PRECOMP and with NOPCH, it still compiles without problems on 64-bit debian.
I also set all defines and special parameters the same way, but it still compiles.
What version of wxWidgets do you use ( wx-config --version-full )?
--- End quote ---
my wxWidgets version:
wx-config --version-full
2.8.11.0
maybe my system's ( Fedora 14 X86_64 ) problem. But actually when I compiled svn 7027, it was succeeded.
Why? :(
wangdong1226:
--- Quote from: Pecan on February 26, 2011, 05:38:02 pm ---I do not get any errors. My results are clean.
Also, your statements numbers do not match mine.
Some of the lines you're getting errors on are blank lines for me.
It looks like you're using lib64. If you want to provide changes that would work with 64 bit Codeblocks and wxWidgets, I'll be glad to try and make the changes.
svn build rev 7028 (2011-02-24 18:02:27) gcc 4.4.3 Linux/unicode - 32 bit
--- Code: ---
-------------- Clean: Plugin-unix in CodeSnippets-unix ---------------
Cleaned "CodeSnippets-unix - Plugin-unix"
-------------- Clean: App-unix in CodeSnippets-unix ---------------
Cleaned "CodeSnippets-unix - App-unix"
-------------- Build: Plugin-unix in CodeSnippets-unix ---------------
<snip>
g++ -Wall -g -Ulinux -Uunix -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -fexceptions -Winvalid-pch -fPIC -pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -DcbDEBUG -DCB_PRECOMP -I../../../include -I../../../sdk/wxscintilla/include -I. -Ieditor -ISearch -I../../../include/mozilla_chardet -I/usr/include -c /home/pecan/devel/trunk/src/plugins/contrib/codesnippets/codesnippetstreectrl.cpp -o ../../../.objs/plugins/contrib/codesnippets/plugin/codesnippetstreectrl.o
<snip>
Output size is 7.71 MB
-------------- Build: App-unix in CodeSnippets-unix ---------------
<snip>
g++ -Wall -g -Ulinux -Uunix -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -fexceptions -Winvalid-pch -fPIC -pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -DcbDEBUG -DCB_PRECOMP -I../../../include -I../../../sdk/wxscintilla/include -I. -Ieditor -ISearch -I../../../include/mozilla_chardet -I/usr/include -c /home/pecan/devel/trunk/src/plugins/contrib/codesnippets/codesnippetstreectrl.cpp -o ../../../.objs/plugins/contrib/codesnippets/app/codesnippetstreectrl.o
Output size is 7.55 MB
Running project post-build steps
./update
adding: manifest.xml (deflated 51%)
Process terminated with status 0 (1 minutes, 47 seconds)
0 errors, 0 warnings (1 minutes, 47 seconds)
--- End code ---
--- End quote ---
That's very kind of you, if you can do some tests or changes under lib64.
I've quarried my system about the wxGTK, I got these out puts:
[David@Ocean ~]$ rpm -qa | grep wxGTK
wxGTK-gl-2.8.11-3.fc14.x86_64
wxGTK-2.8.11-3.fc14.i686
wxGTK-2.8.11-3.fc14.x86_64
wxGTK-devel-2.8.11-3.fc14.x86_64
wxGTK-media-2.8.11-3.fc14.x86_64
[David@Ocean ~]$ rpm -qa | grep wxBase
wxBase-2.8.11-3.fc14.x86_64
wxBase-2.8.11-3.fc14.i686
Pecan:
--- Quote from: wangdong1226 on February 27, 2011, 10:09:15 am ---
--- Quote from: Pecan on February 26, 2011, 05:38:02 pm ---... If you want to provide changes that would work with 64 bit Codeblocks and wxWidgets, I'll be glad to try and make the changes.
--- End quote ---
That's very kind of you, if you can do some tests or changes under lib64.
I've quarried my system about the wxGTK, I got these out puts:
[David@Ocean ~]$ rpm -qa | grep wxGTK
wxGTK-gl-2.8.11-3.fc14.x86_64
wxGTK-2.8.11-3.fc14.i686
wxGTK-2.8.11-3.fc14.x86_64
wxGTK-devel-2.8.11-3.fc14.x86_64
wxGTK-media-2.8.11-3.fc14.x86_64
[David@Ocean ~]$ rpm -qa | grep wxBase
wxBase-2.8.11-3.fc14.x86_64
wxBase-2.8.11-3.fc14.i686
--- End quote ---
Please note: I said -- "If you want to provide changes...".
I do not have the time to test with 64-bit CB yet. But I'll make changes to CodeSnippets that provide a patch and are correctly debugged.
Jenna:
It's not a problem with 64-bit in general.
It's a problem with 64-bit libraries, that use deprecated functions (that are removed in wx2.9 by the way), because WXWIN_COMPATIBILITY_2_4 is defined.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version