List:MySQL++« Previous MessageNext Message »
From:Niranjan M Date:March 27 2013 6:56pm
Subject:Re: Cross compile mysql++ for PowerPC
View as plain text  
Hi All,
        I solved the problem. Below is a brief description.

I finally solved this problem. I did the below.
1.Downloaded the Connector/C (libmysql) source files from here

2.Cross compiled it for powerpc, below is the command given to cmake

cmake -DCMAKE_INSTALL_PREFIX="~/mysqlclient_C/lib"
-DCMAKE_C_COMPILER="ppc_4xx-gcc"
-DCMAKE_C_FLAGS="-I/opt/ELDK/4.2/ppc_4xx/usr/include/"
-DCMAKE_CXX_COMPILER="ppc_4xx-g++"
-DCMAKE_CXX_FLAGS="-I/opt/ELDK/4.2/ppc_4xx/usr/include/"
-DCMAKE_EXE_LINKER_FLAGS="-lm"

Then a simple make generated the libmysql libraries.

3. Downloaded mysql++ source files from here

4. Cross compiled it for powerpc, below is my configure command.

./configure --target=powerpc-linux --host=powerpc-linux
--prefix="$HOME/mysql++/lib" --enable-thread-check
--with-mysql="$HOME/mysqlclient_C/lib" CC=ppc_4xx-gcc CXX=ppc_4xx-g++
LDFLAGS=-lm CFFLAGS="-I/opt/ELDK/4.2/ppc_4xx/usr/include"
CXXFLAGS="-I/opt/ELDK/4.2/ppc_4xx/usr/include"

The mysql++ libraries is generated now.

I have not tested the built libraries yet.

Thanks a lot guys for the help.

With Regards,
Niranjan

On Thu, Mar 14, 2013 at 6:28 PM, Warren Young <mysqlpp@stripped> wrote:

> On 3/14/2013 11:53, Niranjan M wrote:
>
>>
>> So my question would be, where can I get the source files which were used
>> to generate libysqlclient libraries ?
>>
>
> mysql.com.
>
>
>
> --
> MySQL++ Mailing List
> For list archives:
> http://lists.mysql.com/**plusplus<http://lists.mysql.com/plusplus>
> To unsubscribe:   
> http://lists.mysql.com/**plusplus<http://lists.mysql.com/plusplus>
>
>

Thread
Cross compile mysql++ for PowerPCNiranjan M13 Mar
  • Re: Cross compile mysql++ for PowerPCWarren Young13 Mar
    • Re: Cross compile mysql++ for PowerPCNiranjan M14 Mar
      • Re: Cross compile mysql++ for PowerPCWarren Young14 Mar
        • Re: Cross compile mysql++ for PowerPCNiranjan M27 Mar