Build works Run fails

General questions regarding the usage of CodeLite
CodeLitely
CodeLite Curious
Posts: 6
Joined: Thu Dec 22, 2011 2:47 pm
Genuine User: Yes
IDE Question: C++
Contact:

Build works Run fails

Post 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...
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build works Run fails

Post 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
Make sure you have read the HOW TO POST thread
CodeLitely
CodeLite Curious
Posts: 6
Joined: Thu Dec 22, 2011 2:47 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build works Run fails

Post 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...
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build works Run fails

Post 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
Make sure you have read the HOW TO POST thread
Post Reply