User forums > Using Code::Blocks

User defined tool problem

(1/2) > >>

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

--- Code: ---make clean
make

--- End code ---

clean.bat

--- Code: ---make clean

--- End code ---

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:

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

--- End code ---
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


--- Code: ---cmd /c ${PROJECT_DIR}build.bat

--- End code ---

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


--- Code: ---cmd /c ${PROJECT_DIR}build.bat

--- End code ---

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

Bye,

Mario

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

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

GymDude:
Sure here it is the full template im working with

[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

Go to full version