|
|
Subject: Re: Cross compiling on 64 bit machine - msg#00028
List: apache.logging.log4cxx.user
Hi Andrew,
kingos@xxxxxxxxxxxxxxx wrote:
I am trying to compile svn head on an amd64 machine, but building 32bit
libraries. All I
[...]
funny options. How can I do this? Is there a way to build without ant? Argh!
on UNIX, you can also use the autotools based build system with the usual
./configure; make; make install approach.
Regarding your issue, you probably have to do something like
./configure CXXFLAGS="-m32" LDFLAGS="-m32"
Regards,
Andreas
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Cross compiling on 64 bit machine
Hi,
I am trying to compile svn head on an amd64 machine, but building 32bit
libraries. All I
need to do is pass -m32 to gcc when it compiles and links, but I am having
terrible trouble
getting ant to do that (I am a novice at ant ...) I have tried just about
everything I can
think of, the main way being to add the lines
<compilerarg value="-m32"/>
<linkerarg value="-m32"/>
everywhere below the dpic arguments. This doesn't work however, as ar gets
called with
funny options. How can I do this? Is there a way to build without ant? Argh!
Cheers,
Andrew
Next Message by Date:
click to view message preview
Re: Cross compiling on 64 bit machine
Okay, thanks Andreas!
I am getting there.
However, I have now hit a compilation issue, with the latest code from svn. I
can't
remember this problem in 64 bit, but I have tried compiling on a pure 32 bit
machine and get
the same problem. Is it to do with wchars, which are getting configured
differently now that
I am not using ant? How do I fix this with the configure build?
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\"
-DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_UNISTD_H=1
-DHAVE_ALLOCA_H=1
-DHAVE_SWPRINTF=1 -DHAVE_SYSLOG=1 -DHAVE_PTHREAD=1 -DHAVE_THREAD=1
-DHAVE_GETHOSTBYNAME=1
-DHAVE_SETSOCKOPT=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_FTIME=1 -DHAVE_SETENV=1
-DHAVE_MBSNRTOWCS=1
-DHAVE_WCSNRTOMBS=1 -I. -I. -I../include -I../include -DLOG4CXX -DLINUX=2
-D_REENTRANT
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE
-I/home/kingos/logging-log4cxx/lib/apr-1.2.7/include
-I/home/kingos/logging-log4cxx/lib/apr-util-1.2.7/include -D_REENTRANT -g -O2
-MT
charsetencoder.lo -MD -MP -MF .deps/charsetencoder.Tpo -c charsetencoder.cpp
-fPIC -DPIC -o
.libs/charsetencoder.o
charsetencoder.cpp: In constructor
`log4cxx::helpers::APRCharsetEncoder::APRCharsetEncoder(const char*)':
charsetencoder.cpp:49: error: `pool' was not declared in this scope
charsetencoder.cpp:53: error: `convset' was not declared in this scope
charsetencoder.cpp:60: error: expected primary-expression before "else"
charsetencoder.cpp:60: error: expected `;' before "else"
charsetencoder.cpp:62: error: expected primary-expression before "else"
charsetencoder.cpp:62: error: expected `;' before "else"
Thanks again for your help,
Regards,
Andrew
Previous Message by Thread:
click to view message preview
Cross compiling on 64 bit machine
Hi,
I am trying to compile svn head on an amd64 machine, but building 32bit
libraries. All I
need to do is pass -m32 to gcc when it compiles and links, but I am having
terrible trouble
getting ant to do that (I am a novice at ant ...) I have tried just about
everything I can
think of, the main way being to add the lines
<compilerarg value="-m32"/>
<linkerarg value="-m32"/>
everywhere below the dpic arguments. This doesn't work however, as ar gets
called with
funny options. How can I do this? Is there a way to build without ant? Argh!
Cheers,
Andrew
Next Message by Thread:
click to view message preview
Re: Cross compiling on 64 bit machine
Okay, thanks Andreas!
I am getting there.
However, I have now hit a compilation issue, with the latest code from svn. I
can't
remember this problem in 64 bit, but I have tried compiling on a pure 32 bit
machine and get
the same problem. Is it to do with wchars, which are getting configured
differently now that
I am not using ant? How do I fix this with the configure build?
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\"
-DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_UNISTD_H=1
-DHAVE_ALLOCA_H=1
-DHAVE_SWPRINTF=1 -DHAVE_SYSLOG=1 -DHAVE_PTHREAD=1 -DHAVE_THREAD=1
-DHAVE_GETHOSTBYNAME=1
-DHAVE_SETSOCKOPT=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_FTIME=1 -DHAVE_SETENV=1
-DHAVE_MBSNRTOWCS=1
-DHAVE_WCSNRTOMBS=1 -I. -I. -I../include -I../include -DLOG4CXX -DLINUX=2
-D_REENTRANT
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE
-I/home/kingos/logging-log4cxx/lib/apr-1.2.7/include
-I/home/kingos/logging-log4cxx/lib/apr-util-1.2.7/include -D_REENTRANT -g -O2
-MT
charsetencoder.lo -MD -MP -MF .deps/charsetencoder.Tpo -c charsetencoder.cpp
-fPIC -DPIC -o
.libs/charsetencoder.o
charsetencoder.cpp: In constructor
`log4cxx::helpers::APRCharsetEncoder::APRCharsetEncoder(const char*)':
charsetencoder.cpp:49: error: `pool' was not declared in this scope
charsetencoder.cpp:53: error: `convset' was not declared in this scope
charsetencoder.cpp:60: error: expected primary-expression before "else"
charsetencoder.cpp:60: error: expected `;' before "else"
charsetencoder.cpp:62: error: expected primary-expression before "else"
charsetencoder.cpp:62: error: expected `;' before "else"
Thanks again for your help,
Regards,
Andrew
|
|