Results 1 to 6 of 6

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

  1. #1
    aamitgupta is offline Registered User
    Name: Amit Gupta
    Organization: personal
    Project: Chat
    Join Date
    Jun 2010
    Posts
    3

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

    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.

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi

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

    Cheers,
    Benoit.

  3. #3
    aamitgupta is offline Registered User
    Name: Amit Gupta
    Organization: personal
    Project: Chat
    Join Date
    Jun 2010
    Posts
    3

    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

  4. #4
    aamitgupta is offline Registered User
    Name: Amit Gupta
    Organization: personal
    Project: Chat
    Join Date
    Jun 2010
    Posts
    3

    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

  5. #5
    nico is offline Registered User
    Name: Nico Mueller
    Organization: Siemens
    Project: client/server-based navigation in a car, remote
    Join Date
    May 2010
    Posts
    14
    [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
    if there is no sourcecode.slice, then you have to run xcode in 32bit-mode

  6. #6
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. C# compile error!!
    By xpiao in forum Help Center
    Replies: 1
    Last Post: 11-19-2004, 04:06 PM
  2. compile error!
    By ouloba in forum Help Center
    Replies: 7
    Last Post: 09-23-2004, 11:41 PM
  3. Compile error
    By frostzero in forum Help Center
    Replies: 2
    Last Post: 05-07-2004, 04:09 PM
  4. FileSystem Client Compile Warning
    By amrufon in forum Help Center
    Replies: 2
    Last Post: 07-29-2003, 10:31 PM
  5. Compile Error
    By threadsafe in forum Help Center
    Replies: 4
    Last Post: 07-24-2003, 09:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •