Closed GoogleCodeExporter closed 9 years ago
Hi. It looks like the latest development version of Logstalgia can't be built
with that version of GCC as I am using some C++0x syntax now.
Homebrew (http://mxcl.github.io/homebrew/) is able to build it. I think it uses
Clang as the compiler.
I have made a temporary homebrew formula based on the current homebrew formula
for Gource (they have most of the same codebase) that can build the current
version.
Place it in the homebrew formulas folder (/usr/local/Library/Formula)
And then you can install logstalgia with:
brew install logstalgia --HEAD
Original comment by acaudw...@gmail.com
on 22 May 2013 at 7:55
Attachments:
make failed on my ubuntu 12.04
~/gource-0.40$ make
g++ -DPACKAGE_NAME=\"Gource\" -DPACKAGE_TARNAME=\"gource\"
-DPACKAGE_VERSION=\"0.40\" -DPACKAGE_STRING=\"Gource\ 0.40\"
-DPACKAGE_BUGREPORT=\"acaudwell@gmail.com\" -DPACKAGE_URL=\"\"
-DPACKAGE=\"gource\" -DVERSION=\"0.40\" -DHAVE_TIMEGM=1 -DHAVE_UNSETENV=1
-DHAVE_PTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GL_GL_H=1
-DHAVE_GL_GLU_H=1 -DHAVE_IMG_LOADPNG_RW=1 -DHAVE_IMG_LOADJPG_RW=1
-DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_SYSTEM=/\*\*/ -DHAVE_BOOST_FILESYSTEM=/\*\*/
-I. -DSDLAPP_RESOURCE_DIR=\"/usr/local/share/gource\" -pthread -pthread
-I/usr/include/freetype2 -I/usr/include/GL -D_GNU_SOURCE=1 -D_REENTRANT
-I/usr/include/SDL -I/usr/include -std=gnu++0x -Wall -Wno-sign-compare
-Wno-reorder -Wno-unused-but-set-variable -Wno-unused-variable -g -O2 -pthread
-pthread -MT src/core/gource-fxfont.o -MD -MP -MF
src/core/.deps/gource-fxfont.Tpo -c -o src/core/gource-fxfont.o `test -f
'src/core/fxfont.cpp' || echo './'`src/core/fxfont.cpp
src/core/fxfont.cpp: In member function ‘void FXGlyphSet::draw(const
std::string&)’:
src/core/fxfont.cpp:375: error: expected initializer before ‘:’ token
src/core/fxfont.cpp:642: error: expected primary-expression at end of input
src/core/fxfont.cpp:642: error: expected ‘;’ at end of input
src/core/fxfont.cpp:642: error: expected primary-expression at end of input
src/core/fxfont.cpp:642: error: expected ‘)’ at end of input
src/core/fxfont.cpp:642: error: expected statement at end of input
src/core/fxfont.cpp:642: error: expected ‘}’ at end of input
At global scope:
cc1plus: warning: unrecognized command line option
"-Wno-unused-but-set-variable"
make: *** [src/core/gource-fxfont.o] Error 1
Original comment by PoChun....@gmail.com
on 10 Sep 2013 at 2:31
[deleted comment]
CentOS 6.5 also when trying to build...
src/core/fxfont.cpp: In member function ‘void FXGlyphSet::draw(const
std::string&)’:
src/core/fxfont.cpp:383: error: expected initializer before ‘:’ token
src/core/fxfont.cpp:654: error: expected primary-expression at end of input
src/core/fxfont.cpp:654: error: expected ‘;’ at end of input
src/core/fxfont.cpp:654: error: expected primary-expression at end of input
src/core/fxfont.cpp:654: error: expected ‘)’ at end of input
src/core/fxfont.cpp:654: error: expected statement at end of input
src/core/fxfont.cpp:654: error: expected ‘}’ at end of input
make: *** [src/core/gource-fxfont.o] Error 1
gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
Original comment by Moonshin...@gmail.com
on 16 Jul 2014 at 2:15
Yeah that gcc is too old. That line is a new style for loop. You need at least
4.6.
Original comment by acaudw...@gmail.com
on 16 Jul 2014 at 2:53
Original issue reported on code.google.com by
xingyu.wang@gmail.com
on 22 May 2013 at 12:33