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 on macOS Sierra 10.12.3 #37

Open
ryanthara opened this issue Jan 28, 2017 · 10 comments
Open

Can't install on macOS Sierra 10.12.3 #37

ryanthara opened this issue Jan 28, 2017 · 10 comments

Comments

@ryanthara
Copy link

ryanthara commented Jan 28, 2017

Good morning guys

I run into an error here on macOS Sierra which I can't solve at the moment. I use the installer on a MBP mid 2012 with Intel graphics.

`Dan Monaghan's VSFM and PMVS installer for OS X

About to check to see if you have the Brew Package Manager
Great, you've got brew... Continuing
wget is already installed, OK
About to install xcode select
Hit Enter after it's installed
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Checking we have the right version of XQuartz

<string>2.7.8</string>

xquartz_version_result=0
Your version of XQuartz is 2.7.8 - perfect.

Ok, now you have to should have either...

  1. Already had the correct version of XQuartz, so I'm continuing...

  2. Had to have installed XQuartz and just logged out and back in...

Ready to continue the next installation of VSFM & PMVS (press ENTER)

Installing Brew packages... this can take quite a long time
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
wandio

Warning: jpeg-8d already installed
Warning: gdk-pixbuf-2.36.2 already installed
Warning: cairo-1.14.8 already installed
Warning: freetype-2.7.1 already installed
Warning: Already linked: /usr/local/Cellar/freetype/2.7.1
To relink: brew unlink freetype && brew link freetype
Warning: pango-1.40.3 already installed
Warning: Already linked: /usr/local/Cellar/pixman/0.34.0
To relink: brew unlink pixman && brew link pixman
Warning: Already linked: /usr/local/Cellar/fontconfig/2.12.1_2
To relink: brew unlink fontconfig && brew link fontconfig
######################################################################## 100,0%
Error: gtk+-2.24.31_1 already installed
To install this version, first brew unlink gtk+
Warning: glew-2.0.0 already installed
Warning: gsl-2.3 already installed
Warning: boost-1.63.0 already installed
Warning: intltool-0.51.0 already installed
Warning: cmake-3.7.2 already installed
Warning: [email protected]_1 already installed
Warning: devil-1.8.0 already installed
Warning: pkg-config-0.29.1_2 already installed
Zip file is present, so just unzipping, removing old dir to install so we don't have any conflicts
Archive: VisualSFM_osx_64bit.zip
creating: vsfm/
creating: vsfm/bin/
creating: vsfm/build/
creating: vsfm/lib/
inflating: vsfm/lib/blas.a
inflating: vsfm/lib/lapack.a
inflating: vsfm/lib/libf2c.a
inflating: vsfm/lib/libjpeg.a
inflating: vsfm/lib/VisualSFM.a
inflating: vsfm/makefile
inflating: vsfm/README
Changing VSFM GCC to Brews gcc-4.9
Changing /usr/x11/lib to OS X default /opt/x11/lib
About to make...
mkdir -p build
mkdir -p bin
cd build; ar -x ../lib/VisualSFM.a; cd ..;
g++-4.9 -w -o bin/VisualSFM build/. -L/usr/local/lib -L/opt/X11/lib -pthread -lGL -lGLU -lX11 -ldl -L/usr/local/Cellar/gtk+/2.24.31_1/lib -L/usr/local/Cellar/pango/1.40.3/lib -L/usr/local/Cellar/atk/2.22.0/lib -L/usr/local/Cellar/cairo/1.14.8/lib -L/usr/local/Cellar/gdk-pixbuf/2.36.2/lib -L/usr/local/Cellar/glib/2.50.2/lib -L/usr/local/opt/gettext/lib -lgtk-quartz-2.0 -lgdk-quartz-2.0 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl lib/lapack.a lib/blas.a lib/libf2c.a lib/libjpeg.a
Undefined symbols for architecture x86_64:
"_gdk_x11_drawable_get_xdisplay", referenced from:
RegisterWin::CreatePaintWnd() in RegisterGUI.o
"_gdk_x11_drawable_get_xid", referenced from:
RegisterWin::CreatePaintWnd() in RegisterGUI.o
"_gdk_x11_window_get_drawable_impl", referenced from:
RegisterWin::CreatePaintWnd() in RegisterGUI.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [VisualSFM] Error 1
VSFM application failed to build, halting.`

Any idea to solve this?

@ryanthara
Copy link
Author

I try do to a next round. Complete purge of home-brew with script and reinstall visualSFM.

A first error occurs here:
Installing Brew packages... this can take quite a long time ==> Downloading https://homebrew.bintray.com/bottles/jpeg-8d.sierra.bottle.2.tar ######################################################################## 100,0% ==> Pouring jpeg-8d.sierra.bottle.2.tar.gz 🍺 /usr/local/Cellar/jpeg/8d: 19 files, 708.3K ==> Installing dependencies for gdk-pixbuf: pkg-config, gettext, libffi, pcre, glib, libtiff, libpng, freetype, fontconfig, pixman, cairo, gobject-introspection, shared-mime-info ==> Installing gdk-pixbuf dependency: pkg-config ==> Using the sandbox Error: Invalid value for --cc: llvm-gcc

The second one here later on:

==> Installing wget ==> Downloading https://homebrew.bintray.com/bottles/wget-1.18.sierra.bottle.tar ######################################################################## 100,0% ==> Pouring wget-1.18.sierra.bottle.tar.gz 🍺 /usr/local/Cellar/wget/1.18: 9 files, 1.6M About to install xcode select Hit Enter after it's installed xcode-select: error: command line tools are already installed, use "Software Update" to install updates

Or is this not an error message?

And further on:

Archive: VisualSFM_osx_64bit.zip creating: vsfm/ creating: vsfm/bin/ creating: vsfm/build/ creating: vsfm/lib/ inflating: vsfm/lib/blas.a inflating: vsfm/lib/lapack.a inflating: vsfm/lib/libf2c.a inflating: vsfm/lib/libjpeg.a inflating: vsfm/lib/VisualSFM.a inflating: vsfm/makefile inflating: vsfm/README Changing VSFM GCC to Brews gcc-4.9 Changing /usr/x11/lib to OS X default /opt/x11/lib About to make... mkdir -p build mkdir -p bin cd build; ar -x ../lib/VisualSFM.a; cd ..; Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
g++-4.9 -w -o bin/VisualSFM build/. -L/usr/local/lib -L/opt/X11/lib -pthread -lGL -lGLU -lX11 -ldl lib/lapack.a lib/blas.a lib/libf2c.a lib/libjpeg.a
Undefined symbols for architecture x86_64:`

End of mission for me...

@endersaka
Copy link

I tried to see gdk symbols with nm and there is no symbol containing "x11" string.

nm /usr/local/Cellar/gtk+/2.24.31_1/lib/libgdk-quartz-2.0.0.dylib | grep -i -e "x11"

@endersaka
Copy link

Actually I can't find the functions in the headers too! But I did not find any informations about their deprecation or removal from the API. Where are defined those symbols?

@endersaka
Copy link

Ok, I made further investigation. In the directories where brew installs gtk+, I found no x11 directory, which should contain the gdkx.h header, where the function gdk_x11_drawable_get_xdisplay() is defined (visit https://git.gnome.org/browse/gtk+/tree/gdk/x11/gdkx.h?h=gtk-2-24).

@svcninja
Copy link

+1

@Nolan-Moore
Copy link

I'm trying to instal Visual SFM on my mac running OSX version 10.12.3. After running the installer in the terminal I get the message

"VSFM application failed to build, halting."

In the instructions it says all the files should be in the bin folder but the bin folder is empty. I'm not sure if that has anything to do with it. I'd really appreciate it if someone could help me sort this out. Thanks for reading over this!

@kurb70
Copy link

kurb70 commented May 27, 2017

Unfortunatly I'm facing the same problems herr on mit macOS, resulting also in "VSFM application failed to build, halting". Any tipps and help appreciated.

@ftlili
Copy link

ftlili commented Jun 6, 2017

Did anyone successfully download and install visualSFM on macOS sierra?
thank you

@DATAtelic
Copy link

Also halting.. Any solutions yet?

@Bugaja
Copy link

Bugaja commented Jul 14, 2018

Same issue. Has anyone resolved this?

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

8 participants