crosstool-ng | ng fork with the full support
kandi X-RAY | crosstool-ng Summary
kandi X-RAY | crosstool-ng Summary
This is the README for crosstool-NG. Crosstool-NG follows the autoconf dance. So, to get you kick-started, just run: ./configure --help. If you are using a development snapshot, you'll have to create the configure script, first. Just run: ./bootstrap. You will find the documentation in the directory 'docs'. Here is a quick overview of what you'll find there: 0 - Table of content 1 - Introduction 2 - Installing crosstool-NG 3 - Configuring a toolchain 4 - Building the toolchain 5 - Using the toolchain 6 - Toolchain types 7 - Contributing 8 - Internals A - Credits B - Known issues C - Misc. tutorials. You can also point your browser at: This fork is for Yann Diorcet and Ray Donnelly to integrate Ray's Darwin toolchain, the original of which can be found at:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of crosstool-ng
crosstool-ng Key Features
crosstool-ng Examples and Code Snippets
Community Discussions
Trending Discussions on crosstool-ng
QUESTION
I am trying to combine two audio files, and delaying the second one. Here's my command
...ANSWER
Answered 2022-Apr-02 at 00:10The fundamental issue in these audio files appears to be the frequently dropped frames (each containing 960 audio samples). There is an instance of 8117 seconds gap between 2 successive frames in the first file. Because the MKA files were formed without filling these dropped frames, they are effectively variable-sampling-rate streams while labeled as constant-sampling-rate. This discrepancy makes your audios to appear shorter than they were recorded, explaining why your output is often much longer than expected and has been wrecking havoc on your attempt to work on these files.
While atm I do not know if FFmpeg offers a mechanism to fix/estimate the dropped frames in these files, yYou can brute-force/ignore the dropped frames by:
amix
QUESTION
I am converting some old mjpeg videos (stored in .avi container) to h.265 (.mp4 container) but am noticing the colors are smearing. Using the terminal command:
ffmpeg -y -i "input-file.avi" -c:v libx265 -vtag hvc1 "output-file.mp4"
I get the following image (notice how the red and blue are stretched donward). There is a lot of motion in the scene, but the motion is mostly horizontal:
Any idea what might cause this? The detail and resolution seem fine, just the colors are being interpreted weirdly.
Full output:
...ANSWER
Answered 2022-Mar-10 at 18:58Your file seems to be missing some color information:
QUESTION
I'm using python soundfile
to audio files in one of my projects. I have a dataset that contains opus
files.
python soundfile
can not read opus files directly but can read ogg files. (https://github.com/bastibe/python-soundfile/issues/252)
How can I convert all the opus files to ogg files with ffmpeg?
I have tried the following command,
...ANSWER
Answered 2021-Sep-27 at 11:13I'm using librosa right now for conversion, but this is extremely slow:
QUESTION
I'm trying to cross-compile C code for my Raspberry Pi 3b+ using crostool-ng
. I'm using M1 chip Mac and trying to cross-compile my code in an Ubuntu virtual Machine(Parallels).
I compiled my own kernel using buildroot
and created a toolchain using crostool-ng
. x-tools
which is the toolchain I created located at //home/parallels/x-tools
and I'm trying to cross-compile a simple code just prints
Hello World
located at my Desktop. I have tried arm-unknown-linux-gnueabi-gcc -o deneme test.c
and got this: deneme: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 5.12.12, with debug_info, not stripped
file. If I send this to my target rasppi and try to run it with ./deneme
I get this error: -sh: ./deneme: not found
.I'm sure they are in the same directory. Now, I'm using aarch64
but I tried with armv71
and it didn't work either. Please ask for more information if this is not enough.
My Raspberry Pi Model: 3b+.
Host Machine: Mac m1 chip.
Raspberry Pİ ARM:AArch 64 (Little Endian)
Crosstool-ng Toolchain options:
Target Architecture: ARM
Endianess: Little endian
Bitness: 32
Operating System: Linux
...ANSWER
Answered 2021-Jun-30 at 19:27Okay, I find the solution. Like I said, if I run this command:arm-unknown-linux-gnueabi-gcc -o deneme test.c
I get this following file deneme: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 5.12.12, with debug_info, not stripped
as you can see this file is dynamically linked. we need to add -static
so we can link statically .The final solution is: arm-unknown-linux-gnueabi-gcc -static -o deneme test.c
QUESTION
I'm trying to use ffmpeg to prepare a mp4 file which is vertical recorded for upload to youtube. (on a synology DS220+) In the output file I want to have no black bars on the side but blured sodebars of the movie itself. This I'm trying to do whit this code (in the end I want to automate this process, but maybe there is a better way to do this):
...ANSWER
Answered 2021-Mar-14 at 17:24Your ffmpeg
is from 2015 and is too old. Try upgrading using SynoCommunity.
QUESTION
I was trying to use crosstool-ng and get it work to build a cross compiler to target a gnu-based linux distros, since alpine comes with musl-libc I guess the cross tool couldn't directly use the type declarations used in gnu's.
More precisely, at the time of installation of the linux headers when building the toolchain, the /usr/include/linux/types.h
does not contain some type declarations which errors for:
ANSWER
Answered 2021-Mar-13 at 15:57After a lot of hit and trials, I was able to successfully build the toolchain.
The musl-libc is smart, it defines those types itself. So the rpc headers https://code.woboq.org/userspace/glibc/sunrpc/rpc/types.h.html#77 here were conflicting with the types __u_char
that GNU defines but does not define u_char
and more.
We can solve this by passing -D__daddr_t_defined -D__u_char_defined
macros to the c flags on build.
QUESTION
I'm trying to cross-compile Python 2.7.18 for an x86,uclibc machine using a crosstool-ng example toolchain. The commands used are the following:
CONFIG_SITE=config.site CC=/home/msainz/x-tools/x86_64-unknown-linux-uclibc/bin/x86_64-unknown-linux-uclibc-gcc CXX=/home/msainz/x-tools/x86_64-unknown-linux-uclibc/bin/x86_64-unknown-linux-uclibc-g++ AR=/home/msainz/x-tools/x86_64-unknown-linux-uclibc/bin/x86_64-unknown-linux-uclibc-ar RANLIB=/home/msainz/x-tools/x86_64-unknown-linux-uclibc/bin/x86_64-unknown-linux-uclibc-ranlib READELF=/home/msainz/x-tools/x86_64-unknown-linux-uclibc/bin/x86_64-unknown-linux-uclibc-readelf LDFLAGS="-L/home/msainz/Projects/Selene/WP3/local/uclibc/base_rootfs/lib -L/home/msainz/Projects/Selene/WP3/local/uclibc/base_rootfs/usr/lib" CFLAGS="-I/home/msainz/Projects/Selene/WP3/local/uclibc/base_rootfs/usr/include -I/home/msainz/Projects/Selene/WP3/local/uclibc/base_rootfs/include" CPPFLAGS="-I/home/msainz/Projects/Selene/WP3/local/uclibc/base_rootfs/usr/include -I/home/msainz/Projects/Selene/WP3/local/uclibc/base_rootfs/include" ./configure --enable-shared --host=x86_64-unknown-linux-uclibc --build=x86_64 --disable-ipv6 --prefix=/home/msainz/Projects/python2_top_uclibc/
followed by
PATH=$PATH:/home/msainz/Projects/python2_top_glibc/bin/ make
and
PATH=$PATH:/home/msainz/Projects/python2_top_glibc/bin/ make install
Execution ends with the following error:
fi /home/msainz/x-tools/x86_64-unknown-linux-uclibc/bin/x86_64-unknown-linux-uclibc-gcc -L/home/msainz/Projects/Selene/WP3/local/uclibc/base_rootfs/lib -L/home/msainz/Projects/Selene/WP3/local/uclibc/base_rootfs/usr/lib -Xlinker -export-dynamic -o python \ Modules/python.o \ -L. -lpython2.7 -ldl -lpthread -lm _PYTHON_PROJECT_BASE=/home/msainz/Projects/Python-2.7.18 _PYTHON_HOST_PLATFORM=linux2-x86_64 PYTHONPATH=./Lib:./Lib/plat-linux2 python -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi python: error while loading shared libraries: libc.so.0: cannot open shared object file: No such file or directory generate-posix-vars failed make: *** [Makefile:523: pybuilddir.txt] Error 1
python2_top_glibc
dir contains a previous Python-2.7.18 installation but for native glibc which was compiled perfectly. libc.so.0 is in fact in the base_rootfs of target system, which is being linked in ./configure stage. I'm stuck at this at the moment. Any clue will be appreciated. Any additional info will be supplied on demand.
Thanks in advance.
...ANSWER
Answered 2020-Nov-19 at 10:41python: cannot open shared object file: No such file or directory
This is a run-time loader error. You are trying to run a python
executable that is linked against that libc.so.0
.
If this executable can actually run in your host environment, you can enable it by adding your base_rootfs library to LD_LIBRARY_PATH
. Otherwise, you need to use your host python executable in this step of the build process, or disable it altogether.
QUESTION
I'm creating a mp4 video from jpegs with ffmpeg, using the following command:
ffmpeg -y -threads 0 -f image2 -i jpegs/%05d.jpg -framerate 10 video.mp4
The resulting video will play fine with VLC, but will not play in a Jupyter notebook via:
...ANSWER
Answered 2020-Nov-18 at 23:49algo-1-poqk5_1 | Stream mapping:
algo-1-poqk5_1 | Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
QUESTION
I am trying to cross-compile Dropbear for an x86 machine where glibc is missing and instead, uclibc is being used. For that aim, I have cross-compiled zlib for this same instruction set using a custom crosstool-ng toolchain and installed it to a custom location.
...ANSWER
Answered 2020-Oct-28 at 11:20Solved the problem adding --with-zlib=/home/msainz/Projects/zlib_install/
to the ./configure
call.
QUESTION
I'm studying with a Mastering Embedded Linux Programming second edition
can't see the u-boot prompt (U-Boot#)
I used u-boot v2020.07, crosstool-ng v1.24.0 and copied MLO, u-boot.img to sd card.
How can I solve this problem?
thanks.
...ANSWER
Answered 2020-Oct-27 at 11:34This may be that the prompt you are getting is the the one you were expecting, but you definitively got a prompt from u-boot, i.e. the final =>
in the output you posted.
If you enter help
then press enter, you should get the list of available commands.
This book is five years old now, and you are using u-boot 2020.07, this may explain the discrepancy.
The author may have customized the prompt message in the u-boot he compiled as well: you can do the same by adding a adding/modifying the value in the CONFIG_SYS_PROMPT
symbol definition in the configuration file you used, say configs/am335x_evm_defconfig
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install crosstool-ng
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page