mirai-computing / cbp2make Goto Github PK
View Code? Open in Web Editor NEWMakefile generation tool for Code::Blocks IDE
Home Page: https://sourceforge.net/projects/cbp2make/
License: GNU General Public License v3.0
Makefile generation tool for Code::Blocks IDE
Home Page: https://sourceforge.net/projects/cbp2make/
License: GNU General Public License v3.0
When generating the Makefile, the spacing on LinkerLibraries is incorrect for the line LIB_DEBUG, i.e.
When running make, output is missing a space between paths. Looks like this:
Proposed solution:
Add a space to the end of the last path in the loop in cbproject.cpp at line 834.
for (int i = 0; i < m_LinkerLibraries.GetCount(); i++)
{
CString lib_pathname = m_LinkerLibraries[i];
CString lib_path, lib_name, lib_ext;
SplitFilePathName(lib_pathname, lib_path, lib_name, lib_ext);
//CString lib_name = m_LinkerLibraries[i];
//CString lib_ext = ExtractFileExt(lib_name);
//if (lib_ext.IsEmpty())
if (lib_path.IsEmpty())
{
if (pl->IsLibraryExtension(lib_ext))
{
CString lib_base_name = pl->BaseLibraryName(lib_name,lib_ext);
line = JoinStr(line,tc->LinkLibrarySwitch()+pl->ProtectPath(pl->Pd(lib_base_name),Config.QuotePathMode()),' ');
//line.Append(" ");
}
else
{
line = JoinStr(line,tc->LinkLibrarySwitch()+pl->ProtectPath(pl->Pd(lib_name),Config.QuotePathMode()),' ');
//line.Append(" ");
}
}
else
{
line = JoinStr(line,pl->ProtectPath(pl->Pd(lib_pathname),Config.QuotePathMode()),' ');
// line.Append(" ");
}
It is specified how to use the tool, but regarding the installation there is nothing.
The most intuitive approach for me was to clone the repo and run the install script, but that's not working.
Not really surprising, since it tries to copy files from a not existing folder.
Maybe I am missing something obvious, but would be convenient to just address the installation in the README.
I have such example of include dirs:
INC = -I$(WXWIN)\include -I$(PYTHONHOME)\include -I$(WXCURL)\include
where environmental constants are used.
As we see here, backslash is not escaped.
Must be:
INC = -I$(WXWIN)\\include -I$(PYTHONHOME)\\include -I$(WXCURL)\\include
Hello,
If I've defined custom compiler profile in the Code::Clocks the cbp2make does not importing this custom profile in to cbp2make.cfg
cbptarget.cpp||In member function ‘CString CBuildTarget::Libs(const CPlatform&, const CString&)’:|
cbptarget.cpp|302|error: ‘const class CPlatform’ has no member named ‘BaseLibraryName’|
cbproject.cpp||In member function ‘bool CCodeBlocksProject::GenerateMakefile(const CString&, CCodeBlocksBuildConfig&)’:|
cbproject.cpp|818|error: ‘class CPlatform’ has no member named ‘IsLibraryExtension’; did you mean ‘IsStaticLibraryExtension’?|
cbproject.cpp|820|error: ‘class CPlatform’ has no member named ‘BaseLibraryName’|
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.