compilation

Build software on Linux using cross toolchain

倖福魔咒の 提交于 2019-12-08 12:05:43
问题 Motorola provides a cross compiling toolchain for building Software for their Set Top Box VIP1710. You have to extract it to /usr/local/kreatel and there you have a tree of build tools: ./bin ./bin/mipsel-kreatel-linux-gnu-addr2line ./bin/mipsel-kreatel-linux-gnu-ar ./bin/mipsel-kreatel-linux-gnu-as ./bin/mipsel-kreatel-linux-gnu-c++ ./bin/mipsel-kreatel-linux-gnu-c++filt ./bin/mipsel-kreatel-linux-gnu-cpp ./bin/mipsel-kreatel-linux-gnu-g++ ./bin/mipsel-kreatel-linux-gnu-gcc ... ./include .

WebRTC in iPhone (gas-preprocessor issues)

纵饮孤独 提交于 2019-12-08 11:42:37
问题 I'm trying compile the lastest WebRTC version for iPhone. I not need to compile the entire solution, I only need to compile the VAD module. To do that, I have created a Xcode project and I have tried to compile the source necessary, but I have a problem with the *.s files and its assembler. Like in the FFMPEG library, I know that I must "translate" the assembler code to an assembler code that the gcc for iPhone understand, but I don't know how I do this manually. I have tried to create a

ssl/qsslsocket_openssl.cpp:1414: error: q_ssl_ctrl was not declared in this scope error

给你一囗甜甜゛ 提交于 2019-12-08 10:57:52
问题 I am trying to compile Qt5. I download Qt 5.1 from here: download.qt-project.org/official_releases/qt/5.1/5.1.0/single/qt-everywhere-opensource-src-5.1.0.tar.gz. But after "make" command I get this error: ssl/qsslsocket_openssl.cpp:1414: error: q_ssl_ctrl was not decleared in this scope I can not find anything on Google. How can I fix it? 回答1: configure qt with builtin ssl or compile openssl yourself and add it to your libraries in configure. I attach a expample configure line (was for qt4.8

java8 tools.jar annotation processing with apt

。_饼干妹妹 提交于 2019-12-08 10:55:57
问题 As java programmers we have inherited a legacy app which is now being upgraded to java8. The App runs on an embedded jre which is shipped along with our App. We also ship tools.jar with the App, which is used to: 1) Compile .java files at run time; e.g. com.sun.tools.javac.Main.compile("SomeCustomClass.java"...). 2) Process annotations using the apt tool( package com.sun.mirror.apt); e.g. 'int aptReturnCode = com.sun.tools.apt.Main.process(myAnnotationProcessorFactory...); Problem is that the

android - can't compile VLC project with Android Studio

大城市里の小女人 提交于 2019-12-08 10:37:35
问题 I downloaded the VLC sources from this link: https://code.videolan.org/videolan/vlc-android and tried to open it in Android Studio 2.1 on Windows 8. When the project was opened I got a message 'Could not find com.jakewharton.sdkmanager:sdk-manager-plugin:1.5.0-SNAPSHOT' Anyone encountered this issue? How to cure it? UPDATED: Downloaded the required pack to the directory it tried to search in (C:\Program Files\Android\Android Studio\gradle\m2repository\com) Now I have CreateProcess error=2 回答1

class java.lang.RuntimeException/Scala class file does not contain Scala annotation

爱⌒轻易说出口 提交于 2019-12-08 09:54:49
问题 I'm trying to execute a scala code using scala 2.10.2, the code uses some jar libraries compiled with sbt. I get the following error: scala: error while loading Order, class file '..\prestashop-scala-client-0.2.4\target\prestasac-0.2.4.jar(co/orderly/prestasac/representations/Order.class)' is broken (class java.lang.RuntimeException/Scala class file does not contain Scala annotation) Sources of the prestasac-0.2.4.jar are on github: Order.class Is there something to do to fix this issue ?

Object code, linking time in C language

孤人 提交于 2019-12-08 09:40:01
问题 When compiling, C produces object code before linking time. I wonder if object code is in the form of binary yet? If so, what happened next in the linking time? 回答1: Wikipedia says, In computer science, an object file is an organised collection of named objects, and typically these objects are sequences of computer instructions in a machine code format, which may be directly executed by a computer's CPU. Object files are typically produced by a compiler as a result of processing a source code

How can I compile C code that has already been C pre-processed with GCC?

怎甘沉沦 提交于 2019-12-08 09:32:29
I'm performing some source processing between C preprocessing and C compilation. At the moment I: gcc -E file.c > preprocessed_file.c . Do more stuff to preprocessed_file.c . Continue the compilation with preprocessed_file.c . If you attempt to compile preprocessed_file.c as you would if it was normal C (step 3) you get lots of the following: /usr/include/stdio.h:257: error: redefinition of parameter ‘restrict’ /usr/include/stdio.h:257: error: previous definition of ‘restrict’ was here /usr/include/stdio.h:258: error: conflicting types for ‘restrict’ /usr/include/stdio.h:258: error: previous

How to use CoreFoundation in QuickTime SDK for Windows?

余生长醉 提交于 2019-12-08 09:00:28
问题 Anybody can help me for compile this code in Cygwin / MingW / VS20(05|08|10)? Indeed i want to use CoreFoundation Framework in QuickTime SDK 7.3 for Windows. #include <stdio.h> #include <CoreFoundation.h> int main () { CFStringRef hello = CFSTR("Hello, world."); return 0; } i used this MakeFile for compile it, in Cygwin/MingW, but i get an error :( CC = gcc LDFLAGS = -L"C:/Program Files/QuickTime SDK/Libraries" -lQTMLClient CFLAGS = -Wall -mwindows -I"C:/Program Files/QuickTime SDK/CIncludes"

Compiling assimp with MinGW

人盡茶涼 提交于 2019-12-08 08:43:32
问题 I compiled assimp with MinGW and I ended up with 21mb of libassimp.dll 42mb of libassimp.dll.a Has anyone done this before? Why did I end up with such big files? I comparison of the VS compiled version, they are relatively small ~ 2mb. 来源: https://stackoverflow.com/questions/14805745/compiling-assimp-with-mingw