Author Topic: Fails to start  (Read 9276 times)

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Fails to start
« on: June 19, 2010, 01:30:11 am »
I have Ubuntu 10.04 (newbie) 64 bit,  I downloaded codeblocks-10.05-1-debian-amd64.tar.bz2, I used installation instructions in wiki to install it ( no errors), but when I start it I see a splash screen for a second and then it shuts down.

Can you help, please!
« Last Edit: June 19, 2010, 02:40:29 am by const451 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Fails to start
« Reply #1 on: June 19, 2010, 02:06:21 am »
Run it from terminal:

./codeblocks --debug-log

Run ldd codeblocks also in terminal.

Another thing your can try is to use the version for ubuntu 10.04, but I don't know where to get it from, search the forum.

to devs: Please, can someone edit the download page to include the link to the build for ubuntu 10.04, it will save (hopefully) a lot of pain for the ubuntu users
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: Fails to start
« Reply #2 on: June 19, 2010, 02:56:22 am »
>> ./codeblocks --debug-log

I have to run this command from the folder where codeblocks is installed? I cannot find that. I did the search and I found only two files named codeblocks: codeblocks.desktop and codeblocks.png.

Looks like it did not get to install after all? But I did not get any errors.

Any ideas please.

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: Fails to start
« Reply #3 on: June 19, 2010, 02:59:10 am »
I reinstalled it but it did not help.

There are two packages listed on the website:
   codeblocks-10.05-1-debian-amd64.tar.gz
   codeblocks-10.05-1-debian-dbg-amd64.tar.gz

What is the difference? I noticed there have different size.

THX

Offline kencamargo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Fails to start
« Reply #4 on: June 19, 2010, 04:04:47 am »
I reinstalled it but it did not help.

There are two packages listed on the website:
   codeblocks-10.05-1-debian-amd64.tar.gz
   codeblocks-10.05-1-debian-dbg-amd64.tar.gz

What is the difference? I noticed there have different size.

THX

That distribution is not compatible with the wxWidgets libs that are distributed with Ubuntu.

You have two choices:
a) Use pasgui's repo with Ubuntu's wxWidgets;
b) Use the wxWidgets libs from the official repo - apt.wxwidgets.org
Both options are described in detail in a post that Jen made a while ago.

The dbg package includes the debug version of code::blocks, you probably don't need it.

Ken

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: Fails to start
« Reply #5 on: June 19, 2010, 05:06:05 am »
Is this pasgui's repository?

http://lgp203.free.fr/ubuntu/?showdetail=codeblocks1#codeblocks1-row

There is a load of mingled links to files... which ones do I need?

THX

« Last Edit: June 19, 2010, 05:18:31 am by const451 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Fails to start
« Reply #6 on: June 19, 2010, 07:05:37 am »
Add this
Code
deb http://lgp203.free.fr/ubuntu lucid universe
deb-src http://lgp203.free.fr/ubuntu lucid universe
deb http://lgp203.free.fr/ubuntu lucid unstable
deb-src http://lgp203.free.fr/ubuntu lucid unstable
to your /etc/apt.d/sources (not sure that this is the actual path, use the dir completion to find it) file

Then you execute apt-get install codeblocks I suppose :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Fails to start
« Reply #7 on: June 19, 2010, 09:20:56 am »
I reinstalled it but it did not help.

There are two packages listed on the website:
   codeblocks-10.05-1-debian-amd64.tar.gz
   codeblocks-10.05-1-debian-dbg-amd64.tar.gz

What is the difference? I noticed there have different size.

THX

That distribution is not compatible with the wxWidgets libs that are distributed with Ubuntu.

You have two choices:
a) Use pasgui's repo with Ubuntu's wxWidgets;
b) Use the wxWidgets libs from the official repo - apt.wxwidgets.org
Both options are described in detail in a post that Jen made a while ago.

The dbg package includes the debug version of code::blocks, you probably don't need it.

Ken

I will add a notice to our website about this problem and how to solve it soon.

I have not bee at home this week (out for work), but I hope I find the time this weekend.

About the packages:

the packages with "-dbg" in name also contain debug-versions of C::B not needed for most users.

By the way: on linux I suggest not to use the debug-log if starting from console (at least not if you wnat to find the cause for a crash), because it prevents C::B from printing the debug-information on the console and if it crashes you might get nothing useful.


Offline kencamargo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Fails to start
« Reply #8 on: June 19, 2010, 05:13:21 pm »
Add this
Code
deb http://lgp203.free.fr/ubuntu lucid universe
deb-src http://lgp203.free.fr/ubuntu lucid universe
deb http://lgp203.free.fr/ubuntu lucid unstable
deb-src http://lgp203.free.fr/ubuntu lucid unstable
to your /etc/apt.d/sources (not sure that this is the actual path, use the dir completion to find it) file

Then you execute apt-get install codeblocks I suppose :)

sudo apt-get update first. :) And you have to add pasgui's authentication code as well. All of this can be done from synaptic, if you want to use a GUI.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Fails to start
« Reply #9 on: June 19, 2010, 05:21:39 pm »
[...]
I will add a notice to our website about this problem and how to solve it soon.
[...]
the packages with "-dbg" in name also contain debug-versions of C::B not needed for most users.

I just added a note about the *-dbg-* packages and one for the Ubuntu users to the  download page.

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: Fails to start
« Reply #10 on: June 19, 2010, 06:54:00 pm »
Thank you for all your responses. I went route a) to install pasgui binaries - it all works now!!

Frankly, I had few frustrating hours installing codeblocks on Ubuntu. I wish there were more clear and concrete instructions for us, newbies. Because, for example, "Important note for Ubuntu users: To be able to use the Debian packages on Ubuntu Karmic Koala (9.10) and Lucid Lynx (10.04) you have to use the packages from apt.wxwidgets.org, ..." do not speak to me at all.

Offline kencamargo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Fails to start
« Reply #11 on: June 20, 2010, 07:56:12 pm »
Frankly, I had few frustrating hours installing codeblocks on Ubuntu. I wish there were more clear and concrete instructions for us, newbies. Because, for example, "Important note for Ubuntu users: To be able to use the Debian packages on Ubuntu Karmic Koala (9.10) and Lucid Lynx (10.04) you have to use the packages from apt.wxwidgets.org, ..." do not speak to me at all.

I beg to differ. Those are Ubuntu and wxWidgets issues, and there is a lot of documentation on Ubuntu sites on how to add a repository to your sources list (and what a repository and a sources list are), and also lots of stuff at the wxWidgets site on how to use them with Linux, IMHO there is not much sense in replicating all of those in the code::blocks pages.

Remember: Google is your friend. :)

Ken

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Fails to start
« Reply #12 on: June 20, 2010, 09:40:20 pm »
Remember: Google is your friend. :)

Most people hesitate to ask their friends for help.  :? :shock: :(
And here we had 10+ threads about installing cb 10.05 or the nightlies on ubuntu
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline kencamargo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Fails to start
« Reply #13 on: June 21, 2010, 02:04:36 am »
Remember: Google is your friend. :)

Most people hesitate to ask their friends for help.  :? :shock: :(
And here we had 10+ threads about installing cb 10.05 or the nightlies on ubuntu

That was before the full instructions were posted - I think that what's there now is more than enough. I just hope that there isn't another n00b swarm gathering in the recesses of the internet just to prove me wrong. :)