Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install it on Mac #7

Open
adius opened this issue Mar 30, 2014 · 9 comments
Open

Can't install it on Mac #7

adius opened this issue Mar 30, 2014 · 9 comments

Comments

@adius
Copy link

adius commented Mar 30, 2014

I receive this error message:

$ ./configure
./configure: line 2282: syntax error near unexpected token `-Wall'
./configure: line 2282: `AM_INIT_AUTOMAKE(-Wall -Werror foreign)'

My computer:

$ uname -a
Darwin adius.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
@mtytel
Copy link
Owner

mtytel commented Mar 30, 2014

Hmm.. Are you installing from github source or from the source tar ball?

@adius
Copy link
Author

adius commented Mar 30, 2014

I was installing from github source. Now I also tried to install from the source tar ball and this time it worked better, but still didn't install. I got this error message:

…
Making install in src
  CXX      cursynth-cursynth_gui.o
cursynth_gui.cpp:21:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
         ^
1 error generated.
make[1]: *** [cursynth-cursynth_gui.o] Error 1
make: *** [install-recursive] Error 1

BTW: You should definitely start tagging and releasing the software. (https://github.com/blog/1547-release-your-software)

@adius
Copy link
Author

adius commented Mar 30, 2014

Actually $ autoreconf -i wasn't working during the installation as well…

@mtytel
Copy link
Owner

mtytel commented Mar 30, 2014

Looks like you need to install gettext to get the libintl.h header files. At one point I did have gettext installed and it still couldn't find that header file on Mac, so let me know if it still doesn't work.

Right now I'm using ftp://ftp.gnu.org/gnu/cursynth for releases. I realized I didn't have a reference to it though so I put one in the README. I might make mirrored version on github in the future.

@mtytel
Copy link
Owner

mtytel commented Apr 5, 2014

Any luck with that libintl.h header file?

@adius
Copy link
Author

adius commented Apr 9, 2014

I think that's the problem:

$ brew reinstall gettext
==> Reinstalling gettext
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gettext-0.18.3.2.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gettext-0.18.3.2.mavericks.bottle.tar.gz
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

OS X provides the BSD gettext library and some software gets confused if both are in the library path.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/gettext/lib
    CPPFLAGS: -I/usr/local/opt/gettext/include

==> Summary
🍺  /usr/local/Cellar/gettext/0.18.3.2: 1835 files, 19M

Any idea how to fix this?

@mtytel
Copy link
Owner

mtytel commented Apr 14, 2014

Well, since this is a common problem on OSX so I put that include (-I/usr/local/opt/gettext/include) in the Makefile.am.
I'm going to send out a new release today, but here it is and it should build:
ftp://ftp.gnu.org/gnu/cursynth/cursynth-1.5.tar.gz

Let me know if it works :)

@adius
Copy link
Author

adius commented Apr 25, 2014

Still doesn't work =(

$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in cJSON
  CC       cJSON.o
  AR       libcJSON.a
Making all in rtaudio
  CXX      RtAudio.o
  AR       librtaudio.a
Making all in rtmidi
  CXX      RtMidi.o
  AR       librtmidi.a
Making all in mopo
Making all in src
  CXX      delay.o
  CXX      envelope.o
  CXX      feedback.o
  CXX      filter.o
  CXX      linear_slope.o
  CXX      midi_lookup.o
  CXX      mono_panner.o
  CXX      operators.o
  CXX      oscillator.o
  CXX      processor.o
  CXX      processor_router.o
  CXX      send_receive.o
  CXX      smooth_filter.o
  CXX      smooth_value.o
  CXX      step_generator.o
  CXX      trigger_operators.o
  CXX      value.o
  CXX      voice_handler.o
  CXX      wave.o
  AR       libmopo.a
make[3]: Nothing to be done for `all-am'.
Making all in src
  CXX      cursynth-main.o
  CXX      cursynth-cursynth.o
  CXX      cursynth-cursynth_engine.o
  CXX      cursynth-cursynth_gui.o
  CXX      cursynth-cursynth_strings.o
  CXXLD    cursynth
Undefined symbols for architecture x86_64:
  "_libintl_bindtextdomain", referenced from:
      mopo::CursynthGui::start() in cursynth-cursynth_gui.o
  "_libintl_gettext", referenced from:
      mopo::CursynthGui::drawHelp() in cursynth-cursynth_gui.o
      mopo::CursynthGui::drawModulationMatrix() in cursynth-cursynth_gui.o
      mopo::CursynthGui::drawMidi(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in cursynth-cursynth_gui.o
      mopo::CursynthGui::drawStatus(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in cursynth-cursynth_gui.o
      mopo::CursynthGui::drawPatchSaving(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in cursynth-cursynth_gui.o
      mopo::CursynthGui::drawPatchLoading(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, int) in cursynth-cursynth_gui.o
      mopo::CursynthGui::drawText(mopo::DisplayDetails const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool) in cursynth-cursynth_gui.o
      ...
  "_libintl_setlocale", referenced from:
      mopo::CursynthGui::start() in cursynth-cursynth_gui.o
  "_libintl_textdomain", referenced from:
      mopo::CursynthGui::start() in cursynth-cursynth_gui.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [cursynth] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@mx4492
Copy link

mx4492 commented Sep 14, 2014

The following worked for me

$ brew reinstall --universal --with-examples gettext
$ brew link --force gettext
$ autoreconf --force -i && ./configure && make clean &&  make
$  brew unlink gettext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants