gillesdegottex / fmit

Free Music Instrument Tuner (FMIT)
http://gillesdegottex.github.io/fmit
GNU General Public License v2.0
123 stars 24 forks source link

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

Open lmmo opened 7 years ago

lmmo commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Just downloaded the dmg of version 1.1.11 from https://github.com/gillesdegottex/fmit/releases but still doesn't work.

Or do you mean that I need to download the library and build the package from the source?

Cheers,

Luciano

On Tue, May 2, 2017 at 1:02 AM, Gilles Degottex notifications@github.com wrote:

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?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gillesdegottex/fmit/issues/60#issuecomment-298431821, or mute the thread https://github.com/notifications/unsubscribe-auth/AHdPZWS8nIzwyIokXldFHcYvM51XbG9Iks5r1khfgaJpZM4MHhMq .

gillesdegottex commented 7 years ago

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 commented 7 years ago

You might want to try this one: https://github.com/gillesdegottex/fmit/releases/download/v1.1.12/fmit_1.1.12.dmg

lmmo commented 7 years ago

Still giving the same error on this version 1.1.12. :(

On Wed, May 3, 2017 at 7:47 PM, Gilles Degottex notifications@github.com wrote:

You might want to try this one: https://github.com/gillesdegottex/fmit/releases/ download/v1.1.12/fmit_1.1.12.dmg

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gillesdegottex/fmit/issues/60#issuecomment-298952015, or mute the thread https://github.com/notifications/unsubscribe-auth/AHdPZc6z-mFs6IgWTQkfMn7rlycS6U5tks5r2KGRgaJpZM4MHhMq .

gillesdegottex commented 7 years ago

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

lmmo commented 7 years ago

Ok. No problem. Thanks anyway.

On Wed, May 3, 2017 at 10:35 PM, Gilles Degottex notifications@github.com wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gillesdegottex/fmit/issues/60#issuecomment-298997883, or mute the thread https://github.com/notifications/unsubscribe-auth/AHdPZT12ybPSyNzcXwOVQe2w0YEeghnsks5r2Mj8gaJpZM4MHhMq .

lightwise-git commented 7 years ago

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

gillesdegottex commented 7 years ago

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

lightwise-git commented 7 years ago

Hi Giles this is what it looks like when it starts. It looks fine but it does not seem to hear anything - the mic is working on the laptop - it is possible to record to other apps - i.e. I don't think that there is anything wrong with the laptop system's settings. D

Dan Linehan LIGHTWISE 0868369377

via Newton Mail [https://cloudmagic.com/k/d/mailapp?ct=dx&cv=9.8.55&pv=10.12.6&source=email_footer_2] On Mon, Oct 2, 2017 at 9:55, Gilles Degottex notifications@github.com wrote: How does the "Capture System" dropbox looks like on your side ? Is there some devices available ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub [https://github.com/gillesdegottex/fmit/issues/60#issuecomment-333477111] , or mute the thread [https://github.com/notifications/unsubscribe-auth/Ae3iCtFq2bmJcLWPmFQnJgr6jjWr93seks5soKTsgaJpZM4MHhMq] .

gillesdegottex commented 7 years ago

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 commented 7 years ago

there is nothing (no error) in terminal - it just opens the app and it looks like this attached jpeg image MacBook-Air:applications danlinehan2$ open -a fmit

MacBook-Air:applications danlinehan2$

??

Dan Linehan LIGHTWISE 0868369377

via Newton Mail [https://cloudmagic.com/k/d/mailapp?ct=dx&cv=9.8.55&pv=10.12.6&source=email_footer_2] On Mon, Oct 2, 2017 at 13:06, Gilles Degottex notifications@github.com wrote: 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 ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub [https://github.com/gillesdegottex/fmit/issues/60#issuecomment-333515047] , or mute the thread [https://github.com/notifications/unsubscribe-auth/Ae3iCumtEALjETPfJJrH9G00TPcnQEZ4ks5soNHAgaJpZM4MHhMq] .

gillesdegottex commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

You just need to install brew's package fftw.

pizzyflavin commented 7 years ago

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

gillesdegottex commented 7 years ago

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 ?