QT problem on MacOSX

424 views
Skip to first unread message

Hillary Ryan

unread,
May 18, 2014, 12:15:15 AM5/18/14
to tor...@googlegroups.com
Dear all,

I tried installing Torch7 on my Mac, which is running Mavericks, and I keep getting an error. If you read down, you'll see that luarocks cannot find the header it wants in the QTCore framework. The QT frameworks that are in my "/Library/Frameworks" directory are all version 4, so I thought that updating might solve the problem. However, when I installed the current QT version, it did not appear to update the "/Library/Frameworks" directory and instead put everything in "~/". 

Has anyone run into this before? Did I mess up the QT installation in some way? Or is there a way to make luarocks look in the right place (ie set some path)? 

Many Thanks,
Hillary

Error print out:

In file included from /Library/Frameworks/QtCore.framework/Headers/QtGlobal:1:

/Library/Frameworks/QtCore.framework/Headers/qglobal.h:331:6: warning: "This

      version of Mac OS X is unsupported" [-W#warnings]

#    warning "This version of Mac OS X is unsupported"

     ^

1 warning generated.

Linking CXX shared library libqtlua.dylib

[  5%] Built target libqtlua

[  7%] Generating moc_qluaconsole.cxx

[  8%] Generating qrc_qlua.cxx

[  9%] Generating qluaapplication.moc

[ 10%] Generating qluaconsole_unix.moc

[ 11%] Generating moc_qluaapplication.cxx

Scanning dependencies of target libqlua

[ 13%] Building CXX object qlua/CMakeFiles/libqlua.dir/qluaapplication.cpp.o

/tmp/luarocks_qtlua-scm-1-278/qtlua/qlua/qluaapplication.cpp:18:10: fatal error: 

      'QApplication' file not found

#include <QApplication>

         ^

1 error generated.

make[2]: *** [qlua/CMakeFiles/libqlua.dir/qluaapplication.cpp.o] Error 1

make[1]: *** [qlua/CMakeFiles/libqlua.dir/all] Error 2

make: *** [all] Error 2

soumith

unread,
May 18, 2014, 10:20:15 AM5/18/14
to torch7 on behalf of Hillary Ryan
Hey, I've never used the frameworks version of QT to use torch.

Have you tried installing QT from homebrew using the command:
brew install qt

?


--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at http://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.

Hillary Ryan

unread,
May 18, 2014, 11:58:37 PM5/18/14
to tor...@googlegroups.com
Thank you so much! Your suggestion of installing via homebrew works. As a note for anyone else who runs into the same problem, you also need to remove all the QT frameworks in the "/Libraries/Frameworks" directory.

Many Thanks,
Hillary


On Sunday, May 18, 2014 7:20:15 AM UTC-7, smth chntla wrote:
Hey, I've never used the frameworks version of QT to use torch.

Have you tried installing QT from homebrew using the command:
brew install qt

?
Reply all
Reply to author
Forward
0 new messages