User forums > Help

wxSmith does not build for MacOSX at rev 3614

(1/4) > >>

bnilsson:
wxSmith does not build for MacOSX at rev 3614:

--- Quote ---Making all in wxSmith
Making all in properties
make[5]: Nothing to be done for `all'.
Making all in wxwidgets
Making all in defitems
make[6]: Nothing to be done for `all'.
Making all in icons
make[6]: Nothing to be done for `all'.
Making all in properties
make[6]: Nothing to be done for `all'.
make[6]: Nothing to be done for `all-am'.
if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src/include -I/opt/local/lib/wx/include/mac-unicode-release-2.6 -I/opt/local/include/wx-2.6 -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -I../../../../src/include -I../../../../src/include/wxFlatNotebook/include -I../../../../src/include/wxscintilla/include -I../../../../src/include/propgrid/include    -O2 -ffast-math -I/opt/local/include -g -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT wxsresourcetree.lo -MD -MP -MF ".deps/wxsresourcetree.Tpo" -c -o wxsresourcetree.lo `test -f './wxsresourcetree.cpp' || echo './'`./wxsresourcetree.cpp; \
then mv -f ".deps/wxsresourcetree.Tpo" ".deps/wxsresourcetree.Plo"; else rm -f ".deps/wxsresourcetree.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src/include -I/opt/local/lib/wx/include/mac-unicode-release-2.6 -I/opt/local/include/wx-2.6 -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../../../src/include -I../../../../src/include/wxFlatNotebook/include -I../../../../src/include/wxscintilla/include -I../../../../src/include/propgrid/include -O2 -ffast-math -I/opt/local/include -g -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT wxsresourcetree.lo -MD -MP -MF .deps/wxsresourcetree.Tpo -c ./wxsresourcetree.cpp  -fno-common -DPIC -o .libs/wxsresourcetree.o
./wxsresourcetree.cpp: In static member function 'static wxImageList& wxsResourceTree::GetGlobalImageList()':
./wxsresourcetree.cpp:116: error: invalid use of undefined type 'struct wxImage'
/opt/local/include/wx-2.6/wx/bitmap.h:31: error: forward declaration of 'struct wxImage'
make[5]: *** [wxsresourcetree.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

--- End quote ---

'make clean' did not help.

Any suggestions?

Auria:

--- Quote ---./wxsresourcetree.cpp:116: error: invalid use of undefined type 'struct wxImage'
/opt/local/include/wx-2.6/wx/bitmap.h:31: error: forward declaration of 'struct wxImage'

--- End quote ---

Add #include "wx/image.h"

bnilsson:
Ok, now it works, thanks.
Odd that we need tweaking the wxWidgets itself to build CB?
I haven't watched the development lately, is this publicly known, and when did it happen?

Auria:

--- Quote from: bnilsson on February 18, 2007, 09:39:12 pm ---Odd that we need tweaking the wxWidgets itself to build CB?

--- End quote ---

That file is not part of wxWidgets, it is a wxSmith file - no need to tweak wx, it's just amissing include in smith

bnilsson:
Sorry, I misunderstood.
I thought you told me to put in a "#include "wx/image.h"" into "/opt/local/include/wx-2.6/wx/bitmap.h".
Although I thought it was strange, I did that and it worked.

Now I reverted "wx/bitmap.h" to original and put it in wxsresourcetree.cpp and it seems to do the same job.

I expect it will it be there in the next rev?

Navigation

[0] Message Index

[#] Next page

Go to full version