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

Building on Mtn Lion: Some problems, their solutions, and a few more problems #5

Open
ddoubleprime opened this issue Oct 17, 2012 · 6 comments

Comments

@ddoubleprime
Copy link

I've been trying to build VisualSFM.app using these Homebrew formulae on Mountain Lion (Xcode 4.5.1) with limited success. However, I have found fixes to several stumbling blocks, and perhaps these will help someone else out. I did manage to get an app that launches, but it wasn't pretty (had to manually move things around in the app package), and a lot of the guts aren't working yet. I'm trying to build this using the newer versions of VisualSFM (0.5.20) and SiftGPU, as they contain some important bug fixes.

  • makebrew tries to build fontconfig after it has already been built as a dependency to pango, causing a halt/rollback. Commenting out/deleting the "brew install fontconfig" line fixes this.
  • The new version of SiftGPU (released Oct 4) does not accept the patch applied by makesiftgpu - but compiles OK with the "Patching SiftGPU GLSL code" block commented out. I assume this is because the new version already includes this patch.
  • clapack/clapack.h and clapack/f2c.h are missing from CMVS package. The ones available from http://www.netlib.org/clapack seem to work when placed where the compiler can find them. (this might have been something that was just messed up in my environment).
  • Linking cmvs fails because libmultilevel is not found; adding "-L../../../Graclus" to the YOUR_LDLIB_PATH= line in the makefile patching section of makecmvs fixes this.
  • Multiple linking errors keep the final app from launching. One: gettext/lib is expected in APP/Resources/opt/, which does not exist, and other libs appear to be sought in that directory as well, because renaming "Cellar" in the app bundle to "opt" allows a launch.
    However, the app still cannot find libsiftgpu.so or cmvs at runtime, even though they are correctly located in APP/Resources/bin.

I have not had time yet to figure out how to fix those. If anyone can offer any assistance, I'd be grateful. If I figure it all out, I'll post it.

thanks
DDP

@jflalonde
Copy link

Hi,

First, thanks a lot for your fixes, DDP! They helped tremendously.

I have forked the repo and pushed some changes to the various scripts which implement your suggestions automatically. I'm happy to do a pull request to have those changes merged back in the original repo if there's interest.

I've also manually created the following symlinks:

Create symlink 'opt' to 'Cellar'. From within VisualSFM.app.Contents.Resources

$ ln -s Cellar opt

To avoid the following error messages:

Dyld Error Message:
Library not loaded: /private/tmp//VisualSFM.app/Contents/Resources/opt/gettext/lib/libintl.8.dylib
Referenced from: /private/tmp/
/VisualSFM.app/Contents/Resources/bin/VisualSFM
Reason: image not found

Dyld Error Message:
Library not loaded: /private/tmp//VisualSFM.app/Contents/Resources/opt/libffi/lib/libffi.6.dylib
Referenced from: /private/tmp/
/VisualSFM.app/Contents/Resources/lib/libgobject-2.0.0.dylib
Reason: image not found

I created symlinks to the lib directories. Do:

$ cd opt/gettext
$ ln -s 0.18.1.1/lib

$ cd ../libffi
$ ln -s 3.0.11/lib

Now I can get an app that launches, but unfortunately it crashes when the "file-open" dialog pops up. Have you been able to load images?

JF

@iromu
Copy link
Owner

iromu commented Oct 25, 2012

Pull request are very welcomed anytime :)

Sorry guys, I updated to ML recently and I was trying to update the scripts with the latest versions available from SfM and homebrew (they added the "opt" dir). So your work is appreciated.

@iromu
Copy link
Owner

iromu commented Oct 26, 2012

Arghhhhh

==> Installing gtk+ dependency: jasper
==> Downloading http://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.1.zip

curl: (56) Recv failure: Operation timed out
Error: Download failed: http://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.1.zip

Anyway, I confirmed some points in what ddoubleprime said. I have to confirm if clapack was already installed by myself for other projects, and cmvs dependency over Graclus libs instead of only metis headers.

@jflalonde
Copy link

Annoying (for jasper)!

Yes, I wasn't sure what the problem was wrt clapack. I tried linking with the Mac OSX 'Accelerate' framework, which apparently has all these clapack libraries, but without success. The simplest thing for me was to download the missing files.

Do let me know your progress and if you can make the graphical application work. In the meantime, at least the command line is usable!

Thanks for all your work on this, iromu and ddoubleprime!

@natevw
Copy link

natevw commented Dec 5, 2012

I had to uncomment brew install fontconfig to get it to work, otherwise it fails to brew link it in later.

@natevw
Copy link

natevw commented Dec 5, 2012

See also issue #8 for a workaround for the dylib problem specifically.

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

No branches or pull requests

4 participants