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

Not working in Mac OS X Sierra (10.12.3) #60

Open
lmmo opened this issue Feb 21, 2017 · 22 comments
Open

Not working in Mac OS X Sierra (10.12.3) #60

lmmo opened this issue Feb 21, 2017 · 22 comments

Comments

@lmmo
Copy link

lmmo commented Feb 21, 2017

It seems that fmit doesn't run on OS X 10.12.3.

Error message and details attached.

fmit_error.txt
screen shot 2017-02-21 at 8 09 29 pm

@gillesdegottex
Copy link
Owner

Very sorry for this terribly late reply, I've missed the Github notification apparently.

Thanks a lot for the log file.
It seems a library is missing "QtNetwork" can you try to install it and retry?

@lmmo
Copy link
Author

lmmo commented May 3, 2017 via email

@gillesdegottex
Copy link
Owner

I meant that you should install QtNetwork together with your Qt install ......
or maybe I've to include it myself in the dmg .......
On OSX there is usually an automatic detection of the necessary libraries and some Qt magic script will include it in the dmg file. However, the dependency with QtNetwork being far from obvious, the magic might not have been strong enough.

Give me 2 sec ...

@gillesdegottex
Copy link
Owner

@lmmo
Copy link
Author

lmmo commented May 3, 2017 via email

@gillesdegottex
Copy link
Owner

:(
Well since I don't have an OSX, it's quite hard for me to debug :(

@lmmo
Copy link
Author

lmmo commented May 3, 2017 via email

@lightwise-git
Copy link

I have 1.1.13 and it runs OK but it doesn't hear anything from the mic.

@gillesdegottex
Copy link
Owner

How does the "Capture System" dropbox looks like on your side ?
Is there some devices available ?

@lightwise-git
Copy link

lightwise-git commented Oct 2, 2017 via email

@gillesdegottex
Copy link
Owner

Mhmm sorry, I don't see any pict.
What is written in the box ?
Can you start it in a terminal ($ fmit ) and copy-paste me the output ?

@lightwise-git
Copy link

lightwise-git commented Oct 2, 2017 via email

@gillesdegottex
Copy link
Owner

still can't see the image.
Start fmit without "open", otherwise the output text is eaten by OSX.
should be somtheing like:
$ /pathtofmitbinary/fmit

@pizzyflavin
Copy link

I'm on 10.12.6 Sierra and I also cannot get the mic to work with this app. Here is the output when I run it from the terminal:

/Applications/fmit.app/Contents/MacOS/fmit
Free Music Instrument Tuner (Version v1.1.13)
INFO: Loading Qt translation file: qt_en_US in /Applications/fmit.app/Contents/translations
INFO: Loading FMIT translation file: fmit_en_US in /usr/local/share/fmit/tr
CaptureThread: INFO: Built-in transports
CaptureThread: INFO:	OK	Qt	Qt (lib:5.9.1)
CaptureThread: INFO: Auto detecting a working transport ... using Qt
CaptureThread: INFO: using Qt transport
CombedFT: INFO: window size=400 FFT size=512 window size factor=1 zero padding factor=1
GLFT: INFO: window length=441ms FFT length=2048
CombedFT: INFO: window size=1603 FFT size=2048 window size factor=4 zero padding factor=1
CaptureThread: INFO: format is signed integer 16bits with 1 channel(s)

@gillesdegottex
Copy link
Owner

gillesdegottex commented Oct 31, 2017

Well that's quite annoying because FMIT seems to detect a "working" transport :(
I suppose the mic if working on other apps?
Did you install all the Qt packages?

@pizzyflavin
Copy link

I have the qt packages installed, I used brew to install them with brew install qt and then added the install path to my PATH. The mic does work in other applications. I might try to build from source later tonight and report the results here.

@gillesdegottex
Copy link
Owner

That would be great!

Is there one single package only for qt on brew ?
I ask this bcs on ubuntu they are hundreds of them and if libqt5multimedia5-plugins (and a few other maybe) is not installed the application runs but there are no sound/no mic.

@pizzyflavin
Copy link

pizzyflavin commented Nov 1, 2017

The following binaries are included when you brew install qt:

$ ll $QTPATH
total 21M
drwxr-xr-x 41 pizzyflavin admin 1.4K Oct  4 03:32 .
drwxr-xr-x 16 pizzyflavin admin  544 Oct 31 19:13 ..
-r-xr-xr-x  1 pizzyflavin admin  46K Oct 31 19:13 canbusutil
-r-xr-xr-x  1 pizzyflavin admin 6.2K Oct  4 03:32 fixqt4headers.pl
-r-xr-xr-x  1 pizzyflavin admin 237K Oct 31 19:13 lconvert
-r-xr-xr-x  1 pizzyflavin admin 446K Oct 31 19:13 lrelease
-r-xr-xr-x  1 pizzyflavin admin 826K Oct 31 19:13 lupdate
-r-xr-xr-x  1 pizzyflavin admin  75K Oct 31 19:13 macchangeqt
-r-xr-xr-x  1 pizzyflavin admin 199K Oct 31 19:13 macdeployqt
-r-xr-xr-x  1 pizzyflavin admin 819K Oct  4 03:32 moc
-r-xr-xr-x  1 pizzyflavin admin  69K Oct 31 19:13 qcollectiongenerator
-r-xr-xr-x  1 pizzyflavin admin  70K Oct 31 19:13 qdbus
-r-xr-xr-x  1 pizzyflavin admin 198K Oct 31 19:13 qdbuscpp2xml
-r-xr-xr-x  1 pizzyflavin admin  76K Oct 31 19:13 qdbusxml2cpp
-r-xr-xr-x  1 pizzyflavin admin 1.4M Oct 31 19:13 qdoc
-r-xr-xr-x  1 pizzyflavin admin 5.5M Oct 31 19:13 qgltf
-r-xr-xr-x  1 pizzyflavin admin 173K Oct 31 19:13 qhelpconverter
-r-xr-xr-x  1 pizzyflavin admin  36K Oct 31 19:13 qhelpgenerator
-r-xr-xr-x  1 pizzyflavin admin 115K Oct 31 19:13 qlalr
-r-xr-xr-x  1 pizzyflavin admin 5.9M Oct  4 03:32 qmake
-r-xr-xr-x  1 pizzyflavin admin 893K Oct 31 19:13 qmlcachegen
-r-xr-xr-x  1 pizzyflavin admin 108K Oct 31 19:13 qmleasing
-r-xr-xr-x  1 pizzyflavin admin 215K Oct 31 19:13 qmlimportscanner
-r-xr-xr-x  1 pizzyflavin admin 157K Oct 31 19:13 qmllint
-r-xr-xr-x  1 pizzyflavin admin 101K Oct 31 19:13 qmlmin
-r-xr-xr-x  1 pizzyflavin admin 151K Oct 31 19:13 qmlplugindump
-r-xr-xr-x  1 pizzyflavin admin 157K Oct 31 19:13 qmlprofiler
-r-xr-xr-x  1 pizzyflavin admin  64K Oct 31 19:13 qmlscene
-r-xr-xr-x  1 pizzyflavin admin  25K Oct 31 19:13 qmltestrunner
-r-xr-xr-x  1 pizzyflavin admin 328K Oct 31 19:13 qscxmlc
-r-xr-xr-x  1 pizzyflavin admin  61K Oct 31 19:13 qtattributionsscanner
-r-xr-xr-x  1 pizzyflavin admin  69K Oct 31 19:13 qtdiag
-r-xr-xr-x  1 pizzyflavin admin  34K Oct 31 19:13 qtpaths
-r-xr-xr-x  1 pizzyflavin admin  32K Oct 31 19:13 qtplugininfo
-r-xr-xr-x  1 pizzyflavin admin 292K Oct 31 19:13 qwebengine_convert_dict
-r-xr-xr-x  1 pizzyflavin admin 729K Oct  4 03:32 rcc
-r-xr-xr-x  1 pizzyflavin admin 377K Oct 31 19:13 repc
-r-xr-xr-x  1 pizzyflavin admin  49K Oct  4 03:32 syncqt.pl
-r-xr-xr-x  1 pizzyflavin admin 395K Oct 31 19:13 uic
-r-xr-xr-x  1 pizzyflavin admin  68K Oct 31 19:13 xmlpatterns
-r-xr-xr-x  1 pizzyflavin admin  19K Oct 31 19:13 xmlpatternsvalidator

I can post the included lib files if you want as well.

@pizzyflavin
Copy link

Output of compilation process:

$ mkdir build
$ cd build
$ qmake "CONFIG+=acs_qt" ../fmit.pro
Info: creating stash file /Users/pizzyflavin/software/fmit/build/.qmake.stash
Project MESSAGE: CONFIG=lex yacc debug exceptions depend_includepath testcase_targets import_plugins import_qpa_plugin asset_catalogs rez file_copies qmake_use qt warn_on release link_prl app_bundle incremental global_init_link_order lib_version_first sdk clang_pch_style shared qt_framework release macos osx macx mac darwin unix posix gcc clang llvm acs_qt acs_qt
Project MESSAGE: Git: FMIT version: v1.1.13 Branch: master
Project MESSAGE: For Linux
Project MESSAGE: Using GCC compiler
Project MESSAGE: For 64bits
Project MESSAGE: Installation path: /usr/local
Project MESSAGE: Audio Capture System: Request Qt support
Project MESSAGE: QMAKE_LRELEASE=/usr/local/Cellar/qt/5.9.2/bin/lrelease

$ make
/usr/local/Cellar/qt/5.9.2/bin/uic ../ui/InstrumentTunerForm.ui -o ui_InstrumentTunerForm.h
/usr/local/Cellar/qt/5.9.2/bin/uic ../ui/ConfigForm.ui -o ui_ConfigForm.h
/usr/local/Cellar/qt/5.9.2/bin/uic ../ui/aboutbox.ui -o ui_aboutbox.h
/Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=10.10 -Wall -W -fPIC -DFMITVERSIONGIT=v1.1.13 -DFMITBRANCHGIT=master -DPREFIX=/usr/local -DCAPTURE_QT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../fmit -I. -I../libs -I/usr/local/Cellar/qt/5.9.2/lib/QtMultimedia.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtOpenGL.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtSvg.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/usr/local/Cellar/qt/5.9.2/mkspecs/macx-clang -F/usr/local/Cellar/qt/5.9.2/lib -o CaptureThreadImplQt.o ../src/CaptureThreadImplQt.cpp
/Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=10.10 -Wall -W -fPIC -DFMITVERSIONGIT=v1.1.13 -DFMITBRANCHGIT=master -DPREFIX=/usr/local -DCAPTURE_QT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../fmit -I. -I../libs -I/usr/local/Cellar/qt/5.9.2/lib/QtMultimedia.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtOpenGL.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtSvg.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.9.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/usr/local/Cellar/qt/5.9.2/mkspecs/macx-clang -F/usr/local/Cellar/qt/5.9.2/lib -o main.o ../src/main.cpp
In file included from ../src/main.cpp:34:
In file included from ../src/CustomInstrumentTunerForm.h:35:
../libs/Music/FreqAnalysis.h:34:10: fatal error: 'fftw3.h' file not found
#include <fftw3.h>
         ^~~~~~~~~
1 error generated.
make: *** [Makefile:1303: main.o] Error 1

make failed with a missing header file, but also I noticed the Project MESSAGE: Audio Capture System: Request Qt support in the config process.

@gillesdegottex
Copy link
Owner

You just need to install brew's package fftw.

@pizzyflavin
Copy link

I have installed fftw with brew and I get the same error.

@gillesdegottex
Copy link
Owner

Wow ?!?

I'm doing exactly this on travis:
https://github.com/gillesdegottex/fmit/blob/master/.travis.yml

Do you have to add the include path as -I option to the compiler ?

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