Page 1 of 2 1 2 LastLast
Results 1 to 15 of 28

Thread: A errir by building the chat demo

  1. #1
    gogosap is offline Registered User
    Name: Zhenjia Yang
    Organization: Univeristy Duisburg Essen
    Project: Application of ICE for RFID Sensor
    Join Date
    Dec 2009
    Posts
    27

    Unhappy A errir by building the chat demo

    sorry for the question. It's quite simple. But i really cann't find the solution.

    Questoin:
    I have setted the "config\Make.rules.mak" and "config\build.properties". The path for "#ICE_HOME = C:\Ice-3.3.1-VC90", "#jgoodies.forms = C:/Ice-3.3.1-ThirdParty-VC90/lib/forms-1.2.0.jar", "jgoodies.looks = C:/Ice-3.3.1-ThirdParty-VC90/lib/looks-2.1.4.jar" totally right.

    But when i run "c:\ChatDemo-1.2.1>nmake /f makefile.mak", it always show the error ".\config\make.commen.rules.mak(112) : fatal error U1050: unable to find a valid Ice distribution, please verify ICE_HOME is properly configured and Ice is correctly installed"

    I have runed other demos like "print" ..... sucessfully

  2. #2
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    Hi Zhenjia,

    What windows version and visual studio are you using?

  3. #3
    gogosap is offline Registered User
    Name: Zhenjia Yang
    Organization: Univeristy Duisburg Essen
    Project: Application of ICE for RFID Sensor
    Join Date
    Dec 2009
    Posts
    27
    Hello Jose
    i have tried in 2 pc.

    Windows XP professional, version 2002, service pack3
    MS VS2008 Version 9.0.21022.8rtm,
    MS .NET Framework Version 3.5 SP1



    Windows XP home edition, version 2002, service pack2
    MS VS2008 Version 9.0.21022.8rtm,
    MS .NET Framework Version 3.5 SP1

  4. #4
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    You need to set ICE_HOME

    you can set ICE_HOME in config/Make.rules.mak. removing the comment on the corresponding line.
    Code:
    #ICE_HOME = C:\Ice-3.3.1-VC90
    it should be

    Code:
    ICE_HOME = C:\Ice-3.3.1-VC90
    Or alternatively you could set it on the command line
    Code:
    set ICE_HOME=C:\Ice-3.3.1-VC90
    Let us know if you have more troubles with that

    Regards,
    José

  5. #5
    gogosap is offline Registered User
    Name: Zhenjia Yang
    Organization: Univeristy Duisburg Essen
    Project: Application of ICE for RFID Sensor
    Join Date
    Dec 2009
    Posts
    27
    Muchas gracias, Jose

    It works now. I am really sorry that i didn't notice the "#".

    Question:
    But there are other errors now.
    It show:

    "The command "cl.exe" is either not found or written faulse.
    NMAKE: fatal error U1077: 'cl.exe' : return code '0x1'
    Stop.
    NMAKE: fatal error U1077: 'for' : return code '0x1'
    Stop."

    BUT,
    after i have copied the "cl.exe" in to c:\ChatDemo-1.2.1 and added the path into VS, it still shows this error by running "namke /f makefile.mak"
    Attached Images Attached Images

  6. #6
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    after i have copied the "cl.exe" in to c:\ChatDemo-1.2.1 and added the path into VS, it still shows this error by running "namke /f makefile.mak"
    I think the problem is that you are using windows command prompt ? you should use visual studio command prompt from Visual Studio Tools menu.

    You doesn't need to copy any file or set paths in Vs

  7. #7
    gogosap is offline Registered User
    Name: Zhenjia Yang
    Organization: Univeristy Duisburg Essen
    Project: Application of ICE for RFID Sensor
    Join Date
    Dec 2009
    Posts
    27
    Hallo Jose
    thank you veeeeeeery much for the always fast answers.
    i can complie the files now.
    But still have 2 problemes.

    i wanna ask the 1. question at first.
    After sucessful compilation(D:\ChatDemo-1.2.1>nmake /f makefile.mak), i cann't install it (D:\ChatDemo-1.2.1>nmake /f makefile.mak install)....

    The Error is:

    copy.\certs\zeroc_ca_cert.pem D:\ChatDemo-1.2.1\certs
    the file cannt copy itself
    already copied 0 file
    NMAKE: fatal error U1077:"copy": the answer-code "0x1"
    Stop.
    Attached Images Attached Images

  8. #8
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    Hi Zhenjia,

    The problem is that you are trying to install and build in the same directory, this isn't supported. Try to install it to a different directory.

    You could edit the prefix variable in config/Make.rules.mak to change the installation directory.

    Cheers,
    José

  9. #9
    gogosap is offline Registered User
    Name: Zhenjia Yang
    Organization: Univeristy Duisburg Essen
    Project: Application of ICE for RFID Sensor
    Join Date
    Dec 2009
    Posts
    27
    hallo Jose
    after installation , i can run the chatserver. But i cannt run the glacier2 router. when i use "glacier2router --Ice.Config=config.glacier2router" in ".../config", it warns, "glacier2router" is not a command

    thanks a lot
    zhenjia

  10. #10
    gogosap is offline Registered User
    Name: Zhenjia Yang
    Organization: Univeristy Duisburg Essen
    Project: Application of ICE for RFID Sensor
    Join Date
    Dec 2009
    Posts
    27
    hello Jose
    actually i also have a problem with running the java client. I am reading a book about java and thinking if i could do something to solve this problem.

    it warns, "could not find the main class: chatdemogui.mainview"
    Attached Images Attached Images

  11. #11
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    Hi,

    Seems that you have build the Java client without using progruard if you look to java instruccions it say:

    Code:
    The application can be found in the file lib\ChatDemoGUI.jar.
    
    If you built this JAR file using ProGuard, it is completely self-
    contained and has no external dependencies, in which case you can
    start the client with the following command:
    
      > java -jar lib\ChatDemoGUI.jar
    
    If you compiled the client without ProGuard, you will need to add
    Ice.jar, ChatDemoGUI.jar, and the JGoodies libraries to your
    CLASSPATH. You can start the client with this command:
    
      > java ChatDemoGUI.MainView
    So you should configure your CLASSPATH as explained or rebuild the java client with proguard in your classpath so the self contained jar could be created.

    Hope this help,
    José

  12. #12
    gogosap is offline Registered User
    Name: Zhenjia Yang
    Organization: Univeristy Duisburg Essen
    Project: Application of ICE for RFID Sensor
    Join Date
    Dec 2009
    Posts
    27
    Thanks Jose
    but i still have another problem

    after installation , i can run the chatserver. But i cannt run the glacier2 router. when i use "glacier2router --Ice.Config=config.glacier2router" in ".../config", it warns, "glacier2router" is not a command

    thanks a lot
    zhenjia

  13. #13
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    Hi,

    You need to put Ice bin dir in your PATH, glacier2router command is included with Ice binary distribution.

    Cheers,
    José

  14. #14
    gogosap is offline Registered User
    Name: Zhenjia Yang
    Organization: Univeristy Duisburg Essen
    Project: Application of ICE for RFID Sensor
    Join Date
    Dec 2009
    Posts
    27
    sorry Jose
    the glacier2router works now. But there is now problem with chatserver.
    it says,
    "chaserver:error:service caught unhandled exception: ObjectAdapterI.cpp:774 :Ice ::InitializationException:
    initialization exception:
    object adapter 'ChatServer' requires configuration
    "
    i suppose , i should change somthing in /config/config.chatserver. But i dont know what i am supposed to do.

    sorry Jose. I dont wanna make u mad. I think , sometimes, my problem is, i have read the most related articles. But i think i cannt really understand them. When the problem comes, i cannt find the answers, althouth they are in the articls and i have read them. I really appreciate for your patience and time. thank you very much .
    Attached Images Attached Images

  15. #15
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    Seems that the command you are using to start chatserver isn't correct.

    try
    Code:
    chatserver --Ice.Config=config.chatserver
    Note that Ice.Config should be property spell, with property case, the name of Ice properties passed on command line are case sensitive

    Cheers,
    José

Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Chat Demo Scalability
    By AgentShark in forum Help Center
    Replies: 2
    Last Post: 01-03-2011, 05:20 PM
  2. about chat demo
    By wangjun in forum Help Center
    Replies: 6
    Last Post: 12-20-2010, 08:01 AM
  3. Chat Demo 1.3.0 released
    By mes in forum Announcements
    Replies: 0
    Last Post: 12-14-2010, 10:57 AM
  4. Chat Demo 1.1.0 released
    By xdm in forum Announcements
    Replies: 0
    Last Post: 10-02-2008, 01:05 PM
  5. Introducing the Chat Demo
    By mes in forum Announcements
    Replies: 0
    Last Post: 07-15-2008, 02:24 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
  •