Hi all, I'm trying to compile Wireshark on my Mac, but I do not want to use the provided script to install dependencies. I have my own libraries (MacPorts mostly), and they are working. The problem is: configure can't find QT. I installed also QT5 in my home directory. it works, but Wireshark's configure ignores it. Any solution ? Thanks, T. asked 28 Mar '16, 11:19 Tommaso Peco... |
2 Answers:
What do your answered 28 Mar '16, 12:06 Gerald Combs ♦♦ Hi, both are set (they weren't), but the result is the same. checking if profile builds must be generated... no checking for GLIB... yes checking for Qt5Core - version >= 5.0.0... no checking for QtCore - version >= 4.7.0... no configure: error: Qt is not available 21:17:47:~/git/wireshark pecos$ env | grep PATH PATH=/opt/local/bin:/opt/local/sbin:/opt/local/libexec/qt4/bin/:/usr/texbin:/Users/pecos/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Library/TeX/texbin:/Users/pecos/Qt/5.6/clang_64/bin PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig:/Users/pecos/Qt/5.6/clang_64/lib/pkgconfig/ 21:17:49:~/git/wireshark pecos$ (28 Mar '16, 12:20) Tommaso Peco... What does (28 Mar '16, 12:27) Gerald Combs ♦♦ For QT4 it is:
For QT5:
(29 Mar '16, 15:08) Tommaso Peco... |
Are you using cmake or autotools build? Also, if you are not running macos-setup, then take a look at the output of my script run and adapt it to your environment:
answered 28 Mar '16, 13:41 jmayer Thanks. I was missing the CMAKE_PREFIX_PATH... but it didn't help either. make, yes. Autotools, yes. Script adapted, check. Still, configure doesn't find Qt (yes, I tried to run the scripts to fix the bogus QT packageconfig files) (28 Mar '16, 16:55) Tommaso Peco... Well, if you are doing an autotools build then yes, adding the CMAKE_PREFIX_PATH will not resolve your problem - CMAKE is an alternative to autotools, not a helper tool or an addition. So if autotools fail for you, maybe just try the CMAKE way (look at README.cmake at the toplevel directory). (29 Mar '16, 16:45) jmayer |
Which version of Qt 5 did you install?