jybuestc / gource

Automatically exported from code.google.com/p/gource
0 stars 0 forks source link

Building issues and crash on Mac OS X 10.7.5 #199

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There are linking problems when building gource on Mac OS X 10.7.5. Once you 
are able to build the application, running it from the cmd-line (with no 
parameters) crashes it.

To reproduce the problem:

1. Clone project from git repository. At this moment, the latest commit is 
ec2c8e.

2. Configure the project with: 
./configure CFLAGS="-I/usr/X11/include" LDFLAGS="-L/usr/X11/lib" 
--x-includes="/usr/X11/include" --x-libraries="/usr/X11/lib"

3. Build the project with "make". You will notice some linker related issues 
due to missing symbols from: libpng, libGLU and libGL, and they are fixed by 
adjusting line 1 of src/Makefile to:

LIBS = -lpcre -lSDL_image -ljpeg -lpng -lGLU -lGL -L/usr/X11/lib -lX11  -lm 
-L/usr/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -    
L/usr/local/Cellar/ftgl/2.1.3-rc5/lib -lftgl

After that, the project is successfully build and you can run gource.

But not so fast! Running gource from cmd-line (without parameters) creates a 
window for a fraction of a second, and then it disappears and the application 
crashes with error "Segmentation fault: 11" 

See attached file for additional information.

Original issue reported on code.google.com by karlphil...@gmail.com on 14 Jun 2013 at 4:16

Attachments:

GoogleCodeExporter commented 8 years ago
One thing that might not help is that Gource doesn't use FTGL anymore, but uses 
Freetype 2 directly.

I'd suggest just installing it via Homebrew which happily builds the latest 
version: 

http://code.google.com/p/gource/wiki/MacSupport

Original comment by acaudw...@gmail.com on 15 Jun 2013 at 3:02

GoogleCodeExporter commented 8 years ago
Thanks! This is what I eventually ended up doing: 
https://github.com/mxcl/homebrew/issues/20100#issuecomment-19469132

Original comment by karlphil...@gmail.com on 15 Jun 2013 at 3:31

GoogleCodeExporter commented 8 years ago

Original comment by acaudw...@gmail.com on 26 Jun 2013 at 10:53