Coder Social home page Coder Social logo

Unable to compile for target simrobot about hulk HOT 6 CLOSED

rkost avatar rkost commented on August 22, 2024
Unable to compile for target simrobot

from hulk.

Comments (6)

rkost avatar rkost commented on August 22, 2024

Hey @Heodel

I do not experience the issue mentioned above on my local system. Therefore it would be great if you could share the log generated by ./scripts/setup simrobot. This will tell us your compiler version etc.

(Don't worry, running the setup script again will only recreate the build/simrobot folder that should not contain a compiled version of our code right now.)

from hulk.

Heodel avatar Heodel commented on August 22, 2024

OK Thank you I found that

Could NOT find ITTNOTIFY (missing: ITTNOTIFY_LIBRARY ITTNOTIFY_INCLUDE_DIR)
Is this very important?
Here are my logs:

heodel@star:~/HULKsCodeRelease-master$ ./scripts/setup simrobot
-- Generating files for simrobot.

-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiling with GCC
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   filesystem
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found JPEG: /usr/local/lib/libjpeg.so  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54") 
-- Found FFTW: /usr/lib/x86_64-linux-gnu/libfftw3.so  
-- Could NOT find ITTNOTIFY (missing:  ITTNOTIFY_LIBRARY ITTNOTIFY_INCLUDE_DIR) 
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "3.3") 
-- Include directories: /usr/include;/usr/local/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include/eigen3
-- Link libraries: /usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;-lpthread;/usr/local/lib/libjpeg.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libfftw3.so;dl
-- Found tuhhSDK: /home/heodel/HULKsCodeRelease-master/src/tuhhsdk  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/heodel/HULKsCodeRelease-master/build/simrobot/Debug
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiling with GCC
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   filesystem
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found JPEG: /usr/local/lib/libjpeg.so  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54") 
-- Found FFTW: /usr/lib/x86_64-linux-gnu/libfftw3.so  
-- Could NOT find ITTNOTIFY (missing:  ITTNOTIFY_LIBRARY ITTNOTIFY_INCLUDE_DIR) 
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "3.3") 
-- Include directories: /usr/include;/usr/local/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include/eigen3
-- Link libraries: /usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;-lpthread;/usr/local/lib/libjpeg.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libfftw3.so;dl
-- Found tuhhSDK: /home/heodel/HULKsCodeRelease-master/src/tuhhsdk  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/heodel/HULKsCodeRelease-master/build/simrobot/Develop
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiling with GCC
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   filesystem
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found JPEG: /usr/local/lib/libjpeg.so  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54") 
-- Found FFTW: /usr/lib/x86_64-linux-gnu/libfftw3.so  
-- Could NOT find ITTNOTIFY (missing:  ITTNOTIFY_LIBRARY ITTNOTIFY_INCLUDE_DIR) 
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "3.3") 
-- Include directories: /usr/include;/usr/local/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include/eigen3
-- Link libraries: /usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;-lpthread;/usr/local/lib/libjpeg.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libfftw3.so;dl
-- Found tuhhSDK: /home/heodel/HULKsCodeRelease-master/src/tuhhsdk  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/heodel/HULKsCodeRelease-master/build/simrobot/Release
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiling with GCC
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   filesystem
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found JPEG: /usr/local/lib/libjpeg.so  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54") 
-- Found FFTW: /usr/lib/x86_64-linux-gnu/libfftw3.so  
-- Could NOT find ITTNOTIFY (missing:  ITTNOTIFY_LIBRARY ITTNOTIFY_INCLUDE_DIR) 
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "3.3") 
-- Include directories: /usr/include;/usr/local/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include/eigen3
-- Link libraries: /usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;-lpthread;/usr/local/lib/libjpeg.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libfftw3.so;dl
-- Found tuhhSDK: /home/heodel/HULKsCodeRelease-master/src/tuhhsdk  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/heodel/HULKsCodeRelease-master/build/simrobot/RelWithDebInfo

from hulk.

Heodel avatar Heodel commented on August 22, 2024

Dear:
I think this error is related to GCC and -The C compile is GNU 5.4.0, The CXX compile is GNU 5.4.0 version number?
Can you provide your operating system version number and compiler version number?
Thank you very much

from hulk.

rkost avatar rkost commented on August 22, 2024

Could NOT find ITTNOTIFY (missing: ITTNOTIFY_LIBRARY ITTNOTIFY_INCLUDE_DIR)

So no, this is not important for now.

Your GCC compiler seems quite out of date. You may want to retry with at least version 6. I am currently running arch linux with GCC 8.2.1 and it works just fine. Having gcc 6 should also work though.

from hulk.

Heodel avatar Heodel commented on August 22, 2024

Thank you very much, I have successfully compiled the RelWithDebInfo version. After I uploaded the robot software, the robot restarted. After I connected to SSH, I found that the hulk service was enabled, but when I studied B-Human, the robot was this time. Stateful, actionable. But HULK's service is on, my Nao robot has no action, can you tell me how can I get the robot to move?

Then for the mate of the tool I encountered the following error in python3, always showing trying to connect localhost or robots ip.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    Self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    Self._target(*self._args, **self._kwargs)
  File "/home/heodel/HULKsCodeRelease-master/tools/mate/mate/net/nao.py", line 41, in <lambda>
    Self.config_thread = threading.Thread(target=lambda: asyncio.new_event_loop().run_until_complete(self.__connect_config()))
  File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
    Return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    Raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    Result = coro.send(None)
  File "/home/heodel/HULKsCodeRelease-master/tools/mate/mate/net/nao.py", line 64, in __connect_config
    Self.config_loop = asyncio.get_event_loop()
  File "/usr/lib/python3.5/asyncio/events.py", line 632, in get_event_loop
    Return get_event_loop_policy().get_event_loop()
  File "/usr/lib/python3.5/asyncio/events.py", line 578, in get_event_loop
    % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'Thread-4'.

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    Self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    Self._target(*self._args, **self._kwargs)
  File "/home/heodel/HULKsCodeRelease-master/tools/mate/mate/net/nao.py", line 39, in <lambda>
    Self.debug_thread = threading.Thread(target=lambda: asyncio.new_event_loop().run_until_complete(self.__connect_debug()))
  File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
    Return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    Raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    Result = coro.send(None)
  File "/home/heodel/HULKsCodeRelease-master/tools/mate/mate/net/nao.py", line 45, in __connect_debug
    Self.debug_loop = asyncio.get_event_loop()
  File "/usr/lib/python3.5/asyncio/events.py", line 632, in get_event_loop
    Return get_event_loop_policy().get_event_loop()
  File "/usr/lib/python3.5/asyncio/events.py", line 578, in get_event_loop
    % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'Thread-3'.

I encountered some minor errors in your official code during the installation process:
In section 2.5.1 of the manual

Listing 2.5.1
Ln -s sysroot-7.3.0-1.tar.bz2 toolchain /sysroot-7.3.0-1.tar.bz2
./ scripts/gammaray -w -a <NAOIP > <NAONUMBER >

After the ln command is executed, when I execute the gammaray command, I always get an error. When I look at the code, I find 153 lines in gammaray:

  If [ ! -f "${BASEDIR}/toolchain/sysroot.tar.bz2" ]; then

So the command executed in 2.5.1 should be

Ln -s sysroot-7.3.0-1.tar.bz2 toolchain /sysroot.tar.bz2

Not is

Ln -s sysroot-7.3.0-1.tar.bz2 toolchain /sysroot-7.3.0-1.tar.bz2

If you can help me thank you very much.

from hulk.

rkost avatar rkost commented on August 22, 2024

Hey @Heodel,

I created #5, #6, #7 from your problems mentioned above. Please note that you should create new issues when encountering new problems rather than switching to completely other problems that have nothing to do with the title / original problem. This way other teams profit from your issues and can find them easier.

I will close this issue as it is fixed for now and try to help you in the corresponding new ones.

from hulk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.