Page 1 of 3

How to compile on linux?

Posted: Mon Nov 03, 2008 2:37 pm
by bruno321

Hi, I'm new to this software. I use Ubuntu 7.10. I downloaded latest SVN version of VBA-M but I've no idea how to compile it. I've searched the web and these forums but I don't see any basic information. So, how do I compile VBA-M on linux?

 

Thanks.


Well, it seems I got it right. I'm answering myself instead of deleting this post because it might be useful to someone who's new to VBA-M (and cmake) like me.

 

After downloading latest SVN build, I got to the trunk directory and ran "cmake CMakeLists.txt" (which is like "Makefile" for make). After that I "make", then "make install" and it is installed [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" /> It is easy but I didn't see it anywhere related to VBA-M.

 

Sorry for the inconvenience.


How to compile on linux?

Posted: Mon Nov 03, 2008 4:30 pm
by Cobra951

Stupid question from a Veteran Windows programmer and very limited Unix programmer: Why does so much Linux installation involve code compilation? Are the distros that different, or is it related to a much wider array of possibly incompatible hardware (than what Windows users have to deal with)?


How to compile on linux?

Posted: Mon Nov 03, 2008 6:30 pm
by aceloop

this is bit off topic, but you should upgrade to ubuntu 8.10.


How to compile on linux?

Posted: Mon Nov 03, 2008 6:35 pm
by bruno321

I don't want to for two reasons:

 

1) I'm lazy, and everything's working perfectly. I don't want to mess anything up.

2) I use Kubuntu, and I don't want to upgrade from KDE 3 to KDE 4.

 

In any case, I know it would be best, but I like it as it is.


How to compile on linux?

Posted: Mon Nov 03, 2008 7:50 pm
by slacker

good to hear you got it. it's a pity vba-m doesn't use plain old make files.i failed last time i tried to edit their cmake.

 

i hate kde4 too its getting like gnome is with the bloat.im using openbox atm

 

but using ubuntu your prob used to bloat and bugs etc


How to compile on linux?

Posted: Tue Nov 04, 2008 10:24 am
by spacy51

I just compiled the latest VBA-M on Ubuntu 8.10 x86_64 at first try, no problems [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" />

 

I was amazed when I read about what /usr/local is for ^^

 

 

Looking at the GTK GUI, I think I have to make some customizations as soon as I can ^^

The functionality looks like VBA stoneage :angel:


How to compile on linux?

Posted: Tue Nov 04, 2008 5:13 pm
by spacy51

I have a question: Are there any project files for any IDE for the Linux build? If not, what is the best way to use an IDE with this?


How to compile on linux?

Posted: Wed Nov 05, 2008 5:11 am
by bgK

I use Eclipse + CDT (for C++ support) + Subclipse (SVN support)

Creating the project file is straightforward :

  • Create a new project from SVN
  • Tell Eclipse that it has to run cmake + make to build the project, and gvbam to run it

 

I'm not adding new features to the GTK+ port because I want it to stay simple to use. With the current menu based interface, adding new features means loosing the user in not so clear options. Rewriting the UI to be dialog based will allow to make it clearer for the user and easier for us to add new features.


How to compile on linux?

Posted: Wed Nov 05, 2008 7:15 am
by spacy51

You think there has to be a rewrite in order to add some dialogs!?!


How to compile on linux?

Posted: Wed Nov 05, 2008 7:35 am
by elliott

Stupid question from a Veteran Windows programmer and very limited Unix programmer: Why does so much Linux installation involve code compilation? Are the distros that different, or is it related to a much wider array of possibly incompatible hardware (than what Windows users have to deal with)?

Hardware is a big part of it, Linux runs on just about every platform out there.

 

The other part is, everything is constantly changing and backwards compatibility between versions can be counterproductive. Where as in Windows some libraries can either stay the same or be completely backwards compatible for years. So, in Linux, an application compiled against one version of a library may not necessarily work with the next version of the library without being recompiled for it, which is why binary distribution doesn't always work well. Binary distribution works great when everything is statically linked, but that adds bloat.

 

 

Now, to get to the reason I signed up, I've compiled the latest SVN on ArchLinux and vbam itself works wonderful. On the other hand, gvbam, segfaults without giving any useful error. Is there anything I can do to help figure out why it does this?