hbons / SparkleShare

Share and collaborate by syncing with any Git repository instantly. Linux, macOS, and Windows.
https://sparkleshare.org
Other
4.88k stars 576 forks source link

Fail to configure in Lion for syntax error. #960

Closed mryoshio closed 12 years ago

mryoshio commented 12 years ago

I followed the guide, https://github.com/hbons/SparkleShare/blob/master/SparkleShare/Mac/README.md.

Environments

Mono Framework: 2.10.9 Mono Develop: 3.0.4.5 Xcode: 4.4.1 (1488) OS: Mac OS X 10.7.4 (Lion)

Steps

Firstly, set needed environment variables, PATH, PKG_CONFIG and PKG_CONFIG_PATH. Second, installed git-core, automake, intltool, libtool and autoconf using port. and I executed followings next.

$ mkdir -p SparkleShare/Mac/git/bin $ cp -i /opt/local/bin/git* ./SparkleShare/Mac/git/bin/ $ cp -r /opt/local/libexec/git-core SparkleShare/Mac/git/bin/libexec

And then executed ./autogen.sh in bash.

Running glibtoolize --force --copy --automake ... Running aclocal -I build/m4/sparkleshare -I build/m4/shamrock -I build/m4/shave ... Running autoconf ... Running automake --gnu --add-missing --force --copy -Wno-portability -Wno-portability ... WARNING: I am going to run configure without any arguments. Running ./configure --enable-maintainer-mode ... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... gawk checking whether make sets $(MAKE)... yes checking how to create a pax tar archive... gnutar checking whether to enable maintainer-specific portions of Makefiles... yes checking for pkg-config... /Library/Frameworks/Mono.framework/Versions/Current/bin/pkg-config ./configure: line 2493: syntax error near unexpected token MONO_MODULE,' ./configure: line 2493: PKG_CHECK_MODULES(MONO_MODULE, mono >= 2.8)' Error: Could not run ./configure, which is required to configure sparkleshare

Any mistakes in my steps?

hbons commented 12 years ago

Did you install the Mono SDK?

mryoshio commented 12 years ago

Yes, I installed it using MonoFramework-MDK-2.10.9_11.macos10.xamarin.x86.dmg.

hbons commented 12 years ago

Which commit are you trying to build?

mryoshio commented 12 years ago

I'm trying to build following commit.

commit 541468dbb20c68902f84e87db807d34acfe31592 Author: Hylke Bons hylkebons@gmail.com Date: Thu Sep 6 16:59:45 2012 +0100

plugins: Fix #953
hbons commented 12 years ago

Try the last commit?

mryoshio commented 12 years ago

I have pulled 5c57de1ed55772fd057a4d93c2b8b8d1c29c5554 and tested again. But nothing changes.

hbons commented 12 years ago

I just did a fresh clone of the repo and all builds fine here...

mryoshio commented 12 years ago

Thanks for your inquiry. But I have not resolved this yet even if using fresh clone of the repo. I try this by myself a little more.

kirkokuev commented 11 years ago

Guys, I've got the solution for this problem. You need pkg.m4 file initialized with aclocal in the autogen.sh. You can get it from Cellar of pkg-config, which you can obtain via Homebrew.

nicolas-raoul commented 11 years ago

I confirm Kir's solution. I use Macport so here is what worked for me: sudo port install pkgconfig After that, autogen.sh seems to run fine.

I edited the README.md to reflect that.

kirkokuev commented 11 years ago

I think it would be easier just to include pkg.m4 into the source. Or is it considered to be bad practice?