Author Topic: Can't compile cbprofilerexec.cpp (Gentoo)  (Read 4095 times)

IntergalacticWalrus

  • Guest
Can't compile cbprofilerexec.cpp (Gentoo)
« on: January 04, 2006, 02:30:54 am »
I'd really like to try Code::Blocks, but so far I'm unable to compile it. I get
Code
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

  • Guest
Re: Can't compile cbprofilerexec.cpp (Gentoo)
« Reply #1 on: January 05, 2006, 06:31:37 am »
could you please post the output of:

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

and tell me which use flags you used for wxGTK:

Code
# emerge -vp wxGTK

IntergalacticWalrus

  • Guest
Re: Can't compile cbprofilerexec.cpp (Gentoo)
« Reply #2 on: January 05, 2006, 06:53:04 am »
`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".

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: Can't compile cbprofilerexec.cpp (Gentoo)
« Reply #3 on: January 05, 2006, 05:53:07 pm »
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

  • Guest
Re: Can't compile cbprofilerexec.cpp (Gentoo)
« Reply #4 on: January 06, 2006, 01:21:13 am »
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.