cross-compiling

Why does pclose return prematurely?

对着背影说爱祢 提交于 2020-07-09 17:13:43
问题 UPDATE 1: This question has been updated to eliminate the multithreading, simplifying its scope. The original problem popen ed in the main thread, and pclose d the child process in a different thread. The problem being asked about is reproducible much more simply, by doing the popen and pclose in the same (main) thread. Update 2: With help from responders at How to check libc version?, I think I've identified that the libc being used is uClibc 0.9.30. The following code popen s a script in

Why does pclose return prematurely?

拥有回忆 提交于 2020-07-09 17:13:42
问题 UPDATE 1: This question has been updated to eliminate the multithreading, simplifying its scope. The original problem popen ed in the main thread, and pclose d the child process in a different thread. The problem being asked about is reproducible much more simply, by doing the popen and pclose in the same (main) thread. Update 2: With help from responders at How to check libc version?, I think I've identified that the libc being used is uClibc 0.9.30. The following code popen s a script in

How to check libc version?

最后都变了- 提交于 2020-07-09 05:25:19
问题 This question is related to Why does pclose return prematurely?. I'd like to find out what version of libc is used for a cross-compiled executable. There are limitations, described below, that make the answers at Check glibc version for a particular gcc compiler not apply. One proposed way to check the libc version is to use the gnu_get_libc_version() function declared in gnu/libc-version.h . My cross-toolchain does not include libc-version.h . Another proposed solution is to use the -print

How to check libc version?

独自空忆成欢 提交于 2020-07-09 05:24:39
问题 This question is related to Why does pclose return prematurely?. I'd like to find out what version of libc is used for a cross-compiled executable. There are limitations, described below, that make the answers at Check glibc version for a particular gcc compiler not apply. One proposed way to check the libc version is to use the gnu_get_libc_version() function declared in gnu/libc-version.h . My cross-toolchain does not include libc-version.h . Another proposed solution is to use the -print

How to configure a particular GCC cross toolchain in Eclipse CDT?

无人久伴 提交于 2020-07-05 09:44:23
问题 I have imported some source code as C++ Makefile Project to an Eclipse CDT workspace, and specified the Cross GCC toolchain for "Indexer Settings": The project import went fine, but the include path settings just point to my current native host GCC implementation: I've been looking in the Toolchain Editor properties dialog, but couldn't find any way to configure a particular cross-toolchain I've been building and installing on my development machine: The opened dialog only allows to select

How to install a Rust target for a specific rustup toolchain?

廉价感情. 提交于 2020-06-25 15:54:14
问题 I am using rustc and cargo on my 64-bit Windows machine to compile a 32-bit application. This work fine when using the stable toolchain, but when I try to use the beta toolchain it fails. The beta toolchain was successfully installed with rustup install beta . In the project folder there is a .cargo/config file containing the following lines: [build] target = "i686-pc-windows-msvc" [target.i686-pc-windows-msvc] rustflags = ["-Ctarget-feature=+crt-static"] When running cargo +beta build the

How to modify Makefile to support cross compilation?

天大地大妈咪最大 提交于 2020-06-16 03:17:51
问题 I have the following Makefile: CC=g++ top_srcdir=$(SRC_DIR)/cpp/src/ INCLUDES:= -I $(top_srcdir) -I $(top_srcdir)command_classes -I $(top_srcdir)platform -I $(top_srcdir)value_classes LIBS:= -lopenzwave -lpthread -ludev LDFLAGS += -L$(SRC_DIR) -Wl,-R$(SRC_DIR) '-Wl,-R$$ORIGIN' all: ozw ozw: Main.cpp $(CC) $(INCLUDES) -c Main.cpp -o ozw-power-on-off.o $(CC) $(LIBS) $(LDFLAGS) ozw-power-on-off.o -o ozw-power-on-off.out clean: rm -rf *.o *.out I execute it with the following command: make ARCH=

How to cross compile with cmake + arm-none-eabi on windows?

别等时光非礼了梦想. 提交于 2020-05-23 05:12:30
问题 I like to automate the cross compiling for several projects on a Windows build server. I have some problems with the arm cross compiler. Setting it up seems a bit difficult. The cmake compiler check fails with a linking error(see below). My experimental project looks like: main.cpp - a test programm CMakeLists.txt - the cmake build script cmake/STM32F2xx.cmake - the special settings for the ARM STM32F2xx-series I am using 3 Packages: cmake-3.8.0-win64-x64.msi -cmake for windows mingw-w64

Missing crt1.o/crti.o for cross compilation

只谈情不闲聊 提交于 2020-05-17 06:27:06
问题 This question follow a problem on cross compilation: https://stackoverflow.com/posts/61433338/edit I tried to compile Qt5 with gcc 8.3.0 (gnueabihf) but i get the following error while recompilling Qt5: (note this is only the command failing during configure) $/usr/local/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/ftrefou/raspi/sysroot -Wl,-O1 -Wl,-rpath-link,/home/ftrefou/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link

Error cross-compiling openconnect-8.08 for android

笑着哭i 提交于 2020-04-30 09:22:35
问题 When i follow instructions here, i get this error when running latest instruction that is "make": make[1]: Entering directory '/home/fasegiar/Downloads/openconnect-8.08' CC libopenconnect_la-ssl.lo In file included from ssl.c:41: In file included from ./openconnect-internal.h:102: In file included from /usr/include/libxml2/libxml/tree.h:1307: In file included from /usr/include/libxml2/libxml/xmlmemory.h:218: In file included from /usr/include/libxml2/libxml/threads.h:35: In file included from