configure

How to ignore local python when building python from source

最后都变了- 提交于 2019-12-17 19:19:25
问题 When I try to build my own version of Python using: ./configure --enable-shared --prefix=/app/vendor/python-dev && make && make install I see some errors during installation: /usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libpython2.7.a: could not read symbols: Bad value The problem starts when the linker tries to use /usr/local/lib/libpython2.7.a and not

Deploying a 32-bit Qt 5.3.0 app (Stand-Alone)

一个人想着一个人 提交于 2019-12-14 02:29:36
问题 I have searched for a long time trying to find a good tutorial on how to deploy my new Qt 5.3.0 app for a 32-bit machine. I have the 32-bit Qt installation as well as all the windows source files (ready for building statically). I've run into tons of problems using various methods to get it to run outside of Qt Creator but I've had no luck. I need to submit this app as part of an application and would like it to just be the *.exe so I need to statically link the Qt libraries and such. The

tkinter ttk Entry widget -disabledforeground

别等时光非礼了梦想. 提交于 2019-12-13 19:17:12
问题 I was trying to change the color of the words in my ttk.Entr widget when I set the state to disabled , I looked up the manual, there's an option called disabledforeground , so I wrote a test snippet as below: (BTW, I'm under Python 2.7) from Tkinter import * from ttk import * root=Tk() style=Style() style.configure("TEntry",disabledforeground='red') entry_var=StringVar() entry=Entry(root,textvariable=entry_var,state='disabled') entry.pack() entry_var.set('test') mainloop() But the result

Can't build Qt in Windows from source, Perl installed but still can't find headers

一笑奈何 提交于 2019-12-13 19:07:31
问题 I'm using Cygwin on Windows 7, 64-bit. I downloaded the 4.8.3. source and followed the instructions here, putting <qtdir>/bin in PATH along with the path to my chosen compiler. Configure fails immediately, $ ./configure Creating qmake. Please wait... g++ -c -o makefile.o -pipe -DQMAKE_OPENSOURCE_EDITION -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -I/cygdrive/c/Qt/4.8.3/include -I/cygdrive/c/Qt/4.8.3/include/QtCore -I

creating makefile [duplicate]

ⅰ亾dé卋堺 提交于 2019-12-13 17:22:03
问题 This question already has an answer here : Closed 8 years ago . Possible Duplicate: Creating makefile Hello, I am trying to create the makefiles and configure for my library which its directory structure is like following: $projectroot ├── part1 │ ├── src │ └── lib ├── part2 │ ├── src │ └── lib └── part3 ├── src └── lib As you can see, this project has 3 different parts, Someone would want to install the entire project, or someone might need only one library from project. I have a Makefile

How to associate the same operation to a set of buttons programmatically in tkinter?

走远了吗. 提交于 2019-12-13 17:02:58
问题 I have been working on a Python/Tkinter project that requires programatically created buttons from a list as below. When a certain button is pressed, I would like that button to become "sunken" until another button is pressed, at that stage that button would become "sunken" , and the button first clicked would become 'normal' . So far I can't figure out how to do this without having to code each button individually. Ideally the relief would be set in the press() function. import tkinter

./configure cannot locate header file when the directory is specified with CPPFLAGS

醉酒当歌 提交于 2019-12-13 16:22:13
问题 I'm trying to build php gettext module on Mac OS X Mavericks. Installed gettext with brew install gettext , and checked header files are available at /usr/local/opt/gettext . $ ls /usr/local/opt/gettext/include/ autosprintf.h gettext-po.h libintl.h With a help in the post of How to override environment variables when running configure?, I executed ./configure LDFLAGS='-L/usr/local/opt/gettext/lib/' CPPFLAGS='-I/usr/local/opt/gettext/include/' to get this error message. checking if debug is

Autoconf problem: “error: C compiler cannot create executables”

人走茶凉 提交于 2019-12-13 16:08:12
问题 I'm trying to build a program I've written in C using GNU autotools, but I evidently have it set up wrong because when configure runs, it spits out: configure: error: C compiler cannot create executables If I look in config.log , I see: configure:2846: checking for C compiler default output file name configure:2868: gcc conftest.c >&5 conftest.c:3:25: warning: missing terminating " character conftest.c:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token configure:

Making os independent configure file which checks for curl dependency

允我心安 提交于 2019-12-13 08:41:18
问题 I am making a configure.ac file which checks for library dependency. The complete code is, AC_CONFIG_AUX_DIR([build-aux]) AC_INIT([myprogram], [0.1], []) AM_INIT_AUTOMAKE AC_PROG_CC AC_CHECK_LIB([curl], [curl_easy_setopt], [echo "libcurl library is present" > /dev/tty], [echo "libcurl library is not present" > /dev/tty] ) AC_CHECK_LIB([sqlite3], [sqlite3_open], [echo "sqlite3 library is present" > /dev/tty], [echo "sqlite library is not present" > /dev/tty] ) AC_CHECK_LIB([pthread], [pthread

config.h.in not being used as a template

人盡茶涼 提交于 2019-12-13 04:05:53
问题 I'm trying to supply a config.h.in to Autotools. The topic is covered in the Autoconf manual at 4.8.1 Configuration Header Templates. config.h.in looks like so: /// \file config.h /// \brief Library configuration file #ifndef CRYPTOPP_CONFIG_H #define CRYPTOPP_CONFIG_H // define this if running on a big-endian CPU #undef CRYPTOPP_BIG_ENDIAN // define this if running on a little-endian CPU #undef CRYPTOPP_LITTLE_ENDIAN #endif // CRYPTOPP_CONFIG_H Our configure.ac includes the following for