Errors in building Qt Static 5.3.2 - c++

So I am attempting to build Qt Static 5.3.2. The build is being automated by a windowspowershell script I found at http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MSVC. I am getting errors I don't fully understand, because I have verified the existence of the following files in the source, and I have checked to see if they have been copied to the correct directory and they are there.
copy /y C:\Qt\Static\src\qt-everywhere-opensource-src-5.3.2\qtbase\examples\widgets\widgets.pro C:\Qt\Static\5.3.2\examp
les\widgets
1 file(s) copied.
mingw32-make[3]: Target 'install' not remade because of errors.
mingw32-make[3]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.3.2/qtbase/examples/widgets'
Makefile:415: recipe for target 'sub-widgets-install_subtargets' failed
mingw32-make[2]: *** [sub-widgets-install_subtargets] Error 2
copy /y C:\Qt\Static\src\qt-everywhere-opensource-src-5.3.2\qtbase\examples\README C:\Qt\Static\5.3.2\examples
1 file(s) copied.
mingw32-make[2]: Target 'install' not remade because of errors.
mingw32-make[2]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.3.2/qtbase/examples'
Makefile:78: recipe for target 'sub-examples-install_subtargets' failed
mingw32-make[1]: *** [sub-examples-install_subtargets] Error 2
xcopy /s /q /y /i C:\Qt\Static\src\qt-everywhere-opensource-src-5.3.2\qtbase\doc\global C:\Qt\Static\5.3.2\doc\global
59 File(s) copied
mingw32-make[1]: Target 'install' not remade because of errors.
mingw32-make[1]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.3.2/qtbase'
Makefile:75: recipe for target 'module-qtbase-install_subtargets' failed
mingw32-make: *** [module-qtbase-install_subtargets] Error 2
mingw32-make: Target 'install' not remade because of errors.

Try to output powershell script output (.\windows-build-qt-static.ps1 > out.txt) and find strings with error information to get more understanding.
I've had the same final error and when I've inspected script output, I've found out that WATCOM headers were used in the process of compilation.
...
Environment:
INCLUDE=
C:\WATCOM\H
C:\WATCOM\H\NT
C:\WATCOM\H\NT\DIRECTX
C:\WATCOM\H\NT\DDK
...
The source of the problem was INCLUDE environment variable that was set to WATCOM compiler headers
INCLUDE
C:\WATCOM\H;C:\WATCOM\H\NT;C:\WATCOM\H\NT\DIRECTX;C:\WATCOM\H\NT\DDK
I've modified it to point to MinGw headers
INCLUDE
C:\Qt\Qt5.3.1\Tools\mingw482_32\i686-w64-mingw32\include;C:\Qt\Qt5.3.1\Tools\mingw482_32\include
This solved problem for me.
This may be not your error, but the point is, you should look at script output.

May be you don't installed ActivePerl or Python. Try it. It helped me.

Related

Getting “no rule to make target” error while trying to run OpenCV code

I'm trying to run example code from https://docs.opencv.org/master/db/df5/tutorial_linux_gcc_cmake.html. I use Ubuntu 16. I have OpenCV installed in /home/marcin/opencv/ directory. I use CMakeLists.txt file like in example, with addition of line
set (CMAKE_CXX_STANDARD 11)
I run in terminal
cmake -D CMAKE_PREFIX_PATH=/home/marcin/opencv/build
and I get positive output. But when I try to run make command I get:
make[2]: *** No rule to make target '/home/marcin/opencv/build/lib/libopencv_core.so.4.0.1',
needed by 'DisplayImage'. Stop.
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/DisplayImage.dir/all' failed
make[1]: *** [CMakeFiles/DisplayImage.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
As #Tsyvarev suggestet, I reinstalled the library one more time. It seems like it was broken.

Error while building LLVM/clang

I was trying to build LLVM/clang in HOME directory without sudo access following this link (http://clang.llvm.org/get_started.html)
But when I type 'make' this happens
Error running link command: No such file or directory
make[2]: *** [lib/libLLVMSupport.a] Error 2
make[2]: Leaving directory `/home/skataka/porple_tools/build'
make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make[1]: Leaving directory `/home/skataka/porple_tools/build'
make: *** [all] Error 2
$ Write failed: Broken pipe
I have used make VERBOSE=1 and it says CMAKE-AR NOT FOUND
Edit:
Changed CMakeCXXCompiler.cmake file - SET(CMAKE_AR "path to llvm-ar")
Now I am getting "Error running link command: Permission denied"
Help me with this !
Looks like your build directory generated by cmake is broken it seems to not be able to find the linker. I'd clobber the build directory and regenerate it with cmake paying attention to if it spits out any errors while configuring.

Makefile error while building mesa

I am getting error as following:
Video card 06:03.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200eW WPCM450 (rev 0a)
the build command
./autogen.sh --prefix=$WLD --enable-gles2 --disable-gallium-egl \
--with-egl-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi \
--with-gallium-drivers=r300,r600,swrast,nouveau --disable-dri3 --disable-llvm-shared-libs
make
make[5]: Entering directory `/home/interns/pooja/mesa-10.2n/src/mesa/drivers/dri/nouveau'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/interns/pooja/mesa-10.2n/src/mesa/drivers/dri/nouveau'
Making all in r200
make[5]: Entering directory `/home/interns/pooja/mesa-10.2n/src/mesa/drivers/dri/r200'
CC radeon_buffer_objects.lo
radeon_buffer_objects.c:1:1: error: expected identifier or '(' before '.' token
make[5]: *** [radeon_buffer_objects.lo] Error 1
make[5]: Leaving directory `/home/interns/pooja/mesa-10.2n/src/mesa/drivers/dri/r200'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/interns/pooja/mesa-10.2n/src/mesa/drivers/dri'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/interns/pooja/mesa-10.2n/src/mesa'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/interns/pooja/mesa-10.2n/src/mesa'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/interns/pooja/mesa-10.2n/src'
make: *** [all-recursive] Error 1
I ran into the same error, but as a long-time C programmer, it didn't bother me to look at the source code to see what the compiler was complaining about. Basically, in the "r200" directory are a bunch of files, one of which is radeon_buffer_objects.c, that refer to other files having the same names in another place, but the reference is invalid. You can identify these files easily with the "ls -la" command --every such file has less than 50 characters in it. If you open any of them, you will see the only thing in there is text like this:
../radeon/radeon_buffer_objects.c
Well, the correct way to reference the other file is this:
#include "../radeon/radeon_buffer_objects.c"
So I simply edited all the files that had that problem, in the r200 directory, to correctly reference the other files in the other directory.
Note that the r200 directory has a "server" subdirectory, and in there are also a few files that need to be similarly edited.
After doing that, it compiled OK. That's when I started to write this reply-message. But then the compiler ran into a very similar problem in another directory altogether:
dri_context.c:1:1: error: expected identifer or '(' before '.' token
Well, the fix described above should be fairly generic. I don't yet know how many places might need to be edited, before all of mesa finally compiles successfully, but the edits are simple, if tedious. The only question is why this wasn't fixed over in the repository from which mesa was downloaded!

llvm: cannot run doxygen

I can't build docs.
I am doing all things in llvm source directory.
./configure --enable-doxygen
make
...
llvm[1]: Building doxygen documentation
error: configuration file /media/data/virtual/share/gsoc/llvm/docs/doxygen.cfg not found!
...
make[1]: *** [regendoc] Error 1
make[1]: Leaving directory `/media/data/virtual/share/gsoc/llvm/docs'
make: *** [install] Error 1
What am I doing wrong?
What am I doing wrong?
I have no ida, but you might try to create configuration file on your own, for example with
doxywizard

Installing Apache Kudu on WSL

I am trying to install Apache Kudu and run the C++ examples on my Ubuntu distribution (18.04) on WSL. I am following the instructions for Ubuntu at https://kudu.apache.org/docs/installation.html
Everything runs smoothly until I get to step 6 where I run
make -j4
I get the following errors
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:225)
at java.util.zip.ZipFile.<init>(ZipFile.java:155)
at java.util.zip.ZipFile.<init>(ZipFile.java:169)
at org.gradle.wrapper.Install.unzip(Install.java:235)
at org.gradle.wrapper.Install.access$900(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:81)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63)
CMakeFiles/init_gradle.dir/build.make:60: recipe for target '../../java/gradle/wrapper/gradle-wrapper.jar' failed
make[2]: *** [../../java/gradle/wrapper/gradle-wrapper.jar] Error 1
make[2]: *** Deleting file '../../java/gradle/wrapper/gradle-wrapper.jar'
CMakeFiles/Makefile2:1708: recipe for target 'CMakeFiles/init_gradle.dir/all' failed
make[1]: *** [CMakeFiles/init_gradle.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 5%] Built target kudu_util_pb_util_proto
[ 5%] Built target kudu_util_hash_proto
[ 6%] Built target hms_thrift
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Image of error
Does anybody know what is causing the errors?
Happened to met same situation.
This exception is happened when building hms. And you can found verbose log by doing
cd <root_of_kudu>/java
./gradlew assemble
The problems I met is the zip of downloaded gradle seems wrong, so I cleaned ~/.gradle/wrapper/dists/gradle-6.2.2-all/2k4hz1yffuhb6ob9prdg10tx/gradle-6.2.2-all.zip and <root_of_kudu>/java/gradle/wrapper/gradle-wrapper.jar. And try to call make -j4 again.
Further more, if you happened to have same bad network like mine, you can download the gradle zip manually, by checking the content of <root_of_kudu>/java/gradlew, the line with curl tells you the download link, try to download it with a good network or a proxy and then place it to the first path you cleaned, it may work.