"make cb" generate only project/workspace for wind

All development related issues welcome

Moderator: Moderator Team

Post Reply
cyberkoa
Posts: 17
Joined: Wed Dec 07, 2005 7:39 am

"make cb" generate only project/workspace for wind

Post by cyberkoa »

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
Haos
Test Team
Posts: 2954
Joined: Thu Mar 22, 2007 5:42 am
Contact:

Post by Haos »

AFAIK, its mpiulachs who is reworking our BE structure (not the BE itself), so you should contact him. All of this would still need to be revised by Fireball before any change to our code can be made. Please visit our irc channel and speak with devs in person.
Ged
Developer
Posts: 925
Joined: Thu Sep 29, 2005 3:00 pm
Location: UK

Post by Ged »

make cb is incomplete
it was being worked on by Christoph
oripipa
Posts: 3
Joined: Sun Dec 23, 2007 7:54 am

svn codeblocks linux/ubuntu and co...

Post by oripipa »

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)

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



Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests