Page 1 of 1

Build works Run fails

Posted: Thu Dec 22, 2011 2:53 pm
by CodeLitely
I built a HelloWorld project successfully and can execute the result successfully from the terminal window. However, doing Build->Run gives an output window that says:

______________________________________________________________
/usr/lib/codelite/codelite_exec: 22: ./HelloWorld: not found
Press ENTER to continue...

Re: Build works Run fails

Posted: Thu Dec 22, 2011 11:39 pm
by eranif
Please post your full build log in addition to what you posted as described here:

http://codelite.org/forum/viewtopic.php?f=11&t=804

Eran

Re: Build works Run fails

Posted: Fri Dec 23, 2011 4:38 am
by CodeLitely
This is from CodeLite v2.8.0.4537 that was downloaded onto Kubuntu 11.10 via their Software Center app that you use to get more software.

This is the build output:
----------Build Started--------
/bin/sh -c '"make" -j 2 -f "hello_c_world_wsp.mk"'
----------Building project:[ HelloWorld - Debug ]----------
make[1]: Entering directory `/home/sam/code/CodeLite/HelloWorld'
make[1]: Leaving directory `/home/sam/code/CodeLite/HelloWorld'
make[1]: Entering directory `/home/sam/code/CodeLite/HelloWorld'
g++ -c "/home/sam/code/CodeLite/HelloWorld/main.cpp" -g -o ./Debug/main.o "-I." "-I."
g++ -o ./Debug/HelloWorld ./Debug/main.o "-L."
make[1]: Leaving directory `/home/sam/code/CodeLite/HelloWorld'
----------Build Ended----------
0 errors, 0 warnings

___________________________________________________
Build->Run output:
Current working directory: /home/sam/code/CodeLite/HelloWorld/Debug
Running program: /usr/lib/codelite/codelite_xterm './HelloWorld ' '/bin/sh -f /usr/lib/codelite/codelite_exec ./HelloWorld '
Program exited with return code: 0
___________________________________________________________
sam: sh window
/usr/lib/codelite/codelite_exec: 22: ./HelloWorld: not found
Press ENTER to continue...

Re: Build works Run fails

Posted: Fri Dec 23, 2011 9:47 am
by eranif
Please install codelite from the site and not the one that comes with Ubuntu (IIRC, 2.8 from Ubuntu repo is broken or missing something in the codelite_exec script...)
Since I dont maintain it, I highly recommend you to use the deb that I am building

If you are using 64bit:
This deb is for oneiric (11.10)

http://sourceforge.net/projects/codelit ... b/download
or this one for 32 bit:

http://sourceforge.net/projects/codelit ... b/download

first:

Code: Select all

sudo apt-get purge codelite
And then install codelite 3.0 deb:

Code: Select all

sudo dpkg -i /path/to/the/dewoloaded/debfile
It should fix your problems + give you a much more recent codelite

Eran