Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: me22 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
-
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
-
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.
-
The build system now uses autotools (configure and friends). It's the only supported (and guaranteed) way to build C::B in linux.
-
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 :)
-
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.
-
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).
-
Anyway you could modify the cbp project to compile using the makefile generated by automake (check the "use existing makefile").
-
It would be great if the cbp-unix can be mantained, because it's a great test-case of C::B Makefiles generation.
-
@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
-
I agree, too. Yiannis, what can we do about this? Is the conversion difficult?
-
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?
-
Oops sorry need to be more clear. Is it difficult to...
Take the latest codeblocks.cbp and update it for unix?
-
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.