I am compiling the QCA Library for windows and using the steps from INSTALL File for for configure I am using the following command in windows console:
configure.exe --qtdir=C:\QtSDK\Desktop\Qt\4.7.3\mingw
The response is:
Configuring Qt Cryptographic Architecture (QCA) ...
Reason: There was an error compiling 'conf'. See conf.log for details.
I am trying to compile using Qt in windows directly and shows the following error:
-I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"release" -I"." -I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -o release\mlock.o ..\..\Encryption-QCA\src\botantools\botan\ml_win32\mlock.cpp
In file included from c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/objbase.h:73,
from c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/ole2.h:9,
from c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:114,
from ..\..\Encryption-QCA\src\botantools\botan\ml_win32\mlock.cpp:37:
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/objidl.h:95: error: expected unqualified-id before string constant
mingw32-make[2]: Leaving directory `C:/Users/AlejoLina/Documents/Alejandro/Compacta/SE-HA_Tool/Encryption-QCA-build-desktop/src'
mingw32-make[1]: Leaving directory `C:/Users/AlejoLina/Documents/Alejandro/Compacta/SE-HA_Tool/Encryption-QCA-build-desktop/src'
mingw32-make[2]: *** [release/mlock.o] Error 1
mingw32-make[1]: *** [release] Error 2
mingw32-make: *** [sub-src-make_default] Error 2
The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project qca (target: Desktop)
When executing build step 'Make'
Thanks in advance for the help
I can't say for sure that this is your problem but you may want to try using the make that is available with MSYS. I've always had better success with it. From MinGW's own FAQ..
The "native" (i.e.: MSVCRT dependent)
port of make is lacking in some
functionality and has modified
functionality due to the lack of POSIX
on Win32.
The problem in the configure was that the executable doesnt find the windows make (mingw-make).
The solution is to put the right path to the envinronment variables (qt and mingw bin path).
Related
I've tried following the intel instructions to install sgx, but it requires the sgx_linux_x64_psw_.bin file, which i cannot find anywhere. I've got the driver installer (sgx_linux_x64_driver_1.35.bin) and the sdk installer(sgx_linux_x64_sdk_2.10.100.2.bin), intel seems not to have a psw for linux? If so, how do i properly work with sgx? I tried simply executing the driver and sdk .bin files, but the sample code in the sdk would not compile (after make SGX_MODE=SIM), even after setting the sgxsdk directory to /opt/intel/sgxsdk. I'd get the following compile error:
/usr/bin/ld: warning: libsgx_uae_service_sim.so, needed by /opt/intel/sgxsdk/lib64/libsgx_urts_sim.so, not found (try using -rpath or -rpath-link)
/opt/intel/sgxsdk/lib64/libsgx_urts_sim.so: undefined reference to `get_launch_token'
collect2: error: ld returned 1 exit status
Makefile:235: recipe for target 'app' failed
make[1]: * [app] Error 1
make[1]: Leaving directory '/opt/intel/sgxsdk/SampleCode/SampleEnclave'
Makefile:180: recipe for target 'all' failed
make: * [all] Error 2
Any help with either issue would be much appreciated!
So at least in my case, it seems the issue was that I was A, using a virtual machine, which can ONLY run in simulation mode, so getting a fully working version of sgx is impossible. Secondly, I was using an outdated installation guide, for anyone else trying to use this stuff, make sure to get the installation guide from the intel download page along with the version you are downloading.
download source code from https://github.com/intel/linux-sgx, compile according to the instructions and then install psw.
I am new to compiling.
I am trying to compile iperf3 for Windows 10 because there is no official Windows distribution of iperf3 and for the learning experience. I am trying to do so on the new Windows Subsystem for Linux feature via Bash on Ubuntu on Windows, also for the learning experience.
I installed mingw-w64, which should give me the proper compiler and environment necessary for cross-compiling:
sudo apt-get install mingw-w64
This put two directories into my /usr directory:
i686-w64-mingw32
x86_64-w64-mingw32
It also put a bunch of things that look like compilers into /usr/bin.
I unzipped the .tar.gz file from iperf3 and navigated into it. Then, I run ./configure --host=i686-w64-mingw32.static and it completes without errors.
I note that the output of the command has a worrisome line: checking for i686-w64-mingw32.static-gcc... no
I note that the Makefile's CC variable is set to gcc, which doesn't sound like the proper compiler.
Then, I run make. It fails with errors:
collect2: error: ld returned 1 exit status
make[2]: *** [iperf3] Error 1
make[2]: Leaving directory `/home/snip/iperf3/iperf-3.1.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/snip/iperf3/iperf-3.1.4/src'
make: *** [all-recursive] Error 1
I also see the line: libtool: warning: undefined symbols not allowed in i686-w64-mingw32.static shared libraries; building static only
I think that the ./configure is not working correctly since it appears to have not found the right compiler for my --host argument and put it in the Makefile.
What am I doing wrong?
EDIT:
I changed the command to ./configure --host=i686-w64-mingw32 per comments and it completes without error. But no makefile is created so make yields make: *** No targets specified and no makefile found. Stop.
What am I doing wrong, now?
EDIT 2:
Looks like the ./configure actually is failing. Last line of its output is nanosleep() required for timing operations., which seems to mean that its missing a library for nanosleep.
How do I get nanosleep?
mingw doesn't support nanosleep. So programs using it cannot be compiled using mingw-w64.
I've been trying to link the GDAL library to qt-creator this last week, but have been having problems compiling the library in order to correctly link it.
I am getting this error
libtool: link: g++ .libs/gdalinfo_bin.o -o .libs/gdalinfo.exe -L/local64/lib /c/gdal-2.1.0/.libs/libgdal.a -lodbc32 -lodbccp32 -lz -lpthread -lws2_32
C:/MinGW/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libiconv.a(localcharset.o):localcharset.c:(.text+0x8): undefined reference to `__imp_GetACP'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [gdalinfo.exe] Error 1
make[1]: Leaving directory `/c/gdal-2.1.0/apps'
make: *** [apps-target] Error 2
After having so many problems with the compiler, I am unsure whether this is a problem with setup or whether I need to reconfigure something in the gdal library for windows/mingw consumption.
Can anyone help me with this?
EDIT: This may causing the problem, although I am unsure how to fix it
*** Warning: linker path does not have real file for library -lz.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libz and none of the candidates passed a file format test
*** using a file magic. Last file checked: C:/MinGW/mingw64/x86_64-w64-mingw32/lib/libz.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
Previous attempt lead me to believe that I needed the MinGW-64 version which was not designated by the GDAL instructions, so I used this tutorial to modify MinGW for 64 bit libraries
I would strongly suggest moving your development toolset to use MSYS2 and its package manager. It includes a ton of precompiled libraries, such as GDAL, so you don't have to spend time on trying to get those to compile.
Had the same problem. Solved it by by:
compiling ZLib,
placing zlib1.dll in MinGW/bin,
placing libz.a and libz.dll.a in MinGW/lib.
I'm a complete newb when it comes to compiled languages, I'm a web developer. But I need to build a C++ library.
I'm using OSX 10.9 with homebrew. The library's dependancies are Qt5, openCV, openBR... I managed to get that all running. Installed Qt5.2 beta from the official page, I built openCV and openBR myself from sources.
Now this final application throws this, when I try to make it:
ld: library not found for -lQt5Concurrent
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libfacedet.dylib] Error 1
make[1]: *** [CMakeFiles/facedet.dir/all] Error 2
make: *** [all] Error 2
What the hell is lQt5Concurrent? There's no such lib installed on my system. I tried to find it, the only files that have concurrent in their name are header files in Qt's directory
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrent_global.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentcompilertest.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentexception.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentfilter.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentfilterkernel.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentfunctionwrappers.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentiteratekernel.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentmap.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentmapkernel.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentmedian.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentreducekernel.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentrun.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentrunbase.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentstoredfunctioncall.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentthreadengine.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentversion.h
I have no idea how to get the proper Qt5 devlibs and where to link them.
The author of the application in question cannot help me, as he has no experience with OSX. He said he built this with no problem on Ubuntu.
I also don't think I can show you much of the code, as the application is proprietary.
Please help.
A suggestion from http://qt-project.org/forums/viewthread/22998
In your .pro file, add: LIBS += -lQt5Concurrent
There are a few other suggestions at that link as well, but I believe the one I mention is all I had to do.
I'm trying to compile gcc-code-assist which has the code completion feature in order to use it with emacs. However i have been getting this error message while compilinng
checking for exception model to use... configure: error: unable to detect exception model
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/home/dev/workspace/trash/gcc-code-assist-0.1-4.4.4'
make: *** [all] Error 2
I'm running Ubuntu 12.04 64bit
what can i do to overcome this problem
I found the right way to compile it ...
I really didn't have much knowledge of how to compile gcc (my first time)
after reading through the FAQ of building gcc I found the problem.
it turned out that I had to run the configure script and make from outside the source directory
( I called it gcc-build) so the directory list looked like this
gcc-source/
gcc-build/
then everything compiled smoothly
here's the link to the FAQ http://gcc.gnu.org/wiki/FAQ#configure