News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Can't compile cbprofilerexec.cpp (Gentoo)

Started by IntergalacticWalrus, January 04, 2006, 02:30:54 AM

Previous topic - Next topic

IntergalacticWalrus

I'd really like to try Code::Blocks, but so far I'm unable to compile it. I get
cbprofilerexec.cpp: In member function `void CBProfilerExecDlg::WriteToFile(wxCommandEvent&)':
cbprofilerexec.cpp:286: error: no matching function for call to `wxFFile::wxFFile(const wxChar*, const wchar_t[2])'

I used the ebuild and patch at http://bugs.gentoo.org/show_bug.cgi?id=89533. I also posted a detailed output of the error at the same bug, but it's been days and nobody has answered yet, so I'm hoping I'd get more feedback here...

pwuertz

could you please post the output of:


# wx-config --version-full
# wx-config-2.6 --version-full


and tell me which use flags you used for wxGTK:


# emerge -vp wxGTK


IntergalacticWalrus

`wx-config-2.6 --version-full` returns 2.6.2.1 and `wx-config --version` returns 2.4.2 (--version-full was not a valid parameter for wx-config).

My x11-libs/wxGTK-2.6.2-r1 is compiled with USE="X joystick opengl sdl unicode -debug -doc -gnome -odbc".

TheTuxKeeper

When you want to compile the svn version you need wxGTK 2.6. You installed it, but ./configure uses wx-config by default. The problem is that wx-config is symlinked to wxGTK 2.4.2.

You can do one (or more) of these things to solve the problem:
1. change the symlink, so that wx-config points to wx-config-2.6
2. you run ./configure with --with-wx-config=/path/to/wx-config-2.6
3. perhaps removing wxGTK 2.4.2, if also installed could do the same

Daniel
Nightly builds for openSUSE

IntergalacticWalrus

You were right, it used the wx-config from 2.4.x. I thought the ebuild checked that but it was only the svn ebuild that did it correctly. Anyway I uploaded the fix to the bug, if anyone's interested.

Thanks.