Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
cbMakefileGen plugin
locky:
I'm trying to compile cbMakefileGen under Linux using codeblocks_8.02-0ubuntu1.deb and last cbMakefileGen svn but I get this error :
--- Code: ---/tmp/branches/alltargets/Makefile.hpp:60: error: «Compiler" has not been declared
/tmp/branches/alltargets/Makefile.hpp:61: error: «Compiler" has not been declared
/tmp/branches/alltargets/Makefile.cpp:82: error: prototype for «bool cbMGMakefile::reLoadDependecies(const wxString&, ProjectBuildTarget*, Compiler*)" does not match any in class «cbMGMakefile"
/tmp/branches/alltargets/Makefile.hpp:61: error: candidate is: bool cbMGMakefile::reLoadDependecies(const wxString&, ProjectBuildTarget*, int*)
/tmp/branches/alltargets/Makefile.cpp:171: error: prototype for «bool cbMGMakefile::getDependencies(ProjectBuildTarget*, Compiler*)" does not match any in class «cbMGMakefile"
/tmp/branches/alltargets/Makefile.hpp:60: error: candidate is: bool cbMGMakefile::getDependencies(ProjectBuildTarget*, int*)
/tmp/branches/alltargets/version.h:7: warning : «AutoVersion::DATE" defined but not used
/tmp/branches/alltargets/version.h:8: warning : «AutoVersion::MONTH" defined but not used
/tmp/branches/alltargets/version.h:9: warning : «AutoVersion::YEAR" defined but not used
/tmp/branches/alltargets/version.h:10: warning : «AutoVersion::UBUNTU_VERSION_STYLE" defined but not used
/tmp/branches/alltargets/version.h:13: warning : «AutoVersion::STATUS" defined but not used
/tmp/branches/alltargets/version.h:14: warning : «AutoVersion::STATUS_SHORT" defined but not used
/tmp/branches/alltargets/version.h:23: warning : «AutoVersion::BUILDS_COUNT" defined but not used
/tmp/branches/alltargets/version.h:26: warning : «AutoVersion::FULLVERSION_STRING" defined but not used
/tmp/branches/alltargets/version.h:29: warning : «AutoVersion::SVN_REVISION" defined but not used
/tmp/branches/alltargets/version.h:30: warning : «AutoVersion::SVN_DATE" defined but not used
--- End code ---
Any tips ?
P.S = I have installed codeblocks-dev_8.02-0ubuntu1_i386.deb and libwxsmithlib0-dev_8.02-0ubuntu1_i386.deb
stahta01:
Try this patch, I had similar issue under windows on NON PCH build.
Tim S
--- Code: ---Index: Makefile.hpp
===================================================================
--- Makefile.hpp (revision 20)
+++ Makefile.hpp (working copy)
@@ -7,6 +7,7 @@
#include "Variable.hpp"
class cbProject;
+class Compiler;
#include <wx/arrimpl.cpp>
--- End code ---
kisoft:
stahta01 Thanks for patch. I apply this patch and commit Makefile.hpp to repository HEAD.
d-_-b:
First off, Thanks for the plugin. After getting it running on ubuntu 7.10 with Code::Blocks 8.02 it created my make file with ease. But I needed to do the following to get it working:
- Create a new "Code::Blocks plugin" project for wxWidgets 2.8
- Fetched the code from the cbMakeGen SVN repository
- Added the cbMakeGen files recursively to my new project
- In "Project build options" I selected "default" and "other options" and changed "`wx-config --cflags`" to "`wx-config --cxxflags`"
- Build and it worked.
I could install the plugin but when I restarted Code::Blocks it gave me a error "could not find cbmakegen.zip" but the "Generate Makefile" menu option is under "Projects" and it works.
I hope this helps someone trying to get cbMakeGen running on linux, like it helped me.
Regards,
kisoft:
After check out sources of cbMakefileGen project (I put it to C:\Devel\CodeBlocks\src\plugins\contrib\cbmakegen on Windows), you can see file: cbmakegen-unix.cbp. You can open this file into CodeBlocks and rebuid plugin.
Another way, do add extra commands after compile, into .cbp file you can see this code:
--- Code: --- <ExtraCommands>
<Add after="zip -j9 ../../../devel/share/codeblocks/cbMakefileGen.zip manifest.xml" />
<Mode after="always" />
</ExtraCommands>
--- End code ---
Good luck!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version