List:MySQL++« Previous MessageNext Message »
From:Martin Maurer Date:January 13 2012 3:43pm
Subject:Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit, x86) for ARM Linux
View as plain text  
Hello,

i want to cross-compile mysql++ 3.1.0 on Ubuntu (32 bit, x86)
The resulting code shall run on a ARM Linux system.
Compiler itself is running.
I have mysql already running on ARM Linux and copied the mysql include and libs to my
build machine 
(located in /home/testuser/mm11/mysql5_from_arm_board/include and
/home/testuser/mm11/mysql5_from_arm_board/libs)
C compiler is gcc for ARM Linux (the free edition from Codesourcery, now Mentor Graphics)

I have created a shell script to setup my variable:

export CC=/home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-gcc
export CXX=/home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-g++
export LD=/home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-gcc
export AR=/home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-ar
export RANLIB=/home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-ranlib
export ac_cv_func_getpgrp_void=yes
export ac_cv_func_setpgrp_void=yes
./configure --target=arm-linux --host=arm-linux
--with-mysql-lib=/home/testuser/mm11/mysql5_from_arm_board/lib
--with-mysql-include=/home/testuser/mm11/mysql5_from_arm_board/include

Then i call the shell script and configure runs and prints the following:

$ ./mysqlpp_comp.sh
configure: WARNING: If you wanted to set the --build type, don't use --host.
     If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for arm-linux-gcc...
/home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-gcc accepts
-g... yes
checking for /home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-gcc option to
accept ANSI C... none needed
checking whether we are using the Intel C compiler... no
checking for arm-linux-g++...
/home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-g++
checking whether we are using the GNU C++ compiler... yes
checking whether /home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-g++ accepts
-g... yes
checking whether we are using the Intel C++ compiler... no
checking whether we are using the Sun C++ compiler... no
checking for arm-linux-ranlib...
/home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for arm-linux-ar... /home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-ar
checking for arm-linux-strip... no
checking for strip... strip
checking for arm-linux-nm... no
checking for nm... nm
checking for command to install directories... /usr/bin/install -c -d
checking if make is GNU make... yes
checking for dependency tracking method... gcc
checking for arm-linux-gcc... (cached)
/home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-gcc accepts
-g... (cached) yes
checking for /home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-gcc option to
accept ANSI C... (cached) none needed
checking how to run the C preprocessor...
/home/testuser/mm11/arm-2007q3/bin/arm-none-linux-gnueabi-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for getopt... yes
checking whether -lm is needed to use C math functions... no
checking whether -lsocket is needed... no
checking whether -lnsl is needed... no
checking for MySQL library directory... /home/testuser/mm11/mysql5_from_arm_board/lib
checking for MySQL include directory... /home/testuser/mm11/mysql5_from_arm_board/include
checking if we can link to MySQL C API library directly... no
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking whether adding -lz will let MySQL C API link succeed... no
configure: error: Unable to link to MySQL client library!

How can i see with more detail what configure is currently doing in this step ?
Or is there something missing, e.g. additional packages ? Is this error message still
related to zlib ?
Do i need to change something in the script ?

Best regards,

Martin

Thread
Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit, x86) for ARM LinuxMartin Maurer13 Jan
  • Re: Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit,x86) for ARM LinuxJonathan Wakely13 Jan
    • Re: Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit, x86) for ARM LinuxMartin Maurer13 Jan
      • Re: Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit,x86) for ARM LinuxJonathan Wakely13 Jan
        • Re: Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit, x86) for ARM LinuxMartin Maurer13 Jan
          • Re: Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit,x86) for ARM LinuxJonathan Wakely13 Jan
            • Re: Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit, x86) for ARM LinuxMartin Maurer14 Jan
              • Re: Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit,x86) for ARM LinuxJonathan Wakely14 Jan
                • Re: Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit, x86) for ARM LinuxMartin Maurer15 Jan
  • Re: Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit, x86) for ARM LinuxPaul15 Jun
    • Re: Need help for cross-compiling mysql++-3.1.0 on Ubuntu (32 bit,x86) for ARM LinuxWarren Young15 Jun