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...
Build works Run fails
-
- CodeLite Curious
- Posts: 6
- Joined: Thu Dec 22, 2011 2:47 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build works Run fails
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
http://codelite.org/forum/viewtopic.php?f=11&t=804
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 6
- Joined: Thu Dec 22, 2011 2:47 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build works Run fails
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...
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...
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build works Run fails
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:
And then install codelite 3.0 deb:
It should fix your problems + give you a much more recent codelite
Eran
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
Code: Select all
sudo dpkg -i /path/to/the/dewoloaded/debfile
Eran
Make sure you have read the HOW TO POST thread