I'm trying to compile the thrift cpp library from a debian and mingw toolset. I manage to compile zlib, openssl, and libevent with mingw.
But when I'm trying to configure thrift, it does not detect libevent (but it detects openssl and zlib).
below is my configure command :
./configure --host=x86_64-w64-mingw32 --enable-static --disable-shared LDFLAGS=”-L/home/ioan/devTools/openssl-OpenSSL_1_1_1-stable -L/home/ioan/devTools/libevent-2.1.11-stable/ -L/home/ioan/devTools/zlib-1.2.11/ -L/usr/x86_64-w64-mingw32/lib -lgdi32 -lws2_32 -lmincore -lole32 -lwindowsapp” CPPFLAGS=”-I/home/ioan/devTools/zlib-1.2.11/ -I/home/ioan/devTools/openssl-OpenSSL_1_1_1-stable/include -I/home/ioan/devTools/libevent-2.1.11-stable/include --with-libevent=/home/ioan/devTools/libevent-2.1.11-stable” --with-boost=/home/ioan/devTools/boostLibs --with-zlib=/home/ioan/devTools/zlib-1.2.11
I set the LDFLAGS environment variable, the CPPFLAGS environment variable and the --with-libevent tag.
But the configure result is always the same : not detected!!!
The build is ok, but i'm missing the libthriftnb.a library (I got only libthrift.a and libthriftz.a)
Did I miss something?
regards, Ioan
Related
I'm trying to compile vim8.2 on CentOS 8.4.
When executing ./configure --with-features=huge --enable-multibyte --enable-python3interp --enable-perlinterp --enable-luainterp --enable-cscope --enable-fail-if-missing --with-python3-command=/usr/bin/python3.8 --with-tlib=ncurses, it renders the error:
checking for linking with ncurses library... OK
checking for tgetent()... configure: error: NOT FOUND!
You need to install a terminal library; for example ncurses.
Or specify the name of the library with --with-tlib.
I've installed ncurses with its respective libraries, ncurses ncurses-devel ncurses-libs ncurses-compat-libs ncurses-c++-libs.
The question lies where to find the ncurses libraries, so that it can be pointed to
--with-tlib. Thanks in advance.
Vim's a termcap application, and uses only the low-level termcap functions from the ncurses libraries. CentOS packages that as two libraries (ncurses or ncursesw, and tinfo). That's been a configure-option of ncurses since 1998, and is used by packagers who want to minimize the size of installers, etc.
If it used pkg-config, vim's configure script would do the right thing with this output:
% pkg-config --libs ncurses
-lncurses -ltinfo
For "tlib", you'll need the "tinfo" library, e.g.,
--with-tlib=tinfo
However, on some systems, there can be additional problems. In any case, the actual problem is reported in the config.log file. On inspecting that, most developers find the solution obvious.
(This was asked previously without the answer providing insight).
I'm trying to install this project: https://github.com/drufat/triangle. Unfortunatly, I get the following error:
error: Cygwin gcc cannot be used with --compiler=mingw32
I'm using the lastest version of gcc for Cygwin on Windows 7 64 bit and I'm trying to install that project for python 3.7.1. It's seems to come from my distutil configuration. My distutils.cfg file contains:
[build]
compiler=mingw32
I tried that solution but it doens't helped:
https://stackoverflow.com/a/16740123/5075502
The gcc options to build for MinGW64 is no longer supported by the regular cygqin compiler gcc, aka x86_64-pc-cygwin-gcc. Instead, you should also install the mingw64-x86_64-gcc-core package which provides the GCC for Win64 toolchain (C, OpenMP). This will also install other packages (through dependencies) which provide compatible binutils, headers, libraries, and runtime.
In your Makefile or compiler command line, replace gcc with x86_64-w64-mingw32-gcc. This will allow you to compile and link executables which do not depend on the cygwin1.dll.
A similar problem occured. I fixed it by changing mingw32 by gcc like #phd said.
I am trying to compile a library in linux with gcc. I want the lib to run on a different platform.
With configure, we normally use build and host. However, this library has no configure option. So I am writing my own code to compile lib using GCC. How I can specify the target machine as an option with GCC?
Unless the target is already possible with the current GCC (e.g. like the -m32 option of GCC on x86-64 Linux) you cannot compile your code with your usual GCC.
You have to either download and install a GCC cross-compiler or compile (as a cross-compiler using the --target= option for ./configure) GCC from its source code.
Every GCC installation has one single (main) target.
BTW, some Linux distributions are packaging some GCC cross-compilers. On Debian I have gcc-arm-none-eabi (targeted for ARM) and gcc-msp430 (targeted for MSP430)
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?
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 static commercial installer on msvc2008!)
configure -static -commercial -release -no-fast -qt-sql-sqlite -qt-sql-mysql -qt-zlib -mmx -3dnow -sse -sse2 -openssl-linked -script -scripttools -no-declarative -arch windows -no-style-cde -no-style-motif -no-style-cleanlooks -no-style-plastique -no-webkit -nomake examples -nomake demos -no-qt3support -no-phonon -no-multimedia -no-dbus -no-opengl -no-xmlpatterns -platform win32-msvc2008 -I mysql\include -L mysql\lib -l mysqlclient -l libmysql
make sure you have the development files of openssl v1.0.0 or greater installed.
or use qt internal version as described by Sebastian
I have Eclipse CDT installed (juno) on my windows 7 computer
I have cygwin installed (able to manually create a makefile and create a .so)
I want to use the cygwin compiler in eclipse to create a .so
I created a new shared library project in eclipse told it to use the cygwin c++ compiler
do a ctrl-b and it creates a .dll
how do I get it to make a .so?
this is using windows 7
11:13:05 **** Build of configuration Debug for project cygwinc++ ****
make all
Building file: ../main.cpp
Invoking: Cygwin C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
cygwin warning:
MS-DOS style path detected: C:\Users\EAIGREG\workspace\cygwinc++\Debug
Preferred POSIX equivalent is: /cygdrive/c/Users/EAIGREG/workspace/cygwinc++/Debug
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Finished building: ../main.cpp
Building target: cygwinc++.dll
Invoking: Cygwin C++ Linker
g++ -shared -o "cygwinc++.dll" ./main.o
cygwin warning:
MS-DOS style path detected: C:\Users\EAIGREG\workspace\cygwinc++\Debug
Preferred POSIX equivalent is: /cygdrive/c/Users/EAIGREG/workspace/cygwinc++/Debug
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Finished building target: cygwinc++.dll
11:13:06 Build Finished (took 390ms)
clearly this is using the wrong compiler... i know that my cygwin can create SO so how to i tell it to use the "linux" c++ compiler?
Perhaps there is a way to accomplish what I was looking for, but what I ended up doing was getting another computer running linux...
If I wanted to I could have just manually create my makefile and manually link and compile (maybe a few fancy batch files) but in the end it was just easier to have a full working eclipse environment natively in linux