Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Patches to compile and link C::B against wxWidgets 2.8.0

<< < (17/25) > >>

SharkCZ:
I am trying to compile C::B on Fedora Development with wxGTK 2.8.0 (all patches from the first post in this thread are applied) and I am getting an error when compiling PropertyGrid. Any idea?


--- Code: ---/bin/sh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/sdk -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 -I../../../src/sdk/propgrid/include    -O2 -ffast-math -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT propgrid.lo -MD -MP -MF .deps/propgrid.Tpo -c -o propgrid.lo `test -f './src/propgrid/propgrid.cpp' || echo './'`./src/propgrid/propgrid.cpp
 g++ -DHAVE_CONFIG_H -I. -I../../../src/sdk -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 -I../../../src/sdk/propgrid/include -O2 -ffast-math -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT propgrid.lo -MD -MP -MF .deps/propgrid.Tpo -c ./src/propgrid/propgrid.cpp  -fPIC -DPIC -o .libs/propgrid.o
/usr/include/wx-2.8/wx/hashmap.h: In member function 'wxLongToLongHashMap_wxImplementation_HashTable::Node** wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(const long int&) const':
/usr/include/wx-2.8/wx/hashmap.h:714: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/clntdata.h: In member function 'wxShadowObjectMethods_wxImplementation_HashTable::Node** wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) const':
/usr/include/wx-2.8/wx/clntdata.h:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/clntdata.h: In member function 'wxShadowObjectFields_wxImplementation_HashTable::Node** wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(const wxString&) const':
/usr/include/wx-2.8/wx/clntdata.h:25: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/gdicmn.h: In member function 'wxStringToColourHashMap_wxImplementation_HashTable::Node** wxStringToColourHashMap_wxImplementation_HashTable::GetNodePtr(const wxString&) const':
/usr/include/wx-2.8/wx/gdicmn.h:540: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../../src/sdk/propgrid/include/wx/propgrid/propgrid.h: In member function 'wxPGHashMapS2P_wxImplementation_HashTable::Node** wxPGHashMapS2P_wxImplementation_HashTable::GetNodePtr(const wxString&) const':
../../../src/sdk/propgrid/include/wx/propgrid/propgrid.h:1644: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../../src/sdk/propgrid/include/wx/propgrid/propgrid.h: In member function 'wxPGHashMapI2I_wxImplementation_HashTable::Node** wxPGHashMapI2I_wxImplementation_HashTable::GetNodePtr(const size_t&) const':
../../../src/sdk/propgrid/include/wx/propgrid/propgrid.h:1668: warning: dereferencing type-punned pointer will break strict-aliasing rules
./src/propgrid/propgrid.cpp: In member function 'wxPGHashMapConstants_wxImplementation_HashTable::Node** wxPGHashMapConstants_wxImplementation_HashTable::GetNodePtr(const size_t&) const':
./src/propgrid/propgrid.cpp:988: warning: dereferencing type-punned pointer will break strict-aliasing rules
./src/propgrid/propgrid.cpp: In member function 'void wxArrayEditorDialog::OnDownClick(wxCommandEvent&)':
./src/propgrid/propgrid.cpp:2414: warning: comparison between signed and unsigned integer expressions
./src/propgrid/propgrid.cpp: In member function 'void wxPGProperty::ShowError(const wxString&)':
./src/propgrid/propgrid.cpp:2942: error: invalid static_cast from type 'wxWindow*' to type 'const wxFrame*'
./src/propgrid/propgrid.cpp:2942: error: incomplete type 'wxFrame' used in nested name specifier
./src/propgrid/propgrid.cpp:2945: error: invalid use of undefined type 'struct wxFrame'
/usr/include/wx-2.8/wx/log.h:74: error: forward declaration of 'struct wxFrame'
./src/propgrid/propgrid.cpp: In member function 'void wxPropertyGrid::DrawItems(wxDC&, unsigned int, unsigned int, const wxRect*)':
./src/propgrid/propgrid.cpp:7568: warning: 'BeginDrawing' is deprecated (declared at /usr/include/wx-2.8/wx/dc.h:392)
./src/propgrid/propgrid.cpp:7576: warning: 'EndDrawing' is deprecated (declared at /usr/include/wx-2.8/wx/dc.h:393)
./src/propgrid/propgrid.cpp: In member function 'void wxPropertyGrid::DoDrawItems(wxDC&, wxPGProperty*, wxPGProperty*, const wxRect*)':
./src/propgrid/propgrid.cpp:7781: warning: 'BeginDrawing' is deprecated (declared at /usr/include/wx-2.8/wx/dc.h:392)
./src/propgrid/propgrid.cpp:8518: warning: 'EndDrawing' is deprecated (declared at /usr/include/wx-2.8/wx/dc.h:393)
./src/propgrid/propgrid.cpp:8522: warning: 'BeginDrawing' is deprecated (declared at /usr/include/wx-2.8/wx/dc.h:392)
./src/propgrid/propgrid.cpp:8528: warning: 'EndDrawing' is deprecated (declared at /usr/include/wx-2.8/wx/dc.h:393)
./src/propgrid/propgrid.cpp: In member function 'void wxPropertyGrid::DrawItems(wxPGProperty*, wxPGProperty*)':
./src/propgrid/propgrid.cpp:8570: warning: 'BeginDrawing' is deprecated (declared at /usr/include/wx-2.8/wx/dc.h:392)
./src/propgrid/propgrid.cpp:8575: warning: 'EndDrawing' is deprecated (declared at /usr/include/wx-2.8/wx/dc.h:393)
./src/propgrid/propgrid.cpp: In member function 'void wxPropertyGrid::SelectProperty(wxPGProperty*, bool, bool, bool)':
./src/propgrid/propgrid.cpp:9900: error: invalid static_cast from type 'wxWindow*' to type 'const wxFrame*'
./src/propgrid/propgrid.cpp:9900: error: incomplete type 'wxFrame' used in nested name specifier
./src/propgrid/propgrid.cpp:9902: error: invalid use of undefined type 'struct wxFrame'
/usr/include/wx-2.8/wx/log.h:74: error: forward declaration of 'struct wxFrame'
make[4]: *** [propgrid.lo] Error 1
make[4]: Leaving directory `/builddir/build/BUILD/codeblocks/src/sdk/propgrid'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/builddir/build/BUILD/codeblocks/src/sdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/builddir/build/BUILD/codeblocks/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/codeblocks/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.59823 (%build)

--- End code ---

stahta01:
You might try the newest wxPropertyGrid  version 1.2.5
http://sourceforge.net/project/showfiles.php?group_id=133406

I looked up the line that errored out on you and it is the same code in version 1.2.5, so it is NOT likely to fix the problem.

I will try to see what the issue is with the patch to PropertyGrid under Linux.
I use andLinux Ubuntu; are you building it using code::blocks or the auto tools?

If you do use wxPropertyGrid 1.2.5; I have a patch for the new wxSmith that fixes compile and link errors under windows.
https://developer.berlios.de/patch/?func=detailpatch&patch_id=1702&group_id=5358

Tim S

SharkCZ:

--- Quote from: stahta01 on December 23, 2006, 03:09:44 pm ---You might try the newest wxPropertyGrid  version 1.2.5
http://sourceforge.net/project/showfiles.php?group_id=133406

I looked up the line that errored out on you and it is the same code in version 1.2.5, so it is NOT likely to fix the problem.

I will try to see what the issue is with the patch to PropertyGrid under Linux.
I use andLinux Ubuntu; are you building it using code::blocks or the auto tools?
--- End quote ---

I am using autotools. The version 1.2.5 looks better as there are not any other warnings only the casting errors and I suspect the problem to be some incompatibility with GCC 4.1.1

SharkCZ:
Now I have tried to include the development snapshot of wxPropertyGrid and it compiles OK. Their changelog contains some "compatibilty fixes for WX 2.8.0" :-)

stahta01:

--- Quote from: SharkCZ on December 25, 2006, 05:37:00 pm ---Now I have tried to include the development snapshot of wxPropertyGrid and it compiles OK. Their changelog contains some "compatibilty fixes for WX 2.8.0" :-)

--- End quote ---

Thanks for the feedback, I have NOT yet had time to test under andLinux. Will look at their patches.

Tim S

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version