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

Undefined symbols for architecture x86_64: #30

Open
hookmar opened this issue Feb 20, 2016 · 36 comments
Open

Undefined symbols for architecture x86_64: #30

hookmar opened this issue Feb 20, 2016 · 36 comments

Comments

@hookmar
Copy link

hookmar commented Feb 20, 2016

Undefined symbols for architecture x86_64:
"_gdk_x11_drawable_get_xdisplay"

reverting to 99126a50c96b3c832d72f4531c116271f543eded does not solve issue

Entire script:
MacBook-Air:~ hookey$ /Users/hookey/Downloads/VisualSFM_OS_X_Installer-master/vsfm_os_x_installer.sh

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.6 - 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
Warning: jpeg-8d already installed
Warning: gdk-pixbuf-2.32.3 already installed
Warning: cairo-1.14.6_1 already installed
Warning: freetype-2.6.3 already installed
Warning: Already linked: /usr/local/Cellar/freetype/2.6.3
To relink: brew unlink freetype && brew link freetype
Warning: pango-1.38.1 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.11.1_2
To relink: brew unlink fontconfig && brew link fontconfig

################################################################## 100.0%

Error: gtk+-2.24.29 already installed
To install this version, first brew unlink gtk+
Warning: glew-1.13.0 already installed
Warning: gsl-1.16 already installed
Warning: boost-1.60.0_1 already installed
Warning: intltool-0.51.0 already installed
Warning: cmake-3.4.3 already installed
Warning: Tap homebrew/versions already tapped.
Warning: homebrew/versions/gcc49-4.9.3 already installed
Warning: devil-1.7.8_1 already installed
Warning: pkg-config-0.29 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.29/lib -L/usr/local/Cellar/pango/1.38.1/lib -L/usr/local/Cellar/atk/2.18.0_1/lib -L/usr/local/Cellar/cairo/1.14.6_1/lib -L/usr/local/Cellar/gdk-pixbuf/2.32.3/lib -L/usr/local/Cellar/glib/2.46.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.
MacBook-Air:~ hookey$ brew doctor
Your system is ready to brew.
MacBook-Air:~ hookey$

@piepieninja
Copy link

I am also experiencing this issue and looking into it.

@piepieninja
Copy link

I was able to make it past this step by following the warnings that were of the form:

To install this version, first brew unlink ...

For you this might just bebrew unlink gtk+

I also went into the vsfm directory and ran make clean

I then ran the install script again. It successfully installed vsfm, as noted by the output VSFM application built... moving on, but I still get an error:

mkdir -p ./bin/out_no_gpu
mkdir -p ./bin 
g++-4.9 -w -o bin/out_no_gpu/pba.o src/pba/pba.cpp -DPBA_NO_GPU -fPIC -L -L/usr/lib -L/usr/include/sys/ -L./bin -O2 -Wall -Wno-deprecated -pthread -march=core2 -mfpmath=sse -fpermissive -c 
g++-4.9 -w -o bin/out_no_gpu/ConfigBA.o src/pba/ConfigBA.cpp -DPBA_NO_GPU -fPIC -L -L/usr/lib -L/usr/include/sys/ -L./bin -O2 -Wall -Wno-deprecated -pthread -march=core2 -mfpmath=sse -fpermissive -c 
g++-4.9 -w -o bin/out_no_gpu/SparseBundleCPU.o src/pba/SparseBundleCPU.cpp -DPBA_NO_GPU -fPIC -L -L/usr/lib -L/usr/include/sys/ -L./bin -O2 -Wall -Wno-deprecated -pthread -march=core2 -mfpmath=sse -fpermissive -c 
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:19363:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:19385:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:42222:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:42233:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:42260:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:42275:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:42286:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:42456:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:42467:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:42494:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:42509:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:42520:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:44728:suffix or operands invalid for `movq'
/var/folders/0q/ggxmhxl9681b0qdy29xq58kw0000gn/T//ccEpctdR.s:44745:suffix or operands invalid for `movq'
make: *** [bin/out_no_gpu/SparseBundleCPU.o] Error 1
libpba.so failed to build, halting.

I have not been able to install the other portions.

@piepieninja
Copy link

So @hookmar, if you just follow the above steps you may be able to get just VisualSFM running. After I did those things I was able to go into the new vsfm/bin directory where I found an executable VisualSFM file. you can run this file with:

$ ./VisualSFM

That worked for me.

@j6k4m8
Copy link

j6k4m8 commented Apr 2, 2016

Ah interesting — this same issue is what I reported as a bug on the followup for #28. Turns out the 'failure' is a success, the executable runs nicely for me...

but it then fails on:

dyld: Symbol not found: _cairo_xlib_surface_create
  Referenced from: /usr/local/opt/gtk+/lib/libgdk-x11-2.0.0.dylib
  Expected in: /usr/local/opt/cairo/lib/libcairo.2.dylib

[1]    87992 trace trap  ./VisualSFM

when I try to run the executable.

@qq456cvb
Copy link

it's due to the 'cairo'. 'cairo' you installed does not have support for x11, so try 'brew reinstall --with-x11 cairo' may solve the error

@rasmi
Copy link

rasmi commented May 25, 2016

@qq456cvb's approach worked for me to get VisualSFM to compile (thanks!), but I still don't have SiftGPU working. I get stuck here:

g++ -o bin/libsiftgpu.so build/FrameBufferObject.o build/GlobalUtil.o build/GLTexImage.o build/ProgramGLSL.o build/ProgramGPU.o build/ShaderMan.o build/SiftGPU.o build/SiftPyramid.o build/PyramidGL.o build/SiftMatch.o -lGLEW -framework GLUT -framework OpenGL  -lIL -Iinclude -fPIC -L/usr/lib64 -L/usr/lib -L./bin -L./lib -Wall -Wno-deprecated -pthread -march=core2 -mfpmath=sse -L/opt/local/lib -L/usr/local/lib  -shared -fPIC
clang: warning: argument unused during compilation: '-pthread'
ld: warning: directory not found for option '-L/usr/lib64'
Undefined symbols for architecture x86_64:
  "_XCloseDisplay", referenced from:
      LiteWindow::~LiteWindow() in GlobalUtil.o
  "_XCreateColormap", referenced from:
      LiteWindow::Create(int, int, char const*) in GlobalUtil.o
  "_XCreateWindow", referenced from:
      LiteWindow::Create(int, int, char const*) in GlobalUtil.o
  "_XDestroyWindow", referenced from:
      LiteWindow::~LiteWindow() in GlobalUtil.o
  "_XFreeColormap", referenced from:
      LiteWindow::~LiteWindow() in GlobalUtil.o
  "_XOpenDisplay", referenced from:
      LiteWindow::Create(int, int, char const*) in GlobalUtil.o
  "_glXChooseVisual", referenced from:
      LiteWindow::Create(int, int, char const*) in GlobalUtil.o
  "_glXCreateContext", referenced from:
      LiteWindow::Create(int, int, char const*) in GlobalUtil.o
  "_glXDestroyContext", referenced from:
      LiteWindow::~LiteWindow() in GlobalUtil.o
  "_glXIsDirect", referenced from:
      LiteWindow::IsValid() in GlobalUtil.o
  "_glXMakeCurrent", referenced from:
      LiteWindow::MakeCurrent() in GlobalUtil.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: *** [siftgpu] Error 1

Some SO posts show adding -stdlib=libstdc++ to the linker will fix it, but I added it to the LDFLAGS in the makefile with no success. What ended up working for me was using the source from the repository here and following the instructions in the issue here. Hope that helps someone!

@qq456cvb
Copy link

@rasmi I encountered the same problems before, it may be that the OpenGL library (I think you linked the version that Apple supplies) you linked is not fully compatible with siftGPU, link the (libGL/libglut) in your X11 directory which is a slight different from the default library (it's in /opt/X11/lib).

@rasmi
Copy link

rasmi commented May 25, 2016

@qq456cvb I ended up using a different approach (see edited comment), but that makes sense. Thanks for the help!

@rxcited
Copy link

rxcited commented Jan 18, 2017

I am having a similar issue as the OP. This is a Mac Pro Late 2013. I am running the latest OS Sierra 10.12.2. When running the installer script, I see many things are newer. By following some of the error discussions in many different places, I have gotten pretty far along. But so far, I am missing these objects and cannot seem to get past this. Here is my current output when I make in the build directory:

$ 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/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

Any ideas?

-- James

@rasmi
Copy link

rasmi commented Jan 19, 2017

@rxcited Hi James, did you try running brew reinstall --with-x11 cairo and then re-compiling as @qq456cvb mentioned above?

@rxcited
Copy link

rxcited commented Jan 19, 2017

No I had not tried that. The brew reinstall went fine. But trying to run the vsfm installer script again resulted in the same errors. Is this a problem with the "already installed" version of gtk+?

$ sh vsfm_os_x_installer.sh 

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).
==> New Formulae
cnats                                            mingw-w64-binutils                               opencoarrays                                     watchexec
==> Updated Formulae
afl-fuzz             aws-sdk-cpp          certbot              docker-machine-nfs   flow                 gtk+3                htmlcleaner          lighttpd             vim
arping               awscli               docker-compose       eiffelstudio         gitup                h2o                  libxc                swaks                youtube-dl

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 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/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.

@rasmi
Copy link

rasmi commented Jan 19, 2017

@rxcited Yes, try brew unlink gtk+, then make clean, and try compiling again.

@rxcited
Copy link

rxcited commented Jan 20, 2017

That worked! Got it going. Ran into problems with it not finding libsiftgpu.so. I modified the LD_LIBRARY_PATH in my environment to include the bin subdirectories for vsfm, pba, and SiftGPU (not sure why lib files are not in the lib subdirectories...) and then I was able to get past that error.

I did a quick reconstruction (dense 3D points) of my office from a handful of pics. Now looking for how to mesh. Not finding any Mac options through the references in the documentation.

@qq456cvb
Copy link

@rxcited 'meshlab' has a macOS version which may help.

@rxcited
Copy link

rxcited commented Jan 20, 2017

Duh, that didn't sink in because it was not a link in the help. Thanks! I think am good to go.

@endersaka
Copy link

Hi guys, I have tried your work arounds but I was not able to fix it.

$ ./vsfm_os_x_installer.sh

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
Checking we have the right version of XQuartz

Found package org.macosforge.xquartz.pkg
Check version
Your version of XQuartx is 2.7.112 that is ok!

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
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
Warning: gtk+-2.24.31_1 already installed
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] 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.8
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.8 -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.3/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.

@rasmi
Copy link

rasmi commented Feb 22, 2017

@endersaka -- can you try brew unlink gtk+ and then make clean and try compiling again? If you tried that and it doesn't work, try brew uninstall gtk+ and then make clean and try compiling that.

@endersaka
Copy link

@rasmi, sorry. I missed the updated installer. Now it works and thanks for your help, very useful.

@rotgrau
Copy link

rotgrau commented Dec 1, 2017

@rxcited -- how exactly did you do that: _

"I modified the LD_LIBRARY_PATH in my environment to include the bin subdirectories for vsfm, pba, and SiftGPU"

_
I´m only a beginner so I guess it´s easy, I just don´t have clue where/how to "modify" things.

It still looks like this:

VSFM application built... moving on
LIB_SIFT_GPU is present, skipping download and unzip. removing old dir to install so we don't have any conflicts
Archive:  sift_gpu.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of sift_gpu.zip or
        sift_gpu.zip.zip, and cannot find sift_gpu.zip.ZIP, period.
vsfm_os_x_installer.sh: line 261: cd: SiftGPU-master: No such file or directory
Disable Cuda Flags
sed: makefile: No such file or directory
Changing march from native core2 in makefile
sed: makefile: No such file or directory
Changing to prefer GLUT
sed: makefile: No such file or directory
Removing -L/opt/local/lib from makefile
sed: makefile: No such file or directory
Changing /usr/x11/lib to OS X default /opt/x11/lib
sed: makefile: No such file or directory
Disable TestWin build for this OS X build
sed: makefile: No such file or directory
make: *** No rule to make target `siftgpu'.  Stop.
libsiftgpu.so failed to build.  Halting.

@rxcited
Copy link

rxcited commented Dec 1, 2017 via email

@fanfancoll
Copy link

On 4 May 2018, --with-x11 option was removed from cairo.rb.

So before brew install --with-x11 cairo, the cairo.rb from /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cairo.rb should be changed back to the previous version, see https://github.com/Homebrew/homebrew-core/commit/6c0eb26cabe7ba57f3a54cea268293310ea74dd3#diff-fc0bebeccf19d64035e754186795be64

@rxcited
Copy link

rxcited commented May 21, 2018 via email

@fanfancoll
Copy link

@rxcited Ok, I'll give it a try. Compile this is really annoying, but I managed to make it work with help of advices from you and other people in this repo. Thanks a lot!

@Bugaja
Copy link

Bugaja commented Jul 14, 2018

Hi Guys,

I'm having similar problems as OP, although it look like my compiling has gotten pretty messy. Any obvious fixes stick out to you guys here? I've tried implementing: brew unlink gtk+ and then make clean & brew uninstall gtk+ and then make clean and try compiling that, but continuing to get stuck...

`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
Warning: jpeg 9c is already installed and up-to-date
To reinstall 9c, run brew reinstall jpeg
Warning: gdk-pixbuf 2.36.12 is already installed and up-to-date
To reinstall 2.36.12, run brew reinstall gdk-pixbuf
Warning: cairo 1.14.12 is already installed and up-to-date
To reinstall 1.14.12, run brew reinstall cairo
Warning: freetype 2.9.1 is already installed and up-to-date
To reinstall 2.9.1, run brew reinstall freetype
Warning: Already linked: /usr/local/Cellar/freetype/2.9.1
To relink: brew unlink freetype && brew link freetype
Warning: pango 1.42.1 is already installed and up-to-date
To reinstall 1.42.1, run brew reinstall pango
Warning: Already linked: /usr/local/Cellar/pixman/0.34.0_1
To relink: brew unlink pixman && brew link pixman
Warning: Already linked: /usr/local/Cellar/fontconfig/2.13.0
To relink: brew unlink fontconfig && brew link fontconfig
######################################################################## 100.0%
Warning: gtk+ 2.24.32_2 is available and more recent than version 2.24.28.
==> Downloading https://download.gnome.org/sources/gtk+/2.24/gtk+-2.24.28.tar.xz
Already downloaded: /Users/Aaron/Library/Caches/Homebrew/gtk+-2.24.28.tar.xz
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/gtk+/2.24.28 -
==> make install
Last 15 lines from /Users/Aaron/Library/Logs/Homebrew/gtk+/02.make:
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN="Gdk" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -DDISABLE_VISIBILITY -D_REENTRANT -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/glib/2.56.1/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.56.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.56.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.34/include/libpng16 -I/usr/local/Cellar/gdk-pixbuf/2.36.12/include/gdk-pixbuf-2.0 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.13.0/include -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.12/include/cairo -I/usr/local/Cellar/fribidi/1.0.4/include/fribidi -I/usr/local/Cellar/graphite2/1.3.11/include -I/usr/local/Cellar/harfbuzz/1.8.3/include/harfbuzz -I/usr/local/Cellar/pango/1.42.1/include/pango-1.0 -I/opt/X11/include -I/opt/X11/include/cairo -I/opt/X11/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/X11/include -g -O2 -Wall -c gdkapplaunchcontext-x11.c -fno-common -DPIC -o .libs/gdkapplaunchcontext-x11.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN="Gdk" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -DDISABLE_VISIBILITY -D_REENTRANT -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/glib/2.56.1/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.56.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.56.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.34/include/libpng16 -I/usr/local/Cellar/gdk-pixbuf/2.36.12/include/gdk-pixbuf-2.0 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.13.0/include -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.12/include/cairo -I/usr/local/Cellar/fribidi/1.0.4/include/fribidi -I/usr/local/Cellar/graphite2/1.3.11/include -I/usr/local/Cellar/harfbuzz/1.8.3/include/harfbuzz -I/usr/local/Cellar/pango/1.42.1/include/pango-1.0 -I/opt/X11/include -I/opt/X11/include/cairo -I/opt/X11/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/X11/include -g -O2 -Wall -c gdkdisplay-x11.c -fno-common -DPIC -o .libs/gdkdisplay-x11.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN="Gdk" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -DDISABLE_VISIBILITY -D_REENTRANT -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/glib/2.56.1/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.56.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.56.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.34/include/libpng16 -I/usr/local/Cellar/gdk-pixbuf/2.36.12/include/gdk-pixbuf-2.0 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.13.0/include -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.12/include/cairo -I/usr/local/Cellar/fribidi/1.0.4/include/fribidi -I/usr/local/Cellar/graphite2/1.3.11/include -I/usr/local/Cellar/harfbuzz/1.8.3/include/harfbuzz -I/usr/local/Cellar/pango/1.42.1/include/pango-1.0 -I/opt/X11/include -I/opt/X11/include/cairo -I/opt/X11/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/X11/include -g -O2 -Wall -c gdkcursor-x11.c -fno-common -DPIC -o .libs/gdkcursor-x11.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN="Gdk" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -DDISABLE_VISIBILITY -D_REENTRANT -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/glib/2.56.1/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.56.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.56.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.34/include/libpng16 -I/usr/local/Cellar/gdk-pixbuf/2.36.12/include/gdk-pixbuf-2.0 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.13.0/include -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.12/include/cairo -I/usr/local/Cellar/fribidi/1.0.4/include/fribidi -I/usr/local/Cellar/graphite2/1.3.11/include -I/usr/local/Cellar/harfbuzz/1.8.3/include/harfbuzz -I/usr/local/Cellar/pango/1.42.1/include/pango-1.0 -I/opt/X11/include -I/opt/X11/include/cairo -I/opt/X11/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/X11/include -g -O2 -Wall -c gdkevents-x11.c -fno-common -DPIC -o .libs/gdkevents-x11.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN="Gdk" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -DDISABLE_VISIBILITY -D_REENTRANT -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/glib/2.56.1/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.56.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.56.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.34/include/libpng16 -I/usr/local/Cellar/gdk-pixbuf/2.36.12/include/gdk-pixbuf-2.0 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.13.0/include -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.12/include/cairo -I/usr/local/Cellar/fribidi/1.0.4/include/fribidi -I/usr/local/Cellar/graphite2/1.3.11/include -I/usr/local/Cellar/harfbuzz/1.8.3/include/harfbuzz -I/usr/local/Cellar/pango/1.42.1/include/pango-1.0 -I/opt/X11/include -I/opt/X11/include/cairo -I/opt/X11/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/X11/include -g -O2 -Wall -c gdkdrawable-x11.c -fno-common -DPIC -o .libs/gdkdrawable-x11.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN="Gdk" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -DDISABLE_VISIBILITY -D_REENTRANT -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/glib/2.56.1/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.56.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.56.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.34/include/libpng16 -I/usr/local/Cellar/gdk-pixbuf/2.36.12/include/gdk-pixbuf-2.0 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.13.0/include -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.12/include/cairo -I/usr/local/Cellar/fribidi/1.0.4/include/fribidi -I/usr/local/Cellar/graphite2/1.3.11/include -I/usr/local/Cellar/harfbuzz/1.8.3/include/harfbuzz -I/usr/local/Cellar/pango/1.42.1/include/pango-1.0 -I/opt/X11/include -I/opt/X11/include/cairo -I/opt/X11/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/X11/include -g -O2 -Wall -c gdkdnd-x11.c -fno-common -DPIC -o .libs/gdkdnd-x11.o
gdkdrawable-x11.c:32:10: fatal error: 'cairo-xlib.h' file not found
#include <cairo-xlib.h>
^~~~~~~~~~~~~~
1 error generated.
make[3]: *** [gdkdrawable-x11.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [install-recursive] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
gtk-mac-integration: Add support for --HEAD Homebrew/homebrew-core#29979
gst-plugins-good: Fixes --with-gtk+3 option. Homebrew/homebrew-core#29917

Error: You have MacPorts or Fink installed:
/opt/local/bin/port

This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.

sudo mv /opt/local ~/macports
Warning: glew 2.1.0 is already installed and up-to-date
To reinstall 2.1.0, run brew reinstall glew
Warning: gsl 2.5 is already installed and up-to-date
To reinstall 2.5, run brew reinstall gsl
Warning: boost 1.67.0_1 is already installed and up-to-date
To reinstall 1.67.0_1, run brew reinstall boost
Warning: intltool 0.51.0 is already installed and up-to-date
To reinstall 0.51.0, run brew reinstall intltool
Warning: cmake 3.11.4 is already installed and up-to-date
To reinstall 3.11.4, run brew reinstall cmake
Error: homebrew/versions was deprecated. This tap is now empty as all its formulae were migrated.
Warning: [email protected] 4.9.4_1 is already installed and up-to-date
To reinstall 4.9.4_1, run brew reinstall [email protected]
Warning: devil 1.8.0_1 is already installed and up-to-date
To reinstall 1.8.0_1, run brew reinstall devil
Warning: pkg-config 0.29.2 is already installed and up-to-date
To reinstall 0.29.2, run brew reinstall pkg-config
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 ..;
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: "_g_cclosure_new", referenced from: RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_g_free", referenced from: RegisterWin::__FileChooserPreview(_GtkFileChooser*, void*) in RegisterGUI.o RegisterWin::__ComboBoxChanged(_GtkComboBox*, void*) in RegisterGUI.o RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_g_list_free", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_g_object_get", referenced from: RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::__HandleMenuEvent(_GtkAction*, void*) in RegisterGUI.o "_g_object_get_data", referenced from: RegisterWin::UpdateCommandUI() in RegisterGUI.o RegisterWin::__HandleMenuEvent(_GtkAction*, void*) in RegisterGUI.o RegisterWin::__HandleToolButtonEvent(_GtkWidget*, RegisterWin*) in RegisterGUI.o "_g_object_new", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_g_object_ref", referenced from: RegisterWin::NotifyInterfaceUpdate() in RegisterGUI.o RegisterWin::TaskThreadProc(unsigned int) in RegisterGUI.o RegisterWin::ListenThreadProc(RegisterWin*) in RegisterGUI.o RegisterWin::LoadNVMatchEXT(char const*) in RegisterGUI.o RegisterWin::HandleCommandTextNV(char const*) in RegisterGUI.o RegisterWin::HandleCommandText() in RegisterGUI.o RegisterWin::HandleCommandMisc(unsigned int) in RegisterGUI.o ... "_g_object_set", referenced from: RegisterWin::CreateInstance() in RegisterGUI.o "_g_object_set_data", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o RegisterWin::PrepareWindow() in RegisterGUI.o "_g_object_set_property", referenced from: RegisterWin::__HandleCommandBoxEvent(_GtkWidget*, _GdkEvent*, RegisterWin*) in RegisterGUI.o "_g_object_unref", referenced from: GlobalUtil::SetBitmapToClipboard(BitmapRGBI&) in GlobalUtil.o RegisterWin::__FileChooserPreview(_GtkFileChooser*, void*) in RegisterGUI.o RegisterWin::LoadToolbarImage(std::vector<int, std::allocator<int> >&) in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_g_signal_connect_data", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::CreateToolBar() in RegisterGUI.o RegisterWin::PrepareWindow() in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_g_signal_handlers_block_matched", referenced from: RegisterWin::UpdateCommandUI() in RegisterGUI.o "_g_signal_handlers_unblock_matched", referenced from: RegisterWin::UpdateCommandUI() in RegisterGUI.o "_g_signal_lookup", referenced from: RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_g_signal_override_class_closure", referenced from: RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_g_slist_free", referenced from: RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_g_slist_length", referenced from: RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_g_slist_nth_data", referenced from: RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_g_thread_init", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_g_type_check_instance_cast", referenced from: GlobalTasks::GlobalFlushTaskMsg(int) in GlobalTasks.o GlobalTasks::SendStringToGUI(char const*, bool) in GlobalTasks.o GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o GlobalUtil::SetBitmapToClipboard(BitmapRGBI&) in GlobalUtil.o RegisterWin::__FileChooserPreview(_GtkFileChooser*, void*) in RegisterGUI.o RegisterWin::__ComboBoxChanged(_GtkComboBox*, void*) in RegisterGUI.o ... "_g_type_check_instance_is_a", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_g_type_class_ref", referenced from: RegisterWin::CreateInstance() in RegisterGUI.o "_g_type_class_unref", referenced from: RegisterWin::CreateInstance() in RegisterGUI.o "_gdk_cursor_new", referenced from: GlPaintWin::ChangeCursor(int, int) in glwin.o "_gdk_event_free", referenced from: RegisterWin::NotifyInterfaceUpdate() in RegisterGUI.o RegisterWin::TaskThreadProc(unsigned int) in RegisterGUI.o RegisterWin::ListenThreadProc(RegisterWin*) in RegisterGUI.o RegisterWin::LoadNVMatchEXT(char const*) in RegisterGUI.o RegisterWin::HandleCommandTextNV(char const*) in RegisterGUI.o RegisterWin::HandleCommandText() in RegisterGUI.o RegisterWin::HandleCommandMisc(unsigned int) in RegisterGUI.o ... "_gdk_event_new", referenced from: RegisterWin::NotifyInterfaceUpdate() in RegisterGUI.o RegisterWin::TaskThreadProc(unsigned int) in RegisterGUI.o RegisterWin::ListenThreadProc(RegisterWin*) in RegisterGUI.o RegisterWin::LoadNVMatchEXT(char const*) in RegisterGUI.o RegisterWin::HandleCommandTextNV(char const*) in RegisterGUI.o RegisterWin::HandleCommandText() in RegisterGUI.o RegisterWin::HandleCommandMisc(unsigned int) in RegisterGUI.o ... "_gdk_event_put", referenced from: RegisterWin::NotifyInterfaceUpdate() in RegisterGUI.o RegisterWin::TaskThreadProc(unsigned int) in RegisterGUI.o RegisterWin::ListenThreadProc(RegisterWin*) in RegisterGUI.o RegisterWin::LoadNVMatchEXT(char const*) in RegisterGUI.o RegisterWin::HandleCommandTextNV(char const*) in RegisterGUI.o RegisterWin::HandleCommandText() in RegisterGUI.o RegisterWin::HandleCommandMisc(unsigned int) in RegisterGUI.o ... "_gdk_get_default_root_window", referenced from: GlPaintWin::ChangeCursor(int, int) in glwin.o "_gdk_pixbuf_add_alpha", referenced from: RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::LoadToolbarImage(std::vector<int, std::allocator<int> >&) in RegisterGUI.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gdk_pixbuf_new_from_data", referenced from: GlobalUtil::SetBitmapToClipboard(BitmapRGBI&) in GlobalUtil.o "_gdk_pixbuf_new_from_file_at_size", referenced from: RegisterWin::__FileChooserPreview(_GtkFileChooser*, void*) in RegisterGUI.o "_gdk_pixbuf_new_from_xpm_data", referenced from: RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::LoadToolbarImage(std::vector<int, std::allocator<int> >&) in RegisterGUI.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gdk_pixbuf_unref", referenced from: RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::LoadToolbarImage(std::vector<int, std::allocator<int> >&) in RegisterGUI.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gdk_screen_get_height", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o "_gdk_screen_get_width", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o "_gdk_threads_enter", referenced from: GlobalTasks::GlobalFlushTaskMsg(int) in GlobalTasks.o GlobalTasks::SendStringToGUI(char const*, bool) in GlobalTasks.o RegisterWin::SetStatusbarMSG(char const*, int) in RegisterGUI.o RegisterWin::TaskThreadProc(unsigned int) in RegisterGUI.o RegisterWin::ListenThreadProc(RegisterWin*) in RegisterGUI.o _main in register.o "_gdk_threads_init", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gdk_threads_leave", referenced from: GlobalTasks::GlobalFlushTaskMsg(int) in GlobalTasks.o GlobalTasks::SendStringToGUI(char const*, bool) in GlobalTasks.o RegisterWin::SetStatusbarMSG(char const*, int) in RegisterGUI.o RegisterWin::TaskThreadProc(unsigned int) in RegisterGUI.o RegisterWin::ListenThreadProc(RegisterWin*) in RegisterGUI.o _main in register.o "_gdk_window_add_filter", referenced from: RegisterWin::CreatePaintWnd() in RegisterGUI.o "_gdk_window_destroy", referenced from: RegisterWin::~RegisterWin() in RegisterGUI.o "_gdk_window_foreign_new", referenced from: RegisterWin::CreatePaintWnd() in RegisterGUI.o "_gdk_window_get_frame_extents", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gdk_window_move_resize", referenced from: RegisterWin::__HandlePaintWidgetEvent(_GtkWidget*, _GdkEvent*, RegisterWin*) in RegisterGUI.o "_gdk_window_set_cursor", referenced from: GlPaintWin::ChangeCursor(int, int) in glwin.o "_gdk_window_set_functions", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gdk_window_show", referenced from: RegisterWin::PrepareWindow() in RegisterGUI.o "_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 "_gtk_action_group_add_actions", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_action_group_add_toggle_actions", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_action_group_get_action", referenced from: RegisterWin::UpdateCommandUI() in RegisterGUI.o "_gtk_action_group_new", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_adjustment_get_upper", referenced from: GlobalTasks::SendStringToGUI(char const*, bool) in GlobalTasks.o "_gtk_adjustment_set_value", referenced from: GlobalTasks::SendStringToGUI(char const*, bool) in GlobalTasks.o "_gtk_bin_get_child", referenced from: RegisterWin::__ComboBoxChanged(_GtkComboBox*, void*) in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_bin_get_type", referenced from: RegisterWin::__ComboBoxChanged(_GtkComboBox*, void*) in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_box_get_type", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::ShowCommandBox() in RegisterGUI.o RegisterWin::CreateToolBar() in RegisterGUI.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_box_pack_end", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_box_pack_start", referenced from: RegisterWin::ShowCommandBox() in RegisterGUI.o RegisterWin::CreateToolBar() in RegisterGUI.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_box_reorder_child", referenced from: RegisterWin::ShowCommandBox() in RegisterGUI.o "_gtk_cell_layout_get_type", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_cell_layout_pack_start", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_cell_layout_set_attributes", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_cell_renderer_text_new", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_clipboard_get", referenced from: GlobalUtil::SetBitmapToClipboard(BitmapRGBI&) in GlobalUtil.o "_gtk_clipboard_set_image", referenced from: GlobalUtil::SetBitmapToClipboard(BitmapRGBI&) in GlobalUtil.o "_gtk_clipboard_store", referenced from: GlobalUtil::SetBitmapToClipboard(BitmapRGBI&) in GlobalUtil.o "_gtk_combo_box_get_active_iter", referenced from: RegisterWin::__ComboBoxChanged(_GtkComboBox*, void*) in RegisterGUI.o "_gtk_combo_box_get_model", referenced from: RegisterWin::__ComboBoxChanged(_GtkComboBox*, void*) in RegisterGUI.o "_gtk_combo_box_get_type", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_container_add", referenced from: RegisterWin::PrepareWindow() in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_container_get_children", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_container_get_type", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::CreateToolBar() in RegisterGUI.o RegisterWin::PrepareWindow() in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_container_set_border_width", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::CreateToolBar() in RegisterGUI.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_container_set_focus_child", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_dialog_get_content_area", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_dialog_get_type", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_dialog_new", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_dialog_new_with_buttons", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_dialog_run", referenced from: RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_drawing_area_new", referenced from: RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_entry_get_text", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o RegisterWin::__HandleCommandBoxEvent(_GtkWidget*, _GdkEvent*, RegisterWin*) in RegisterGUI.o "_gtk_entry_get_type", referenced from: RegisterWin::__ComboBoxChanged(_GtkComboBox*, void*) in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o RegisterWin::__HandleCommandBoxEvent(_GtkWidget*, _GdkEvent*, RegisterWin*) in RegisterGUI.o "_gtk_entry_new", referenced from: RegisterWin::PrepareWindow() in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_entry_set_text", referenced from: RegisterWin::__ComboBoxChanged(_GtkComboBox*, void*) in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o RegisterWin::__HandleCommandBoxEvent(_GtkWidget*, _GdkEvent*, RegisterWin*) in RegisterGUI.o "_gtk_file_chooser_add_filter", referenced from: XFileOpen::SetPatternList(_GtkWidget*, char const*) in RegisterGUI.o "_gtk_file_chooser_dialog_new", referenced from: RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_gtk_file_chooser_get_filename", referenced from: RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o "_gtk_file_chooser_get_filenames", referenced from: RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_gtk_file_chooser_get_filter", referenced from: RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o "_gtk_file_chooser_get_preview_filename", referenced from: RegisterWin::__FileChooserPreview(_GtkFileChooser*, void*) in RegisterGUI.o "_gtk_file_chooser_get_type", referenced from: XFileOpen::SetPatternList(_GtkWidget*, char const*) in RegisterGUI.o RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_gtk_file_chooser_list_filters", referenced from: RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o "_gtk_file_chooser_set_do_overwrite_confirmation", referenced from: RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o "_gtk_file_chooser_set_preview_widget", referenced from: RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_gtk_file_chooser_set_preview_widget_active", referenced from: RegisterWin::__FileChooserPreview(_GtkFileChooser*, void*) in RegisterGUI.o "_gtk_file_chooser_set_select_multiple", referenced from: RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_gtk_file_filter_add_pattern", referenced from: XFileOpen::SetPatternList(_GtkWidget*, char const*) in RegisterGUI.o "_gtk_file_filter_new", referenced from: XFileOpen::SetPatternList(_GtkWidget*, char const*) in RegisterGUI.o "_gtk_file_filter_set_name", referenced from: XFileOpen::SetPatternList(_GtkWidget*, char const*) in RegisterGUI.o "_gtk_icon_factory_add", referenced from: RegisterWin::LoadToolbarImage(std::vector<int, std::allocator<int> >&) in RegisterGUI.o "_gtk_icon_factory_add_default", referenced from: RegisterWin::LoadToolbarImage(std::vector<int, std::allocator<int> >&) in RegisterGUI.o "_gtk_icon_factory_new", referenced from: RegisterWin::LoadToolbarImage(std::vector<int, std::allocator<int> >&) in RegisterGUI.o "_gtk_icon_set_new_from_pixbuf", referenced from: RegisterWin::LoadToolbarImage(std::vector<int, std::allocator<int> >&) in RegisterGUI.o "_gtk_icon_set_unref", referenced from: RegisterWin::LoadToolbarImage(std::vector<int, std::allocator<int> >&) in RegisterGUI.o "_gtk_image_get_type", referenced from: RegisterWin::__FileChooserPreview(_GtkFileChooser*, void*) in RegisterGUI.o "_gtk_image_menu_item_get_type", referenced from: RegisterWin::CreateInstance() in RegisterGUI.o "_gtk_image_new", referenced from: RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_gtk_image_new_from_pixbuf", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_image_set_from_pixbuf", referenced from: RegisterWin::__FileChooserPreview(_GtkFileChooser*, void*) in RegisterGUI.o "_gtk_init", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_label_get_type", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_label_set_line_wrap", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_list_store_append", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_list_store_new", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_list_store_set", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_main", referenced from: _main in register.o "_gtk_main_quit", referenced from: RegisterWin::__HandleMainEvent(_GtkWidget*, _GdkEvent*, RegisterWin*) in RegisterGUI.o RegisterWin::HandleCommandMisc(unsigned int) in RegisterGUI.o "_gtk_message_dialog_format_secondary_markup", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_message_dialog_get_type", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_message_dialog_new", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_message_dialog_set_image", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_message_dialog_set_markup", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_misc_get_type", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_misc_set_alignment", referenced from: RegisterWin::OnAbout() in RegisterGUI.o "_gtk_rc_parse_string", referenced from: RegisterWin::CreateInstance() in RegisterGUI.o "_gtk_recent_manager_get_default", referenced from: RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_gtk_recent_manager_get_type", referenced from: RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_gtk_scrolled_window_add_with_viewport", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_scrolled_window_get_type", referenced from: GlobalTasks::SendStringToGUI(char const*, bool) in GlobalTasks.o GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_scrolled_window_get_vadjustment", referenced from: GlobalTasks::SendStringToGUI(char const*, bool) in GlobalTasks.o "_gtk_scrolled_window_new", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_scrolled_window_set_policy", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_separator_tool_item_new", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_settings_get_default", referenced from: RegisterWin::CreateInstance() in RegisterGUI.o "_gtk_settings_set_string_property", referenced from: RegisterWin::CreateInstance() in RegisterGUI.o "_gtk_statusbar_get_type", referenced from: RegisterWin::SetStatusbarMSG(char const*, int) in RegisterGUI.o "_gtk_statusbar_new", referenced from: RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_statusbar_pop", referenced from: RegisterWin::SetStatusbarMSG(char const*, int) in RegisterGUI.o "_gtk_statusbar_push", referenced from: RegisterWin::SetStatusbarMSG(char const*, int) in RegisterGUI.o "_gtk_text_buffer_delete", referenced from: GlobalTasks::GlobalFlushTaskMsg(int) in GlobalTasks.o "_gtk_text_buffer_get_end_iter", referenced from: GlobalTasks::SendStringToGUI(char const*, bool) in GlobalTasks.o "_gtk_text_buffer_get_iter_at_line", referenced from: GlobalTasks::GlobalFlushTaskMsg(int) in GlobalTasks.o "_gtk_text_buffer_get_line_count", referenced from: GlobalTasks::GlobalFlushTaskMsg(int) in GlobalTasks.o "_gtk_text_buffer_get_start_iter", referenced from: GlobalTasks::GlobalFlushTaskMsg(int) in GlobalTasks.o "_gtk_text_buffer_get_type", referenced from: GlobalTasks::GlobalFlushTaskMsg(int) in GlobalTasks.o GlobalTasks::SendStringToGUI(char const*, bool) in GlobalTasks.o "_gtk_text_buffer_insert", referenced from: GlobalTasks::SendStringToGUI(char const*, bool) in GlobalTasks.o "_gtk_text_buffer_set_text", referenced from: GlobalTasks::GlobalFlushTaskMsg(int) in GlobalTasks.o "_gtk_text_view_get_buffer", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_text_view_get_type", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_text_view_new", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_text_view_set_editable", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_text_view_set_left_margin", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_text_view_set_right_margin", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_text_view_set_wrap_mode", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_toggle_action_get_active", referenced from: RegisterWin::UpdateCommandUI() in RegisterGUI.o "_gtk_toggle_action_get_type", referenced from: RegisterWin::UpdateCommandUI() in RegisterGUI.o "_gtk_toggle_action_set_active", referenced from: RegisterWin::UpdateCommandUI() in RegisterGUI.o "_gtk_toggle_tool_button_get_active", referenced from: RegisterWin::UpdateCommandUI() in RegisterGUI.o "_gtk_toggle_tool_button_get_type", referenced from: RegisterWin::UpdateCommandUI() in RegisterGUI.o "_gtk_toggle_tool_button_new_from_stock", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_toggle_tool_button_set_active", referenced from: RegisterWin::UpdateCommandUI() in RegisterGUI.o "_gtk_tool_item_set_expand", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_tool_item_set_tooltip_text", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_toolbar_get_type", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_toolbar_insert", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_toolbar_new", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_toolbar_set_style", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_tree_model_get", referenced from: RegisterWin::__ComboBoxChanged(_GtkComboBox*, void*) in RegisterGUI.o "_gtk_tree_model_get_type", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_ui_manager_add_ui_from_string", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_ui_manager_get_widget", referenced from: RegisterWin::HideSecretFeatures() in RegisterGUI.o RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_ui_manager_insert_action_group", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_ui_manager_new", referenced from: RegisterWin::CreateToolBar() in RegisterGUI.o "_gtk_vbox_new", referenced from: RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_widget_add_events", referenced from: RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_widget_destroy", referenced from: GlobalTasks::TerminateLogWindow() in GlobalTasks.o RegisterWin::HideSecretFeatures() in RegisterGUI.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::~RegisterWin() in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o ... "_gtk_widget_draw", referenced from: RegisterWin::SetStatusbarMSG(char const*, int) in RegisterGUI.o "_gtk_widget_get_parent", referenced from: RegisterWin::ShowCommandBox() in RegisterGUI.o "_gtk_widget_get_screen", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o "_gtk_widget_get_type", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::__FileChooserPreview(_GtkFileChooser*, void*) in RegisterGUI.o RegisterWin::SetStatusbarMSG(char const*, int) in RegisterGUI.o RegisterWin::CreatePaintWnd() in RegisterGUI.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::NotifyInterfaceUpdate() in RegisterGUI.o ... "_gtk_widget_get_visible", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o GlobalTasks::ShowLogWindow(int) in GlobalTasks.o RegisterWin::__HandleMainEvent(_GtkWidget*, _GdkEvent*, RegisterWin*) in RegisterGUI.o RegisterWin::_PaintWndProc(_XEvent*) in RegisterGUI.o "_gtk_widget_get_window", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::CreatePaintWnd() in RegisterGUI.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::NotifyInterfaceUpdate() in RegisterGUI.o RegisterWin::TaskThreadProc(unsigned int) in RegisterGUI.o RegisterWin::ListenThreadProc(RegisterWin*) in RegisterGUI.o ... "_gtk_widget_grab_focus", referenced from: RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_gtk_widget_hide", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o GlobalTasks::ShowLogWindow(int) in GlobalTasks.o RegisterWin::UpdateCommandUI() in RegisterGUI.o RegisterWin::__HandleCommandBoxEvent(_GtkWidget*, _GdkEvent*, RegisterWin*) in RegisterGUI.o "_gtk_widget_hide_on_delete", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o "_gtk_widget_realize", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_widget_set_can_focus", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::ShowCommandBox() in RegisterGUI.o "_gtk_widget_set_size_request", referenced from: RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_widget_show", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::UpdateCommandUI() in RegisterGUI.o RegisterWin::ShowCommandBox() in RegisterGUI.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_widget_show_all", referenced from: GlobalTasks::ShowLogWindow(int) in GlobalTasks.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_window_get_size", referenced from: RegisterWin::SetViewDimension(int, int) in RegisterGUI.o "_gtk_window_get_type", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::SetViewDimension(int, int) in RegisterGUI.o RegisterWin::ShowCommandBox() in RegisterGUI.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::GetSaveFile(char const*, char const*) in RegisterGUI.o RegisterWin::PaintViewUpdate(int) in RegisterGUI.o ... "_gtk_window_move", referenced from: GlobalTasks::MoveLogWindow(_GtkWidget*, int, bool) in GlobalTasks.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::GetTextInput(_GtkWidget*, char const*, char const*) in RegisterGUI.o "_gtk_window_new", referenced from: RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_window_resize", referenced from: RegisterWin::SetViewDimension(int, int) in RegisterGUI.o "_gtk_window_set_default_size", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_window_set_focus", referenced from: RegisterWin::ShowCommandBox() in RegisterGUI.o "_gtk_window_set_icon", referenced from: RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_window_set_keep_above", referenced from: RegisterWin::HandleCommandMisc(unsigned int) in RegisterGUI.o "_gtk_window_set_position", referenced from: RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_window_set_resizable", referenced from: RegisterWin::GetOpenFilePreview(char const*, char const*, int, int) in RegisterGUI.o "_gtk_window_set_title", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.o RegisterWin::OnAbout() in RegisterGUI.o RegisterWin::PaintViewUpdate(int) in RegisterGUI.o RegisterWin::PrepareWindow() in RegisterGUI.o "_gtk_window_set_type_hint", referenced from: GlobalTasks::InitLogWindow(char const*, int) in GlobalTasks.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.

@rasmi
Copy link

rasmi commented Jul 14, 2018

Hi @Bugaja, see @fanfancoll's comment above about the --with-x11 flag for installing cairo with brew. This will help you get cairo-xlib. Linuxbrew/legacy-linuxbrew#842

EDIT: The next-previois version of cario.rb can be found here: https://github.com/Homebrew/homebrew-core/blob/1fea60405bf98c6385dfba18c75a7fb667dc3a40/Formula/cairo.rb

@Bugaja
Copy link

Bugaja commented Jul 15, 2018

Hi @rasmi, I replaced the code of current version with previous cairo.rb version you just linked in the cairo.rb file. Still getting the same error. Per @fanfancoll 's post, we need that optional --with--x11 line in addition to others for brew install --with-x11 cairo to be effective in the above error.

Pardon my challenges here, I am very new to coding/ compiling... How does cairo-xlib factor into this?

@rasmi
Copy link

rasmi commented Jul 15, 2018

I'm judging by your install messages from above, going through one error at a time. The first of which is: fatal error: 'cairo-xlib.h' file not found while installing gtk+, which is leading to your second error. So if you can install cairo-xlib, that would take care of gtk+. Have you tried brew reinstall --with-x11 cairo after changing the cairo.rb file? The reinstall should uninstall the old version and reinstall it with cairo-xlib.

@Bugaja
Copy link

Bugaja commented Jul 15, 2018

That worked! Now I've graduated to the issue @rotgrau was having farther up:

VSFM application built... moving on
SiftGPU Zip not present, downloading...
--2018-07-14 18:57:19--  http://wwwx.cs.unc.edu/~ccwu/cgi-bin/siftgpu.cgi
Resolving wwwx.cs.unc.edu (wwwx.cs.unc.edu)... 152.2.128.56
Connecting to wwwx.cs.unc.edu (wwwx.cs.unc.edu)|152.2.128.56|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-07-14 18:57:19 ERROR 404: Not Found.

Archive:  sift_gpu.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of sift_gpu.zip or
        sift_gpu.zip.zip, and cannot find sift_gpu.zip.ZIP, period.
/Users/Aaron/Downloads/VisualSFM_OS_X_Installer-master/vsfm_os_x_installer.sh: line 261: cd: SiftGPU: No such file or directory
Disable Cuda Flags
sed: makefile: No such file or directory
Changing march from native core2 in makefile
sed: makefile: No such file or directory
Changing to prefer GLUT
sed: makefile: No such file or directory
Removing -L/opt/local/lib from makefile
sed: makefile: No such file or directory
Changing /usr/x11/lib to OS X default /opt/x11/lib
sed: makefile: No such file or directory
Disable TestWin build for this OS X build
sed: makefile: No such file or directory
make: *** No rule to make target `siftgpu'.  Stop.
libsiftgpu.so failed to build.  Halting.
Aarons-MacBook-Pro:~ Aaron$ 

Downloaded SiftGPU from Github, but failed to locate the zip on next try: @rxcited Did you ever help @rotgrau with this further?


VSFM application built... moving on
LIB_SIFT_GPU is present, skipping download and unzip. removing old dir to install so we don't have any conflicts
Archive:  sift_gpu.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of sift_gpu.zip or
        sift_gpu.zip.zip, and cannot find sift_gpu.zip.ZIP, period.
/Users/Aaron/Downloads/VisualSFM_OS_X_Installer-master/vsfm_os_x_installer.sh: line 261: cd: SiftGPU: No such file or directory
Disable Cuda Flags
sed: makefile: No such file or directory
Changing march from native core2 in makefile
sed: makefile: No such file or directory
Changing to prefer GLUT
sed: makefile: No such file or directory
Removing -L/opt/local/lib from makefile
sed: makefile: No such file or directory
Changing /usr/x11/lib to OS X default /opt/x11/lib
sed: makefile: No such file or directory
Disable TestWin build for this OS X build
sed: makefile: No such file or directory
make: *** No rule to make target `siftgpu'.  Stop.
libsiftgpu.so failed to build.  Halting.
Aarons-MacBook-Pro:~ Aaron$ 

@rasmi
Copy link

rasmi commented Jul 15, 2018

@Bugaja -- see here: #40
In the vsfm_os_x_installer.sh script, replace:

SIFT_GPU_SRC=http://wwwx.cs.unc.edu/~ccwu/cgi-bin/siftgpu.cgi

with:

SIFT_GPU_SRC=https://github.com/pitzer/SiftGPU/archive/master.zip

Then, change

cd SiftGPU

to also add one line above:

mv SiftGPU-master SiftGPU
cd SiftGPU

That should do it!

@Bugaja
Copy link

Bugaja commented Jul 15, 2018

@rasmi that did it. Thank you! I owe you a beer ;) Have moved onto new issues farther along:

/Users/Aaron/CMVS-PMVS-master/program/base/cmvs/../stann/dpoint.hpp:491:12: error: 
      no viable conversion from 'std::__1::locale' to 'char'
                           char errorpoint = is.getloc();
                                ^            ~~~~~~~~~~~

Did you run into this too? I haven't had any luck with the fixes I've found in #34

@rasmi
Copy link

rasmi commented Jul 15, 2018

@Bugaja -- if you notice here in the install script, it's downloading the CMVS-PMVS zip if it doesn't exist, or if it does exist, it removes the old directory then unzips the package again. Then it tries to apply the patch mentioned in the thread above. My guess is that if you're not seeing the code changes in the patch being reflected in the file, the patch is not being applied correctly.

So you have two options:

  1. Change the script to download the zip of the version CMVS was at when the patch was created so the patch can be applied correctly:
PMVS_ZIP=PMVS_pmoulonGit.zip
PMVS_SRC=https://github.com/pmoulon/CMVS-PMVS/archive/9c4cbe2188e06a7059f442ad64795ccf27e46a38.zip

    if [[ ! -f $PMVS_ZIP ]]; then
        echoBad "PMVS Zip not present, downloading..."
        wget $PMVS_SRC -O $PMVS_ZIP
        unzip $PMVS_ZIP -d CMVS-PMVS-master
    else
        echoGood "Zip file is present, so just unzipping, removing old dir to install so we dont have any conflicts"
        rm -fR CMVS-PMVS-master
        unzip $PMVS_ZIP -d CMVS-PMVS-master
    fi

Or 2) Manually download CMVS-PMVS-master.zip, apply the patch manually, and comment out everything in this section of the install script except cd CMVS-PMVS-master/program. This way the patch is applied correctly, and the directory won't be re-deleted/unzipped by the install script.

@Bugaja
Copy link

Bugaja commented Jul 15, 2018

@rasmi Change 1 worked... then ran into this just below after CMVS & PMVS was built:

CMVS & PMVS built... moving on
/
cp: pba/bin/libpba_no_gpu.so: No such file or directory
cp: directory vsfm/bin does not exist
cp: CMVS-PMVS-master/program/build/main/pmvs2: No such file or directory
cp: CMVS-PMVS-master/program/build/main/genOption: No such file or directory
cp: CMVS-PMVS-master/program/build/main/cmvs: No such file or directory
Failure.  End of script
Aarons-MacBook-Pro:~ Aaron$ cp: pba/bin/libpba_no_gpu.so: No such file or directory

all of these files exist, for whatever reason the cp command isn't finding them...

@rasmi
Copy link

rasmi commented Jul 15, 2018

It seems your directories are messed up. The install script expects everything to happen in a certain directory, so if you've manually cd'd in or out of any directories or moved things around, that will break it. Specifically, after installing CMVS-PMVS, the script is cd-ing too high to your root directory (hence the /). You can change the cd command at the end of installPMVS to cd to the right place (the same directory where the CMVS-PMVS-master, SiftGPU, and pba directories are located). Or you can manually run the commands in the makeVSFMdir function once you cd into the correct directory yourself.

@Bugaja
Copy link

Bugaja commented Jul 15, 2018

@rasmi I cd'd into the dowloads folder where CMVS-PMVS-master, SifGPU, and pba directories are located:

cd /Users/Aaron/Downloads/
echoGood $PWD

}
#############
installPMVS
#############




function makeVSFMdir () {

cp pba/bin/libpba_no_gpu.so vsfm/bin/libpba.so
cp SiftGPU/bin/libsiftgpu.so vsfm/bin/
cp CMVS-PMVS-master/program/main/pmvs2 vsfm/bin
cp CMVS-PMVS-master/program/main/genOption vsfm/bin
cp CMVS-PMVS-master/program/main/cmvs vsfm/bin
}
#############
makeVSFMdir
#############
if [[ $? -eq 0 ]]; then
			echoGood "Success!  Opening VSFM dir"
            echoBad "To add to your PATH, add the lines below to your ~/.bash_profile file."
            echoBad "export PATH=$PWD/vsfm/bin:\$PATH"
			echoBad "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$PWD"
            echoGood "Make sure you ammend that that path if you move the directory."
            open vsfm/bin/
		else
			echoBad "Failure.  End of script"
		exit
	fi

It found the pba/bin/libpba_no_gpu.so but still does not find MVS-PMVS-master/program/build/main/pmvs2:, CMVS-PMVS-master/program/build/main/genOption: , or CMVS-PMVS-master/program/build/main/cmvs: despite CMVS-PMVS-masters folder being in the same Downloads directory....

CMVS & PMVS built... moving on
/Users/Aaron/Downloads
cp: CMVS-PMVS-master/program/main/pmvs2: No such file or directory
cp: CMVS-PMVS-master/program/main/genOption: No such file or directory
cp: CMVS-PMVS-master/program/main/cmvs: No such file or directory
Failure.  End of script
Aarons-MBP:~ Aaron$ 

Thank you for your continued assistance here.

@rasmi
Copy link

rasmi commented Jul 15, 2018

From the above log, it looks like CMVS-PMVS -master is here: /Users/Aaron/CMVS-PMVS-master/

Maybe move that into ~/Downloads/:
mv /Users/Aaron/CMVS-PMVS-master /Users/Aaron/Downloads/

@Bugaja
Copy link

Bugaja commented Jul 15, 2018

@rasmi Moved CMVS-PMVS-master into downloads. Same error. Thanks man

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

10 participants