Solaris wxwidgets compile problems

Vadim Zeitlin vadim at wxwidgets.org
Mon Mar 3 15:07:05 PST 2008


On Mon, 3 Mar 2008 10:06:25 -0800 (PST) Jeff Lacki <jeep at rahul.net> wrote:

JL> Im trying to compile wxwidgets-2.8.7 for Solaris 10.  
JL> I had to compile wxMotif-2.8.7 first.  For both compiles

 Sorry, what do you mean by "both"?

JL> I got an error saying:
JL> 
JL> "./src/unix/displayx11.cpp", line 391: Error: The function "wxLogDebug" must have a prototype.
JL> 
JL> I fixed this by adding the missing stuff at the top of displayx11.cpp:
JL> 
JL> inline void wxLogNop() { }
JL> #define wxLogDebug(fmt, ...) wxLogNop()

 The latest sources in 2.8 svn branch have fixed this, please see the last
(that is the top most) 2 changes at

http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_2_8_BRANCH/src/unix/displayx11.cpp?view=log

JL> The Makefile produced for at least one (if not both - I cant remember)
JL> was missing the include line for wx-2.8, so I added it.

 There should be really no need to modify the Makefile manually. Please let
us know what exactly went wrong with the original, unmodified version.

JL> Now Im getting:
JL> 
JL> gmake: *** No rule to make target `src/x11/bitmap.cpp', needed by `coredll_bitmap.o'.  Stop.

 Hmm, I do see the rule for copying bitmap.cpp in wxMotif distribution.
Which archive did you download?

 Anyhow, if you get the wxAll one it contains really everything, including
this file.

JL> I configured wxwidgets with: configure --with-motif
JL> 
JL> Im assuming this is the correct thing for solaris, but I could be wrong.

 wxMotif is a legacy port not maintained much since more than 10 years. It
still works and people with specific needs do use it but if you don't have
any particular reason to prefer Motif, please use wxGTK instead, it's much
more actively developed.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list