Author Topic: Linux Unicode wx2.6 CVS HEAD Doesn't Compile  (Read 9217 times)

Offline me22

  • Official tester
  • Multiple posting newcomer
  • ***
  • Posts: 53
    • TA Universe
Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« on: September 03, 2005, 06:57:19 am »
Wee, Linux Unicode wx2.6 -- the toughest version yet :P

$ make -f Makefile.unix.wx2.6
[ A Bunch of Successful Compiles ]
Compiling sdk/wxscintilla/src/PlatWX.cpp...
sdk/wxscintilla/src/PlatWX.cpp: In constructor `Font::Font()':
sdk/wxscintilla/src/PlatWX.cpp:93: error: `ascent' undeclared (first use this function)
sdk/wxscintilla/src/PlatWX.cpp:93: error: (Each undeclared identifier is reported only once for each function it appears in.)
sdk/wxscintilla/src/PlatWX.cpp: In member function `virtual void SurfaceImpl::DrawTextNoClip(PRectangle, Font&, int, const char*, int, ColourAllocated, ColourAllocated)':
sdk/wxscintilla/src/PlatWX.cpp:337: error: 'class Font' has no member named 'ascent'
sdk/wxscintilla/src/PlatWX.cpp: In member function `virtual void SurfaceImpl::DrawTextClipped(PRectangle, Font&, int, const char*, int, ColourAllocated, ColourAllocated)':
sdk/wxscintilla/src/PlatWX.cpp:350: error: 'class Font' has no member named 'ascent'
sdk/wxscintilla/src/PlatWX.cpp: In member function `virtual void SurfaceImpl::DrawTextTransparent(PRectangle, Font&, int, const char*, int, ColourAllocated)':
sdk/wxscintilla/src/PlatWX.cpp:365: error: 'class Font' has no member named 'ascent'
sdk/wxscintilla/src/PlatWX.cpp: In member function `virtual int SurfaceImpl::Ascent(Font&)':
sdk/wxscintilla/src/PlatWX.cpp:474: error: 'class Font' has no member named 'ascent'
sdk/wxscintilla/src/PlatWX.cpp:475: error: 'class Font' has no member named 'ascent'
make: *** [.objs/2.6/sdk/wxscintilla/src/PlatWX.o] Error 1

grv575

  • Guest
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #1 on: September 03, 2005, 07:44:31 am »
Not all the sources were added.  The makefile was out of date.  Try the updated one I just merged from the windows .cbp.
http://forums.codeblocks.org/index.php/topic,835.msg5885.html#msg5885

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #2 on: October 23, 2005, 04:31:42 pm »
Isn't this fix in the CVS Head? I yesterday run into this problem (I was playing with the windows version of the code untill now) getting the same undefined variable ascent in linux using the 2.6 unix cbp. I made a fresh checkout to have the original source in case some of the changes i've made messed something up, built it succesfully but then when I open the 2.6 unix cbp I can't compile  :(
I ll try the updated version submitted in the link you provide.
Life would be so much easier if we could just look at the source code.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #3 on: October 23, 2005, 04:35:17 pm »
The build system now uses autotools (configure and friends). It's the only supported (and guaranteed) way to build C::B in linux.
Be patient!
This bug will be fixed soon...

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #4 on: October 23, 2005, 04:44:35 pm »
And it works flawlessly, but the problem with the cbp has to be fixed IMHO as there are linux developers who would like to contribute. Anyway I' ll see the grv575 suggestion and hopefully it'll work :)
Life would be so much easier if we could just look at the source code.

grv575

  • Guest
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #5 on: October 24, 2005, 08:00:37 pm »
Yop, that version is definately outdated.  I hacked up a Makefile.unix from september, but autotools superceedes the makefiles now so I'd think you would have to do a lot or merging to get a unix makefile to work.  Don't quite remember what was giving that missing ascent error.

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #6 on: October 26, 2005, 08:42:48 pm »
Yes I found that out the hard way I'm afraid  :(. Anyway I'm using autotools for building codeblocks (oh god I'd reaaaally love to use codeblocks but I'm afraid I'm too lazy to create the whole project from the start or patch the current one).
Life would be so much easier if we could just look at the source code.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #7 on: October 26, 2005, 09:07:51 pm »
Anyway you could modify the cbp project to compile using the makefile generated by automake (check the "use existing makefile").

takeshimiya

  • Guest
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #8 on: October 26, 2005, 10:00:37 pm »
It would be great if the cbp-unix can be mantained, because it's a great test-case of C::B Makefiles generation.

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #9 on: October 26, 2005, 10:16:03 pm »
@rickg22 Wouldn't help as I wanted to mess around with the code a bit  :wink: and I'd have to recreate the Makefile by hand. Anyway what I did is that being certain of what changes I wanted to make I added them to a fresh cvs version of the code added my new files in existing Makefile.am s and built it from the start. Now I'm bug fixing and building from console. Thank God I'm just adding a new compiler and things are quite easy (nice job there by the way)
@takeshimiya I couldn't agree more
Life would be so much easier if we could just look at the source code.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #10 on: October 26, 2005, 10:24:42 pm »
I agree, too. Yiannis, what can we do about this? Is the conversion difficult?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #11 on: October 26, 2005, 10:49:20 pm »
I agree, too. Yiannis, what can we do about this? Is the conversion difficult?

I don't really get it  :oops:
Do what? About what?
Conversion?
Be patient!
This bug will be fixed soon...

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #12 on: October 26, 2005, 11:03:43 pm »
Oops sorry need to be more clear. Is it difficult to...

Take the latest codeblocks.cbp and update it for unix?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Linux Unicode wx2.6 CVS HEAD Doesn't Compile
« Reply #13 on: October 26, 2005, 11:31:19 pm »
Oops sorry need to be more clear. Is it difficult to...

Take the latest codeblocks.cbp and update it for unix?

Oh sure, it's easy.
Be patient!
This bug will be fixed soon...