Code::Blocks

User forums => Embedded development => Topic started by: zordlyon on November 01, 2011, 08:29:21 pm

Title: Sourcery G++ Lite + C::B
Post by: zordlyon on November 01, 2011, 08:29:21 pm
Hi people, i'm newer on C::B and i cant configure to run one simple Hello World for an ARM7...

I have linked the path's to toolchains...but i can't run the program... the configuration i have is this:

(http://img32.imageshack.us/img32/234/unled2fi.png) (http://imageshack.us/photo/my-images/32/unled2fi.png/)

And i have this error:

Code: [Select]
-------------- Clean: Debug in Hello-world ---------------

Error cleaning "Hello-world - Debug"

-------------- Build: Debug in Hello-world ---------------

Using makefile: Makefile
cs-make.exe: Makefile: No such file or directory
cs-make.exe: *** No rule to make target `Makefile'.  Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings

If anyone can help me i appreciate...

Thanks...
Title: Re: Sourcery G++ Lite + C::B
Post by: oBFusCATed on November 01, 2011, 09:03:09 pm
Have you read this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F ?
Why do you want to use a makefile?
Why don't you use normal C::B project?
Why aren't you trying to understand the error messages?
Have you tried to build the project from the command line?
Title: Re: Sourcery G++ Lite + C::B
Post by: zordlyon on November 02, 2011, 12:20:08 am
Have you read this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F ?
Why do you want to use a makefile?
Why don't you use normal C::B project?
Why aren't you trying to understand the error messages?
Have you tried to build the project from the command line?

Yes i have read that, but no solution...

I use a makefile because i need the .hex
I tried to understand the error but could not, so here I put my doubts ...
Is the sample code of Cmucam3, and is working properly, was now trying to compile the CodeBlocks to start developing for this development board.

Thanks..

Title: Re: Sourcery G++ Lite + C::B
Post by: Alpha on November 02, 2011, 01:00:41 am
I use a makefile because i need the .hex
If the .hex file is generated by a command, you could add it as a post-build command.

The page Code::Blocks and Makefiles (http://wiki.codeblocks.org/index.php?title=Code::Blocks_and_Makefiles) has some setup information (however, I too would recommend against using makefiles if a project file can suffice).

(Note: I have not worked with embedded development before, so I do not know how applicable what I have said is.)
Title: Re: Sourcery G++ Lite + C::B
Post by: scarphin on November 02, 2011, 11:51:17 am
There is no need to use a makefile to generate .hex file. Just put a postbuild command in the appropriate place.
Title: Re: Sourcery G++ Lite + C::B
Post by: oBFusCATed on November 02, 2011, 12:02:48 pm
Yes i have read that, but no solution...
There is no solution there, but an explanation for what to look for and to show you a way to enable full logging, which might help you find the problem.
Title: Re: Sourcery G++ Lite + C::B
Post by: zordlyon on November 02, 2011, 06:38:12 pm
There is no need to use a makefile to generate .hex file. Just put a postbuild command in the appropriate place.


How i do this??

Yes i have read that, but no solution...
There is no solution there, but an explanation for what to look for and to show you a way to enable full logging, which might help you find the problem.

Hum, what i need is simple, i'm working with a CMUCam and it uses a ARM7... now i need a compiler with sourcery g++ lite for compile and debug, and make me .hex

Thanks.

Title: Re: Sourcery G++ Lite + C::B
Post by: stahta01 on November 02, 2011, 06:52:31 pm
Using makefile: Makefile
cs-make.exe: Makefile: No such file or directory

The error says it can not find the makefile.
What is the full file name of the makefile?
What is the path to the cbp project file?
What is the path to the makefile?

Code::Blocks like the makefile path and the CBP path to be the same.

Tim S.
Title: Re: Sourcery G++ Lite + C::B
Post by: zordlyon on November 02, 2011, 07:18:52 pm
Using makefile: Makefile
cs-make.exe: Makefile: No such file or directory

The error says it can not find the makefile.
What is the full file name of the makefile?

the name is: "cs-make.exe"

Quote
What is the path to the cbp project file?

"C:/cmucam_projects/hello-world/hello-world.cbp"

Quote
What is the path to the makefile?

"C:/Program Files/CodeSourcery/Sourcery G++ Lite/bin/cs-make.exe"

Quote
Code::Blocks like the makefile path and the CBP path to be the same.

Tim S.
Title: Re: Sourcery G++ Lite + C::B
Post by: oBFusCATed on November 02, 2011, 07:20:54 pm
zordlyon: cs-make.exe is not the makefile!
Title: Re: Sourcery G++ Lite + C::B
Post by: zordlyon on November 02, 2011, 08:08:14 pm
zordlyon: cs-make.exe is not the makefile!

Then normally in what path is the makefile?

Thanks..
Title: Re: Sourcery G++ Lite + C::B
Post by: oBFusCATed on November 02, 2011, 08:18:23 pm
Inside your project
Title: Re: Sourcery G++ Lite + C::B
Post by: zordlyon on November 02, 2011, 08:41:20 pm
Inside your project

But i create a new project hello-world.cbp and dont have any make file inside them...

Thanks..

Title: Re: Sourcery G++ Lite + C::B
Post by: scarphin on November 02, 2011, 09:04:39 pm
Then which makefile are u trying to execute???
Title: Re: Sourcery G++ Lite + C::B
Post by: jens on November 02, 2011, 09:32:38 pm
Inside your project

But i create a new project hello-world.cbp and dont have any make file inside them...

Thanks..


C::B uses it own build-system and does not use makefiles by default, nor does it create makefiles.
Title: Re: Sourcery G++ Lite + C::B
Post by: Scribe on November 04, 2011, 07:48:37 pm
I end up using CMake a lot to generate cross-compile projects for Code::Blocks. Can Code::Blocks edit these projects at all or is there a way to convert a large group of CMakes into a normal Code::Blocks project in a reasonable timeframe?

Cheers