Today , I have set up the ROSBE on my Ubuntu , and planning to take a try to build ros using Codeblocks. (I used to build ros using CLI last time)
I do "make cb", and it generates all the Codeblocks project file and workspace file.
I open the workspace file and build it, however, failed to build.
Therefore, I try to do some checking , and found that all the project files is generated under the ROS Source code root directory, with filename containing the DOS path separator "\" .
And I understand that this is the path separator . After some studies, I found that those file are generated in codeblocks.cpp .
I glanced through the code , and found there are a lot of places require changes. I wonder the developer, Christoph von Wittich can modify the code so that it can generate the cbp and workspace file correctly under non-Windows or not.
I can give some help if Christoph can briefly explain the code structure.
rgds
"make cb" generate only project/workspace for wind
Moderator: Moderator Team
svn codeblocks linux/ubuntu and co...
Hi, i modified the rbuild sources so the incorrect '\' generated by make cb are corrected, but still cannot build under codeblocks because codeblocks uses system(linux) gcc instead of mingw32-gcc and gives windows.h not found error.
this is the patch fro my modifications to the reactos source(including rbuild)
(fragment related to rbuild)
this is the patch fro my modifications to the reactos source(including rbuild)
(fragment related to rbuild)
Code: Select all
Index: tools/rbuild/module.cpp
===================================================================
--- tools/rbuild/module.cpp (revision 31471)
+++ tools/rbuild/module.cpp (working copy)
@@ -84,18 +84,22 @@
}
return s2;
}
-
+#define LINUX
string
DosSeparator ( const string& s )
{
+
string s2(s);
+#ifndef LINUX
char* p = strchr ( &s2[0], '/' );
while ( p )
{
*p++ = '\\';
p = strchr ( p, '/' );
}
+#endif
return s2;
+
}
string
Who is online
Users browsing this forum: No registered users and 19 guests