compilation

Compiling PHP with --enable-embedded-mysqli and --with-mysqli

瘦欲@ 提交于 2020-01-06 19:44:47
问题 Is there some difference between the two? I compiled my PHP 5.5.8 with the following: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-pdo-mysql --with-gd --enable-embedded-mysqli --enable-zip --enable-mysqlnd --enable-cgi ... and later, in the installed PHP; I was receiving: call to undefined function mysqli_connect On looking at the PHP docs; I notice that the command is actually --with-mysqli But I was presented with the --enable-embedded-mysqli option on tab completion by bash

Error compilation kernel

半城伤御伤魂 提交于 2020-01-06 18:36:21
问题 Trying to compile a linux kernel on Ubuntu 16.04 for an embedded board and I have this error during make : fatal error: mach/cputype.h: No such file or directory compilation terminated. The board I use is the TMDSLCDK138 integrating the OMAPL138. I installed the TI SDK from here http://software-dl.ti.com/sdoemb/sdoemb_public_sw/mcsdk/latest1/index_FDS.html and in the installation folder there is a custom linux SDK called "linux-3.3-psp03.22.00.06.sdk". This is what I did so far : sudo make O=

What do I need to build a DLL?

末鹿安然 提交于 2020-01-06 14:26:13
问题 I'm having a number of issues, and the current one is overcoming a security exception when using iTextSharp. This article http://www.junlu.com/list/27/763977.html To which I was directed following this question I posted yesterday: Displaying a bar code with iTextSharp using Chris Love's Barcode Handler (2 part) Seems to be what is required to overcome my problem. But I have searched and searched and cannot find a definitive and simple answer to the question "How do I compile a DLL" So, having

`Makefile` rule to regenerate object files directory without recompiling from scratch?

人盡茶涼 提交于 2020-01-06 14:01:33
问题 I have the following Makefile which works great but everytime it is recompiling from start evenif nothing has changed. CXX = g++ CXXFLAGS = -std=c++11 INC_PATH = `pkg-config --cflags ../openCV/build/lib/pkgconfig/opencv.pc` \ `pkg-config --cflags ../SDL2-2.0.8/instDir/lib/pkgconfig/sdl2.pc` \ `pkg-config --cflags ../jsoncpp/build/pkg-config/jsoncpp.pc` \ -I ../poco/instDir/include/ #LIB_PATH = -L../cmake_bin_dir/lib/ ./gainput/build/lib -L../SDL2-2.0.8/build/ -L../SDL2-2.0.8/build/lib LIBS =

How to compile PHP extensions cross-version?

丶灬走出姿态 提交于 2020-01-06 12:52:33
问题 How to compile a PHP extension that will work on every version of PHP as well as every version of Linux? 回答1: You'll need to compile it once for every platform (a Windows library won't run on GNU/Linux, just as well as a 64-bit library won't run in a 32-bit environment). If this is what you are trying to do, the answer is: it's impossible. 回答2: You won't be able to create a "compatible with everything" binary package. To allow for maximum compatibility I'd recommend that you package the file

Java Compiler API NullPointerException

南楼画角 提交于 2020-01-06 11:55:27
问题 I am using this code to compile a Java file at runtime. First of all, here is my directory tree (in Eclipse). +---- src +----- package +------ Compile.java + + +---- temp +----- anotherpackage +------ Temp.java (file to compile) Here is my code where I am getting the NullPointerException (I already tried using JDK as my Standard VM in Eclipse). public static void compile(URI path, InputStream is, OutputStream os, OutputStream err) throws IOException { SimpleJavaFileObject source = new

Java Compiler API NullPointerException

痴心易碎 提交于 2020-01-06 11:55:06
问题 I am using this code to compile a Java file at runtime. First of all, here is my directory tree (in Eclipse). +---- src +----- package +------ Compile.java + + +---- temp +----- anotherpackage +------ Temp.java (file to compile) Here is my code where I am getting the NullPointerException (I already tried using JDK as my Standard VM in Eclipse). public static void compile(URI path, InputStream is, OutputStream os, OutputStream err) throws IOException { SimpleJavaFileObject source = new

How to build Gotoblas2 on Opensuse 12.2

北战南征 提交于 2020-01-06 08:51:15
问题 While building GotoBlas2 on my x86_64 by using the default make file, I encounter the following build error: gcc -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DMAX_CPU_NUMBER=8 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -I.. -w -o linktest linktest.c ../libgoto2_nehalemp-r1.13.so -L/usr/lib64/gcc/x86_64-suse-linux/4.7 -L/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L

How to build Gotoblas2 on Opensuse 12.2

北城余情 提交于 2020-01-06 08:51:08
问题 While building GotoBlas2 on my x86_64 by using the default make file, I encounter the following build error: gcc -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DMAX_CPU_NUMBER=8 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -I.. -w -o linktest linktest.c ../libgoto2_nehalemp-r1.13.so -L/usr/lib64/gcc/x86_64-suse-linux/4.7 -L/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L

linking problem, can't find symbol even though nm shows symbol in library

杀马特。学长 韩版系。学妹 提交于 2020-01-06 08:10:53
问题 I'm linking an app against lflutter_linux_glfw . nm tools shows it has glad_glTexImage2D : nm libflutter_linux_glfw.so | grep glTexImage2D 00000000034e87a0 b glad_glTexImage2D 00000000034e87a8 b glad_glTexImage2DMultisample So I included lflutter_linux_glfw.so before flutter_video_renderer.o , and I get this: clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64