Author Topic: Trying to follow CB Linux Wiki  (Read 18979 times)

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Trying to follow CB Linux Wiki
« Reply #15 on: January 14, 2006, 05:39:31 pm »
Under System->Administrator there is a program called Synaptic.  Just give it your password when it asks and the program will start.  Run a search for wxGTK and you should the wxGTK 2.6 dev package.  Just click the little box to mark it for installation and let it install anything else that it says is needed.  Then you just click Apply.  After the install if finish all you have to do is close the application no restart is necessary.

This is the whole Linux and Windows way I was talking about.  In most linux distributions you have some kind of package management system with a repository that is full of almost all the software you will ever need and you can get in just a couple of clicks.  The system makes sure that if want a certain App X, that depends on Lib Y, all you have to do is say "I want you to install X" and it will also install Lib Y for you too.  This is much easier than hunting are the internet for dependencies.

Anything you install from synaptic will go into /usr and generally anything you install from source with "./configure, make, sudo make install" will go into /usr/local/.  If you are installing the package just completely delete the version you have compiled from /opt.  If all these directories seem a little odd to you, check out this article.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2165
Re: Trying to follow CB Linux Wiki
« Reply #16 on: January 14, 2006, 05:44:41 pm »
Be sure to get latest autoconf, automake, libtool, be sure aclocal points to the most recent one (I had problems because of this, the solution is in the forums).

Also get wx-common and libwxgtk2.6 (you must check the right name of this one).

To search for packages, try: apt-cache search what

Example: apt-cache search libwxgtk 2.6

Are some of the forum messages gone?

I searched for "autoconf","automake","libtool", and "aclocal" indiviually
but got no hits except this message. Am I searching incorrectly?

What solution is this message refering to?

Sorry for being so stupid about linux....

thanks
pecan
 
« Last Edit: January 14, 2006, 05:46:19 pm by Pecan »

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Trying to follow CB Linux Wiki
« Reply #17 on: January 14, 2006, 06:03:04 pm »
Are some of the forum messages gone?

I searched for "autoconf","automake","libtool", and "aclocal" indiviually
but got no hits except this message. Am I searching incorrectly?
pecan

Using the terms autoconf, automake and libtool, I have found this post that could may be help.

What I have remarked when doing a search in the forum is that I have to be careful of the scope of the query. And also that an advanced search could be useful for complex queries :).

Michael

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2165
Re: Trying to follow CB Linux Wiki
« Reply #18 on: January 14, 2006, 06:16:09 pm »
Using the terms autoconf, automake and libtool, I have found this post that could may be help.

What I have remarked when doing a search in the forum is that I have to be careful of the scope of the query. And also that an advanced search could be useful for complex queries :).

Michael

Oh.. It never occured to me that the search button *only*
searched the current thread. I'll go back and do some of my
other failed searches...

thanks
pecan

Offline grv575

  • Official tester
  • Regular
  • ***
  • Posts: 381
Re: Trying to follow CB Linux Wiki
« Reply #19 on: January 15, 2006, 06:59:52 am »
Why are you going through the pain of installing wxWidgets yourself?

Because a custom compiled library for your target architecture runs faster.  How often do you exprect to compile wx anyway?  They only release new versions like 2-3 times a year... so the minimal compile time pays for itself many times over.  IMHO.

Quote
You should also probably install your libraries to /usr/local/lib, that is the traditional place for them.  Almost all programs you build from source do this automatically so you don't need to tell them where to go with the --prefix command.

Well that's not always the case.  It's package-specific whether they chose /usr/local as the default although most packages do.  If you try installing LFS, you'll see that some packages default to /usr so it's easier sometimes to just always specify --prefix so it goes where you expect it to.

Quote
It is important to remember there is a windows way, and there is a linux way to do things.  Don't try the windows way on Linux.  You also don't need different subdirs for each wxWidgets version.  The libary names are unique so that you can have 2.6 unicode, 2.6 ansi, 2.6 unicode-debug, 2.6 ansi-debug, 2.5 unicode, 2.4 ansi, etc builds all in the same folder without any fear of over writing the libraries.

OK, but do you mind telling how to choose which configuration you would like to use using wx-config?  I always just resymlink to a different wxdir (I use one for each version) since that's pretty easy to do (maybe not the proper way to use wx-config)...

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Trying to follow CB Linux Wiki
« Reply #20 on: January 15, 2006, 04:58:08 pm »
wx-config is a good tool.  The important thing is that you only have one wx-config utility in your path (which I usually do about by just deleting/renaming/moving the one from /usr/local/bin).  Now that that is done you have to move around the actual files that wx-config uses to supply the build options.  I believe they are usually of the form gtk2-<version>-<anis/unicode>-<debug/release>, but I could have the exact order messed up.  They are always installed to <install_dir>/lib/wx/config, so you just have to make sure that no matter where you install your mutiple versions of wx-widgets to all the config files are in the one location wx-config looks.  So if wx-config is in /usr/local/bin then put all your config files (regardless of where you actually installed the library) into /usr/local/lib/wx/conifg.  Now you specify the proper options to wx-config and it will give the right library.

For example:
Code: [Select]
# Get a unicode debug build
wx-config --unicode --debug --libs
# Get an ANSI release build
wx-config --unicode=no --libs
# I haven't used version before, but this should do it
# Get wx 2.5 in ANSI debug form
wx-config --version=2.5 --unicode=no --debug --libs

I am not positive but i believe wx-config defaults to the highest version number you have, then the unicode build if you have one, then release if you have that.

« Last Edit: January 15, 2006, 07:52:34 pm by Game_Ender »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2165
Re: Trying to follow CB Linux Wiki
« Reply #21 on: January 15, 2006, 06:40:10 pm »
EDIT: Thats wierd, I just tried this the second time and it worked.
MAGIC!!


I'm trying to checkout onto ubuntu the HEAD svn just as I did on windows.
What am I doing wrong?

thanks
pecan

Code: [Select]
pecan@herman:~/devel$ svn --username me --password mypassword checkout https://svn.berlios.de/svnroot/repos/codeblocks/trunk
Error validating server certificate for 'https://svn.berlios.de:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: *.berlios.de
 - Valid: from Sep 26 19:24:06 2005 GMT until Sep 26 19:24:06 2006 GMT
 - Issuer: BerliOS, FhG FOKUS, Berlin, Berlin, DE
 - Fingerprint: be:b3:9b:44:3c:c9:2e:ce:06:97:d0:35:36:e6:21:3a:1c:c1:55:ac
(R)eject, accept (t)emporarily or accept (p)ermanently? p
svn: PROPFIND request failed on '/svnroot/repos/codeblocks/trunk'
svn: PROPFIND of '/svnroot/repos/codeblocks/trunk': Server certificate verification failed: issuer is not trusted (https://svn.berlios.de)
pecan@herman:~/devel$
« Last Edit: January 15, 2006, 06:52:21 pm by Pecan »

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: Trying to follow CB Linux Wiki
« Reply #22 on: January 15, 2006, 07:00:00 pm »
Just type:
Code: [Select]
svn checkout svn://svn.berlios.de/codeblocks/trunk codeblocks-svn"codeblocks-svn" is the directory where the repository will be saved to, without this parameter it will be saved to the current directory, I think (I've never tested it). In your case with "codeblocks-svn" it will be saved to "~/devel/codeblocks-svn".

The thing you do wrong is that you're logging in the svn server (with a username "me" that won't exist). You only need to log in when you're a developer.
Nightly builds for openSUSE

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: Trying to follow CB Linux Wiki
« Reply #23 on: January 15, 2006, 07:03:04 pm »
The thing you do wrong is that you're logging in the svn server (with a username "me" that won't exist). You only need to log in when you're a developer.

I'm pretty sure he is a developer (of a contrib plugin, but still). I'm also pretty sure he changed the username and password in the command-line before he posted here ;).

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: Trying to follow CB Linux Wiki
« Reply #24 on: January 15, 2006, 07:09:12 pm »
The thing you do wrong is that you're logging in the svn server (with a username "me" that won't exist). You only need to log in when you're a developer.

I'm pretty sure he is a developer (of a contrib plugin, but still). I'm also pretty sure he changed the username and password in the command-line before he posted here ;).
:oops: :oops: :oops: :oops: Oh, I'm very sorry. Sorry Pecan!  :oops: :oops: :oops: :oops:
Yes, there's no wrong username error  :lol: :oops:
OK, but do you mind telling how to choose which configuration you would like to use using wx-config?  I always just resymlink to a different wxdir (I use one for each version) since that's pretty easy to do (maybe not the proper way to use wx-config)...
You can do it like Game_Ender said or can specify the --wx-config parameter of ./configure with the right wx-config (on my suse: /usr/lib/wx/config/gtk2-ansi-release-2.6 or /usr/lib/wx/config/gtk2-unicode-release-2.6)
Nightly builds for openSUSE

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2165
Re: Trying to follow CB Linux Wiki
« Reply #25 on: January 15, 2006, 07:19:51 pm »
EDIT: Thats wierd, I just tried this the second time and it worked.
MAGIC!!

I'm trying to checkout onto ubuntu the HEAD svn just as I did on windows.
What am I doing wrong?

Thanks for the reply guys. True, I didn't post my
name and password, and I maintain keybinder.

For some unknown reason, I waited 15 minutes,
just hit the {up arrow},{enter} then 'p' again and the darn thing is working.

Yes, not specifying a destination directory is puting the stuff in
the current dir.

thanks
pecan

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2165
Re: Trying to follow CB Linux Wiki
« Reply #26 on: January 16, 2006, 12:40:19 am »
EDIT: Got my answer. Did a "sudo make install" and it worked.
I think we have to write a ubuntu only wiki page for all this.
// -------------End Edit -------------------------------------------


I'm getting the following errs trying to do a ubuntu 510 codeblocks
make install

Does this mean I should do a "sudo make install" instead?

Code: [Select]
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
  [i]this line deleted because it cause an apache post error[/i]
'console_runner' '/usr/local/bin/console_runner'
/usr/bin/install -c console_runner /usr/local/bin/console_runner
/usr/bin/install: cannot create regular file
`/usr/local/bin/console_runner': Permission denied
make[4]: *** [install-binPROGRAMS] Error 1
make[4]: Leaving directory
`/home/pecan/devel/trunk/src/tools/ConsoleRunner'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory
`/home/pecan/devel/trunk/src/tools/ConsoleRunner'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/pecan/devel/trunk/src/tools'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/pecan/devel/trunk/src'
make: *** [install-recursive] Error 1
pecan@herman:~/devel/trunk$

thanks
pecan
« Last Edit: January 16, 2006, 01:47:57 am by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2165
Re: Trying to follow CB Linux Wiki
« Reply #27 on: January 16, 2006, 01:02:37 am »
EDIT:  after searching, i'm guessing that "./configure --enable-contrib"
might work. If so, where do/does all the "equivalents of the windows DLLs"
go?
Do you have to be a root user to develope code/plugins?
// ------------- End Edit --------------------------------------------------

How do I run the contib plugins on ubuntu. When I go to plugins->manage plugins
they're not even listed.

when I try to compile them, via the workspace, it says "nothing to be done"

How can i see/load the files of a contrib project into the editor. I've double clicked,
right clicked, stomped, cussed etc, and it shows no file names under keybinder
contrib

help is sorely appreciated

thanks
pecan
« Last Edit: January 16, 2006, 01:48:31 am by Pecan »

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
Re: Trying to follow CB Linux Wiki
« Reply #28 on: January 16, 2006, 03:32:45 am »

  • 1. ./bootstrap
  • 2. ./configure
  • 3. make
  • 4. sudo make install


To get all contrib plugin , at the stage 2 , use ./configure --enable-contrib

Now , I think you need to
Change directory to your CB project directory

1. sudo make clean  (optional but recommended)
2. ./configure --enable-contrib
3. make
4. sudo make install


p/s : you can download RapidSVN (using synaptic > search) to get a GUI interface of SVN (need to run from command prompt)




Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: Trying to follow CB Linux Wiki
« Reply #29 on: January 16, 2006, 04:18:16 am »
p/s : you can download RapidSVN (using synaptic > search) to get a GUI interface of SVN (need to run from command prompt)
Quite off-topic: do you know how can I open with RapidSVN a repository I already checked out with svn command line?