Author Topic: Sourcery G++ Lite + C::B  (Read 26802 times)

Offline zordlyon

  • Single posting newcomer
  • *
  • Posts: 6
Sourcery G++ Lite + C::B
« 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:



And i have this error:

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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Sourcery G++ Lite + C::B
« Reply #1 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?
(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!]

Offline zordlyon

  • Single posting newcomer
  • *
  • Posts: 6
Re: Sourcery G++ Lite + C::B
« Reply #2 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..


Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Sourcery G++ Lite + C::B
« Reply #3 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 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.)

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Sourcery G++ Lite + C::B
« Reply #4 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Sourcery G++ Lite + C::B
« Reply #5 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.
(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!]

Offline zordlyon

  • Single posting newcomer
  • *
  • Posts: 6
Re: Sourcery G++ Lite + C::B
« Reply #6 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.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Sourcery G++ Lite + C::B
« Reply #7 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline zordlyon

  • Single posting newcomer
  • *
  • Posts: 6
Re: Sourcery G++ Lite + C::B
« Reply #8 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Sourcery G++ Lite + C::B
« Reply #9 on: November 02, 2011, 07:20:54 pm »
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!]

Offline zordlyon

  • Single posting newcomer
  • *
  • Posts: 6
Re: Sourcery G++ Lite + C::B
« Reply #10 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..

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Sourcery G++ Lite + C::B
« Reply #11 on: November 02, 2011, 08:18:23 pm »
Inside your project
(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!]

Offline zordlyon

  • Single posting newcomer
  • *
  • Posts: 6
Re: Sourcery G++ Lite + C::B
« Reply #12 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..


Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Sourcery G++ Lite + C::B
« Reply #13 on: November 02, 2011, 09:04:39 pm »
Then which makefile are u trying to execute???

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Sourcery G++ Lite + C::B
« Reply #14 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.

Offline Scribe

  • Single posting newcomer
  • *
  • Posts: 5
Re: Sourcery G++ Lite + C::B
« Reply #15 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