new codeblocks package.

Discuss anything not covered by any of the other categories.
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

new codeblocks package.

Post by revelator »

Just finishing the installer atm.

changes:

uses mingw64 by default (the 32 bit compiler is selected by default).
mingw64 for 64 bit also included and can be used by changing a few things in settings/compiler and debugger/toolchain executables.

msys environment with some additions by me, like auto elevated posix and windows shells (for vista and win7). uses console2 32 and 64 bit versions with some special tools i created.

svn client in /usr/local can be used from both msys shells or if included in codeblocks searchpaths.

python in /usr/local can be used like the above if say you got a projet that uses scons for building.

ruby in /usr/local ditto.

cmake in /usr/local ditto (also the gui version included). can also be used for 64 bit development.

you cannot link to libs in /usr/local if you use the 64 bit compiler but the tools work fine for building.
the libs in /usr/local/lib are not searched by the linker unless added with -L/usr/local/lib so unless you explicitly add /usr/local/lib to ld's searchpath no fuckups will ever happen ;) same goes for the includes.

the preinstall script runs after setup and asks you if you would like to add mingw32 and mingw64 to fstab. you can safely ignore that as all
folders under /usr are automounted so no need. (only included as a reference) it will however add mingw32/bin and mingw64/bin to windows %PATH% environment.

in case you have a tool you like to use from mingw add it to /etc/fstab
by hand with notepad like so c:/yourtool. /nameforyourtool and then edit /etc/profile to include yourtool/binaries before /mingw32/bin or if 64 bit before /mingw64/bin.

you can also make a script in profile.d for things not normally in mingw like this ->

#
# source this file (. /opt/java/java-setup.sh) in sh,ksh,zsh,bash to set
# up paths for JAVA.
#
if [ ${MSYSTEM} == MINGW64 ] || [ ${MSYSTEM} == MINGW32 ]; then
prefix="/opt/java"
exec_prefix="${prefix}"
JAVA_HOME="$exec_prefix"
ANT_HOME="$exec_prefix"
CCK_HOME="$exec_prefix"
PATH="${exec_prefix}/bin:${exec_prefix}/jre/bin:$PATH"
if [ ${MSYSTEM} == MINGW32 ]; then
LD_LIBRARY_PATH="${exec_prefix}/lib:${exec_prefix}/jre/lib:${LD_LIBRARY_PATH:-}"
LD_RUN_PATH="${exec_prefix}/lib:${exec_prefix}/jre/lib:${LD_RUN_PATH:-}"
C_INCLUDE_PATH="${exec_prefix}/include:${exec_prefix}/include/win32:${C_INCLUDE_PATH:-}"
CPLUS_INCLUDE_PATH="${exec_prefix}/include:${exec_prefix}/include/win32:${CPLUS_INCLUDE_PATH:-}"

export PATH LD_LIBRARY_PATH LD_RUN_PATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH
export JAVA_HOME ANT_HOME CCK_HOME
else
echo "<no 64 bit types for java yet>"
export PATH
fi
unset prefix
unset exec_prefix
fi

the above is for suns java sdk. call the script java-setup.sh and put it in /etc/profile.d and place suns java sdk in /opt/java in the /usr folder. if you need help setting things up let me know as the above includes some things not in suns java like apaches ant builder.

uninstalling will remove mingw32/bin and mingw64/bin from %PATH%.

gcc version is 4.6.1 for both the 32 and 64 bit compiler.
binutils version is 2.22 and is a beta (not released yet) but includes some fixes for the lto plugin that fail miserably on the released 2.21 version.
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

if anyones interrested in obtaining the new package they can PM me or send me a mail requesting it.

the cause for this approach is that my google code site has a severe limitation on sizes so i have to host it from my own PC by ftp, and my bandwidth is unfortunatly a bit limited.

anyone who can host it are ofcourse welcome to contact me either here

or by mail.
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

people can now try getting it from my ftp ftp://90.184.233.166:21/cb-setup.exe

it might not allways be up if its not mail me and ill try to keep the server alive.
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

many updates to codeblocks in regards to the new gcc-4.6.1 compiler
theres a codeblocks-only.7z on my ftp with latest changes. you can overwrite the codeblocks from my installer with this one if you want the latest changes.

still working on detection of the mingw64 compiler but its atleast working for the 32 bit one from them atm.

added -march=corei7 to CPU optimizations (new in gcc-4.6.1).
added dictionaries to the spellchecker plugin (all i could get my hands on) this means you likely can have spellchecking in your native language ;).

TODO

more optimization options from newer gcc (long list) + adding checks for mingw version so you dont by mistake get options your version of gcc does not support.

rework the compiler autodetection routine still a few buggers.
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

ho one might think i allmost reworked the msys package and its not far off :D now has several tools normally only availiable in cygwin like the cocom compiler creation package s-lang ncurses and a working lynx browser (not as much a gimmick as some might think. its used as a downloader for perl packages for instance).

i had to rewrite parts of the old api because some functions where missing. Msys is based on an ass old cygwin 1.3 source hehe.

codeblocks detection of the mingw64 compiler is better now but still not perfect (it detects and autosets the 64 bit compiler correctly on a 64 bit OS but if you want to use the 32 bit compiler on a 64 bit OS you still have to set it by hand).

i added several tools to python like wxpython and PyQT for an example try pycrust from the msys shell :).

added rapidsvn gui you can add it to codeblocks tools :)
added qtgit same.
qtgit can be a bit hard to setup so if you have problems i also included git's tcl gui. you can execute it in two ways, use the git-gui.bat in /usr/local or input git gui from the msys console.
theres a python interface to git also you can use it by executing stgit from the msys console.
added mercurial also (only the console version atm) to use it execute hg from the msys console with the options you want to pass to hg.

in fact theres so many ways to download stuff with this suite its allmost laughable :lol:

Msys now creates reparse points automatically when used the first time, you need this for compiling say gcc with sysroot support. or any package with sysroot support actually.

updated package will be up tomorrow.
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

if lynx fails to connect you can set the timeout for connecting higher in /etc/lynx.cfg (default value fails rather hard on win 7 64) set it to 200000.

by default it connects to google because the old site value seems to be missing these days.

updated bash completion.
changed a minor oups when using msysdvlpr shell it was looking for the old /mingw path. changed to look in /mingw32 instead.

mysql has a sha1.h in /mingw32/include and /mingw64/include which collides with gcc bootstraps so renamed to sha1.h.mysql if you want to develop with mysql change it back to sha1.h (i need a better workaround i know).

BUGS:
do not use CPAN to update things in msys perl the new CPAN is completely incompatible with the old 5.8.8 perl and will break perl completely. if you need some extention download it by hand and do perl makefile.pl make test and if no error make install.

i got a newer perl compiled with mingw with some strawberry perl magic and a load of extensions like perl versions of some posix tools you can use with my package. no installer yet. ill put it on my ftp to use it just unzip it to the codeblocks folder and run portableshell.bat

its the 32 bit version so atm only works on MinGW32 ill make a 64 bit version one of these days.
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

ok server should be up again now. moved files to my small vectra as a permanent server since my work PC is rather expensive to have running 24/7. thats what you get with a 1 kW PSU (large current bills) hehe.

the little vectra is rather solid despite its age :) quality components inside like matrox gfx and a good ol P3 500. and the psu is only 250 W so a lot cheaper in the long run.
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

spoke to soon it seems :shock: with both pc's on the net both my internet and phone dies wtf !!!
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

sourceforge account created. the project will now be hosted there.

the upload is ongoing so not availiable yet but my ftp is up untill the page is done :)
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

some small updates im going to upload soon.

bash with ncurses support. based on latest source from the mingw folks and modified a bit by me. first version crashed but its stable now :) so say hello to some colored terminals hehe.

ncurses for msys. above depends on this. can be used instead of msys old termcap library and its actually a good thing since this supports way more color styles and also has its own menu framework.

msysCORE BETA. based on latest release but with symlink support now :) still a few buggers to squash though thats why its BETA. for one sources calling ln -s still fail mostly thinking hey im on msys no symlink support ->bugout fast :lol: but it actually works if you dont believe me try doing ln -s /mingw /thisisasymlinkofmingw and take notice.

one warning though deleting the symlink also deletes the folder it symlinks to so DONT!!! if you want to get rid of it after the test, an easy way is using junction -d /thisisasymlinkofmingw.

coreutils latest from cygwin ported to msys but seem to have some fatal flaws so im not uploading this yet. it works fine for building but the executables get vreated with special permissions not allowing anyone to execute them or even remove them so untill i find a way to fix that it stays here ;)
qbism
Posts: 1238
Joined: Thu Nov 04, 2004 5:51 am
Contact:

Post by qbism »

I was able to DL from sourceforge. Did my first compile of Super8 on it today.... no problems!

I'm constantly using "find references" and "find occurences of", among other features which are not in the 10.05 CodeBlocks mingw. Also now don't have to worry about installing windows and directx libraries separately. Dr. mingw is working well. Over time I will be exploring some of the other features.

Thanks much for this package!
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

glad you find use of it :)

still preparing plugin packages i decided to keep these seperate the installer is allready large enough :lol: atleast you wont have to install these they will be simple 7z packages you can just unzip them directly to the codeblocks dir and it will auto add them to msys environment.

for codeblocks you still need to tell it where the includes and libraries are but thats pretty easy :) and is the more correct way so as to avoid
conflicts with other stuff.

if anyone has some wishes for special libraries or tools they cannot port themself let me know and ill see if i can get them working.
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

just uploaded a minimal version by request.

size is a bit more bearable.

tools and sdk's will be made as plugins for this version which can be unzipped directly into codeblocks.
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

If any have a library or something else that would be helpfull to developers using C::B + MinGW they are welcome to add it to my site.
Leave a mesage here or by PM and ill set you up with developer access.

Quake related stuff is also welcome. (Game libraries/Tools/etc).
If someone has good insight on site setup i could use a hand, my artistic skills are not that well :)
Post Reply