Author Topic: Why are there no binaries for Linux? How do I compile for Linux?  (Read 4744 times)

zarathul

  • Guest
Why are there no binaries for Linux? How do I compile for Linux?
« on: November 21, 2007, 07:42:58 pm »
Hi!
I like codeblocks, I'm using it under Windows. It works great, and installation of the nightly builds is no big problem. :)

Not the same for Linux: I'm wondering why there are no binary nightly builds available. Maybe it's too much effort to create a package for Suse, for Debian, for Fedora, ... I understand this. But then why isn't there a simple "how to compile" guide like the NB installing guide for windows?

I'm trying to compile the C:B sources for over an hour (for Ubuntu 7.10) and it's still not working. I have installed the latest package sources for wx. I have installed these packages:
  • libwxbase2.8-0
  • libwxbase2.8-dev
  • libwxgtk2.8-0
  • libwxgtk2.8-dev
  • wx2.8-headers
  • wx2.8-i18n
  • wx-common
The commands ./bootstrap and ./configure run through and tell me, everything is ok, all libs are there. But starting make only gives me thousands of error messages like these
Code
../../../src/include/toolsmanager.h:37: error: 'wxCommandEvent' has not been declared
../../../src/include/xtra_res.h:16: error: invalid use of undefined type 'struct wxXmlResourceHandler'
../../../src/include/xtra_res.h:13: error: forward declaration of 'struct wxXmlResourceHandler'
../../../src/include/xtra_res.h:20: error: 'wxXmlNode' has not been declared
../../../src/include/xtra_res.h:28: error: expected ',' or '...' before '&' token
../../../src/include/xtra_res.h:29: error: ISO C++ forbids declaration of 'wxArtClient' with no type
../../../src/include/xtra_res.h:29: error: default argument missing for parameter 2 of 'wxBitmap wxToolBarAddOnXmlHandler::GetCenteredBitmap(const wxString&, int)'
../../../src/include/infowindow.h:24: error: 'wxDialog' does not name a type
../../../src/include/infowindow.h:59: error: expected class-name before '{' token
../../../src/include/infowindow.h:60: error: ISO C++ forbids declaration of 'wxTimer' with no type
../../../src/include/infowindow.h:60: error: expected ';' before '*' token
../../../src/include/infowindow.h:76: error: 'wxTimerEvent' has not been declared
../../../src/include/infowindow.h:77: error: 'wxMouseEvent' has not been declared
../../../src/include/infowindow.h:78: error: 'wxMouseEvent' has not been declared
[code]
and so on ...

Question: what else do I need to compile? I'm [b]very[/b] frustrated for the lack of information here. Okay, there's a big forum with many many threads and many special cases, but there's no structured information on the homepage for simply giving clear instructions what packages I need to use Codeblocks on linux.

Thanks for reading and more thanks for helping me. :)
[/code]

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: Why are there no binaries for Linux? How do I compile for Linux?
« Reply #1 on: November 21, 2007, 08:13:01 pm »
Look at the nightly builds forum, there ARE binaries for linux, sometimes you just need to search in a few threads and/or lower in the topic

For instance look here:
http://forums.codeblocks.org/index.php/topic,7286.msg55541.html#msg55541

zarathul

  • Guest
Re: Why are there no binaries for Linux? How do I compile for Linux?
« Reply #2 on: November 22, 2007, 12:01:12 am »
But there are no binaries distributed by the codeblocks team. When I look at the first posting, there's always written something like "Linux : none",.

Quote
For instance look here:
http://forums.codeblocks.org/index.php/topic,7286.msg55541.html#msg55541
Yes, thanks. In French ... I'm able to understand a bit of french, but most users here don't. So isn't there a non mind-fucking solution to install codeblocks on Ubuntu? Seems to be a bigger problem than installing under Windows...

Personally I would compile it myself, but that did not work either (see above).

Offline pasgui

  • Almost regular
  • **
  • Posts: 165
    • LGP
Re: Why are there no binaries for Linux? How do I compile for Linux?
« Reply #3 on: November 22, 2007, 12:16:20 am »
Yes, thanks. In French ...

Did you try to click on the english flag to get the article in english ?

zarathul

  • Guest
Re: Why are there no binaries for Linux? How do I compile for Linux?
« Reply #4 on: November 22, 2007, 01:38:07 am »
 :shock: Ooops, I missed this ... sorry, but I'm German. So in most cases a homepage is either English or has a German flag on it. ;) But as I said, I'm able to understand French, so I succeeded already.

Thanks for all the advices. :)
A tip: leave a note somewhere on the homepage where to find Ubuntu binaries. Or in a sticky posting in "Nightly Builds" forum. There will be other users who will also search for a quick download link.