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

Failed brew install vtk --with-qt #33461

Closed
6 tasks done
bbercovici opened this issue Oct 28, 2018 · 2 comments
Closed
6 tasks done

Failed brew install vtk --with-qt #33461

bbercovici opened this issue Oct 28, 2018 · 2 comments
Labels
outdated PR was locked due to age

Comments

@bbercovici
Copy link

bbercovici commented Oct 28, 2018

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh

  • have a problem with brew install (or upgrade, reinstall) a single, official formula (not cask)? If it's a general brew problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.

  • ran brew update and can still reproduce the problem?

  • ran brew doctor, fixed all issues and can still reproduce the problem?

  • ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?

  • if brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

  • What you were trying to do (and why)

I was trying to re-install vtk with the qt wrappers.

  • What happened (include command output)

Upong running brew install vtk --with-qt --verbose, the following error is produced

CMake Error: The source directory "/tmp/vtk-20181028-62115-ufq8h6/VTK-8.1.1/build/changes" does not exist.

See line 48 of 01.cmake for the full output

  • What you expected to happen
    I was expecting the install process to proceed. I can confirm that running brew install vtk (without the --with-qt option) proceeds without trouble.
  • Step-by-step reproduction instructions (by running brew install commands)
    brew install vtk --with-qt --verbose

This bug was already present when my Mac was running High Sierra. I upgraded to Mojave overnight and the same error happens. The full gist logs can be found here: https://gist.github.com/a7993fc39010b626042fd702f4529dc7

@bbercovici
Copy link
Author

bbercovici commented Oct 28, 2018

Looking more closely at 01.cmake, there is something very odd with the arguments passed to cmake :

cmake
..
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/vtk/8.1.1_2
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev
-DBUILD_SHARED_LIBS=ON
-DBUILD_TESTING=OFF
-DCMAKE_INSTALL_NAME_DIR:STRING=/usr/local/Cellar/vtk/8.1.1_2/lib
-DCMAKE_INSTALL_RPATH:STRING=/usr/local/Cellar/vtk/8.1.1_2/lib
-DModule_vtkInfovisBoost=ON
-DModule_vtkInfovisBoostGraphAlgorithms=ON
-DModule_vtkRenderingFreeTypeFontConfig=ON
-DVTK_REQUIRED_OBJCXX_FLAGS=''
-DVTK_USE_COCOA=ON
-DVTK_USE_SYSTEM_EXPAT=ON
-DVTK_USE_SYSTEM_HDF5=ON
-DVTK_USE_SYSTEM_JPEG=ON
-DVTK_USE_SYSTEM_LIBXML2=ON
-DVTK_USE_SYSTEM_NETCDF=ON
-DVTK_USE_SYSTEM_PNG=ON
-DVTK_USE_SYSTEM_TIFF=ON
-DVTK_USE_SYSTEM_ZLIB=ON
<<<<<<<
Updated
upstream
=======
-DVTK_WRAP_TCL=ON
-DVTK_USE_QVTK:BOOL=ON
>>>>>>>
Stashed
changes
-DVTK_WRAP_PYTHON=ON
-DPYTHON_EXECUTABLE='/usr/local/opt/python@2/bin/python2.7'
-DPYTHON_INCLUDE_DIR='/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/include/python2.7'
-DPYTHON_LIBRARY='/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/Python'
-DVTK_INSTALL_PYTHON_MODULE_DIR='/usr/local/Cellar/vtk/8.1.1_2/lib/python2.7/site-packages/'
-DVTK_QT_VERSION:STRING=5
-DVTK_Group_Qt=ON
-DVTK_WRAP_PYTHON_SIP=ON
-DSIP_PYQT_DIR='/usr/local/opt/pyqt/share/sip'

The block

<<<<<<<
Updated
upstream
=======
-DVTK_WRAP_TCL=ON
-DVTK_USE_QVTK:BOOL=ON
>>>>>>>
Stashed
changes

simply does not belong here.

Edit: brew edit vtk prints out a vtk formula with the above block. However, the vtk formula available at homebrew-core/vtk.rb does not have this block. The plot thickens...

@bbercovici
Copy link
Author

Re-installing Homebrew solved the problem

@lock lock bot added the outdated PR was locked due to age label Nov 28, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

1 participant