Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. diff --git a/PythonAPI/carla/setup.py b/PythonAPI/carla/setup.py
  2. index da5bbfb..fec897c 100755
  3. --- a/PythonAPI/carla/setup.py
  4. +++ b/PythonAPI/carla/setup.py
  5. @@ -56,7 +56,7 @@ def get_libcarla_extensions():
  6. extra_compile_args += ['-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=false']
  7. else:
  8. extra_link_args += ['-lpng', '-ljpeg', '-ltiff']
  9. - extra_compile_args += ['-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=true']
  10. + extra_compile_args += ['-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=false']
  11. # @todo Why would we need this?
  12. include_dirs += ['/usr/lib/gcc/x86_64-linux-gnu/7/include']
  13. library_dirs += ['/usr/lib/gcc/x86_64-linux-gnu/7']
  14. @@ -91,7 +91,7 @@ def get_libcarla_extensions():
  15. '/experimental:external', '/external:I', 'dependencies/include/system',
  16. '/DBOOST_ALL_NO_LIB', '/DBOOST_PYTHON_STATIC_LIB',
  17. '/DBOOST_ERROR_CODE_HEADER_ONLY', '/D_WIN32_WINNT=0x0501',
  18. - '/DLIBCARLA_WITH_PYTHON_SUPPORT', '-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=true']
  19. + '/DLIBCARLA_WITH_PYTHON_SUPPORT', '-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=false']
  20. else:
  21. raise NotImplementedError
  22.  
  23. diff --git a/Util/BuildTools/Setup.sh b/Util/BuildTools/Setup.sh
  24. index 26238c8..53560dd 100755
  25. --- a/Util/BuildTools/Setup.sh
  26. +++ b/Util/BuildTools/Setup.sh
  27. @@ -441,12 +441,13 @@ endif ()
  28.  
  29. EOL
  30.  
  31. -if [ "${TRAVIS}" == "true" ] ; then
  32. - log "Travis CI build detected: disabling PNG support."
  33. - echo "add_definitions(-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=false)" >> ${CMAKE_CONFIG_FILE}.gen
  34. -else
  35. - echo "add_definitions(-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=true)" >> ${CMAKE_CONFIG_FILE}.gen
  36. -fi
  37. +# if [ "${TRAVIS}" == "true" ] ; then
  38. +# log "Travis CI build detected: disabling PNG support."
  39. +# echo "add_definitions(-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=false)" >> ${CMAKE_CONFIG_FILE}.gen
  40. +# else
  41. +# echo "add_definitions(-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=true)" >> ${CMAKE_CONFIG_FILE}.gen
  42. +# fi
  43. +echo "add_definitions(-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=false)" >> ${CMAKE_CONFIG_FILE}.gen
  44.  
  45. # -- Move files ----------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement