Tdesktop: when i was build MetaEmoji.xcodeproj drop error

Created on 21 Jul 2016  ·  5Comments  ·  Source: telegramdesktop/tdesktop

when i was build MetaEmoji.xcodeproj drop this error:
/usr/local/tdesktop/Qt-5.6.0/bin/moc -D_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D__APPLE__ -D__GNUC__=4 -I/usr/local/tdesktop/Qt-5.6.0/mkspecs/macx-clang -I/usr/local/tdesktop/Qt-5.6.0/include/QtGui/5.6.0/QtGui -I/usr/local/tdesktop/Qt-5.6.0/include/QtCore/5.6.0/QtCore -I5.6.0/include -IGeneratedFiles/Debug -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/5.1/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include SourceFiles/_other/genemoji.h -o GeneratedFiles/Debug/moc_genemoji.cpp

moc: Cannot create GeneratedFiles/Debug/moc_genemoji.cpp
make: *** [GeneratedFiles/Debug/moc_genemoji.cpp] Error 1
Command /bin/sh failed with exit code 2

what should i do ?
help me, thanks!!!!

help wanted

Most helpful comment

I also met it, and finally found that moc can't create directory by self, you need mkdir -p GeneratedFiles/Debug in Telegram directory.

to @auchri : I think add mkdir -p GeneratedFiles/Debug to Preprocess is a better choice.
btw, why use Debug directory for qt generated files? I think use qt directory is better, Debug make me confuse with BUILD CONFIGURATION.

All 5 comments

bd62e1d1-2d30-4f2c-8699-0a5c24bc73d5

Did you try some solutions from google?

I tried, but I didn't use it.
thanks

I also met it, and finally found that moc can't create directory by self, you need mkdir -p GeneratedFiles/Debug in Telegram directory.

to @auchri : I think add mkdir -p GeneratedFiles/Debug to Preprocess is a better choice.
btw, why use Debug directory for qt generated files? I think use qt directory is better, Debug make me confuse with BUILD CONFIGURATION.

  1. You don't need to build MetaEmoji project, results are already in the source code here.
  2. It is legacy directory path used by Qt, because the moc files in theory can be different for different build configurations (because they respect preprocessor definitions), so originally Qt makes different moc files for different build configurations. But I used only the first one, Debug, for them for all configurations.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

LeonTheOriginal picture LeonTheOriginal  ·  3Comments

slowaways picture slowaways  ·  3Comments

FunctionalHacker picture FunctionalHacker  ·  3Comments

ArmeF97 picture ArmeF97  ·  3Comments

Justinzobel picture Justinzobel  ·  3Comments