Author Topic: can't launch programs from codeblocks anymore  (Read 4757 times)

Offline jarro_2783

  • Multiple posting newcomer
  • *
  • Posts: 99
    • Project Freedom
can't launch programs from codeblocks anymore
« on: March 25, 2007, 04:16:20 am »
As of yesterday's code from the svn repository, whenever I try to run any of my programs from codeblocks it fails with the following message:

Quote
Checking for existence: C:\games\freedom\game\prjfreedom\bin\freedom.exe
Executing:  C:\programming\codeblocks/cb_console_runner.exe "C:\games\freedom\game\prjfreedom\bin\freedom.exe"  (in C:\games\freedom\game\prjfreedom\bin)
Execution of ' C:\programming\codeblocks/cb_console_runner.exe "C:\games\freedom\game\prjfreedom\bin\freedom.exe" ' in 'C:\games\freedom\game\prjfreedom\bin' failed.
Nothing to be done.

nfz

  • Guest
Re: can't launch programs from codeblocks anymore
« Reply #1 on: March 25, 2007, 05:16:44 am »
Yep, getting the same thing with svn rev 3757, built Mar 24 2007, Unicode, wxWidgets 2.6.4 on WinXP sp2.  Looking into it now as to what changed in the launcher.

nfz

  • Guest
Re: can't launch programs from codeblocks anymore
« Reply #2 on: March 25, 2007, 05:57:36 am »
Yup, there is a little glitch for no non-console apps that won't allow them to run because a preceding space before the exe command is added.  I never tried a console app requiring console runner so not ready to submit a patch but here is what I did to get gui exe's (Ogre stuff) running again:

Code
Index: compilergcc.cpp
===================================================================
--- compilergcc.cpp (revision 3757)
+++ compilergcc.cpp (working copy)
@@ -1749,7 +1749,7 @@
 
     if (!cmd.Replace(_T("$SCRIPT"), script))
         // if they didn't specify $SCRIPT, append:
-        cmd << _T(" ") << command;
+        cmd << command;
 
     Manager::Get()->GetMessageManager()->Log(m_PageIndex, _("Checking for existence: %s"), f.GetFullPath().c_str());
     if (!wxFileExists(f.GetFullPath()))

rev 3750 is when the bug crept in.

[Edit] console apps are working with the above patch now too.  I will submit the patch to Berlios after I get the Ogre SDK release out the door in a few hours :).[/Edit]
« Last Edit: March 25, 2007, 06:08:27 am by nfz »

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: can't launch programs from codeblocks anymore
« Reply #3 on: March 25, 2007, 10:48:49 pm »
rev 3750 is when the bug crept in.

Yeah, sorry about that - trying to get application launching on Mac OS X going...

nfz

  • Guest
Re: can't launch programs from codeblocks anymore
« Reply #4 on: March 26, 2007, 01:09:46 am »
np, its all part of living on the bleeding edge  :lol: