Compile libxml2 on OSX 10.9.5 xcode 6 with error WITH_PYTHON does not appear in AM_CONDITIONAL - libxml2

Trying to compile compile libxml2 from source on OSX 10.9.5 xcode 6 with tools installed and i keep getting this error:
I have tried installing libxml2 with brew but couldn't get development version.
$ ./autogen.sh
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: You should add the contents of the following files to 'aclocal.m4':
libtoolize: '/opt/lo/share/aclocal/libtool.m4'
libtoolize: '/opt/lo/share/aclocal/ltoptions.m4'
libtoolize: '/opt/lo/share/aclocal/ltsugar.m4'
libtoolize: '/opt/lo/share/aclocal/ltversion.m4'
libtoolize: '/opt/lo/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
acinclude.m4:4: warning: underquoted definition of AC_TRY_EVAL2
acinclude.m4:4: run info Automake 'Extending aclocal'
acinclude.m4:4: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.in:38: error: automatic de-ANSI-fication support has been removed
/opt/lo/share/aclocal-1.13/obsolete.m4:26: AM_C_PROTOTYPES is expanded from...
configure.in:38: the top level
autom4te: /opt/local/bin/gm4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal)
Makefile.am:23: error: WITH_TRIO_SOURCES does not appear in AM_CONDITIONAL
Makefile.am:8: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
Makefile.am:18: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:18: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:18: to 'configure.in' and run 'aclocal' and 'autoconf' again.
Makefile.am:18: If 'LT_INIT' is in 'configure.in', make sure
Makefile.am:18: its definition is in aclocal's search path.
Makefile.am: installing './depcomp'
/opt/lo/share/automake-1.13/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL
/opt/lo/share/automake-1.13/am/depend2.am: The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC'
/opt/lo/share/automake-1.13/am/depend2.am: to 'configure.in' and run 'aclocal' and 'autoconf' again
/opt/lo/share/automake-1.13/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
/opt/lo/share/automake-1.13/am/depend2.am: The usual way to define 'AMDEP' is to add one of the compiler tests
/opt/lo/share/automake-1.13/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
/opt/lo/share/automake-1.13/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/opt/lo/share/automake-1.13/am/depend2.am: to 'configure.in' and run 'aclocal' and 'autoconf' again
example/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
python/Makefile.am:28: error: WITH_PYTHON does not appear in AM_CONDITIONAL
python/Makefile.am:6: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
python/Makefile.am:34: error: Libtool library used but 'LIBTOOL' is undefined
python/Makefile.am:34: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
python/Makefile.am:34: to 'configure.in' and run 'aclocal' and 'autoconf' again.
python/Makefile.am:34: If 'LT_INIT' is in 'configure.in', make sure
python/Makefile.am:34: its definition is in aclocal's search path.
python/tests/Makefile.am:41: error: WITH_PYTHON does not appear in AM_CONDITIONAL
./autogen.sh: line 61: ./configure: No such file or directory
Can someone help me please.

Related

fatal error: lipo: can't open input file: wireguard-go-bridge/libwg-go-arm64.a (No such file or directory

I have developed a framework which was working fine in debug mood also working in mobile phone but when I make a build for distribution compiler send me error
I have used Wireguard vpn use and its integration in app.
Makefile:68: warning: overriding commands for target `/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy'
Makefile:65: warning: ignoring old commands for target `/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy'
Makefile:68: warning: overriding commands for target `of'
Makefile:65: warning: ignoring old commands for target `of'
Makefile:71: warning: overriding commands for target `/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy'
Makefile:68: warning: ignoring old commands for target `/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy'
Makefile:71: warning: overriding commands for target `of'
Makefile:68: warning: ignoring old commands for target `of'
make: Circular /Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy <- /Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy dependency dropped.
make: Circular of <- /Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy dependency dropped.
make: Circular of <- of dependency dropped.
go build -ldflags=-w -trimpath -v -o "/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy of OortVPN/IntermediateBuildFilesPath/FriendsVPN.build/Debug-iphoneos/wireguard-go-bridge/libwg-go-arm64.a" -buildmode c-archive
runtime/cgo
net
golang.zx2c4.com/wireguard/apple
rm -f "/Users/fitoutfit/Library/Developer/Xcode/DerivedData/FriendsVPN-guiobyjdevstmafjlnlacycwutee/Build/Intermediates.noindex/ArchiveIntermediates/Copy of OortVPN/IntermediateBuildFilesPath/FriendsVPN.build/Debug-iphoneos/wireguard-go-bridge/libwg-go-arm64.h"
lipo -create -output "of" OortVPN/IntermediateBuildFilesPath/FriendsVPN.build/Debug-iphoneos/wireguard-go-bridge/libwg-go-arm64.a /usr/local/Cellar/go/1.17/libexec/.prepared go.mod
fatal error: lipo: can't open input file: OortVPN/IntermediateBuildFilesPath/FriendsVPN.build/Debug-iphoneos/wireguard-go-bridge/libwg-go-arm64.a (No such file or directory)
make: *** [of] Error 1
Command ExternalBuildToolExecution failed with a nonzero exit code

Cupy error installation

I tried to install cupy via pip install cupy. I get the following error:
Looking in links:
/cvmfs/soft.computecanada.ca/custom/python/wheelhouse/avx2,
/cvmfs/soft.computecanada.ca/custom/python/wheelhouse/generic Collecting cupy
Using cached https://files.pythonhosted.org/packages/38/14/ddb1a13f77a50d721814e28181ae90e0d57c3f8d4faa9a7b2e028cfcc99a/cupy-4.0.0.tar.gz
Complete output from command python setup.py egg_info:
Options: {'profile': False, 'annotate': False, 'linetrace': False, 'wheel_libs': [], 'package_name': 'cupy', 'no_rpath': False, 'no_cuda': False, 'long_description': None}
**************************************************
*** WARNING: nvcc not in path.
*** WARNING: Please set path to nvcc.
**************************************************
**************************************************
*** WARNING: nvcc path != CUDA_PATH
*** WARNING: nvcc path: None
*** WARNING: CUDA_PATH: /cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44
**************************************************
-------- Configuring Module: cuda --------
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc: warning: /cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/gcc5.4/cuda/8.0.44/include: linker input file unused because linking not done
/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/gcc5.4/cuda/8.0.44/lib64: file not recognized: Is a directory
collect2: error: ld returned 1 exit status
Cannot build a stub file.
Original error: command 'g++' failed with exit status 1
************************************************************
* CuPy Configuration Summary *
************************************************************
Build Environment:
Include directories: ['/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44/include']
Library directories: ['/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44/lib64']
nvcc command : ['/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44/bin/nvcc']
Environment Variables:
CFLAGS : /cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/gcc5.4/cuda/8.0.44/include
LDFLAGS : /cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/gcc5.4/cuda/8.0.44/lib64
LIBRARY_PATH : /cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/python/2.7.14/lib:/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/CUDA/intel2016.4/cuda8.0/openmpi/2.1.1/lib:/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44/lib64:/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/mkl/lib/intel64:/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/imkl/11.3.4.258/lib/intel64:/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/ifort/2016.4.258/compilers_and_libraries_2016.4.258/linux/compiler/lib/intel64:/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/gcc-5.4.0/lib64:/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/gcc-5.4.0/lib:/cvmfs/soft.computecanada.ca/easybuild/software/2017/Core/icc/2016.4.258/compilers_and_libraries_2016.4.258/linux/compiler/lib/intel64:/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/lib
CUDA_PATH : /cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/intel2016.4/cuda/8.0.44
NVCC : (none)
Modules:
cuda : No
-> Include files not found: ['cublas_v2.h', 'cuda.h', 'cuda_profiler_api.h', 'cuda_runtime.h', 'cufft.h', 'curand.h', 'cusparse.h', 'nvrtc.h', 'nvToolsExt.h']
-> Check your CFLAGS environment variable.
ERROR: CUDA could not be found on your system.
Please refer to the Installation Guide for details:
https://docs-cupy.chainer.org/en/stable/install.html
************************************************************
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/localscratch/tamouze.7243408.0/pip-install-_wUDId/cupy/setup.py", line 65, in <module>
ext_modules = cupy_setup_build.get_ext_modules()
File "cupy_setup_build.py", line 561, in get_ext_modules
extensions = make_extensions(arg_options, compiler, use_cython)
File "cupy_setup_build.py", line 374, in make_extensions
raise Exception('Your CUDA environment is invalid. '
Exception: Your CUDA environment is invalid. Please check above error log.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /localscratch/tamouze.7243408.0/pip-install-_wUDId/cupy/
Im working on SSH linux server. Im not comfortable with linux environment. My problem looks like the environment is not ok, please how can setup correctly them? I want to use cupy with cahiner
for cuda 9.0:
pip install --pre cupy-cuda90
Or you may want to first do:
1. check you module list : module list
unload pgi module: module unload pgi/16.9

QT can't build - "Some of the required modules (!win32-g++) are not available"

I pulled down the qtpdf repository to check out and play with from here:
http://code.qt.io/cgit/qt-labs/qtpdf.git
As soon as I open the qtpdf.pro file, I get the following general messages:
Cannot read C:/.../build-qpdf-Desktop_Qt_5_10_0_MinGW_32bit-Debug/src/lib/pdfium.pri: No such file or directory
Cannot read C:/.../build-qpdf-Desktop_Qt_5_10_0_MinGW_32bit-Debug/src/lib/freetype.pri: No such file or directory
Project MESSAGE: perl -w C:\Qt\5.10.0\mingw53_32\bin\syncqt.pl -module QtPdf -version 5.9.0 -outdir "C:/.../build-qpdf-Desktop_Qt_5_10_0_MinGW_32bit-Debug" C:/.../qtpdf
Project MESSAGE: perl -w C:\Qt\5.10.0\mingw53_32\bin\syncqt.pl -module QtPdfWidgets -version 5.9.0 -outdir "C:/.../build-qpdf-Desktop_Qt_5_10_0_MinGW_32bit-Debug" C:/.../qtpdf
Project ERROR: Unknown module(s) in QT: pdfwidgets
Project ERROR: Unknown module(s) in QT: pdf
Also when running "rebuild all" I get the following error message:
16:15:33: Starting: "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" qmake_all
"Some of the required modules (!qnx:!uikit:!winphone:!winrt:!win32-g++:!integrity) are not available."
"Skipped."
I've narrowed this down to !win32-g++ - If I remove that, it won't throw that error, but I don't understand what exactly this error means - I have googled around a lot but couldn't find anything that seemed reminiscent of this particular problem.
I managed to build qtpdf with mingw provided with Qt5.11.2.
Comment out "requires(!qnx:!uikit:!winphone:!winrt:!win32-g++:!integrity)" from pdf.pro
Apply the patch found here : https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-pdfium-git/pdfium-2729.patch (link dead in 2021, no backup sorry)
Add -luuid after "win32: LIBS_PRIVATE += -ladvapi32 -lgdi32 -luser32" in lib.pro
I don't know why, probably because I am not an expert, but mingw doesn't generate correctly the folder "include". As a workaround I use the one generated under linux. For some reason, mingw generate only QPdfDepends and QPdfWidgetsDepends, none of the needed headers are generated. I didn't dig because I am lazy.
Hope it helps !
# Upstream PDFium has not been ported to various platforms yet.
requires(!qnx:!uikit:!winphone:!winrt:!win32-g++:!integrity)
The module is not working on win32-g++ (mingw32).

Linking PHPUnit with PhpStorm

PHPUnit: 4.8.31
PhpStorm: 2016.1
I'm having issues running PHPUnit from within PhpStorm. From a CMD window, running the test works fine, but the PhpStorm output is this:
"C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-binaries\php\php704vc14x86x161109103716\php.exe" C:/Users/username/AppData/Local/Temp/ide-phpunit.php --no-configuration "C:\tests"
Testing started at 5:30 PM ...
Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-binaries\php\php704vc14x86x161109103716\ext\php_curl.dll' - The specified procedure could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-binaries\php\php704vc14x86x161109103716\ext\php_curl.dll' - The specified procedure could not be found.
Fatal error: Class 'PHPUnit_TextUI_ResultPrinter' not found in C:\Users\username\AppData\Local\Temp\ide-phpunit.php on line 253 in Unknown on line 0
PHP Fatal error: Class 'PHPUnit_TextUI_ResultPrinter' not found in C:\Users\username\AppData\Local\Temp\ide-phpunit.php on line 253
Process finished with exit code 255
I've included the folder with my phpunit.phar library in PhpStorm:
PhpStorm knows about the include paths, autocomplete works.
The run config looks like this:
The PHP version/install I'm using is the same one.
Windows:
PhpStorm:
Any ideas?
I tried running a script that uses curl from a CMD window and saw that the curl library wasn't loaded.
I did phpinfo(); and saw that the CMD window was using a different PHP installation (I had installed a new EasyPHP version).
I made the windows sys variable PATH point at my old one, then it started throwing some errors about not loading some libraries (php_curl.dll, libssh2.dll), so I moved them from the new install folder to the old one and to Windows\SysWOW64.
Miraculously, the PhpStorm run config was also fixed, which leads me to believe it doesn't use the interpreter I set in its options, but rather the one from PATH..
The PhpStorm output is now:
"C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-binaries\php\php704vc14x86x161109103716\php.exe" C:/Users/username/AppData/Local/Temp/ide-phpunit.php --no-configuration "C:\tests"
Testing started at 9:22 AM ...
Warning: The use statement with non-compound name 'PHPUnit_Framework_TestCase' has no effect in C:\DummyTest.php on line 3
PHPUnit 4.8.31 by Sebastian Bergmann and contributors.
PHP Warning: The use statement with non-compound name 'PHPUnit_Framework_TestCase' has no effect in C:\DummyTest.php on line 3
No tests found in class "TestDummy".
Time: 372 ms, Memory: 10.00MB
FAILURES!
Tests: 1, Assertions: 0, Failures: 1.
Process finished with exit code 1

Qt driver for PostgreSQL compilation error

When compiling psql with following command:
cd %QTDIR%\src\plugins\sqldrivers\psql
qmake "INCLUDEPATH+=D:\Program Files\PostgreSQL\8.3\include" "LIBS+=D:\Program Files\PostgreSQL\8.3\lib\libpq.lib" psql.pro
make
I got following message:
... g++: Files\PostgreSQL\8.3\lib -Lc:\Qt\2010.05\qt\lib tmp\obj\debug_shared\qsqlpsqld_resource_res.o D:\Progra~1\PostgreSQL\8.3\lib\libpq.lib -lQtSqld4 -lQtCored4 : Invalid argument
make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlpsqld4.dll] Error 1
make[1]: Leaving directory `C:/Qt/2010.05/qt/src/plugins/sqldrivers/psql'
make: *** [debug-all] Error 2
Replacement D:\Program Files -> D:\Progra~1 doesn't change anything. How to solve that problem?
Try using single quotes instead of double quotes in the qmake invocation. If that fails, try using forward slashes instead of backslashes in the path.
Commands should be:
cd %QTDIR%\src\plugins\sqldrivers\psql
qmake "INCLUDEPATH+=D:\Progra~1\PostgreSQL\8.3\include" "LIBS+=D:\Progra~1\PostgreSQL\8.3\lib\libpq.lib" psql.pro
then it is needed to manually fix Makefiles (Debug and Release) to exclude all occurencies of space in dirname, then run
make

Resources