LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-24-2010, 12:38 PM   #1
elishac
Member
 
Registered: Nov 2009
Posts: 522

Rep: Reputation: 33
codeblocks nightly build


hello,

I'm not satisfied with the old yet stable version of codeblocks and I'd like to install the nightly builds. I'm using ubuntu.
The nightly builds are supposed to be here :
http://forums.codeblocks.org/index.php/board,20.0.html
but everywhere I go I always see 'linux : none'.
So where can I basically download the last version of codeblocks ?

Thanks.
 
Old 03-24-2010, 01:24 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
http://www.codeblocks.org/downloads/svn

The package subversion must be installed to use
the svn command :
svn checkout svn://svn.berlios.de/codeblocks/trunk

cd trunk/ && ./bootstrap && ./configure && make
.....

Last edited by knudfl; 03-24-2010 at 01:29 PM.
 
Old 03-25-2010, 01:07 AM   #3
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Hello,

thanks for answering. I did what you told me.
./bootstrap gave the following result :
./bootstrap: 67: libtoolize: not found

what should I do now ?
 
Old 03-25-2010, 02:51 AM   #4
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
I also tried to do this : http://wiki.codeblocks.org/index.php...ource_on_Linux
Didn't work either.
When I typed ../configure --prefix=/opt/wx/2.8 \
--enable-xrc \
--enable-monolithic \
--enable-unicode
the result was
checking for gtk+ -version >= 2.0.0... no
*** could not run gtk+ test program, checking why...
*** the test program failed to compile or link. see the file config.log for the exact error that occured. This usually mean GTK+ is incorrectly installed.
configure: error:
The development files for gtk+ were not found. For gtk+ 2, please ensure that pkg-config is in the path and that gtk+-2.0.pc is installed. For gtk+ 1.2 please check that gtk-config is in the path aand that the version is 1.2.3 or above. Also check that the libraries returned by 'pkg-config gtk+-2.0 --libs or 'gtk-config --libs' are in the LD_LIBRARY_PATH or equivalent.

So what commands should I type exactly?

Thanks.
 
Old 03-25-2010, 02:58 AM   #5
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
If I type pkg-config gtk+-2.0 --libs, the result is :
package gtk+2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'gtk +-2.pc' to the PKG_CONFIG_PZTH' environment variable
No package 'gtk+-2.0' found.

Yet, if I type update-alternatives --config wx-config, one of the lines of the result is :
selection path priority status
0 /usr/lib/wx/config/gtk2-unicode-release-2.8 288 auto mode

which I think means that gtk2 is installed...
 
Old 03-25-2010, 03:00 AM   #6
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,098

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Hi elishac,

you need to install various "dev" package when compiling software. To help you work out which packages you need please install apt-file.
Code:
sudo apt-get install apt-file
sudo apt-file update
The second command may take some time to complete.

Now you can use the apt-file command to search for the package you need. For example it seem you need the "gtk-config" command to find the package that provides it do:
Code:
apt-file search gtk-config
There will probably be a few packages listed. Notice that one of them provides /usr/bin/gtk-config. Since you we know that gtk-config is a command (and /usr/bin/ is the noramal place for commands) we know that this is the package to install (on my system it is libgtk1.2-dev).

When errors are reported from ./configure please try to use the "apt-file search" method to work out what to install.

Cheers,

Evo2.

PS. I notice now that this will not solve the current problem you have asked about...
PPS. Please post the output of config.log

Last edited by evo2; 03-25-2010 at 03:04 AM. Reason: PPS
 
Old 03-25-2010, 03:01 AM   #7
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
and locate gtk gives (among others) /etc/gtk-2.0
 
Old 03-25-2010, 03:16 AM   #8
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Hello evo2,
thanks for trying to help. I saw your ps too late and I've already installed and updated apt-file.

Last edited by elishac; 04-13-2010 at 05:45 PM.
 
Old 03-25-2010, 03:54 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
About the WIKI, you mentioned .. "nightly_build_on_Ubuntu"
http://wiki.codeblocks.org/index.php...uild_on_Ubuntu
.. It's almost two years old !

The dependencies : You can't libtoolize with no libtool ..

sudo apt-get install \
gdb g++ libtool autoconf automake libwxgtk2.8-dev wx2.8-headers

The also missing libgtk2.0-dev will automagically be intalled too,
as a dependency for libwxgtk2.8-dev , etc.

There are lots of these "install guide for Ubuntu",
just by Googling .. codeblocks ubuntu .. !

.....

Last edited by knudfl; 03-25-2010 at 03:56 AM.
 
Old 03-25-2010, 04:00 AM   #10
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,098

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Quote:
Originally Posted by elishac View Post
Hello evo2,
thanks for trying to help. I saw your ps too late and I've already installed and updated apt-file. You'll tell me later on how to remove it.
The same way you remove any package:
Code:
sudo apt-get remove apt-file
But don't remove it! It is a *very* useful tool.
Quote:
Please find attached the config.log
Ok, reading the config.log I see that the error is that "gtk/gtk.h" is missing. I used "apt-file search" on my system and foudn the following:

Code:
$ apt-file search gtk/gtk.h
libgfcui-dev: /usr/include/gfc-2.0/gfc/gtk/gtk.hh
libgtk1.2-dev: /usr/include/gtk-1.2/gtk/gtk.h
libgtk2.0-dev: /usr/include/gtk-2.0/gtk/gtk.h
libgtk2.0-doc: /usr/share/doc/libgtk2.0-doc/gtk/gtk.html
lsb-build-desktop3: /usr/include/lsb3/gtk-2.0/gtk/gtk.h
So it seems you need to install the libgtk2.0-dev package. Ie.
Code:
sudo apt-get install libgtk2.0-dev

Cheers,

Evo2.
 
Old 03-25-2010, 04:28 AM   #11
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
This is never ending, I just downloaded sudo apt-get install libgtk2.0-dev and then typed mkdir build_gtk2_shared_monolithic_unicode
cd build_gtk2_shared_monolithic_unicode
../configure --prefix=/opt/wx/2.8 \
--enable-xrc \
--enable-monolithic \
--enable-unicode
make
but the 'make' gave me hundreds of errors.

I'm going to go for knudfl's solution instead, the wiki seems not very reliable indeed.

So I typed make from ./trunk.
It's taking a very long time. Millions of lines probably appeared.

Assuming this will work, how do I remove everything that I've done so far regarding this issue and that didn't work ? (I tried everything that has been mentionned here, plus everything that is mentionned in the wiki up to 'su' in 'wxWidgets build')
 
Old 03-25-2010, 04:41 AM   #12
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Well, this didn't work.
I typed make in /trunk, and then sudo make install.
I then restarted the computer.
codeblocks is in applications->programming, and if I click on it, it starts launching but then closes. What can I do now ?
 
Old 03-25-2010, 04:43 AM   #13
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,098

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Start it on the command line an look at the error messages it prints.

Evo2.
 
Old 03-25-2010, 04:50 AM   #14
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
how can i do that ?
 
Old 03-25-2010, 05:10 AM   #15
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,098

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
When you typed "make install" there should have been output indicating where the program was being installed.

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem installing Codeblocks konzo Linux - Software 12 02-02-2010 04:12 AM
codeblocks cannot start up in redhat9 boboboy Linux - Newbie 3 05-18-2009 02:26 AM
codeblocks build errors g++: command not found yukapuka Linux - Software 3 02-17-2009 03:09 PM
Setting up CodeBlocks on Ubuntu tm2383 Programming 4 12-12-2008 03:53 PM
Nightly Build ISO MikeeX Slackware 2 07-14-2003 06:59 PM


All times are GMT -5. The time now is 05:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration