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

> On 13 January 2012 16:09, Martin Maurer wrote:
>>> On 13 January 2012 15:43, Martin Maurer wrote:
>>>>
>>>> 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 ?
>>>
>>>
>>> Is there a config.log file created in the current directory?
>>
>>
>> Here is the content of the logfile: see Attachment
>
> I didn't ask to see it, I asked if it's there, because that's where
> you should look to see more detail of what configure is currently
> doing.
>
> But since you sent it ...
>
> If you look for the test "configure:9195: checking if we can link to
> MySQL C API library directly" you will see it failed with this error:
>
> arm-none-linux-gnueabi/bin/ld: warning: libz.so.1, needed by
> /home/testuser/mm11/
> mysql5_from_arm_board/lib/libmysqlclient.so, not found (try using
> -rpath or -rpath-link)
> /home/testuser/mm11/mysql5_from_arm_board/lib/libmysqlclient.so: undefined
> reference to `compress'
> /home/testuser/mm11/mysql5_from_arm_board/lib/libmysqlclient.so: undefined
> reference to `uncompress'
>
> The following tests then try to resolve the problem by including
> zlib.h (which fails because it's not installed) and linking to -lz
> (which fails because it's not installed).
>
> Basically, you need libz.so.1 built for your ARM system.

just want to say a big thank you for your quick help !

I copied libs and header files for libz, added CFLAGS and LDFLAGS to point 
to them and "configure" was successful.
And even "make" was successful.

Looking forward to testing and using it.

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