View previous topic :: View next topic |
Author |
Message |
Slammer Bodhisattva
Joined: 28 Mar 2003 Posts: 270 Location: Greece
|
Posted: Fri Oct 05, 2007 11:53 pm Post subject: |
|
|
Try to execute with:
G_SLICE=always-malloc codeblocks
It works for me _________________ Keep Slamming... |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Sun Oct 07, 2007 7:10 pm Post subject: Top COOOOOOOOOOOOL !!!!!!!!!!! |
|
|
Slammer wrote: | Try to execute with:
G_SLICE=always-malloc codeblocks
It works for me |
YEAH ! YEAH ! YEAH !!!!!
It works !
Do you have any explanation of that environment variable ? Is that a bug ? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Tue Oct 09, 2007 11:06 am Post subject: |
|
|
Thanks. I'll update it.
Edit: It is updated. _________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Last edited by keenblade on Wed Oct 10, 2007 8:01 pm; edited 1 time in total |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Wed Oct 10, 2007 11:18 am Post subject: |
|
|
Yet more big thanks for taking the relay for maintaining that ebuild _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Wed Oct 10, 2007 8:55 pm Post subject: |
|
|
XavierMiller wrote: | Yet more big thanks for taking the relay for maintaining that ebuild |
It is fun to be here. And the incredible rare possibility of being a human being who is living in a planet called earth and who is using codeblocks on gentoo and on and on... That's insanely impossible, but just happened. That makes me proud to be with you. Thank you all for being here and real, at least on this level. _________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Last edited by keenblade on Sun Oct 14, 2007 6:25 am; edited 1 time in total |
|
Back to top |
|
|
Slammer Bodhisattva
Joined: 28 Mar 2003 Posts: 270 Location: Greece
|
Posted: Wed Oct 10, 2007 9:15 pm Post subject: |
|
|
Codeblocks is the best simple and light IDE. Works better than anything else with many compilers (different targets in a single project).
I am using it for 2 years with different compilers, SDCC (for 8051), gcc-avr, gcc-arm, gcc-386....
It is the best! _________________ Keep Slamming... |
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Wed Oct 10, 2007 9:38 pm Post subject: |
|
|
I agree, Codeblocks is the best simple and light IDE. Just needs some attention to languages other than c++. There is an interpreted languages plugin (for Python, Ruby, Prolog, Perl etc) that I keep an eye on it. So if it see the lights, C::B even will be an IDE for prolog programming. _________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1" |
|
Back to top |
|
|
Henno n00b
Joined: 14 Nov 2002 Posts: 29 Location: Germany
|
Posted: Mon Oct 15, 2007 8:02 pm Post subject: Error in Build |
|
|
Codeblocks stops building with the error
Code: | i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -mtune=athlon-xp -march=athlon-xp -O2 -pipe -fno-ident -fno-strict-aliasing -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinywxuni.lo -MD -MP -MF .deps/tinywxuni.Tpo -c tinywxuni.cpp -fPIC -DPIC -o .libs/tinywxuni.o
../../../src/include/toolsmanager.h:41: error: 'class ToolsList::Node' has not been declared
make[3]: *** [tinywxuni.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999-r17/work/codeblocks-9999/src/base/tinyxml' |
To me, this seems like a missing include in the C++-Code. Should I just wait a few days until it gets fixed upstream? Or am I missing something here? |
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Wed Oct 17, 2007 4:04 pm Post subject: Re: Error in Build |
|
|
Henno wrote: | Codeblocks stops building with the error...
To me, this seems like a missing include in the C++-Code. Should I just wait a few days until it gets fixed upstream? Or am I missing something here? |
Today I emerged C::B svn build rev 4540 successfully. Could you try again? Then lets see what happens.
If it fails try:
Code: |
emerge -C wxGTK
emerge -v wxGTK
|
Also do not use stl useflag for wxGTK.
If all fails, could you provide the output of;
Code: |
emerge --info
emerge -vp wxGTK
emerge -vp codeblocks
|
_________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1" |
|
Back to top |
|
|
Henno n00b
Joined: 14 Nov 2002 Posts: 29 Location: Germany
|
Posted: Sun Oct 21, 2007 12:04 pm Post subject: |
|
|
Quote: | Also do not use stl useflag for wxGTK. |
wxGTK without STL...that was it!
Thanks for your tip, I got codeblocks working flawlessly now! |
|
Back to top |
|
|
loox n00b
Joined: 28 Apr 2005 Posts: 2
|
Posted: Thu Oct 25, 2007 10:14 pm Post subject: |
|
|
hello,
dunno if anyone is interested, but I hope it is related to this topic:
I've just created the ebuilds necessary to build wxformbuilder: I got it working on amd64 and should be ok on x86 as well
Please give it a try, any feedback is welcome
greets, loox |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Thu Nov 08, 2007 8:50 pm Post subject: |
|
|
Hello,
Just compiled C::B with wxGTK-2.8.6 and it works (without GLIB error).
Here is my ebuild (based on wxGTK and not wxPython):
wxGTK-2.8.6.ebuild: | # Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit eutils flag-o-matic multilib toolchain-funcs versionator
DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit and wxbase non-gui library"
SRC_URI="mirror://sourceforge/wxwindows/wxGTK-${PV}.tar.bz2
doc? ( mirror://sourceforge/wxwindows/wxWidgets-${PV}-HTML.zip )"
SLOT="2.8"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="debug doc gnome joystick odbc opengl sdl stl unicode X gif"
LICENSE="wxWinLL-3"
HOMEPAGE="http://www.wxwidgets.org"
# Note 1: Gettext is not runtime dependency even if nls? because wxWidgets
# has its own implementation of it
# Note 2: PCX support is enabled if the correct libraries are detected.
# There is no USE flag for this.
RDEPEND="X? ( opengl? ( virtual/opengl )
>=x11-libs/gtk+-2.0
>=dev-libs/glib-2.0
media-libs/tiff
x11-libs/libXinerama
x11-libs/libXxf86vm
gnome? ( >=gnome-base/libgnomeprintui-2.8 ) )
odbc? ( dev-db/unixODBC )
x86? ( sdl? ( >=media-libs/libsdl-1.2 ) )
amd64? ( sdl? ( >=media-libs/libsdl-1.2 ) )
ppc? ( sdl? ( >=media-libs/libsdl-1.2 ) )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
X? (
x11-proto/xproto
x11-proto/xineramaproto
x11-proto/xf86vidmodeproto
)"
S=${WORKDIR}/wxGTK-${PV}
HTML_S=${WORKDIR}/wxWidgets-${PV}
# Configure a build.
# It takes three parameters;
# $1: prefix for the build directory (used for wxGTK which has two
# builds needed.
# $2: "unicode" if it must be build with else ""
# $3: all the extra parameters to pass to configure script
configure_build() {
export LANG='C'
mkdir ${S}/$1_build
cd ${S}/$1_build
# odbc works with ansi only:
subconfigure $3 $(use_with odbc)
emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" || die "emake failed"
#wxbase has no contrib:
if [[ -e contrib/src ]]; then
cd contrib/src
emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" || die "emake contrib failed"
fi
if [[ "$2" == "unicode" ]] && use unicode; then
mkdir ${S}/$1_build_unicode
cd ${S}/$1_build_unicode
subconfigure $3 --enable-unicode
emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" || die "Unicode emake failed"
if [[ -e contrib/src ]]; then
cd contrib/src
emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" || die "Unicode emake contrib failed"
fi
fi
}
# This is a commodity function which calls configure script
# with the default parameters plus extra parameters. It's used
# as building the unicode version required redoing it.
# It takes all the params and passes them to the script
subconfigure() {
ECONF_SOURCE="${S}" \
econf \
--with-zlib \
$(use_enable debug) $(use_enable debug debug_gdb) \
$* || die "./configure failed"
}
# Installs a build
# It takes only a parameter: the prefix for the build directory
# see configure_build function
install_build() {
cd ${S}/$1_build
einstall libdir="${D}/usr/$(get_libdir)" || die "Install failed"
if [[ -e contrib ]]; then
cd contrib/src
einstall libdir="${D}/usr/$(get_libdir)" || die "Install contrib failed"
fi
if [[ -e ${S}/$1_build_unicode ]]; then
cd ${S}/$1_build_unicode
einstall libdir="${D}/usr/$(get_libdir)" || die "Unicode install failed"
cd contrib/src
einstall libdir="${D}/usr/$(get_libdir)" || die "Unicode install contrib failed"
fi
}
pkg_setup() {
if use X; then
elog "To install only wxbase (non-gui libs) use USE=-X"
else
elog "To install GUI libraries, in addition to wxbase, use USE=X"
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
# epatch "${FILESDIR}/wxwidgets.eclass.patch"
# epatch "${FILESDIR}/socketfix.patch"
# epatch "${FILESDIR}/${P}-wxrc_build_fix.patch"
# epatch "${FILESDIR}/${P}-dialog_focus.patch"
# epatch "${FILESDIR}/${P}-slider_linesize.patch"
#
# # Reverse apply patch in wxGTK tarball that breaks ABI
# EPATCH_OPTS="-R" epatch "${S}/patches/listctrl-ongetitemcolumnimage.patch"
}
src_compile() {
gnuconfig_update
append-flags -fno-strict-aliasing
myconf="${myconf}
$(use_with sdl)
$(use_enable joystick)"
if use X; then
myconf="${myconf}
$(use_enable opengl)
$(use_with opengl)
$(use_with gnome gnomeprint)"
fi
if use stl; then
myconf="${myconf}
$(use_enable stl)"
fi
if use gif; then
myconf="${myconf}
$(use_enable gif)"
else
myconf="${myconf}
$(use_disable gif)"
fi
use X && configure_build gtk2 unicode "${myconf} --with-gtk=2"
use X || configure_build base unicode "${myconf} --disable-gui"
}
src_install() {
use X && install_build gtk2
use X || install_build base
cp ${D}/usr/bin/wx-config ${D}/usr/bin/wx-config-2.6 || die "Failed to cp wx-config"
# In 2.6 all wx-config*'s go in/usr/lib/wx/config
# Only install wx-config if 2.4 is not installed:
if [ -e "/usr/bin/wx-config" ]; then
if [ "$(/usr/bin/wx-config --release)" = "2.4" ]; then
rm ${D}/usr/bin/wx-config
fi
fi
dodoc ${S}/docs/changes.txt
dodoc ${S}/docs/gtk/readme.txt
if use doc; then
dohtml -r ${HTML_S}/html/*
fi
}
pkg_postinst() {
elog "dev-libs/wxbase has been removed from portage."
elog "wxBase is installed with wxGTK, as one of many libraries."
elog "If only wxBase is wanted, -X USE flag may be specified."
} |
_________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
MorphiusFaydal Tux's lil' helper
Joined: 20 Aug 2003 Posts: 113 Location: West Texas
|
Posted: Wed Nov 21, 2007 1:05 am Post subject: |
|
|
Well, I'm doing what the ebuild says and posting my build error here... Dunno if it's C::B related or what...
The ebuild is codeblocks-9999-r17, and the C::B svn version is 4650.
Code: | x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src/include -I../../../../src/include/scripting/include -I../../../../src/include/scripting/squirrel -Ulinux -Uunix -O2 -ffast-math -march=athlon64 -O2 -pipe -fno-strict-aliasing -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT sqfuncstate.lo -MD -MP -MF .deps/sqfuncstate.Tpo -c sqfuncstate.cpp -fPIC -DPIC -o .libs/sqfuncstate.o
../../../../src/include/scripting/squirrel/sqtable.h: In function 'SQHash HashObj(const SQObjectPtr&)':
../../../../src/include/scripting/squirrel/sqtable.h:21: error: cast from 'SQRefCounted*' to 'SQInteger' loses precision
make[4]: *** [sqfuncstate.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999-r17/work/codeblocks-9999/src/sdk/scripting/squirrel'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999-r17/work/codeblocks-9999/src/sdk/scripting'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999-r17/work/codeblocks-9999/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999-r17/work/codeblocks-9999/src'
make: *** [all-recursive] Error 1 |
_________________ Registered Linux User # 309023
vanilla-sources
XFce 4.4 and GNOME 2.20 |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Wed Nov 21, 2007 2:01 pm Post subject: |
|
|
I got the same problem since some days. It seems that the SVN version is no more stable since mid-November 07... _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
MorphiusFaydal Tux's lil' helper
Joined: 20 Aug 2003 Posts: 113 Location: West Texas
|
Posted: Wed Nov 21, 2007 7:54 pm Post subject: |
|
|
XavierMiller wrote: | I got the same problem since some days. It seems that the SVN version is no more stable since mid-November 07... |
My guess is a lot of the updates they're focusing on (GCC 4 on MinGW) are potentially breaking other things as well. _________________ Registered Linux User # 309023
vanilla-sources
XFce 4.4 and GNOME 2.20 |
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Wed Nov 21, 2007 10:47 pm Post subject: |
|
|
Hi, MorphiusFaydal.
This problem occurs only on 64bit machines, and it is related to squirrel (sqplus). C:B devs are working for it. We just have to wait some commits to C:B. _________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1" |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Thu Nov 22, 2007 10:39 am Post subject: |
|
|
Yes, the C::B guys are very productive, and this gets me very happy with C::B _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Sat Nov 24, 2007 6:04 pm Post subject: |
|
|
No matter whether I use wxGTK 2.8.4.0, 2.8.6.0 or the 2.8.6 above, it always leads to: Quote: | ./wxscoder.cpp: In member function 'bool wxsCoder::ApplyChangesEditor(cbEditor*, const wxString&, const wxString&, wxString&, bool, bool, wxString&)':
./wxscoder.cpp:377: error: no matching function for call to 'wxsCoder::RebuildCode(wxString&, const wxChar*, int, wxString&)'
./wxscoder.h:151: note: candidates are: wxString wxsCoder::RebuildCode(wxString&, const wchar_t*, int, wxString&)
./wxscoder.cpp: In member function 'bool wxsCoder::ApplyChangesString(wxString&, const wxString&, const wxString&, wxString&, bool, bool, bool&, wxString&)':
./wxscoder.cpp:465: error: no matching function for call to 'wxsCoder::RebuildCode(wxString&, const wxChar*, size_t, wxString&)'
./wxscoder.h:151: note: candidates are: wxString wxsCoder::RebuildCode(wxString&, const wchar_t*, int, wxString&)
| I have unmerged wxGTK, cleaned distfiles, remerged with multiple sets of USE flags, cleaned svn repository, but no luck so far.
The calls issuing this problem in wxscoder.cpp are: line 377 wrote: | Code = RebuildCode(BaseIndentation,Code.c_str(),(int)Code.Length(),EOL); | and line 465 wrote: | Code = RebuildCode(BaseIndentation,Code.c_str(),Code.Length(),EOL); | I had no time to follow up "Code" yet... So I do not know whether the build just pulls in a wrong definition on my machine...
edit: I have removed the whole trunk and redownloaded from svn, same result.
Edit 2: With USE="-contrib" it compiles well... _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Sat Nov 24, 2007 9:53 pm Post subject: |
|
|
Yamakuzure wrote: | ...I had no time to follow up "Code" yet... So I do not know whether the build just pulls in a wrong definition on my machine...
Edit 2: With USE="-contrib" it compiles well... |
Yamakuzure, did you also use the eclass within codeblocks-9999-r17.zip in your local overlay? That makes sure you emerge codeblocks with wxGTK-2.8.6.x. It seems you are emerging with wxGTK-2.6.4x.
XavierMiller wrote: | http://forums.codeblocks.org/index.php/topic,7321.msg55919.html#msg55919
mandrav wrote: |
Fixed in r4667.
|
|
Yes, thats great. C::B compiles fine, but it seems autorevision needs a fix again. _________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1" |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Sun Nov 25, 2007 1:01 pm Post subject: |
|
|
I have unmerged wxGTK completely before trying again. Thus there is only the wxGTK from my overlay emerged. (I even removed wxGlade to have no more dependencies to other versions of wxGTK and wxPython)
The above errors occur in wxscoder.h and .cpp, which are part of codeblocks contribs, and not wxGTK. But the definition of "Code" might belong to wxGTK, I don't know yet.
I will now try emerging codeblocks on a different machine. Maybe it works well, so I have the possibility to detect differences with both machines.
Edit 1: codeblocks compiled well on the second machine. I needed a while to find any differences in the settings, but found only one: I did *not* emerge --sync on the second machine...
...now I'm completely at sea... _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Sun Nov 25, 2007 8:24 pm Post subject: |
|
|
Yeah, I saw on Planet Gentoo that wx 2.8 is in portage (but masked). We will have to wait some days until wx 2.8 will be officially unmasked and at least ready in portage _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Sun Nov 25, 2007 8:54 pm Post subject: |
|
|
The annoying thing is, that I just synced both machines, unmerged wxGTK and codeblocks, and remerged codeblocks. On one machine, it works well, on the other, I get that error above. _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Mon Nov 26, 2007 5:46 pm Post subject: |
|
|
keenblade wrote: | Yes, thats great. C::B compiles fine, but it seems autorevision needs a fix again. |
Oh yes... did the C::B dev change something that need a new ebuild ? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
|