kamilion / vinterm

Automatically exported from code.google.com/p/vinterm
GNU General Public License v3.0
1 stars 0 forks source link

vinterm does not compile under macosx #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried to compile vinterm under lion. To get it working I had to do:

1. install MacPorts
2. port install libsdl
3. fix src/console.cc (Macosx defines forkpty in util.h and not pty.h)

Now it runs.
Attached is a patch file.

Thanks for vinterm.

Original issue reported on code.google.com by matm...@googlemail.com on 10 Apr 2012 at 11:29

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for your patch. You had patched a previous version of vinterm (that 
still used autotools), so I took your changes and made them in the current 
version.

However, I don't have access to a MacOSX machine. Can you test it? It's on 
revision 66 on SVN.

Original comment by andre....@gmail.com on 11 Apr 2012 at 12:34

GoogleCodeExporter commented 9 years ago
Hi,

OSX-Lion uses i686-apple-darwin11-llvm-gcc-4.2. This version does not accept 
CXXFLAGS = -std=c++11.

$ port install gcc47
$ make CC=g++-mp-4.7

does the trick and vinterm compiles.

Original comment by matm...@googlemail.com on 11 Apr 2012 at 9:51

GoogleCodeExporter commented 9 years ago
I wouldn't like users to have to download a new compiler. And what about 
-std=gnu++0x, does it supports it?

Original comment by andre....@gmail.com on 12 Apr 2012 at 12:24

GoogleCodeExporter commented 9 years ago
Nope. 'man gcc' says that the compiler supports following standards:

c89, c99/c9x, gnu89, gnu99, gnu9x, c++98, gnu++98

Regarding the gcc compiler on MacOSX: I'm not sure but I think gcc comes with 
XCode. That means 'normal' users don't have a compiler and building vinterm is 
more or less a task for experienced users.

Original comment by matm...@googlemail.com on 12 Apr 2012 at 8:10

GoogleCodeExporter commented 9 years ago
I understand. So I just changed the INSTALL instructions file and added the 
following: 

MACOSX INSTRUCTIONS
-------------------

To install `Vintage Terminal`, follow these steps:

  1. Install MacPorts
  2. port install libsdl
  3. port install gcc47
  4. make CC=g++-mp-4.7
  5. make install

That's it. Now just type `vinterm` to run the terminal emulator.

I added it to revision 69.

Original comment by andre....@gmail.com on 12 Apr 2012 at 1:16

GoogleCodeExporter commented 9 years ago
Can you give me your name so I can add it to the AUTHORS file?

Original comment by andre....@gmail.com on 12 Apr 2012 at 1:19