libucl icon indicating copy to clipboard operation
libucl copied to clipboard

It is not clear when installing the project on Unix how to build it

Open gafferongames opened this issue 9 years ago • 6 comments

Can you add a BUILDING.md with instructions how to build on different platforms? I tried to use autoconf on Debian Wheezy but am used to doing ./configure, make, make install and that didn't work. Running ./autogen.sh directly didn't do anything.

Please make it easier for me to know what to do to build your project on each platform.

ps. On MacOSX I was able to install quickly via "brew install libucl" so that was nice

cheers

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/35483611-it-is-not-clear-when-installing-the-project-on-unix-how-to-build-it?utm_campaign=plugin&utm_content=tracker%2F483345&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F483345&utm_medium=issues&utm_source=github).

gafferongames avatar Jun 25 '16 03:06 gafferongames

@gafferongames I've used cmake to compile:

mkdir build && cd build && cmake .. && make

denisvm avatar Jun 25 '16 03:06 denisvm

I tried cmake but it doesn't seem support a "make install" step.

I worked around this by manually copying ucl.h to /usr/local/include and libucl.a to /usr/local/lib but it would be nice if there was a unix native way to install this library via "make install".

gafferongames avatar Jun 25 '16 06:06 gafferongames

./autogen.sh
./configure
make
make install

vstakhov avatar Jun 25 '16 08:06 vstakhov

On Debian wheezy with 0.8.0 release tar.gz:

# ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:70: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:76: error: possibly undefined macro: AC_DEFINE
autoreconf: /usr/bin/autoconf failed with exit status: 1

gafferongames avatar Jun 25 '16 09:06 gafferongames

install pkg-config

bapt avatar Jun 25 '16 10:06 bapt

This thread is a great example of some stuff that you could put in BUILDING.md to save people time.

gafferongames avatar Jun 25 '16 20:06 gafferongames