PDA

View Full Version : Problems with Qt 4.8 and with ARToolkit 2.72




l00ney
Feb 2, 2012, 10:30 AM
Hi everybody,

I’m pretty new on Xcode 4.2, so maybe somebody can help me.

1. I’m trying to add Qt4.8 libraries to my Xcode Project. I have followed the steps of this web (http://qtnode.net/wiki/Qt4_with_Xcode) but I have any success. The program is built and run on Terminal but It doesn’t work on Xcode. I’ve been looking for in Google and It seems there’s no solution yet. Is it true ?.

2. I wanna work with Augmented Reality so I’m trying to install ARToolKit 2.72. I follow the intructions on this web (http://www.hitl.washington.edu/artoolkit/documentation/usersetup.htm#comp_macos)
cd ~/Desktop

tar zxvf ARToolKit-2.71.tgz
cd ~/ARToolKit

./Configure

make
cd bin

./simpleTest
but the result after the make command are two errors

make[2]: *** [video.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

Someone knows why have I these problems?
I have a MacBook Pro (early 2011) with Mac OS X Lion.

Thank you very much.



KnightWRX
Feb 2, 2012, 10:45 AM
Hi everybody,

I’m pretty new on Xcode 4.2, so maybe somebody can help me.

1. I’m trying to add Qt4.8 libraries to my Xcode Project. I have followed the steps of this web but I have any success. The program is built and run on Terminal but It doesn’t work on Xcode. I’ve been looking for in Google and It seems there’s no solution yet. Is it true ?.

Maybe if you posted error messages, what you expect to happen, what actually does happen we could answer and help.

2. I wanna work with Augmented Reality so I’m trying to install ARToolKit 2.72. I follow the intructions on this web
cd ~/Desktop

tar zxvf ARToolKit-2.71.tgz
cd ~/ARToolKit

./Configure

make
cd bin

./simpleTest
but the result after the make command are two errors

make[2]: *** [video.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

Someone knows why have I these problems?

No, because you failed to include the error messages that came before the generic "Error 1" "Error 2" messages.

l00ney
Feb 3, 2012, 12:09 PM
Hi KnightWRX,
First of all thank for your time.

For Qt 4.8:
I’m trying to import this simple program to Xcode (It works when I build it on Terminal, so I guess Qt4.8 is installed well).

#include <QApplication>
#include <QPushButton>

int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton button("Click");
button.show();
return app.exec();
}



This Web (http://qtnode.net/wiki/Qt4_with_Xcode) shows three diferents ways.
The first one is using Xcode makespec. I do the 5 step and when I try to open the Project this error appears “Failed to load Project. Incompatible Project versión.”

I try with the 2nd. Way (Creating a GNU Make Project), but I get a permission denied error, as follows I write you the details:

ExternalBuildToolExecution qmake
cd /Users/Jorge/Desktop/QtT
setenv ACTION
setenv ALTERNATE_GROUP staff
setenv ALTERNATE_MODE u+w,go-w,a+rX
setenv ALTERNATE_OWNER Jorge
setenv ALWAYS_SEARCH_USER_PATHS NO
setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer
setenv APPLE_INTERNAL_DIR /AppleInternal
setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation
setenv APPLE_INTERNAL_LIBRARY_DIR /AppleInternal/Library
setenv APPLE_INTERNAL_TOOLS /AppleInternal/Developer/Tools
setenv APPLY_RULES_IN_COPY_FILES NO
setenv ARCHS x86_64
setenv AVAILABLE_PLATFORMS "iphonesimulator macosx iphoneos"
setenv BUILD_COMPONENTS "headers build"
setenv BUILD_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products
setenv BUILD_ROOT /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products
setenv BUILD_STYLE
setenv BUILD_VARIANTS normal
setenv BUILT_PRODUCTS_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products/Debug
setenv CACHE_ROOT /var/folders/qs/v3d6lg855sz74lz4jhzwc2qw0000gp/C/com.apple.Xcode.502
setenv CLANG_ENABLE_OBJC_ARC YES
setenv CLASS_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/JavaClasses
setenv CLONE_HEADERS NO
setenv CONFIGURATION Debug
setenv CONFIGURATION_BUILD_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products/Debug
setenv CONFIGURATION_TEMP_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug
setenv COPYING_PRESERVES_HFS_DATA NO
setenv COPY_PHASE_STRIP NO
setenv DEAD_CODE_STRIPPING NO
setenv DEBUGGING_SYMBOLS YES
setenv DEPLOYMENT_LOCATION NO
setenv DEPLOYMENT_POSTPROCESSING NO
setenv DERIVED_FILES_DIR
setenv DERIVED_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/DerivedSources
setenv DERIVED_SOURCES_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/DerivedSources
setenv DEVELOPER_APPLICATIONS_DIR /Developer/Applications
setenv DEVELOPER_BIN_DIR /Developer/usr/bin
setenv DEVELOPER_DIR /Developer
setenv DEVELOPER_FRAMEWORKS_DIR /Developer/Library/Frameworks
setenv DEVELOPER_FRAMEWORKS_DIR_QUOTED "\"/Developer/Library/Frameworks\""
setenv DEVELOPER_LIBRARY_DIR /Developer/Library
setenv DEVELOPER_SDK_DIR /Developer/SDKs
setenv DEVELOPER_TOOLS_DIR /Developer/Tools
setenv DEVELOPER_USR_DIR /Developer/usr
setenv DEVELOPMENT_LANGUAGE English
setenv DO_HEADER_SCANNING_IN_JAM NO
setenv DSTROOT /tmp/QtT.dst
setenv DWARF_DSYM_FILE_NAME .dSYM
setenv DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT NO
setenv DWARF_DSYM_FOLDER_PATH /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products/Debug
setenv ENABLE_HEADER_DEPENDENCIES YES
setenv ENABLE_OPENMP_SUPPORT NO
setenv EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS ".DS_Store .svn .git .hg CVS"
setenv EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES "*.nib *.lproj *.framework *.gch *.xcode* (*) .DS_Store CVS .svn .git .hg"
setenv FILE_LIST /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/Objects/LinkFileList
setenv FRAMEWORK_VERSION A
setenv GCC3_VERSION 3.3
setenv GCC_C_LANGUAGE_STANDARD gnu99
setenv GCC_DYNAMIC_NO_PIC NO
setenv GCC_ENABLE_OBJC_EXCEPTIONS YES
setenv GCC_GENERATE_DEBUGGING_SYMBOLS YES
setenv GCC_OPTIMIZATION_LEVEL 0
setenv GCC_PREPROCESSOR_DEFINITIONS "DEBUG=1 "
setenv GCC_SYMBOLS_PRIVATE_EXTERN NO
setenv GCC_VERSION com.apple.compilers.llvm.clang.1_0
setenv GCC_WARN_64_TO_32_BIT_CONVERSION YES
setenv GCC_WARN_ABOUT_MISSING_PROTOTYPES YES
setenv GCC_WARN_ABOUT_RETURN_TYPE YES
setenv GCC_WARN_UNUSED_VARIABLE YES
setenv GENERATE_MASTER_OBJECT_FILE NO
setenv GENERATE_PKGINFO_FILE NO
setenv GID 20
setenv GROUP staff
setenv HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT YES
setenv HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES YES
setenv HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS YES
setenv HEADERMAP_INCLUDES_PROJECT_HEADERS YES
setenv INFOPLIST_EXPAND_BUILD_SETTINGS YES
setenv INFOPLIST_OUTPUT_FORMAT same-as-input
setenv INFOPLIST_PREPROCESS NO
setenv INSTALL_DIR /tmp/QtT.dst
setenv INSTALL_GROUP staff
setenv INSTALL_MODE_FLAG u+w,go-w,a+rX
setenv INSTALL_OWNER Jorge
setenv INSTALL_ROOT /tmp/QtT.dst
setenv JAVA_APP_STUB /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
setenv JAVA_ARCHIVE_CLASSES YES
setenv JAVA_ARCHIVE_TYPE JAR
setenv JAVA_COMPILER /usr/bin/javac
setenv JAVA_FRAMEWORK_RESOURCES_DIRS Resources
setenv JAVA_JAR_FLAGS cv
setenv JAVA_SOURCE_SUBDIR .
setenv JAVA_USE_DEPENDENCIES YES
setenv JAVA_ZIP_FLAGS -urg
setenv KEEP_PRIVATE_EXTERNS NO
setenv LD_GENERATE_MAP_FILE NO
setenv LD_MAP_FILE_PATH /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/qmake-LinkMap--.txt
setenv LD_NO_PIE NO
setenv LD_OPENMP_FLAGS -fopenmp
setenv LEGACY_DEVELOPER_DIR /Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
setenv LINKER_DISPLAYS_MANGLED_NAMES NO
setenv LINK_WITH_STANDARD_LIBRARIES YES
setenv LOCAL_ADMIN_APPS_DIR /Applications/Utilities
setenv LOCAL_APPS_DIR /Applications
setenv LOCAL_DEVELOPER_DIR /Library/Developer
setenv LOCAL_LIBRARY_DIR /Library
setenv MACOSX_DEPLOYMENT_TARGET 10.7
setenv MAC_OS_X_PRODUCT_BUILD_VERSION 11D50
setenv MAC_OS_X_VERSION_ACTUAL 1073
setenv MAC_OS_X_VERSION_MAJOR 1070
setenv MAC_OS_X_VERSION_MINOR 0703
setenv OBJECT_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/Objects
setenv OBJROOT /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates
setenv ONLY_ACTIVE_ARCH YES
setenv OPTIMIZATION_LEVEL 0
setenv OS MACOS
setenv PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES "/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Developer/Headers /Developer/SDKs /Developer/Platforms"
setenv PLATFORM_NAME macosx
setenv PLIST_FILE_OUTPUT_FORMAT same-as-input
setenv PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR YES
setenv PRECOMP_DESTINATION_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/PrefixHeaders
setenv PRESERVE_DEAD_CODE_INITS_AND_TERMS NO
setenv PRODUCT_NAME qmake
setenv PROFILING_CODE NO
setenv PROJECT QtT
setenv PROJECT_DERIVED_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/DerivedSources
setenv PROJECT_DIR /Users/Jorge/Desktop/QtT
setenv PROJECT_FILE_PATH /Users/Jorge/Desktop/QtT/QtT.xcodeproj
setenv PROJECT_NAME QtT
setenv PROJECT_TEMP_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build
setenv REMOVE_CVS_FROM_RESOURCES YES
setenv REMOVE_GIT_FROM_RESOURCES YES
setenv REMOVE_HG_FROM_RESOURCES YES
setenv REMOVE_SVN_FROM_RESOURCES YES
setenv RUN_CLANG_STATIC_ANALYZER NO
setenv SCAN_ALL_SOURCE_FILES_FOR_INCLUDES NO
setenv SDKROOT /Developer/SDKs/MacOSX10.7.sdk
setenv SEPARATE_STRIP NO
setenv SEPARATE_SYMBOL_EDIT NO
setenv SHARED_DERIVED_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products/Debug/DerivedSources
setenv SHARED_PRECOMPS_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/PrecompiledHeaders
setenv SKIP_INSTALL YES
setenv SOURCE_ROOT /Users/Jorge/Desktop/QtT
setenv SRCROOT /Users/Jorge/Desktop/QtT
setenv STRINGS_FILE_OUTPUT_ENCODING UTF-16
setenv STRIP_INSTALLED_PRODUCT YES
setenv STRIP_STYLE all
setenv SUPPORTED_PLATFORMS macosx
setenv SYMROOT /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products
setenv SYSTEM_ADMIN_APPS_DIR /Applications/Utilities
setenv SYSTEM_APPS_DIR /Applications
setenv SYSTEM_CORE_SERVICES_DIR /System/Library/CoreServices
setenv SYSTEM_DEMOS_DIR /Applications/Extras
setenv SYSTEM_DEVELOPER_APPS_DIR /Developer/Applications
setenv SYSTEM_DEVELOPER_BIN_DIR /Developer/usr/bin
setenv SYSTEM_DEVELOPER_DEMOS_DIR "/Developer/Applications/Utilities/Built Examples"
setenv SYSTEM_DEVELOPER_DIR /Developer
setenv SYSTEM_DEVELOPER_DOC_DIR "/Developer/ADC Reference Library"
setenv SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR "/Developer/Applications/Graphics Tools"
setenv SYSTEM_DEVELOPER_JAVA_TOOLS_DIR "/Developer/Applications/Java Tools"
setenv SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR "/Developer/Applications/Performance Tools"
setenv SYSTEM_DEVELOPER_RELEASENOTES_DIR "/Developer/ADC Reference Library/releasenotes"
setenv SYSTEM_DEVELOPER_TOOLS /Developer/Tools
setenv SYSTEM_DEVELOPER_TOOLS_DOC_DIR "/Developer/ADC Reference Library/documentation/DeveloperTools"
setenv SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR "/Developer/ADC Reference Library/releasenotes/DeveloperTools"
setenv SYSTEM_DEVELOPER_USR_DIR /Developer/usr
setenv SYSTEM_DEVELOPER_UTILITIES_DIR /Developer/Applications/Utilities
setenv SYSTEM_DOCUMENTATION_DIR /Library/Documentation
setenv SYSTEM_LIBRARY_DIR /System/Library
setenv TARGETNAME qmake
setenv TARGET_BUILD_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products/Debug
setenv TARGET_NAME qmake
setenv TARGET_TEMP_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build
setenv TEMP_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build
setenv TEMP_FILES_DIR
setenv TEMP_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build
setenv TEMP_ROOT /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates
setenv TEST_AFTER_BUILD NO
setenv UID 502
setenv USER Jorge
setenv USER_APPS_DIR /Users/Jorge/Applications
setenv USER_LIBRARY_DIR /Users/Jorge/Library
setenv XCODE_APP_SUPPORT_DIR /Developer/Library/Xcode
setenv XCODE_PRODUCT_BUILD_VERSION 4D502
setenv XCODE_VERSION_ACTUAL 0421
setenv XCODE_VERSION_MAJOR 0400
setenv XCODE_VERSION_MINOR 0420
/usr/local/Trolltech/Qt-4.8.0/bin

error: can't exec '/usr/local/Trolltech/Qt-4.8.0/bin' (Permission denied)


And the 3rd. option, I didn't try 'cause I'm not familiar with Carbon/Cocoa.

l00ney
Feb 3, 2012, 12:12 PM
About the ARToolkit,
I follow the instructions of this web (http://www.hitl.washington.edu/artoolkit/documentation/usersetup.htm) and I get these errors:
>./configure
>make
(cd lib/SRC; make -f Makefile)
(cd AR; make -f Makefile)
cc -c -O -I../../../include mAlloc.c
ar -r ../../libAR.a mAlloc.o
ar: creating archive ../../libAR.a
ranlib ../../libAR.a
rm -f mAlloc.o
cc -c -O -I../../../include mFree.c
ar -r ../../libAR.a mFree.o
ranlib ../../libAR.a
rm -f mFree.o
cc -c -O -I../../../include mAllocDup.c
ar -r ../../libAR.a mAllocDup.o
ranlib ../../libAR.a
rm -f mAllocDup.o
cc -c -O -I../../../include mDup.c
ar -r ../../libAR.a mDup.o
ranlib ../../libAR.a
rm -f mDup.o
cc -c -O -I../../../include mAllocTrans.c
ar -r ../../libAR.a mAllocTrans.o
ranlib ../../libAR.a
rm -f mAllocTrans.o
cc -c -O -I../../../include mTrans.c
ar -r ../../libAR.a mTrans.o
ranlib ../../libAR.a
rm -f mTrans.o
cc -c -O -I../../../include mAllocMul.c
ar -r ../../libAR.a mAllocMul.o
ranlib ../../libAR.a
rm -f mAllocMul.o
cc -c -O -I../../../include mMul.c
ar -r ../../libAR.a mMul.o
ranlib ../../libAR.a
rm -f mMul.o
cc -c -O -I../../../include mAllocInv.c
ar -r ../../libAR.a mAllocInv.o
ranlib ../../libAR.a
rm -f mAllocInv.o
cc -c -O -I../../../include mInv.c
ar -r ../../libAR.a mInv.o
ranlib ../../libAR.a
rm -f mInv.o
cc -c -O -I../../../include mSelfInv.c
ar -r ../../libAR.a mSelfInv.o
ranlib ../../libAR.a
rm -f mSelfInv.o
cc -c -O -I../../../include mAllocUnit.c
ar -r ../../libAR.a mAllocUnit.o
ranlib ../../libAR.a
rm -f mAllocUnit.o
cc -c -O -I../../../include mUnit.c
ar -r ../../libAR.a mUnit.o
ranlib ../../libAR.a
rm -f mUnit.o
cc -c -O -I../../../include mDisp.c
ar -r ../../libAR.a mDisp.o
ranlib ../../libAR.a
rm -f mDisp.o
cc -c -O -I../../../include mDet.c
ar -r ../../libAR.a mDet.o
ranlib ../../libAR.a
rm -f mDet.o
cc -c -O -I../../../include mPCA.c
ar -r ../../libAR.a mPCA.o
ranlib ../../libAR.a
rm -f mPCA.o
cc -c -O -I../../../include vAlloc.c
ar -r ../../libAR.a vAlloc.o
ranlib ../../libAR.a
rm -f vAlloc.o
cc -c -O -I../../../include vDisp.c
ar -r ../../libAR.a vDisp.o
ranlib ../../libAR.a
rm -f vDisp.o
cc -c -O -I../../../include vFree.c
ar -r ../../libAR.a vFree.o
ranlib ../../libAR.a
rm -f vFree.o
cc -c -O -I../../../include vHouse.c
ar -r ../../libAR.a vHouse.o
ranlib ../../libAR.a
rm -f vHouse.o
cc -c -O -I../../../include vInnerP.c
ar -r ../../libAR.a vInnerP.o
ranlib ../../libAR.a
rm -f vInnerP.o
cc -c -O -I../../../include vTridiag.c
ar -r ../../libAR.a vTridiag.o
ranlib ../../libAR.a
rm -f vTridiag.o
cc -c -O -I../../../include paramGet.c
ar -r ../../libAR.a paramGet.o
ranlib ../../libAR.a
rm -f paramGet.o
cc -c -O -I../../../include paramDecomp.c
ar -r ../../libAR.a paramDecomp.o
ranlib ../../libAR.a
rm -f paramDecomp.o
cc -c -O -I../../../include paramDistortion.c
ar -r ../../libAR.a paramDistortion.o
ranlib ../../libAR.a
rm -f paramDistortion.o
cc -c -O -I../../../include paramChangeSize.c
ar -r ../../libAR.a paramChangeSize.o
ranlib ../../libAR.a
rm -f paramChangeSize.o
cc -c -O -I../../../include paramFile.c
ar -r ../../libAR.a paramFile.o
ranlib ../../libAR.a
rm -f paramFile.o
cc -c -O -I../../../include paramDisp.c
ar -r ../../libAR.a paramDisp.o
ranlib ../../libAR.a
rm -f paramDisp.o
cc -c -O -I../../../include arDetectMarker.c
ar -r ../../libAR.a arDetectMarker.o
ranlib ../../libAR.a
rm -f arDetectMarker.o
cc -c -O -I../../../include arGetTransMat.c
ar -r ../../libAR.a arGetTransMat.o
ranlib ../../libAR.a
rm -f arGetTransMat.o
cc -c -O -I../../../include arGetTransMat2.c
ar -r ../../libAR.a arGetTransMat2.o
ranlib ../../libAR.a
rm -f arGetTransMat2.o
cc -c -O -I../../../include arGetTransMat3.c
ar -r ../../libAR.a arGetTransMat3.o
ranlib ../../libAR.a
rm -f arGetTransMat3.o
cc -c -O -I../../../include arGetTransMatCont.c
ar -r ../../libAR.a arGetTransMatCont.o
ranlib ../../libAR.a
rm -f arGetTransMatCont.o
cc -c -O -I../../../include arLabeling.c
ar -r ../../libAR.a arLabeling.o
ranlib ../../libAR.a
rm -f arLabeling.o
cc -c -O -I../../../include arDetectMarker2.c
ar -r ../../libAR.a arDetectMarker2.o
ranlib ../../libAR.a
rm -f arDetectMarker2.o
cc -c -O -I../../../include arGetMarkerInfo.c
ar -r ../../libAR.a arGetMarkerInfo.o
ranlib ../../libAR.a
rm -f arGetMarkerInfo.o
cc -c -O -I../../../include arGetCode.c
ar -r ../../libAR.a arGetCode.o
ranlib ../../libAR.a
rm -f arGetCode.o
cc -c -O -I../../../include arUtil.c
ar -r ../../libAR.a arUtil.o
ranlib ../../libAR.a
rm -f arUtil.o
(cd ARMulti; make -f Makefile)
cc -c -O -I../../../include arMultiReadConfigFile.c
ar -r ../../libARMulti.a arMultiReadConfigFile.o
ar: creating archive ../../libARMulti.a
ranlib ../../libARMulti.a
rm -f arMultiReadConfigFile.o
cc -c -O -I../../../include arMultiGetTransMat.c
ar -r ../../libARMulti.a arMultiGetTransMat.o
ranlib ../../libARMulti.a
rm -f arMultiGetTransMat.o
cc -c -O -I../../../include arMultiActivate.c
ar -r ../../libARMulti.a arMultiActivate.o
ranlib ../../libARMulti.a
rm -f arMultiActivate.o
(cd Gl; make -f Makefile)
cc -c -O -I../../../include gsub.c
ar -r ../../libARgsub.a gsub.o
ar: creating archive ../../libARgsub.a
ranlib ../../libARgsub.a
rm -f gsub.o
cc -c -O -I../../../include gsubUtil.c
ar -r ../../libARgsubUtil.a gsubUtil.o
ar: creating archive ../../libARgsubUtil.a
ranlib ../../libARgsubUtil.a
rm -f gsubUtil.o
cc -c -O -I../../../include gsub_lite.c
gsub_lite.c: In function ‘arglCameraFrustum’:
gsub_lite.c:659: warning: passing argument 1 of ‘arParamDecompMat’ from incompatible pointer type
gsub_lite.c: In function ‘arglCameraFrustumRH’:
gsub_lite.c:718: warning: passing argument 1 of ‘arParamDecompMat’ from incompatible pointer type
ar -r ../../libARgsub_lite.a gsub_lite.o
ar: creating archive ../../libARgsub_lite.a
ranlib ../../libARgsub_lite.a
rm -f gsub_lite.o
(cd VideoMacOSX; make -f Makefile)
cc -fpascal-strings -O -I../../../include -c -o video.o video.c
In file included from video.c:92:
videoInternal.h:38: error: expected declaration specifiers or ‘...’ before ‘SeqGrabComponent’
videoInternal.h:38: error: expected declaration specifiers or ‘...’ before ‘SGChannel’
video.c:126: error: expected specifier-qualifier-list before ‘SeqGrabComponent’
video.c:199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘MakeSequenceGrabber’
video.c:262: error: expected ‘)’ before ‘seqGrab’
video.c: In function ‘vdgGetSettings’:
video.c:299: error: ‘VdigGrab’ has no member named ‘sgchanVideo’
video.c:300: error: ‘VdigGrab’ has no member named ‘cpDepth’
video.c:301: error: ‘VdigGrab’ has no member named ‘cpCompressor’
video.c:302: error: ‘VdigGrab’ has no member named ‘cpSpatialQuality’
video.c:303: error: ‘VdigGrab’ has no member named ‘cpTemporalQuality’
video.c:304: error: ‘VdigGrab’ has no member named ‘cpKeyFrameRate’
video.c:305: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:305: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:309: error: ‘VdigGrab’ has no member named ‘sgchanVideo’
video.c:309: error: ‘VdigGrab’ has no member named ‘cpFrameRate’
video.c:310: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:310: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:315: error: ‘VdigGrab’ has no member named ‘vdCompInst’
video.c:315: error: ‘VdigGrab’ has no member named ‘sgchanVideo’
video.c: In function ‘vdgAllocAndInit’:
video.c:335: error: ‘struct _VdigGrab’ has no member named ‘seqGrab’
video.c:341: error: ‘struct _VdigGrab’ has no member named ‘seqGrab’
video.c:341: error: ‘struct _VdigGrab’ has no member named ‘sgchanVideo’
video.c: In function ‘vdgRequestSettings’:
video.c:355: error: ‘VdigGrab’ has no member named ‘seqGrab’
video.c:355: error: ‘VdigGrab’ has no member named ‘sgchanVideo’
video.c:355: error: too many arguments to function ‘RequestSGSettings’
video.c:356: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:356: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:361: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:361: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c: At top level:
video.c:369: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vdgGetDeviceNameAndFlags’
video.c: In function ‘vdgSetDestination’:
video.c:410: error: ‘VdigGrab’ has no member named ‘dstPort’
video.c: At top level:
video.c:414: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vdgPreflightGrabbing’
video.c:539: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vdgGetDataRate’
video.c:558: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vdgGetImageDescription’
video.c: In function ‘vdgDecompressionSequenceBegin’:
video.c:585: error: ‘VdigGrab’ has no member named ‘vdImageDesc’
video.c:586: error: ‘VdigGrab’ has no member named ‘vdImageDesc’
video.c:599: error: ‘VdigGrab’ has no member named ‘dstImageSeq’
video.c:600: error: ‘VdigGrab’ has no member named ‘vdImageDesc’
video.c:610: error: ‘codecHighQuality’ undeclared (first use in this function)
video.c:610: error: (Each undeclared identifier is reported only once
video.c:610: error: for each function it appears in.)
video.c:611: error: ‘bestSpeedCodec’ undeclared (first use in this function)
video.c: In function ‘vdgDecompressionSequenceWhen’:
video.c:628: error: ‘VdigGrab’ has no member named ‘dstImageSeq’
video.c: In function ‘vdgDecompressionSequenceEnd’:
video.c:648: error: ‘VdigGrab’ has no member named ‘dstImageSeq’
video.c:655: error: ‘VdigGrab’ has no member named ‘dstImageSeq’
video.c:661: error: ‘VdigGrab’ has no member named ‘dstImageSeq’
video.c: At top level:
video.c:667: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vdgStartGrabbing’
video.c:696: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vdgStopGrabbing’
video.c:723: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vdgPoll’
video.c:764: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vdgReleaseBuffer’
video.c:778: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vdgIdle’
video.c: In function ‘vdgReleaseAndDealloc’:
video.c:832: error: ‘VdigGrab’ has no member named ‘vdImageDesc’
video.c:833: error: ‘VdigGrab’ has no member named ‘vdImageDesc’
video.c:834: error: ‘VdigGrab’ has no member named ‘vdImageDesc’
video.c:837: error: ‘VdigGrab’ has no member named ‘vdCompInst’
video.c:838: error: ‘VdigGrab’ has no member named ‘vdCompInst’
video.c:839: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:839: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:840: error: ‘VdigGrab’ has no member named ‘vdCompInst’
video.c:843: error: ‘VdigGrab’ has no member named ‘sgchanVideo’
video.c:844: error: ‘VdigGrab’ has no member named ‘seqGrab’
video.c:844: error: ‘VdigGrab’ has no member named ‘sgchanVideo’
video.c:845: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:845: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:846: error: ‘VdigGrab’ has no member named ‘sgchanVideo’
video.c:849: error: ‘VdigGrab’ has no member named ‘seqGrab’
video.c:850: error: ‘VdigGrab’ has no member named ‘seqGrab’
video.c:851: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:851: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:852: error: ‘VdigGrab’ has no member named ‘seqGrab’
video.c: In function ‘ar2VideoInternalThread’:
video.c:1059: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1059: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c: In function ‘ar2VideoOpen’:
video.c:1396: warning: passing argument 2 of ‘Gestalt’ from incompatible pointer type
video.c:1454: warning: passing argument 2 of ‘Gestalt’ from incompatible pointer type
video.c:1480: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1480: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1485: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1485: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1495: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1495: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1520: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1520: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c: In function ‘ar2VideoCapStart’:
video.c:1788: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1788: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1795: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1795: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c: In function ‘ar2VideoCapStop’:
video.c:1868: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
video.c:1868: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘ComponentResult’
make[2]: *** [video.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

KnightWRX
Feb 3, 2012, 12:20 PM
About the ARToolkit,
I follow the instructions of this web (http://www.hitl.washington.edu/artoolkit/documentation/usersetup.htm) and I get these errors:
(cd VideoMacOSX; make -f Makefile)
cc -fpascal-strings -O -I../../../include -c -o video.o video.c
In file included from video.c:92:
videoInternal.h:38: error: expected declaration specifiers or ‘...’ before ‘SeqGrabComponent’
videoInternal.h:38: error: expected declaration specifiers or ‘...’ before ‘SGChannel’


Your long series of errors has to do with this one. What is line 38 of videoInternal.h ?

----------

Hi KnightWRX,
First of all thank for your time.


I try with the 2nd. Way (Creating a GNU Make Project), but I get a permission denied error, as follows I write you the details:

/usr/local/Trolltech/Qt-4.8.0/bin

error: can't exec '/usr/local/Trolltech/Qt-4.8.0/bin' (Permission denied)



You're missing something on that last line. I bet it should read like follows :

/usr/local/Trolltech/Qt-4.8.0/bin/qmake

l00ney
Feb 3, 2012, 12:51 PM
Your long series of errors has to do with this one. What is line 38 of videoInternal.h ?


It's an ARToolkit's header file. This is the code but I don't know how fix the problem.
/*
*
* This file is part of ARToolKit.
*
* ARToolKit is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* ARToolKit is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ARToolKit; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/

#ifndef __videoSettings_h__
#define __videoSettings_h__

#include <Carbon/Carbon.h>
#include <QuickTime/QuickTime.h>

#ifdef __cplusplus
extern "C" {
#endif

OSStatus RequestSGSettings(const int inputIndex, SeqGrabComponent seqGrab, SGChannel sgchanVideo, const int showDialog, const int standardDialog);

#ifdef __cplusplus
}
#endif

#endif // __videoSettings_h__



You're missing something on that last line. I bet it should read like follows :

/usr/local/Trolltech/Qt-4.8.0/bin/qmake

I've just changed the path but now I get this error:

ExternalBuildToolExecution qmake
cd /Users/Jorge/Desktop/QtT
setenv ACTION
setenv ALTERNATE_GROUP staff
setenv ALTERNATE_MODE u+w,go-w,a+rX
setenv ALTERNATE_OWNER Jorge
setenv ALWAYS_SEARCH_USER_PATHS NO
setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer
setenv APPLE_INTERNAL_DIR /AppleInternal
setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation
setenv APPLE_INTERNAL_LIBRARY_DIR /AppleInternal/Library
setenv APPLE_INTERNAL_TOOLS /AppleInternal/Developer/Tools
setenv APPLY_RULES_IN_COPY_FILES NO
setenv ARCHS x86_64
setenv AVAILABLE_PLATFORMS "iphonesimulator macosx iphoneos"
setenv BUILD_COMPONENTS "headers build"
setenv BUILD_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products
setenv BUILD_ROOT /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products
setenv BUILD_STYLE
setenv BUILD_VARIANTS normal
setenv BUILT_PRODUCTS_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products/Debug
setenv CACHE_ROOT /var/folders/qs/v3d6lg855sz74lz4jhzwc2qw0000gp/C/com.apple.Xcode.502
setenv CLANG_ENABLE_OBJC_ARC YES
setenv CLASS_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/JavaClasses
setenv CLONE_HEADERS NO
setenv CONFIGURATION Debug
setenv CONFIGURATION_BUILD_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products/Debug
setenv CONFIGURATION_TEMP_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug
setenv COPYING_PRESERVES_HFS_DATA NO
setenv COPY_PHASE_STRIP NO
setenv DEAD_CODE_STRIPPING NO
setenv DEBUGGING_SYMBOLS YES
setenv DEPLOYMENT_LOCATION NO
setenv DEPLOYMENT_POSTPROCESSING NO
setenv DERIVED_FILES_DIR
setenv DERIVED_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/DerivedSources
setenv DERIVED_SOURCES_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/DerivedSources
setenv DEVELOPER_APPLICATIONS_DIR /Developer/Applications
setenv DEVELOPER_BIN_DIR /Developer/usr/bin
setenv DEVELOPER_DIR /Developer
setenv DEVELOPER_FRAMEWORKS_DIR /Developer/Library/Frameworks
setenv DEVELOPER_FRAMEWORKS_DIR_QUOTED "\"/Developer/Library/Frameworks\""
setenv DEVELOPER_LIBRARY_DIR /Developer/Library
setenv DEVELOPER_SDK_DIR /Developer/SDKs
setenv DEVELOPER_TOOLS_DIR /Developer/Tools
setenv DEVELOPER_USR_DIR /Developer/usr
setenv DEVELOPMENT_LANGUAGE English
setenv DO_HEADER_SCANNING_IN_JAM NO
setenv DSTROOT /tmp/QtT.dst
setenv DWARF_DSYM_FILE_NAME .dSYM
setenv DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT NO
setenv DWARF_DSYM_FOLDER_PATH /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products/Debug
setenv ENABLE_HEADER_DEPENDENCIES YES
setenv ENABLE_OPENMP_SUPPORT NO
setenv EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS ".DS_Store .svn .git .hg CVS"
setenv EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES "*.nib *.lproj *.framework *.gch *.xcode* (*) .DS_Store CVS .svn .git .hg"
setenv FILE_LIST /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/Objects/LinkFileList
setenv FRAMEWORK_VERSION A
setenv GCC3_VERSION 3.3
setenv GCC_C_LANGUAGE_STANDARD gnu99
setenv GCC_DYNAMIC_NO_PIC NO
setenv GCC_ENABLE_OBJC_EXCEPTIONS YES
setenv GCC_GENERATE_DEBUGGING_SYMBOLS YES
setenv GCC_OPTIMIZATION_LEVEL 0
setenv GCC_PREPROCESSOR_DEFINITIONS "DEBUG=1 "
setenv GCC_SYMBOLS_PRIVATE_EXTERN NO
setenv GCC_VERSION com.apple.compilers.llvm.clang.1_0
setenv GCC_WARN_64_TO_32_BIT_CONVERSION YES
setenv GCC_WARN_ABOUT_MISSING_PROTOTYPES YES
setenv GCC_WARN_ABOUT_RETURN_TYPE YES
setenv GCC_WARN_UNUSED_VARIABLE YES
setenv GENERATE_MASTER_OBJECT_FILE NO
setenv GENERATE_PKGINFO_FILE NO
setenv GID 20
setenv GROUP staff
setenv HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT YES
setenv HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES YES
setenv HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS YES
setenv HEADERMAP_INCLUDES_PROJECT_HEADERS YES
setenv INFOPLIST_EXPAND_BUILD_SETTINGS YES
setenv INFOPLIST_OUTPUT_FORMAT same-as-input
setenv INFOPLIST_PREPROCESS NO
setenv INSTALL_DIR /tmp/QtT.dst
setenv INSTALL_GROUP staff
setenv INSTALL_MODE_FLAG u+w,go-w,a+rX
setenv INSTALL_OWNER Jorge
setenv INSTALL_ROOT /tmp/QtT.dst
setenv JAVA_APP_STUB /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
setenv JAVA_ARCHIVE_CLASSES YES
setenv JAVA_ARCHIVE_TYPE JAR
setenv JAVA_COMPILER /usr/bin/javac
setenv JAVA_FRAMEWORK_RESOURCES_DIRS Resources
setenv JAVA_JAR_FLAGS cv
setenv JAVA_SOURCE_SUBDIR .
setenv JAVA_USE_DEPENDENCIES YES
setenv JAVA_ZIP_FLAGS -urg
setenv KEEP_PRIVATE_EXTERNS NO
setenv LD_GENERATE_MAP_FILE NO
setenv LD_MAP_FILE_PATH /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/qmake-LinkMap--.txt
setenv LD_NO_PIE NO
setenv LD_OPENMP_FLAGS -fopenmp
setenv LEGACY_DEVELOPER_DIR /Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
setenv LINKER_DISPLAYS_MANGLED_NAMES NO
setenv LINK_WITH_STANDARD_LIBRARIES YES
setenv LOCAL_ADMIN_APPS_DIR /Applications/Utilities
setenv LOCAL_APPS_DIR /Applications
setenv LOCAL_DEVELOPER_DIR /Library/Developer
setenv LOCAL_LIBRARY_DIR /Library
setenv MACOSX_DEPLOYMENT_TARGET 10.7
setenv MAC_OS_X_PRODUCT_BUILD_VERSION 11D50
setenv MAC_OS_X_VERSION_ACTUAL 1073
setenv MAC_OS_X_VERSION_MAJOR 1070
setenv MAC_OS_X_VERSION_MINOR 0703
setenv OBJECT_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/Objects
setenv OBJROOT /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates
setenv ONLY_ACTIVE_ARCH YES
setenv OPTIMIZATION_LEVEL 0
setenv OS MACOS
setenv PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES "/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Developer/Headers /Developer/SDKs /Developer/Platforms"
setenv PLATFORM_NAME macosx
setenv PLIST_FILE_OUTPUT_FORMAT same-as-input
setenv PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR YES
setenv PRECOMP_DESTINATION_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build/PrefixHeaders
setenv PRESERVE_DEAD_CODE_INITS_AND_TERMS NO
setenv PRODUCT_NAME qmake
setenv PROFILING_CODE NO
setenv PROJECT QtT
setenv PROJECT_DERIVED_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/DerivedSources
setenv PROJECT_DIR /Users/Jorge/Desktop/QtT
setenv PROJECT_FILE_PATH /Users/Jorge/Desktop/QtT/QtT.xcodeproj
setenv PROJECT_NAME QtT
setenv PROJECT_TEMP_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build
setenv REMOVE_CVS_FROM_RESOURCES YES
setenv REMOVE_GIT_FROM_RESOURCES YES
setenv REMOVE_HG_FROM_RESOURCES YES
setenv REMOVE_SVN_FROM_RESOURCES YES
setenv RUN_CLANG_STATIC_ANALYZER NO
setenv SCAN_ALL_SOURCE_FILES_FOR_INCLUDES NO
setenv SDKROOT /Developer/SDKs/MacOSX10.7.sdk
setenv SEPARATE_STRIP NO
setenv SEPARATE_SYMBOL_EDIT NO
setenv SHARED_DERIVED_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products/Debug/DerivedSources
setenv SHARED_PRECOMPS_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/PrecompiledHeaders
setenv SKIP_INSTALL YES
setenv SOURCE_ROOT /Users/Jorge/Desktop/QtT
setenv SRCROOT /Users/Jorge/Desktop/QtT
setenv STRINGS_FILE_OUTPUT_ENCODING UTF-16
setenv STRIP_INSTALLED_PRODUCT YES
setenv STRIP_STYLE all
setenv SUPPORTED_PLATFORMS macosx
setenv SYMROOT /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products
setenv SYSTEM_ADMIN_APPS_DIR /Applications/Utilities
setenv SYSTEM_APPS_DIR /Applications
setenv SYSTEM_CORE_SERVICES_DIR /System/Library/CoreServices
setenv SYSTEM_DEMOS_DIR /Applications/Extras
setenv SYSTEM_DEVELOPER_APPS_DIR /Developer/Applications
setenv SYSTEM_DEVELOPER_BIN_DIR /Developer/usr/bin
setenv SYSTEM_DEVELOPER_DEMOS_DIR "/Developer/Applications/Utilities/Built Examples"
setenv SYSTEM_DEVELOPER_DIR /Developer
setenv SYSTEM_DEVELOPER_DOC_DIR "/Developer/ADC Reference Library"
setenv SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR "/Developer/Applications/Graphics Tools"
setenv SYSTEM_DEVELOPER_JAVA_TOOLS_DIR "/Developer/Applications/Java Tools"
setenv SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR "/Developer/Applications/Performance Tools"
setenv SYSTEM_DEVELOPER_RELEASENOTES_DIR "/Developer/ADC Reference Library/releasenotes"
setenv SYSTEM_DEVELOPER_TOOLS /Developer/Tools
setenv SYSTEM_DEVELOPER_TOOLS_DOC_DIR "/Developer/ADC Reference Library/documentation/DeveloperTools"
setenv SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR "/Developer/ADC Reference Library/releasenotes/DeveloperTools"
setenv SYSTEM_DEVELOPER_USR_DIR /Developer/usr
setenv SYSTEM_DEVELOPER_UTILITIES_DIR /Developer/Applications/Utilities
setenv SYSTEM_DOCUMENTATION_DIR /Library/Documentation
setenv SYSTEM_LIBRARY_DIR /System/Library
setenv TARGETNAME qmake
setenv TARGET_BUILD_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Products/Debug
setenv TARGET_NAME qmake
setenv TARGET_TEMP_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build
setenv TEMP_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build
setenv TEMP_FILES_DIR
setenv TEMP_FILE_DIR /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates/QtT.build/Debug/qmake.build
setenv TEMP_ROOT /Users/Jorge/Library/Developer/Xcode/DerivedData/QtT-fquynxarcqjlizhgqnkthysvxoao/Build/Intermediates
setenv TEST_AFTER_BUILD NO
setenv UID 502
setenv USER Jorge
setenv USER_APPS_DIR /Users/Jorge/Applications
setenv USER_LIBRARY_DIR /Users/Jorge/Library
setenv XCODE_APP_SUPPORT_DIR /Developer/Library/Xcode
setenv XCODE_PRODUCT_BUILD_VERSION 4D502
setenv XCODE_VERSION_ACTUAL 0421
setenv XCODE_VERSION_MAJOR 0400
setenv XCODE_VERSION_MINOR 0420
/usr/local/Trolltech/Qt-4.8.0/bin/qmake

Usage: /usr/local/Trolltech/Qt-4.8.0/bin/qmake [mode] [options] [files]

QMake has two modes, one mode for generating project files based on
some heuristics, and the other for generating makefiles. Normally you
shouldn't need to specify a mode, as makefile generation is the default
mode for qmake, but you may use this to test qmake on an existing project

Mode:
-project Put qmake into project file generation mode
In this mode qmake interprets files as files to
be built,
defaults to *.c; *.ui; *.y; *.l; *.ts; *.xlf; *.qrc; *.h; *.hpp; *.hh; *.hxx; *.H; *.cpp; *.cc; *.cxx; *.C
Note: The created .pro file probably will
need to be edited. For example add the QT variable to
specify what modules are required.
-makefile Put qmake into makefile generation mode (default)
In this mode qmake interprets files as project files to
be processed, if skipped qmake will try to find a project
file in your current working directory

Warnings Options:
-Wnone Turn off all warnings; specific ones may be re-enabled by
later -W options
-Wall Turn on all warnings
-Wparser Turn on parser warnings
-Wlogic Turn on logic warnings (on by default)
-Wdeprecated Turn on deprecation warnings (on by default)

Options:
* You can place any variable assignment in options and it will be *
* processed as if it was in [files]. These assignments will be parsed *
* before [files]. *
-o file Write output to file
-d Increase debug level
-t templ Overrides TEMPLATE as templ
-tp prefix Overrides TEMPLATE so that prefix is prefixed into the value
-help This help
-v Version information
-after All variable assignments after this will be
parsed after [files]
-norecursive Don't do a recursive search
-recursive Do a recursive search
-set <prop> <value> Set persistent property
-unset <prop> Unset persistent property
-query <prop> Query persistent property. Show all if <prop> is empty.
-cache file Use file as cache [makefile mode only]
-spec spec Use spec as QMAKESPEC [makefile mode only]
-nocache Don't use a cache file [makefile mode only]
-nodepend Don't generate dependencies [makefile mode only]
-nomoc Don't generate moc targets [makefile mode only]
-nopwd Don't look for files in pwd [project mode only]
Command /usr/local/Trolltech/Qt-4.8.0/bin/qmake failed with exit code 1

KnightWRX
Feb 3, 2012, 01:02 PM
It's an ARToolkit's header file. This is the code but I don't know how fix the problem.

That file is only 37 lines long. Searching the web quickly produces this bug report about this specific issue on compiling ARToolkit from the command-line :

http://sourceforge.net/tracker/?func=detail&atid=674306&aid=2884730&group_id=116280

The solution is to build the toolkit using XCode rather than the command-line :

As far as I know, the latest version of ARToolkit (2.7.1 I believe) will
not compile from the command line in OS X 10.6. However, you can use Xcode
(using the ARToolkit.xcodeproj project file) to compile and run ARToolkit
if you change the active SDK to "Mac OS X 10.5".
Personally, I still find this a hindrance as I am developing a
cross-platform application, so creating universal Makefiles becomes
difficult when we are forced to use Xcode. Not to mention those pesky Xcode
files that need to be tracked in source control... and that I would prefer
to use a thiner editor than Xcode (such as macvim) and compile from the
command line.
Can we be expecting a fix for this any time soon?

I've just changed the path but now I get this error:


Then that's not it. Are you sure you properly followed the instructions ? You can't just "execute" a folder, so if it's not qmake it's expecting, it's something else.

Re-read the instructions.

l00ney
Feb 3, 2012, 03:10 PM
That file is only 37 lines long. Searching the web quickly produces this bug report about this specific issue on compiling ARToolkit from the command-line :

http://sourceforge.net/tracker/?func=detail&atid=674306&aid=2884730&group_id=116280

The solution is to build the toolkit using XCode rather than the command-line :
As far as I know, the latest version of ARToolkit (2.7.1 I believe) will
not compile from the command line in OS X 10.6. However, you can use Xcode
(using the ARToolkit.xcodeproj project file) to compile and run ARToolkit
if you change the active SDK to "Mac OS X 10.5".
Personally, I still find this a hindrance as I am developing a
cross-platform application, so creating universal Makefiles becomes
difficult when we are forced to use Xcode. Not to mention those pesky Xcode
files that need to be tracked in source control... and that I would prefer
to use a thiner editor than Xcode (such as macvim) and compile from the
command line.
Can we be expecting a fix for this any time soon?


It works. The ARToolkit problem is fixed.
Thank you very much, KnightWRX!


Then that's not it. Are you sure you properly followed the instructions ? You can't just "execute" a folder, so if it's not qmake it's expecting, it's something else.

Re-read the instructions.

The Qt 4.8 is well installed 'cause it works on the command line.
I think I followed the instructions well but I am gonna keep trying.