-
Notifications
You must be signed in to change notification settings - Fork 48
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
Comments
I am also experiencing this issue and looking into it. |
I was able to make it past this step by following the warnings that were of the form:
For you this might just be I also went into the vsfm directory and ran I then ran the install script again. It successfully installed vsfm, as noted by the output
I have not been able to install the other portions. |
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
That worked for me. |
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:
when I try to run the executable. |
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 |
@qq456cvb's approach worked for me to get VisualSFM to compile (thanks!), but I still don't have SiftGPU working. I get stuck here:
Some SO posts show adding |
@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). |
@qq456cvb I ended up using a different approach (see edited comment), but that makes sense. Thanks for the help! |
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:
Any ideas? -- James |
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+?
|
@rxcited Yes, try |
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. |
@rxcited 'meshlab' has a macOS version which may help. |
Duh, that didn't sink in because it was not a link in the help. Thanks! I think am good to go. |
Hi guys, I have tried your work arounds but I was not able to fix it.
|
@endersaka -- can you try |
@rasmi, sorry. I missed the updated installer. Now it works and thanks for your help, very useful. |
@rxcited -- how exactly did you do that: _
_ It still looks like this:
|
Standard Linux command line stuff:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH;other-path;other-path;etc
Where the “other-path”s are the paths to the bin subdirectories as mentioned. This only modifies that environment variable in the current terminal shell. It could probably be added to one of the makefiles if you needed to recompile more than once.
I am not at my desktop right now, but if you’re still stuck tomorrow, I can be more specific. Those other paths will depend on where you unpacked this stuff on your system, so hopefully you can figure that out.
…-- James
On Nov 30, 2017, at 6:43 PM, rotgrau ***@***.***> wrote:
@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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
On 4 May 2018, So before |
Dunno if you are still messing with this. Since then I found Regard 3D. It is another attempt at collecting open source codes for doing photogrammetry. They have binaries for multiple platforms (Mac, Windows, Linux I think) and there is no compiling. I found it worked pretty good and even creates polygonal meshes for you without too much trouble. You might give it a try.
— James
… On May 21, 2018, at 11:34 AM, fanfancoll ***@***.***> wrote:
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 Homebrew/homebrew-core@6c0eb26#diff-fc0bebeccf19d64035e754186795be64 <x-msg://6/url>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#30 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AYBXb-xYphYu_ay1cgOuMH53Mj5V0AVFks5t0wjKgaJpZM4Hed4M>.
|
@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! |
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
xquartz_version_result=0 Ok, now you have to should have either...
Ready to continue the next installation of VSFM & PMVS (press ENTER) Installing Brew packages... this can take quite a long time Do not report this issue to Homebrew/brew or Homebrew/core! These open issues may also help: Error: You have MacPorts or Fink installed: This can cause trouble. You don't have to uninstall them, but you may want to sudo mv /opt/local ~/macports |
Hi @Bugaja, see @fanfancoll's comment above about the EDIT: The next-previois version of |
Hi @rasmi, I replaced the code of current version with previous Pardon my challenges here, I am very new to coding/ compiling... How does |
I'm judging by your install messages from above, going through one error at a time. The first of which is: |
That worked! Now I've graduated to the issue @rotgrau was having farther up:
Downloaded SiftGPU from Github, but failed to locate the zip on next try: @rxcited Did you ever help @rotgrau with this further?
|
@Bugaja -- see here: #40
with:
Then, change
to also add one line above:
That should do it! |
@rasmi that did it. Thank you! I owe you a beer ;) Have moved onto new issues farther along:
Did you run into this too? I haven't had any luck with the fixes I've found in #34 |
@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:
Or 2) Manually download CMVS-PMVS-master.zip, apply the patch manually, and comment out everything in this section of the install script except |
@rasmi Change 1 worked... then ran into this just below after CMVS & PMVS was built:
all of these files exist, for whatever reason the cp command isn't finding them... |
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 |
@rasmi I cd'd into the dowloads folder where CMVS-PMVS-master, SifGPU, and pba directories are located:
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....
Thank you for your continued assistance here. |
From the above log, it looks like CMVS-PMVS -master is here: Maybe move that into |
@rasmi Moved CMVS-PMVS-master into downloads. Same error. Thanks man |
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
xquartz_version_result=0
Your version of XQuartz is 2.7.6 - perfect.
Ok, now you have to should have either...
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$
The text was updated successfully, but these errors were encountered: