Skip to main content

Posts

Showing posts with the label cross platform programming

experiencing a slow gdb in ubuntu 10.4 lucid lynx?

well... i was , too. and if you heavily require debugging tools this can really get on your nerves. after updating to lynx i immediatly noticed the slower debugger. but google popped up no results on how to solve this, or even if other people are noticing this.... so after playing around with it i finally solved the problem brute force: i downloaded latest gdb (7.1) from http://www.gnu.org/software/gdb/download/ and compiled it myself. if you are a former windows user or unexperienced with that, dont let self-compiling scare you away: compiling it for yourself is simpler than you may think: download the .tar (with the browser of your choice), unzip it (easiest is with nautilus), go to commandline and type: ./configure after its done, do: make after THAT is done you will have a gdb executable in the "gdb" folder!

How to set up ASP.NET with Mono on your fresh Karmic Koala Ubuntu installation

Yup, I admit it. I am a die hard .NET fan.  And I am very exited about the mono project. And because I migrated from the MS world to the Linux world I know what people accustomed to .NET & Windows development world expect:  Step by step tutorials.  And here is now one I want to share with you.  Setting up a fresh Ubuntu so you are ready to go with your ASP.NET application. You will still need to understand ASP.NET, you will still need to take care about specific porting problems of your application, but this can be understood as a general Getting Started: I reproduced these steps on a clean Karmic Koala installation, so it might be different with other versions of Ubuntu. _________________________________________________ Step By Step Guide to setting up ASP.NET on your Ubuntu Karmic Koala with Apache Komplettes aufsetzen von Mono und ASP.NET auf Ubuntu (Karmic) Useful sites that you might need sooner or later: http://mono-project.com/AutoHosting https://help.ubuntu.com/community/Mo...

Qt Creator Tipps

I really dig Qt Creator (though my first euphoric stance has already relativated itself a little). but because the IDE still is somewhat of an underdog, help in the net is somewhat rare. therefore i decided to give a short summary about how one can setup some important settings for custom makefile projects . (they also might come in handy for all other people using the IDE). all my descriptions are based on my qt creator IDE version 1.2.1 used under ubuntu 9.04. i am pretty sure some posted points will save people out there some time. *) getting your source files into your project your project will contain a .files file. open it up and put inside all additional files you want to have. example : your project is located in /home/f/sources/testApp/ and you want to have a file included in /home/f/sources/CommonSourcecode/foo.cpp Then add ./CommonSourcecode/foo.cpp to .files and create a symbolic link in /home/f/sources/testApp/ pointing to /home/f/sources/CommonSourcecode/ done! *) setti...

Kudos to Qt Creator!

i recently came across a "new" IDE for C/C++ development. well, is "Qt Creator" really new? not exaclty, so lets call it the underdog of IDEs then. but because of my dissatisfaction with everything apart from visual studio i've so far used, i immediatly tried out the new 1.2.1 version of Qt Creator. and boy, i am amazed! this is really a great IDE for developing C++ applications. The name is a bit irritating because it implies its purpose is to create QT apps. well, maybe it is, but its also very good for "normal" apps. till now i have used eclipse. i hate it but i sticked to it because of its good parser and syntax highlighting. plus the debugger is capable of showing you the base classes members of your instances and resolves the type. this made it the best IDE i knew so far. but now i am more and more working with qt creator. so here a small comparison between qt creator and eclipse of the cons for me of both IDEs Qt Creator vs Eclipse CDT Qt Creat...

SocketCC and Monodevelop

I had another request for the socketcc port recently. It is interesting how many people are interested in it. But definetely not surprising! :) I was quite right with my suspicion that there is a big need for having such a library. But this time is a bit special because the guy who requested it is looking for re-implementing the ipV6 functionality. One can find his post in one of the blog entries about socketcc. He seemed to be quite enthusiastic to work on this as soon as he has time. I already sent him the sources, now I am curious what will come out of this. I was surprised when i just found out what additional features we have already put inside socketcc that were not inside the original library. I even now found some forgotten code where I played with some "Ping" class which i wanted to add to the library. its even working in some way, but i stopped development when i didnt need the functionality anymore. I would very much like to see the library all (and the effort we p...

Monodevelop Beta 1 is out

Yes, finally it is there. If you read roadmap I think this month the final version was planned.... but I am happy that we at least have the Beta! Still I very much would like to test it out. Unfortunately there still aren't any .deb packages that I could get a grip on! This is something I dont understand: if I have a beta of a software, I would like many many many people to test it so I will get may bugreports so I can then bugfix more efficiently. For this they should provide debian packages and packages for red hat based systems! Ok, I do not know the internal structure of the monodevelop development team, maybe they just don't have those ressources to get this done. Well, I will patiently wait and search the net until some .deb files get available! I cannot wait to finally be able to write me some of the tools I so desperately want for linux!

Monodevelop 2.0 Alpha 1 is out!

first versions of the new monodevelop are out. boy oh boy i cant wait.... on the official site you now also will find some installers. Unfortunately only for SUSE and stuff, no package for debian. But do not despair dear debian-comrades! You can find debian packages at http://ubuntuforums.org/showthread.php?t=980739 It has some drawbacks though: i didnt find a package for the debugger add-on yet, so if you depend on deb packages because you can't or don't want to build yourself (like me), so i still need to wait.

A short summary about Open Source Command & Conquer

the last few weeks i got interested in how to write an RTS game. as an old die hard fan of c&c red alert (one) i began to search the net. i knew a few years back there was a project that took the released sourcecode of C&C and tried to evolve it. So what is there at the moment? The situation is somewhat confusing: There are 3 projects under sourceforge: 1)freeCnC 2)freeRA 3)openredalert those were created in that order. every one of them was created by taking the code of the former. freeCnC was the first project. as far as ive seen it was the also the biggest project. it seems to be dead currently.it aimed to support C&C Tiberian Dawn as well as Red Alert. they made the first port to linux, there was also support for multiplayer over tcp. it seems that (like for majority of such projects) being able to run it on linux was the utmost important target.... freeCnC is also relying on Boost (as well as on SDL and SDL_mixer). if you are not used to boost, i guess its a bit diffic...

Get mySQL running with MonoDevelop

Disclaimer: for anybody trying to look into Mono, you might also want to be able to use a database with easy ADO.NET access like you are used to in MS C#. especially if you think about getting an ASP.NET site running in Linux, you will have a database you need to use.  MS provides nice dlls for Ado.NET for Oracle and MS SQL.  so if you want to use linux you will now also probably want some free DB that you can use. mySQL is the way to go. Unfortunately this does not work out of the box. I spent some hours until i had accomplished getting mySQL to work with Mono with ado.NET.  this is something i did back a while, and already posted my experience in ubuntuforums.org but... well, to fill this place with some new acticle i will repost it here: I am trying to get the mySQL ADO.Net provider Connector/Net 5.1 to run under mono. as far as mySQL says so, it should run under mono.  For this i followed the steps at  http://mysql.mirrors.pair.com/doc/re...tion-unix.html. So I followed the provide...

looking forward to monodevelop release with debugger

cant tell you how anxious i am about the upcoming release of monodevelop which will feature a ... debugger! what is granted and comes so naturally for other programming languages, or programmers used to windows, seems not to be too common if you want to develop on linux: yes THE one (and only) c# IDE on linux does not have a debugger at the moment. It seems it got broken with some changes in Mono. How someone can really put out a new release of a language (lets now consider mono an own language) and knowingly loose his frontend-debugger by that but accepting that.... i dont know. well the mono community did.  this also kept me from progressing with my interest in c# for linux. a language where i do not have a debugger is.... ridiculous.  but fear not! the new debugger is coming.... like you can read here . i cant wait for it to get released!  i finally want to develop some nice cross-GUI apps for linux! and i certainly wont do that with C++. everybody volintarily choosing c++ for that ...

beware of stream programming!

if you ever plan to do cross platform programming in c++, avoid streams like hell, i tell you!  positioning inside streams, copying of streams, readbuf methods, calculating offsets.... some of these methods behave different on linux(32bit), linux(64bit) and windows(32bit), breaking your code big time.  i made the mistake to use them in the current project. but i wouldnt any more. easy example: create some instances of different streams, write some data into the streams, then check what in_avail() tells you. make the same on windows and linux, and already you can get different results.  maybe later on i will post some example code. bytes

finished porting socketCC to windows!

I have just finished the new and shiny extensions to socketCC. socketCC, the nice class based Socket library.... so now even more shiny!  :) the original socketCC library was mainly designed for linux. Mac OS support was added to it too, but you could not use it under windows.... awkward choice isnt it?  i therefore made it compiling and working with windows like i already said here . but now all bugs should be out and it works like charm!  the cool thing for all pure-windows VC coders out there is: there is a workable VS2008 solution, that can be compiled just like that, without the need for setting anything else up or understanding makefiles.  AFAIK there is no other nice free open library for windows that does this.  so heres a rough list of what has changed from the features of the original socketCC, (description for a deeper understanding of the original socketCC lib can be found in this Dr. Dobbs socketCC article): • support for windows , tested on VS2005 and VS2008 visual studi...

Testing out ubuntu

as i am a IDE freak, always searching for the greatest comfort, i decided to test out Code::Blocks, also because i am still not completely satisfied with eclipse CDT (now version ganymede). Code::Blocks seems to be somewhat an underdog in the IDEs, so i thought i might give it a try.  also because its an IDE that has a free plugin to develop wxWidgets with a sort of WYSIWYG (its called wxSmith). so i then needed to look how to install it under ubuntu. installing something that cannot be obtained via the ubuntu package manager is always something i am uncomfortable with because it often.... fails :) and of course... code::blocks is not installable via the package manager.  SOOOO..... but in this case i found a nice and easy howto: "Installing Code::Blocks 8.02 on Ubuntu" that can be found here . just wanted to tell anybody interested. because it took some time until i found it...  now i just need some time to try it out... happy coding

Rape Eclipse projects to behave like Visual Studio projects

This blog entry might get you up and running with Eclipse if you come from Visual Studio without you having the need to immediately look at how to create makefiles or how the eclipse workspace philosophy works. I expect that you are somewhat familiar with Visual C++ though. I like Eclipse. Well.... no, i don't. I like Visual Studio especially for C#, but Visual C++ has some drawbacks, especially when used to code cross platform non-.NET and without precompiled headers. Still I don't know why so many people find Eclipse so great, but granted, it has a very decent code completion, nice automake and a very good syntax highlighting. I use it too. Its the next best thing ive tried so far to VS. What I hate about it are the project- and workspace philosophies of Eclipse and that the program is somewhat slow. Visual Studio projects/solutions are much easier to use and you grasp its concepts quicker and, most importantly, you are free to include any file you want into your project ind...

Streams in C++: a warning

When beginning to think how some packing alorhytms for the project i am currently doing in my company, i decided to go with streams as the contained for the packed data. why? first, i knew some stream working from C#, second, i knew the packed data would be then sent over the network. in C# you can then quite easily convert your stream to a network stream and just send THAT over the network. out of some reason i thought that there surely also is some network stream class in c++. third, back when i learned programming in colleg we were doing streams and they told us we should use them. if i think about it now i think our professor had a certain crush on streams. fourth, i needed something abstract, where i just could put more and more data into easily and in the end, get everything out again. streams seem to be made for that right? ok, now let me tell you: if i could choose again, i would avoid them like a christian avoids hell. why? not only me but also my colleages find streams-progra...