How to compile on linux?

This particular forum is archives, bug reports should be made at https://github.com/visualboyadvance-m/v ... e-m/issues


bruno321
Junior Member
Posts: 2
Joined: Mon Nov 03, 2008 2:33 pm

How to compile on linux?

Post 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.

Last edited by bruno321 on Mon Nov 03, 2008 3:28 pm, edited 1 time in total.
Cobra951
Junior Member
Posts: 15
Joined: Thu Sep 11, 2008 10:30 pm

How to compile on linux?

Post 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)?

aceloop
Junior Member
Posts: 35
Joined: Tue May 27, 2008 8:39 am

How to compile on linux?

Post by aceloop »

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

bruno321
Junior Member
Posts: 2
Joined: Mon Nov 03, 2008 2:33 pm

How to compile on linux?

Post 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.

slacker
Junior Member
Posts: 22
Joined: Wed Jul 09, 2008 5:31 am

How to compile on linux?

Post 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

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

How to compile on linux?

Post 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:

Last edited by spacy51 on Tue Nov 04, 2008 10:25 am, edited 1 time in total.
spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

How to compile on linux?

Post 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?

bgK
Member
Posts: 88
Joined: Thu Apr 17, 2008 3:58 pm

How to compile on linux?

Post 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.

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

How to compile on linux?

Post by spacy51 »

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

elliott
Junior Member
Posts: 4
Joined: Wed Nov 05, 2008 7:23 am

How to compile on linux?

Post 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?

Post Reply