Howto set an environment variable for autotools [message #1668643] |
Thu, 12 March 2015 15:33 |
John Stile Messages: 20 Registered: July 2009 |
Junior Member |
|
|
I am trying to make an eclipse autotools project to build xerces-c.
In order to build xerces-c I must
1. create an environment variable (XERCESCROOT ) assigned with a fully qualified path to the source directory root.
2. change to a source sub directory ( src/xercesc/ )
3. run configure
4. run make
cd xerces-c-src_2_7_0
export XERCESCROOT="$(pwd)"
cd src/xercesc/
./configure
make
I have also been able to make this work by setting the environment variable on he configure and make lines, however, the path assigned to XERCESCROOT can not be relative.
File -> New -> Make Project with Existing Code
Existing Code Location: <path to xerces-c-src_2_7_0>
Toolchain for Indexer Settings: GNU Autotools Toolchain
Project Name auto-change to: xerces-c-src_2_7_0
Finish
Select my Project (xerces-c-src_2_7_0)
File -> New -> Convert to a C/C++ Autotools Project
Follow the wizard and Finish
Now I have a project Ready to Configure, but I need to set XERCESCROOT for both configure and make.
project Properties ->Autotools->Configure Settings
Tried:
configure Command: XERCESCROOT="${workspace_loc:/xerces-c-src-2_7_0}" configure
configure->General: config tool direcotry: src/xercesc
How do I set XERCESCROOT for make?
"Configure Project" complets, but is not correct.
"Build Project" fails imediately, with 2 errors:
Error1: ../../version.incl: No such file or directory
Error2: Makefile.incl: No such file or directory
The files do exist in:
xerces-c-src_2_7_0/version.incl
xerces-c-src_2_7_0/src/xercesc/Makefile.incl
output of "Configure Project"
Generating Makefile in build directory: /home/jstile/svn_MAPP-1.0.0/kernel/libraries/3rdParty/xerces-c-src_2_7_0/
Command-line environment variables:
XERCESCROOT="${workspace_loc:/xerces-c-src-2_7_0}"
sh -c /home/jstile/svn_MAPP-1.0.0/kernel/libraries/3rdParty/xerces-c-src_2_7_0/src/xercesc/configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for autoconf... autoconf
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for XMLByte... no
checking host system type... x86_64-unknown-linux-gnu
updating cache ./config.cache
creating ./config.status
creating Makefile
creating util/Makefile
mkdir: cannot create directory 'util/Transcoders/Cygwin': No such file or directory
creating util/Transcoders/Cygwin/Makefile
./config.status: line 128: util/Transcoders/Cygwin/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/Transcoders/ICU': No such file or directory
creating util/Transcoders/ICU/Makefile
./config.status: line 128: util/Transcoders/ICU/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/Transcoders/Iconv': No such file or directory
creating util/Transcoders/Iconv/Makefile
./config.status: line 128: util/Transcoders/Iconv/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/Transcoders/Iconv390': No such file or directory
creating util/Transcoders/Iconv390/Makefile
./config.status: line 128: util/Transcoders/Iconv390/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/Transcoders/Uniconv390': No such file or directory
creating util/Transcoders/Uniconv390/Makefile
./config.status: line 128: util/Transcoders/Uniconv390/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/Transcoders/Iconv400': No such file or directory
creating util/Transcoders/Iconv400/Makefile
./config.status: line 128: util/Transcoders/Iconv400/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/Transcoders/IconvFBSD': No such file or directory
creating util/Transcoders/IconvFBSD/Makefile
./config.status: line 128: util/Transcoders/IconvFBSD/Makefile: No such file or directory
mkdir: cannot create directory 'util/Transcoders/IconvGNU': No such file or directory
creating util/Transcoders/IconvGNU/Makefile
./config.status: line 128: util/Transcoders/IconvGNU/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/Transcoders/MacOSUnicodeConverter': No such file or directory
creating util/Transcoders/MacOSUnicodeConverter/Makefile
./config.status: line 128: util/Transcoders/MacOSUnicodeConverter/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
creating util/Platforms/Makefile
creating util/Platforms/Solaris/Makefile
creating util/Platforms/AIX/Makefile
creating util/Platforms/BeOS/Makefile
creating util/Platforms/QNX/Makefile
creating util/Platforms/Interix/Makefile
creating util/Platforms/Linux/Makefile
creating util/Platforms/FreeBSD/Makefile
creating util/Platforms/NetBSD/Makefile
creating util/Platforms/HPUX/Makefile
creating util/Platforms/OS390/Makefile
creating util/Platforms/OS400/Makefile
creating util/Platforms/IRIX/Makefile
creating util/Platforms/PTX/Makefile
creating util/Platforms/OpenServer/Makefile
creating util/Platforms/UnixWare/Makefile
creating util/Platforms/Tru64/Makefile
creating util/Platforms/MacOS/Makefile
creating util/Platforms/Win32/Makefile
creating util/Platforms/Cygwin/Makefile
creating util/Compilers/Makefile
mkdir: cannot create directory 'util/MsgLoaders/InMemory': No such file or directory
creating util/MsgLoaders/InMemory/Makefile
./config.status: line 128: util/MsgLoaders/InMemory/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/MsgLoaders/ICU': No such file or directory
creating util/MsgLoaders/ICU/Makefile
./config.status: line 128: util/MsgLoaders/ICU/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/MsgLoaders/ICU/resources': No such file or directory
creating util/MsgLoaders/ICU/resources/Makefile
./config.status: line 128: util/MsgLoaders/ICU/resources/Makefile: No such file or directory
sed: couldn't write 48 items to stdout: Broken pipe
mkdir: cannot create directory 'util/MsgLoaders/MsgCatalog': No such file or directory
creating util/MsgLoaders/MsgCatalog/Makefile
./config.status: line 128: util/MsgLoaders/MsgCatalog/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/MsgLoaders/MsgFile': No such file or directory
creating util/MsgLoaders/MsgFile/Makefile
./config.status: line 128: util/MsgLoaders/MsgFile/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/NetAccessors/Socket': No such file or directory
creating util/NetAccessors/Socket/Makefile
./config.status: line 128: util/NetAccessors/Socket/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/NetAccessors/libWWW': No such file or directory
creating util/NetAccessors/libWWW/Makefile
./config.status: line 128: util/NetAccessors/libWWW/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
mkdir: cannot create directory 'util/NetAccessors/MacOSURLAccessCF': No such file or directory
creating util/NetAccessors/MacOSURLAccessCF/Makefile
./config.status: line 128: util/NetAccessors/MacOSURLAccessCF/Makefile: No such file or directory
sed: couldn't flush stdout: Broken pipe
creating util/regx/Makefile
creating validators/Makefile
creating validators/common/Makefile
creating validators/datatype/Makefile
creating validators/DTD/Makefile
creating validators/schema/Makefile
creating validators/schema/identity/Makefile
creating framework/Makefile
creating framework/psvi/Makefile
creating dom/Makefile
creating dom/impl/Makefile
creating dom/deprecated/Makefile
creating parsers/Makefile
creating internal/Makefile
creating sax/Makefile
creating sax2/Makefile
creating ../../obj/Makefile
chmod: cannot access './runConfigure': No such file or directory
chmod: cannot access './configure': No such file or directory
Having build problems?
Read instructions at http://xml.apache.org/xerces-c/build.html
Still cannot resolve it?
Find out if someone else had the same problem before.
Go to http://marc.theaimsgroup.com/?l=xerces-c-dev
[Operation successful]
|
|
|
Powered by
FUDForum. Page generated in 0.02892 seconds