clonning manually github.com/samirmenon/sUtil.git

Issue #192 resolved
Netzahualcoyotl Guadarrama created an issue

Hi, if I use this comand

git clone https://github.com/samirmenon/sUtil.git

And after use the command user@user-VGN-NW240F:~/Documents/scl-manips-v2.git/applications-linux/scl_lib$ sh make_everything.sh

In the last line, send me 2 Errors . . . /home/user/Documents/scl-manips-v2.git/applications-linux/scl_lib/../../src/scl/serialization/SerializationJSON.hpp:267:44: required from ‘bool scl::serializeToJSON(const sutil::CMappedTree<std::basic_string<char>, T>&, Json::Value&) [with T = scl::SRigidBody]’ /home/user/Documents/scl-manips-v2.git/src/scl/serialization/SerializationJSON.cpp:452:5: required from here /home/user/Documents/scl-manips-v2.git/applications-linux/scl_lib/../../src/scl/serialization/SerializationJSON.hpp:203:16: warning: unused variable ‘data’ [-Wunused-variable] make[2]: [CMakeFiles/scl.dir/home/user/Documents/scl-manips-v2.git/src/scl/serialization/SerializationJSON.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: Leaving directory /home/user/Documents/scl-manips-v2.git/applications-linux/scl_lib/build_dbg' make[1]: *** [CMakeFiles/scl.dir/all] Error 2 make[1]: Leaving directory/home/user/Documents/scl-manips-v2.git/applications-linux/scl_lib/build_dbg' make: *** [all] Error 2 user@user-VGN-NW240F:~/Documents/scl-manips-v2.git/applications-linux/scl_lib$

Comments (6)

  1. Samir Menon repo owner

    It seems like the paths to sUtil are incorrect. Here are a few things to do:

    First, open the make_everything.sh script in a text editor. You will see that it has a series of commands. You can run each command in the given sequence manually.

    The sUtil clone happens during the git submodule update. And it clones sUtil into the 3rdparty/sUtil folder. Did you clone it into the same folder?

    Try:

    $ ls ~/Documents/scl-manips-v2.git/3rdparty/sUtil/src/sutil
    

    The output should be

    CMappedDirGraph.hpp        CRegisteredCallbacks.hpp
    CMappedList.hpp            CRegisteredDynamicTypes.hpp
    CMappedMultiLevelList.hpp  CRegisteredPrintables.hpp
    CMappedTree.hpp            CSharedMemory.hpp
    CMemCopier.hpp             CSingleton.hpp
    CObjectHistory.hpp         CSystemClock.hpp
    
  2. Netzahualcoyotl Guadarrama reporter

    Thank you, I make the firs sugestion that you make me and in the file make_everything.sh in the line 18 has the next code:

    sh make_debug.sh &&
    

    the issue occurs in that code: sh make_debug.sh

    and the response of that code are two errors, the next two errors:

    user@user-VGN-NW240F:~/Documents/scl-manips-v2.git/applications-linux/scl_lib$ sh make_debug.sh
    .
    .
    .
    /home/user/Documents/scl-manips-v2.git/applications-linux/scl_lib/../../src/scl/serialization/SerializationJSON.hpp:203:16: warning: unused variable data [-Wunused-variable]
    make[2]: *** [CMakeFiles/scl.dir/home/user/Documents/scl-manips-v2.git/src/scl/serialization/SerializationJSON.cpp.o] Error 1
    make[2]: Leaving directory `/home/user/Documents/scl-manips-v2.git/applications-linux/scl_lib/build_dbg'
    make[1]: *** [CMakeFiles/scl.dir/all] Error 2
    make[1]: Leaving directory `/home/user/Documents/scl-manips-v2.git/applications-linux/scl_lib/build_dbg'
    make: *** [all] Error 2
    

    The last suggestion that you make me to do is to display the code:

    user@user-VGN-NW240F:~/Documents$ ls ~/Documents/scl-manips-v2.git/3rdparty/sUtil/src/sutil
    CMappedDirGraph.hpp        CMappedTree.hpp     CRegisteredCallbacks.hpp     CSharedMemory.hpp
    CMappedList.hpp            CMemCopier.hpp      CRegisteredDynamicTypes.hpp  CSingleton.hpp
    CMappedMultiLevelList.hpp  CObjectHistory.hpp  CRegisteredPrintables.hpp    CSystemClock.hpp
    user@user-VGN-NW240F:~/Documents$
    

    and is the same as you show.

    Please, what can I do? and why the response on this way are different?

    user@user-VGN-NW240F:~/Documents/scl-manips-v2.git/applications-linux/scl_lib$ sh make_everything.sh
     Synchronizing submodule url for '3rdparty/otgtypeii' Synchronizing submodule url for '3rdparty/redox.git'
     Synchronizing submodule url for '3rdparty/sUtil' Cloning into '3rdparty/sUtil'... fatal: unable to connect to github.com:
     github.com[0: 192.30.252.129]: errno=Connection timed out
    
  3. Samir Menon repo owner

    All of this seems to stem from an inability to connect to github and obtain the submodules.

    The best way is to just manually copy the submodules in to the 3rdparty folder.

    It might be useful to take a look at how submodules work (https://git-scm.com/docs/git-submodule). Basically, the code is hosted in separate places, and the submodule init & update functions are called during make_everything.sh. If it can't get the code, the submodule update will fail, and then subsequent code compiles will also fail (since they refer to missing code).

  4. Samir Menon repo owner

    This is not reproducible here. Basically seems to be a connection error with github. Unfortunately, that is out of our control.

    As a workaround, the reporter is advised to manually copy the repositories into the 3rdparty folders.

  5. Tufail Khan

    Hi,

    I am having the exact same problem. I even manually downloaded all the submodules in the 3rdparty folder, but no luck.

    Am getting the following error message:

    make[2]: [CMakeFiles/scl.dir/home/ial/Documents/scl-manips-v2.git/src/scl/serialization/SerializationJSON.cpp.o] Error 1 make[2]: Leaving directory /home/ial/Documents/scl-manips-v2.git/applications-linux/scl_lib/build_dbg' make[1]: *** [CMakeFiles/scl.dir/all] Error 2 make[1]: Leaving directory/home/ial/Documents/scl-manips-v2.git/applications-linux/scl_lib/build_dbg' make: [all] Error 2

    Samir please look into it.

    Thanks.

  6. Tufail Khan

    I upgraded Ubuntu to 14.04 (trusty) from earlier 12.04 (precise), and could compile the library successfully.

    Thanks.

  7. Log in to comment