Giter VIP home page Giter VIP logo

cvt_color's Introduction

Hi there ๐Ÿ‘‹

I'm Cocoa, I am interested in a lot of things!

About me

  • My daily programming languages are C/C++, Elixir and Python.
  • I also use other languages/frameworks like Java(Type)Script/Phoneix/Vue.JS to build my own blog.
Cocoa's github stats

Repositories maintained by me

Note that there're many other people who have collaborated/contributed to these repositories above. Without them it would be very hard or impossible for these libraries to be existed or function normally.

Also, I'd like to express my gratitude to whom is sponsoring/sponsored me on GitHub! ๐Ÿ’š ๐Ÿ’™ ๐Ÿ’œ ๐Ÿ’› โค๏ธ

cvt_color's People

Contributors

cocoa-xu avatar fhunleth avatar

Watchers

 avatar

Forkers

fhunleth

cvt_color's Issues

Error compiling with macOS 10.15.7

I have a Mac book pro with macOS 10.15.7 with the following installed:

$ elixir --version
Erlang/OTP 24 [erts-12.1.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.13.1 (compiled with Erlang/OTP 24)

$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

$ cmake --version
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

I am getting the following error when running mix deps.compile cvt_color:

$ mix deps.compile cvt_color
==> nerves
==> tft_display

Nerves environment
  MIX_TARGET:   rpi0
  MIX_ENV:      dev

==> cvt_color
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - no
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/armv6-nerves-linux-gnueabihf-gcc
-- Check for working C compiler: /Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/armv6-nerves-linux-gnueabihf-gcc - broken
CMake Error at /usr/local/Cellar/cmake/3.22.1/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "/Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/armv6-nerves-linux-gnueabihf-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /Users/nathan/misc_projects/elixir/nerves/tft_display/_build/rpi0_dev/lib/cvt_color/cmake/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/make -f Makefile cmTC_08916/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_08916.dir/build.make CMakeFiles/cmTC_08916.dir/build
    Building C object CMakeFiles/cmTC_08916.dir/testCCompiler.c.o
    /Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/armv6-nerves-linux-gnueabihf-gcc   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -O2 -I/Users/nathan/.nerves/artifacts/nerves_system_rpi0-portable-1.18.0/staging/usr/include  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -o CMakeFiles/cmTC_08916.dir/testCCompiler.c.o -c /Users/nathan/misc_projects/elixir/nerves/tft_display/_build/rpi0_dev/lib/cvt_color/cmake/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_08916
    /usr/local/Cellar/cmake/3.22.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_08916.dir/link.txt --verbose=1
    /Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/armv6-nerves-linux-gnueabihf-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -O2 -I/Users/nathan/.nerves/artifacts/nerves_system_rpi0-portable-1.18.0/staging/usr/include  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names --sysroot=/Users/nathan/.nerves/artifacts/nerves_system_rpi0-portable-1.18.0/staging  CMakeFiles/cmTC_08916.dir/testCCompiler.c.o -o cmTC_08916
    /Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/../lib/gcc/armv6-nerves-linux-gnueabihf/10.3.0/../../../../armv6-nerves-linux-gnueabihf/bin/ld: Error: unable to disambiguate: -search_paths_first (did you mean --search_paths_first ?)
    collect2: error: ld returned 1 exit status
    make[2]: *** [cmTC_08916] Error 1
    make[1]: *** [cmTC_08916/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
See also "/Users/nathan/misc_projects/elixir/nerves/tft_display/_build/rpi0_dev/lib/cvt_color/cmake/CMakeFiles/CMakeOutput.log".
See also "/Users/nathan/misc_projects/elixir/nerves/tft_display/_build/rpi0_dev/lib/cvt_color/cmake/CMakeFiles/CMakeError.log".
make: *** [/Users/nathan/misc_projects/elixir/nerves/tft_display/_build/rpi0_dev/lib/cvt_color/priv/cvt_color.so] Error 1
could not compile dependency :cvt_color, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile cvt_color", update it with "mix deps.update cvt_color" or clean it with "mix deps.clean cvt_color"
==> tft_display
** (Mix) Could not compile with "make" (exit status: 2).
You need to have gcc and make installed. Try running the
commands "gcc --version" and / or "make --version". If these programs
are not installed, you will be prompted to install them.

Do you have any ideas what I'm missing here (I've tried removing deps and recompiling and it hasn't seemed to make any difference)?

Minimum chunk size

When OpenMP is enabled, the minimum chunk size can be 0. For example, I naively did this as a quick test:

CvtColor.cvt(<< 0,1,2,3,4,5>>, :bgr888, :bgr565)

I was about to send a PR to protect against 0 chunk sizes, but I feel like that's not the right fix. It seems like it should be quite a bit larger since there's overhead for multiple cores. And then I figured that powers of 2 chunk sizes would be preferable as well to avoid having all but the first chunk land on a nice memory boundary.

I figured that you might have an intuition as to what would be good size or perhaps what you'd like in the interim.

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.