User forums > Using Code::Blocks

Trying to follow CB Linux Wiki

<< < (5/7) > >>

Game_Ender:
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: ---# 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

--- End code ---

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.

Pecan:
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: ---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$

--- End code ---

TheTuxKeeper:
Just type:

--- Code: ---svn checkout svn://svn.berlios.de/codeblocks/trunk codeblocks-svn
--- End code ---
"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.

Urxae:

--- Quote from: daniel2000 on January 15, 2006, 07:00:00 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.

--- End quote ---

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 ;).

TheTuxKeeper:

--- Quote from: Urxae on January 15, 2006, 07:03:04 pm ---
--- Quote from: daniel2000 on January 15, 2006, 07:00:00 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.

--- End quote ---

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 ;).

--- End quote ---
:oops: :oops: :oops: :oops: Oh, I'm very sorry. Sorry Pecan!  :oops: :oops: :oops: :oops:
Yes, there's no wrong username error  :lol: :oops:

--- Quote from: grv575 on January 15, 2006, 06:59:52 am ---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)...

--- End quote ---
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)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version