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

FLTK will not build on 10.9.2 #20

Closed
AustinCoates opened this issue Mar 13, 2014 · 14 comments
Closed

FLTK will not build on 10.9.2 #20

AustinCoates opened this issue Mar 13, 2014 · 14 comments

Comments

@AustinCoates
Copy link

When attempting to install ORFEO it can't get past the make install for FLTK
error message :

1 error generated.
make[1]: *** [Fl_Function_Type.o] Error 1
1 error generated.
make[1]: *** [Fl_Menu_Type.o] Error 1
make: *** [install] Error 1

@dakcarto
Copy link
Member

Hmm. Just built it here on 10.7.5 with no problems. Need more than the final make error output. Look in ~/Library/Logs/Homebrew/orfeo-40 in the 02.make (or maybe another xx.make, like 03.make) file for the actual error lines. Depending upon how many cores you were using, it may be quite a ways back.

Do you mean fltk is building from a separate Homebrew formula (and that's failing)? If so, maybe you did brew install orfeo instead of brew install orfeo-40, because fltk is no longer a dependency for orfeo-40.

What are the brew install options you are using?

What OS X version and XCode version?

@AustinCoates
Copy link
Author


OS X version = 10.9.2
XCode = Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)

This is what I get when I run -> brew install dakcarto/osgeo4mac/orfeo-40
==> Downloading http://www.orfeo-toolbox.org/packages/OTB-4.0-rc1.tgz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "orfeo-40"
Download failed: http://www.orfeo-toolbox.org/packages/OTB-4.0-rc1.tgz


This is what I get when I run -> brew install dakcarto/osgeo4mac/orfeo
==> Installing dependencies for orfeo: fltk, boost, liblas
==> Installing orfeo dependency: fltk
==> Downloading http://fossies.org/linux/misc/fltk-1.3.2-source.tar.gz
Already downloaded: /Library/Caches/Homebrew/fltk-1.3.2.tar.gz
==> Patching
patching file src/Makefile
==> ./configure --prefix=/usr/local/Cellar/fltk/1.3.2 --enable-threads --enable-
==> make install
1 error generated.
make[1]: *** [Fl_Function_Type.o] Error 1
1 error generated.
make[1]: *** [Fl_Menu_Type.o] Error 1
make: *** [install] Error 1

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
fltk failed to build on 10.9 (https://github.com/Homebrew/homebrew/issues/27404)

I do not have a ~/Library/Logs/Homebrew/orfeo-40 folder but I do have a ~/Library/Logs/Homebrew/fltk folder with 02.make in it. Here are the results from that

https://gist.github.com/tex887/9e5d8b90e1c1c3937dd7


Thanks you for all your help

@dakcarto
Copy link
Member

This is what I get when I run -> brew install dakcarto/osgeo4mac/orfeo-40
==> Downloading http://www.orfeo-toolbox.org/packages/OTB-4.0-rc1.tgz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "orfeo-40"
Download failed: http://www.orfeo-toolbox.org/packages/OTB-4.0-rc1.tgz

That was just changed via your PR. Do brew update and try again. If that doesn't work, because you've been tinkering with the tap, also do brew tap --repair, or use git to reset the tap's working tree.

Concerning the fltk dependency issue, that lies outside the scope of support for my tap, and should be reported upstream to Homebrew as you have done here, since the issue appears unrelated to the formulae in this tap.

@AustinCoates
Copy link
Author

It is getting much closer, but I am still getting and error.

this is what I get when I run -> brew install dakcarto/osgeo4mac/orfeo-40
==> Downloading http://www.orfeo-toolbox.org/packages/OTB-4.0.0.tgz
Already downloaded: /Library/Caches/Homebrew/orfeo-40-4.0.0.tgz
==> Downloading http://hg.orfeo-toolbox.org/OTB-Data/raw-file/dec1ce83a5f3/Input/DEM/egm96.grd
Already downloaded: /Library/Caches/Homebrew/orfeo-40--geoid-4.0.0.grd
==> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/orfeo-40/4.0.0 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_
used as include directory in directory /tmp/orfeo-40-EfO7/OTB-4.0.0/Applications/Utils

-- Configuring incomplete, errors occurred!
See also "/tmp/orfeo-40-EfO7/OTB-4.0.0/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/orfeo-40-EfO7/OTB-4.0.0/build/CMakeFiles/CMakeError.log".

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/dakcarto/homebrew-osgeo4mac/issues

I also have a log file now 01.cmake

https://gist.github.com/tex887/ba47b17df39d31870387

@dakcarto
Copy link
Member

Looking into it, though your issue is now unrelated to this original issue reported.

Please post large log output to a gist or something similar, instead of inline in these comments.

@AustinCoates
Copy link
Author

OK will do. I am sorry. I am new to this.

@dakcarto
Copy link
Member

I was able to reproduce similar error here. Should be fixed now, or is at least on 10.7.5. Do brew update and try again (fftw should now be fully optional).

@dakcarto
Copy link
Member

Above fix is for orfeo-40. The orfeo formula (3.20) is still broken due to fltk upstream issue.

@AustinCoates
Copy link
Author

I am still getting an error

when I run -> brew install orfeo-40 this is the error I get

https://gist.github.com/tex887/ca5e5fa0da666313e187

@dakcarto
Copy link
Member

Sorry, but that just says there is an error. Either post the build log to a gist or run install with the verbose flag and post that to a gist (should be near identical output), i.e.:

brew install orfeo-40 -v

Read man brew for info on verbose and the debug mode of install.

@dakcarto
Copy link
Member

I noticed the build was at 97% when it failed. You do not have to post the entire xx.make log as it may be really large for orfeo-40. You'll just need to post the relevant parts (from end back to actual error) to a gist.

@AustinCoates
Copy link
Author

Here is the 02.make file it includes the error

https://gist.github.com/tex887/da32869cafbd7fa62737

@dakcarto
Copy link
Member

That error should be reported upstream to OTB. There seems to be something incompatible with OTB-4.0.0/Applications/Classification/otbComputeConfusionMatrix.cxx where it uses:

GetParameterImage<Int32ImageType>

And the way that Clang 5.1 processes the types, i.e. shouldn't be otb::Image<int, 2u>. I think there is a more direct means of getting the image, maybe with InputImageParameter::GetInt32Image(), but can't test here because I'm not using Clang 5.1 and probably won't be upgrading my 10.9.2 install to it any time soon.

@dakcarto
Copy link
Member

Original issue should be fixed upstream at Homebrew now. Closing issue. If you need to open another issue, regarding this tap's formulae and OTB, please do so.

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

2 participants