Menu

#1 oblige-0.94 (and SVN) build fails

open-later
nobody
None
5
2008-02-25
2008-02-24
No

Hi, i can't compile oblige 0.94 on my Gentoo Linux boxes (AMD64 and x86)

Build process fails with the following error:

...
g++ -O -g -Wall -DUNIX -DFHS_INSTALL -I/usr/include/fltk-1.1 -I/home/aapted/other/lua-5.1.2/src -I/home/aapted/other/glbsp-2.24-source/src -c -o main.o main.cc
main.cc: In function ‘void Determine_WorkingPath(const char*)’:
main.cc:96: error: invalid conversion from ‘const char*’ to ‘char*’
main.cc:96: error: initializing argument 1 of ‘int fl_filename_expand(char*, const char*)’
main.cc: In function ‘void Determine_InstallPath(const char*)’:
main.cc:132: error: expected `;' before ‘bool’
main.cc:136: error: ‘exists’ was not declared in this scope
make: *** [main.o] Error 1

Same thing with SVN sources.

I'm using gcc-4.1.2

Tell me if you need more info :)

Discussion

  • Andrew Apted

    Andrew Apted - 2008-02-25

    Logged In: YES
    user_id=11869
    Originator: NO

    Short answer:
    Use Makefile.local instead of Makefile.unx

    Long answer:
    Makefile.unx was planned for a "Unixy" installation which put all
    the parts in the unix standard places (like $PREFIX/bin for the
    executable and $PREFIX/share/games/ for the data files).

    However I never finished it and actually forgot about it until now.
    But I will tackle this soon, definitely before the next release
    (and have added it to the TODO list).

    Makefile.local will build the same binary as in the Linux packages
    on Sourceforge, with the same assumptions about file locations.

     
  • Andrew Apted

    Andrew Apted - 2008-02-25
    • status: open --> open-later
     

Log in to post a comment.