User forums > Using Code::Blocks

Custom make commands are never executed

<< < (2/7) > >>

Jenna:
I have no such errors here.

Can you create a sample project, where this error occurs, pack and attach it here.
Please attach also C::B's conf-file (default.conf in ~/.codeblocks).

Calling gui elements from inside C::B (like askpass dialog) will mot likely not work, because the commands are executed through wxWidgets wxExecute, abd not through a shell.

kriegaex:
Sorry Jens, I do not want to seem lecturing, being a smart-ass or something, but please read my inquiry a bit more thoroughly, then you can by deduction (because I mentioned it) conclude that

* CB "calls" the external sudo GUI tool just fine, but I need to activate full command line logging for it,
* not CB calls the GUI tool, but sudo does (see man sudo, check out -A option),
* even without calling the tool, just doing "echo test", custom commands are never called, so the GUI tool is not a relevant part of the problem.
Anyway, here are my CB configuration and my project file. It has two targets "all" and "install" by which it builds an external software package (mc-4.8.1, the well known Midnight Commander). I just wanted to test a bit to see how CB works and then use it as a GUI front-end for debugging mc later, just in case you are interested in my use case and motivation. You might notice that the project base directory is not equal to the source code directory, but this is not a problem because I could "add files recursively" from the directory easily.

Edit: In the project I uploaded, you first need to deactivate full command line logging in order to see the problem. As a workaround I have activated it because then at least my custom commands are executed.

kriegaex:
Sorry for replying several times in a row (and I will need yet another post after this one), but there is a limit to attachments. I am attaching more screenshots for the bugs described in post #3. I know I could upload an archive full of pics, but this is inconvenient for viewing.

kriegaex:
More screenshots

oBFusCATed:
Please don't use local attachments.
Storage for the forum is limited and attachments get removed at random!

It seems that I can reproduce your bug.

Set the build command to 'xmessage -buttons "test" -center " tead" ' (build options->target->make commands->build project/target)
and then switching the log mode to something different than full log.

This is pretty strange, but calling it "quite buggy" is harsh, in fact this could be regarded as feature, because using anything that full log is asking for trouble. In fact I'll be ok/happy if we just remove the other two modes :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version