Home Help Center

We are getting compile error when try to compile the iPhone Chat client.

aamitguptaaamitgupta Member Amit GuptaOrganization: personalProject: Chat
HI,

I have downloaded the iPhone Chat client and i have successfully configure it on my Mac machine for iPhone SDK 3.0 and it runs, but when i configure it on another mac machine OS 10.6.2 for iphone OS 3.1.3, the Iphone code gives compilation error. Chat.ice not found etc. can anybody help me.

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi

    Can you copy/paste the error here? Is the Xcode plugin correctly installed in /Developer/Library/Xcode/Plug-ins/slice2objcplugin.pbplugin?

    Cheers,
    Benoit.
  • aamitguptaaamitgupta Member Amit GuptaOrganization: personalProject: Chat
    Error while compile iphone chat application

    Build chat of project chat with configuration Debug

    Check dependencies

    [WARN]warning: no rule to process file '$(PROJECT_DIR)/Classes/ChatSession.ice' of type sourcecode.slice for architecture i386
    [WARN]warning: no rule to process file '$(PROJECT_DIR)/Classes/Chat.ice' of type sourcecode.slice for architecture i386

    CompileXIB ChatView.xib
    cd /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat
    setenv IBC_MINIMUM_COMPATIBILITY_VERSION 3.0
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/Debug-iphonesimulator/Chat.app/ChatView.nib /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/ChatView.xib

    /* com.apple.ibtool.document.warnings */
    /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/ChatView.xib:11: warning: UIScrollView's 'Bounce Zoom' option will be ignored on iPhone OS versions prior to 2.1.

    CompileC build/chat.build/Debug-iphonesimulator/chat.build/Objects-normal/i386/LoginController.o Classes/LoginController.m normal i386 objective-c com.apple.compilers.gcc.4_2
    cd /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat
    setenv LANG en_US.US-ASCII
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -isysroot /var/folders/6H/6Hi8GTPjHiyK+dDHMUeeck+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator3.0-gcphcjcpsdicbsheowfcoexppdnd -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/Chat-generated-files.hmap -I/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/Chat-own-target-headers.hmap -I/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/Chat-all-target-headers.hmap -iquote /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/Chat-project-headers.hmap -F/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/Debug-iphonesimulator -I/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/Debug-iphonesimulator/include -IClasses -I/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/DerivedSources/i386 -I/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/DerivedSources -include /var/folders/6H/6Hi8GTPjHiyK+dDHMUeeck+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/chat_Prefix-ccrcbgfvhqrkqodxsthiildfcghp/chat_Prefix.pch -c /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/Classes/LoginController.m -o /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/Objects-normal/i386/LoginController.o

    In file included from /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/Classes/LoginController.m:11:
    Classes/ChatController.h:11:24: error: ChatSession.h: No such file or directory
    In file included from /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/Classes/LoginController.m:11:
    Classes/ChatController.h:17: error: cannot find protocol declaration for 'ChatChatRoomCallback'
    Classes/ChatController.h:27: error: cannot find protocol declaration for 'ChatChatSessionPrx'
    Classes/ChatController.h:29: error: cannot find protocol declaration for 'ChatChatRoomCallbackPrx'
    Classes/ChatController.h:35: error: cannot find protocol declaration for 'ChatChatSessionPrx'
    Classes/ChatController.h:43: error: expected ')' before 'ICECurrent'
    Classes/ChatController.h:44: error: expected ')' before 'ICELong'
    Classes/ChatController.h:45: error: expected ')' before 'ICECurrent'
    Classes/ChatController.h:46: error: expected ')' before 'ICELong'
    Classes/ChatController.h:46: error: expected ')' before 'ICECurrent'
    Classes/ChatController.h:47: error: expected ')' before 'ICELong'
    Classes/ChatController.h:47: error: expected ')' before 'ICECurrent'
    /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/Classes/LoginController.m: In function '-[LoginController doGlacier2Login]':
    /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/Classes/LoginController.m:216: error: cannot find protocol declaration for 'ChatChatSessionPrx'
    /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/Classes/LoginController.m:216: error: 'ChatChatSessionPrx' undeclared (first use in this function)
    /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/Classes/LoginController.m:216: error: (Each undeclared identifier is reported only once
    /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/Classes/LoginController.m:216: error: for each function it appears in.)

    CompileC build/chat.build/Debug-iphonesimulator/chat.build/Objects-normal/i386/ChatController.o Classes/ChatController.m normal i386 objective-c com.apple.compilers.gcc.4_2
    cd /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat
    setenv LANG en_US.US-ASCII
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -isysroot /var/folders/6H/6Hi8GTPjHiyK+dDHMUeeck+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator3.0-gcphcjcpsdicbsheowfcoexppdnd -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/Chat-generated-files.hmap -I/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/Chat-own-target-headers.hmap -I/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/Chat-all-target-headers.hmap -iquote /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/Chat-project-headers.hmap -F/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/Debug-iphonesimulator -I/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/Debug-iphonesimulator/include -IClasses -I/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/DerivedSources/i386 -I/Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/DerivedSources -include /var/folders/6H/6Hi8GTPjHiyK+dDHMUeeck+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/chat_Prefix-ccrcbgfvhqrkqodxsthiildfcghp/chat_Prefix.pch -c /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/Classes/ChatController.m -o /Users/kumar/Desktop/icetouch/IceTouch-1.0.0/objc/demo/iPhone/chat/build/chat.build/Debug-iphonesimulator/chat.build/Objects-normal/i386/ChatController.o
  • aamitguptaaamitgupta Member Amit GuptaOrganization: personalProject: Chat
    success fully compile in OS 10.5.8

    Same application (Ice 1.0.0 -> chat for iphone) working fine with OS 10.5.8 but it gives error (as posted above) with same configuration in OS 10.6.3
  • niconico Member Nico MuellerOrganization: SiemensProject: client/server-based navigation in a car, remote
    [WARN]warning: no rule to process file '$(PROJECT_DIR)/Classes/ChatSession.ice' of type sourcecode.slice for architecture i386
    [WARN]warning: no rule to process file '$(PROJECT_DIR)/Classes/Chat.ice' of type sourcecode.slice for architecture i386
    klick on the ice-file -> cmd+i -> set the filetype as sourcecode.slice

    if you get other errors after that... this fun do some others have too :p
    if there is no sourcecode.slice, then you have to run xcode in 32bit-mode
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Yes it sounds like you run Xcode in 64 bits mode on Snow Leopard, see this post for instructions on how to run Xcode in 32 bits mode.

    The next Ice Touch release will provide a plugin that works in both 32 and 64 bits mode.

    Cheers,
    Benoit.
Sign In or Register to comment.