User forums > Using Code::Blocks

Incremental Search

<< < (5/10) > >>

killerbot:
well it seems it doesn't even build :-(


--- Quote ---IncrementalSearch.cpp: In member function 'virtual void IncrementalSearch::BuildMenu(wxMenuBar*)':
IncrementalSearch.cpp:115: error: 'class wxMenuItem' has no member named 'GetLabelText'
IncrementalSearch.cpp:115: error: 'class wxMenuItem' has no member named 'GetItemLabelText'
make[4]: *** [IncrementalSearch.lo] Error 1
make[4]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src/plugins/contrib/IncrementalSearch'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src'
make: *** [all-recursive] Error 1

--- End quote ---
Though I haven't find the cause yet, I committed already a first part of a fix wrt includes. Don't include pch's in header files. There's more to follow ...

EDIT : on one linux box I got it already working (did make clean and brand new ./configure), trying that recipe on the failing linux box ...

EDIT2 : this issue remains, the only difference between my 2 linux boxes is :32 bit versus 64 bit. On the 64 bit it does NOT build.

Anyone else who is able to  build it on linux 64 bit ??

rhf:

--- Quote from: jens on October 10, 2008, 08:39:28 pm ---How did you compile it.
Did you use clean svn-version or did you patch the code manually before.

--- End quote ---
I just updated to SVN 5258 and built CodeBlocks.cbp and ContribPlugins.workspace and ran update.bat.
The icons still do not show in the IncrementalSearch toolbar.
I am using tdm-mingw-1.808.3 which uses gcc 4.3.2. (There could of course be a bug with this compiler.)


--- Quote from: jens on October 10, 2008, 08:39:28 pm ---Maybe a screenshot would be helpful.

--- End quote ---
Well I tried but couldn't figure out how to insert a screenshot. I have attached (I hope) the file ScnShot.jpg which shows the effect.
Even though the toolbar buttons do not show, when I move the mouse over the toolbar the various hints do appear.



[attachment deleted by admin]

Jenna:
@killerbot:

I build on 64-bit linux without problems, in any versions (mine, the one changed by you and the versions I just committed).

Before I commited the plugin I tested it on linux (64-bit and 32-bit), w2k and winxp with clean svn-versions from inside a clean svn-tree.
What I did not test is compiling without precompiled-headers.
That, and maybe the use of "wxprec.h" in a header, are in my opinion the only real mistakes I made.

Inspite of not changing the debian-files and the .spec-file. (I use a patched debian version for my nightlies, so I just forgot it, and I don't know anything about rpm-building, because I did not use rpm-based linuxes since more then five years now).

Leaving the virtual declaration in the header-files is not an error, even if it is unneded. But if you don't like it, why didn't you remove it from both header-files ?

I did it and removed some comments from the headers, I also removed includes that are not needed, neither for compiled with, nor without precompiled headers (tested on linux and winxp).

I wonder why you cannot compile on 64-bit.
I compiled it with wxWidgets 2.8.7  and 2.8.9 on win, and 2.8.9 on linux.

EDIT:
I use gcc 4.2 on linux and win.

Jenna:

--- Quote from: rhf on October 10, 2008, 11:05:01 pm ---
--- Quote from: jens on October 10, 2008, 08:39:28 pm ---How did you compile it.
Did you use clean svn-version or did you patch the code manually before.

--- End quote ---
I just updated to SVN 5258 and built CodeBlocks.cbp and ContribPlugins.workspace and ran update.bat.
The icons still do not show in the IncrementalSearch toolbar.
I am using tdm-mingw-1.808.3 which uses gcc 4.3.2. (There could of course be a bug with this compiler.)


--- Quote from: jens on October 10, 2008, 08:39:28 pm ---Maybe a screenshot would be helpful.

--- End quote ---
Well I tried but couldn't figure out how to insert a screenshot. I have attached (I hope) the file ScnShot.jpg which shows the effect.
Even though the toolbar buttons do not show, when I move the mouse over the toolbar the various hints do appear.



--- End quote ---

Are the images inside "IncrementalSearch.zip" (it should be in "share/CodeBlocks").
The images are in the subfolder "images" and "images/16x16" inside the zip-file.

Do you have an image in the "Search -> Incremental Search" MenuItem ? It is in the same zip-file.
Have you tried to remove the zip from "src/devel/share/CodeBlocks"  and "src/output/share/CodeBlocks" before building ?

killerbot:

--- Quote ---Leaving the virtual declaration in the header-files is not an error, even if it is unneded. But if you don't like it, why didn't you remove it from both header-files ?
--- End quote ---
No that's not an error. But I think it is preferred to have people no longer derive from this class, since it is a concrete class. The fact I didn't remove them all, sloppy me  :oops:

As a last resort I will try with a clean svn checkout, because I still does not build :-(

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version