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

User defined tool problem

Started by GymDude, September 05, 2008, 12:12:39 PM

Previous topic - Next topic

GymDude

First of all: Hello there. in the las days ive been trying out codeblocks and im loving it! you guys are doing a great job!
Ive created a Codeblocks template and it has the follwing files

The bat files have the following code:

build.bat

make clean
make


clean.bat

make clean


added a user defined tool

when i doubleclick the bat files it compiles like a charm, but when i use the user defined tools from codeblocks i get the following:

Launching tool 'Build': d:\Projects\Example\build.bat  (in d:\Projects\Example)
stdout>
stdout> d:\Projects\Example>make clean
stderr> makefile:22: /c/devkitPro/devkitARM/ds_rules: No such file or directory
stderr> make: *** No rule to make target `/c/devkitPro/devkitARM/ds_rules'.  Stop.
stdout>
stderr> makefile:22: /c/devkitPro/devkitARM/ds_rules: No such file or directory
stdout> d:\Projects\Example>make
stderr> make: *** No rule to make target `/c/devkitPro/devkitARM/ds_rules'.  Stop.
Tool execution terminated with status 2

The files exists, what i notice here is that the paths are in unix format. so i humbly request help to get arround this.

Edit: i create an exaple project "d:\Project\example"
Edit2: ive read "The read before posting" number 2, i posted because i think it is related to the way the codeblocks tool calls the user defined tools
thanks.  :?

mariocup

Hi,

perhaps you could add the command


cmd /c ${PROJECT_DIR}build.bat


to execute the command in the windows cmd.exe. Does it fix the problem?

Bye,

Mario

GymDude

Quote from: mariocup on September 05, 2008, 01:00:10 PM
Hi,

perhaps you could add the command


cmd /c ${PROJECT_DIR}build.bat


to execute the command in the windows cmd.exe. Does it fix the problem?

Bye,

Mario
im afraid it didnt work, im still triying to figure out what the source of the problem is.

Thanks.

MortenMacFly

Quote from: GymDude on September 05, 2008, 01:13:06 PM
im afraid it didnt work, im still triying to figure out what the source of the problem is.
Mind attaching a simple example to the post, including sources and the project file (if any)?

Keep in mind that $PROJECT_DIR is *only* set if you are working with projects. I don't see a project file in your screenshot.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

GymDude

Sure here it is the full template im working with

[attachment deleted by admin]

GymDude

Ive just tried the extension handler and it works the same, it gives me the same error