News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Sourcery G++ Lite + C::B

Started by zordlyon, November 01, 2011, 08:29:21 PM

Previous topic - Next topic

zordlyon

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:



And i have this error:

-------------- 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...

oBFusCATed

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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

zordlyon

Quote from: 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?

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..


Alpha

Quote from: zordlyon on November 02, 2011, 12:20:08 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 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.)

scarphin

There is no need to use a makefile to generate .hex file. Just put a postbuild command in the appropriate place.

oBFusCATed

Quote from: zordlyon on November 02, 2011, 12:20:08 AM
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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

zordlyon

Quote from: 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.


How i do this??

Quote from: oBFusCATed on November 02, 2011, 12:02:48 PM
Quote from: zordlyon on November 02, 2011, 12:20:08 AM
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.


stahta01

Quote from: zordlyon on November 01, 2011, 08:29:21 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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

zordlyon

Quote from: stahta01 on November 02, 2011, 06:52:31 PM
Quote from: zordlyon on November 01, 2011, 08:29:21 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.

oBFusCATed

zordlyon: cs-make.exe is not the makefile!
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

zordlyon

Quote from: oBFusCATed on November 02, 2011, 07:20:54 PM
zordlyon: cs-make.exe is not the makefile!

Then normally in what path is the makefile?

Thanks..

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

zordlyon

Quote from: oBFusCATed on November 02, 2011, 08:18:23 PM
Inside your project

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

Thanks..


scarphin

Then which makefile are u trying to execute???

Jenna

Quote from: zordlyon on November 02, 2011, 08:41:20 PM
Quote from: oBFusCATed on November 02, 2011, 08:18:23 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.