Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, January 2008
Building Qt-4.3.3 on MacOSX (Leopard)


Message 1 in thread

Hi Trolls,

Just got my MacBook today and tried to build Qt-4.3.3 OpenSource
edition against MySQL 5.0.x MySQL was build from source and installed
in /usr/local/mysql according to the documentation.

When I configure Qt against this install, it treats me with the
following messages :

MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
c++ -c -pipe -Os -Wall -W  -I../../../mkspecs/macx-g++ -I.
-I/usr/local/mysql/include/mysql -I. -o mysql.o mysql.cpp c++
-headerpad_max_install_names -o mysql mysql.o
-L/usr/local/mysql/lib/mysql/lib -lmysqlclientld: library not found
for -lmysqlclient
collect2: ld returned 1 exit status
make: *** [mysql] Error 1
MySQL (thread-unsafe) disabled.
MySQL support cannot be enabled due to functionality tests!
 Turn on verbose messaging (-v) to ./configure to see the final
report. If you believe this message is in error you may use the
continue switch (-continue) to ./configure to continue.


And then I was stuck. Why can it not find the library? I gave the path
with -L, didn't I? I'm not sure if this is a Qt-F&ck-up or did I
forgot something installing MySQL?

Kind Regards,

Peter M. Groen

-- 
 [ signature omitted ] 

Message 2 in thread

On Wed, 2008-01-02 at 21:56 +0000, Peter M.Groen wrote:
> Hi Trolls,
> 
> Just got my MacBook today and tried to build Qt-4.3.3 OpenSource
> edition against MySQL 5.0.x MySQL was build from source and installed
> in /usr/local/mysql according to the documentation.
> 
> When I configure Qt against this install, it treats me with the
> following messages :
> 
> MySQL (thread-safe) disabled.
> MySQL (thread-unsafe) auto-detection... ()
> c++ -c -pipe -Os -Wall -W  -I../../../mkspecs/macx-g++ -I.
> -I/usr/local/mysql/include/mysql -I. -o mysql.o mysql.cpp c++
> -headerpad_max_install_names -o mysql mysql.o
> -L/usr/local/mysql/lib/mysql/lib -lmysqlclientld: library not found
> for -lmysqlclient
> collect2: ld returned 1 exit status
> make: *** [mysql] Error 1
> MySQL (thread-unsafe) disabled.
> MySQL support cannot be enabled due to functionality tests!
>  Turn on verbose messaging (-v) to ./configure to see the final
> report. If you believe this message is in error you may use the
> continue switch (-continue) to ./configure to continue.
> 
> 
> And then I was stuck. Why can it not find the library? I gave the path
> with -L, didn't I? I'm not sure if this is a Qt-F&ck-up or did I
> forgot something installing MySQL?

Looks to me like your path is simply wrong, look at it.

"/usr/local/mysql/lib/mysql/lib"

I think that /usr/local/mysql/lib will probably work better.

Stephan


--
 [ signature omitted ] 

Message 3 in thread

In article <flh1kh$b0v$1@xxxxxxxxxxxxxxxxxx> Stephan
Rose<kermos@xxxxxxxxxx> wrote:

>>   
>>   And then I was stuck. Why can it not find the library? I gave the
>> path with -L, didn't I? I'm not sure if this is a Qt-F&ck-up or did
>> I forgot something installing MySQL?

>  Looks to me like your path is simply wrong, look at it.

>  "/usr/local/mysql/lib/mysql/lib"

>  I think that /usr/local/mysql/lib will probably work better.

>  Stephan

Hi Stephan,

Thank you for your reply. I'm sorry, but that didn't work either. 
And all the libs are under /usr/local/mysql/lib/mysql/lib. I figure I
need to set a library path for the linker like I did under Linux, but
don't know how to do this under MacOSX.. Not really a Qt-question I
Realize now...

Regards

Peter

-- 
 [ signature omitted ] 

Message 4 in thread

Peter M.Groen wrote:
> -L/usr/local/mysql/lib/mysql/lib -lmysqlclientld: library not found
> for -lmysqlclient

Hi Peter,

(Maybe stupid) question. Shouldn't you write :
-L/usr/local/mysql/lib/mysql/lib -lmysqlclient ?
(removed ld from -lmysqlclientld)

-- 
 [ signature omitted ]