Qt-interest Archive, August 2007
(macosX,Qt4.1.1 open-source tar-version)impossible to configure with the support of MySQL
Message 1 in thread
hello,
when I enter, in the folder of Qt (source version) the command "sudo
./configure -plugin-sql-mysql", I have the following message:
*
This is the Qt/Mac Open Source Edition.
Determining system architecture... (Darwin:8.8.3:i386)
'macosx' is supported
System architecture: 'macosx'
-fvisibility support enabled.
sse support enabled.
You are licensed to use this software under the terms of
the GNU General Public License (GPL).
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of the license? yes
Creating qmake. Please wait...
make: Nothing to be done for `first'.
zlib auto-detection... ()
make: Nothing to be done for `first'.
zlib enabled.
libjpeg auto-detection... ()
c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
libjpeg.o libjpeg.cpp
libjpeg.cpp:4:21: error: jpeglib.h: No such file or directory
libjpeg.cpp: In function 'int main(int, char**)':
libjpeg.cpp:9: error: 'j_compress_ptr' was not declared in this scope
libjpeg.cpp:9: error: expected `;' before 'cinfo'
libjpeg.cpp:10: error: 'cinfo' was not declared in this scope
libjpeg.cpp:10: error: 'jpeg_create_compress' was not declared in this scope
make: *** [libjpeg.o] Error 1
libjpeg disabled.
libmng auto-detection... ()
c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
libmng.o libmng.cpp
libmng.cpp:1:20: error: libmng.h: No such file or directory
libmng.cpp: In function 'int main(int, char**)':
libmng.cpp:5: error: 'mng_handle' was not declared in this scope
libmng.cpp:5: error: expected `;' before 'hMNG'
libmng.cpp:6: error: 'hMNG' was not declared in this scope
libmng.cpp:6: error: 'mng_cleanup' was not declared in this scope
make: *** [libmng.o] Error 1
libmng disabled.
libpng auto-detection... ()
c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
libpng.o libpng.cpp
libpng.cpp:1:17: error: png.h: No such file or directory
libpng.cpp:4:4: error: #error "Required libpng version 1.0.17 not found."
libpng.cpp: In function 'int main(int, char**)':
libpng.cpp:9: error: 'png_structp' was not declared in this scope
libpng.cpp:9: error: expected `;' before 'png_ptr'
libpng.cpp:10: error: 'png_ptr' was not declared in this scope
libpng.cpp:10: error: 'PNG_LIBPNG_VER_STRING' was not declared in this scope
libpng.cpp:10: error: 'png_create_read_struct' was not declared in this
scope
make: *** [libpng.o] Error 1
libpng disabled.
InterBase auto-detection... ()
c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
ibase.o ibase.cpp
ibase.cpp:1:19: error: ibase.h: No such file or directory
make: *** [ibase.o] Error 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
mysql.o ../mysql/mysql.cpp
../mysql/mysql.cpp:1:19: error: mysql.h: No such file or directory
make: *** [mysql.o] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
mysql.o mysql.cpp
mysql.cpp:1:19: error: mysql.h: No such file or directory
make: *** [mysql.o] 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.
*However, I followed the instructions I found at Trolltech:
- I installed MySQL from the official site (v.5.0.45,dmg), and I am sure
that the installation of the standard server of macosX (apache) and
MySQL is successful(I can launch mySQL from the command line)
- In the file ".profile", I modified the variables PATH(export
PATH=/usr/local/mysql/bin:$PATH), LIB(export LIB=/usr/local/mysql/lib),
and INCLUDE (export INCLUDE=/usr/local/mysql/include), and I rerun the
terminal: the variables are modified
But there is this error; I would also know if someone has successfully
installed Qt with mysql support (I would be sure that it is possible).
regards,
lolveley.
--
[ signature omitted ]
Message 2 in thread
On torsdag den 9. August 2007, lolveley wrote:
> [...]
> MySQL (thread-safe) auto-detection... ()
> c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
> mysql.o ../mysql/mysql.cpp
> ../mysql/mysql.cpp:1:19: error: mysql.h: No such file or directory
> make: *** [mysql.o] Error 1
> MySQL (thread-safe) disabled.
> MySQL (thread-unsafe) auto-detection... ()
> c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
> mysql.o mysql.cpp
> mysql.cpp:1:19: error: mysql.h: No such file or directory
> make: *** [mysql.o] 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.
>
> *However, I followed the instructions I found at Trolltech:
> - I installed MySQL from the official site (v.5.0.45,dmg), and I am sure
> that the installation of the standard server of macosX (apache) and
> MySQL is successful(I can launch mySQL from the command line)
> - In the file ".profile", I modified the variables PATH(export
> PATH=/usr/local/mysql/bin:$PATH), LIB(export LIB=/usr/local/mysql/lib),
> and INCLUDE (export INCLUDE=/usr/local/mysql/include), and I rerun the
> terminal: the variables are modified
The error message is very clear. The compiler can't find mysql.h.
Is it pointing correctly? Can you do "ls $INCLUDE/mysql.h"?
You could try configuring qt with -I. I usually compile Qt something like
this:
./configure -plugin-sql-mysql -I/usr/include/mysql ...
And just to be certain: You did install a development version with include
files, right?
Bo.
--
[ signature omitted ]
Message 3 in thread
Hello Bo, thank you for yourn answer.
I tried the ls command you said, and I had the message:
*/usr/local/mysql/include/mysql.h*
so it's good, the INCLUDE variable is recognized.
I tried launching configure with the -I parameter, but this does not
change anything; moreover I did not found it (with the -h parameter):
it's amazing.
But I did not downloaded a development version of mysql...there is maybe
the error. I will have a look at the mysql site.
regards,
lolveley.
Bo Thorsen a écrit :
> On torsdag den 9. August 2007, lolveley wrote:
>
>> [...]
>> MySQL (thread-safe) auto-detection... ()
>> c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
>> mysql.o ../mysql/mysql.cpp
>> ../mysql/mysql.cpp:1:19: error: mysql.h: No such file or directory
>> make: *** [mysql.o] Error 1
>> MySQL (thread-safe) disabled.
>> MySQL (thread-unsafe) auto-detection... ()
>> c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
>> mysql.o mysql.cpp
>> mysql.cpp:1:19: error: mysql.h: No such file or directory
>> make: *** [mysql.o] 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.
>>
>> *However, I followed the instructions I found at Trolltech:
>> - I installed MySQL from the official site (v.5.0.45,dmg), and I am sure
>> that the installation of the standard server of macosX (apache) and
>> MySQL is successful(I can launch mySQL from the command line)
>> - In the file ".profile", I modified the variables PATH(export
>> PATH=/usr/local/mysql/bin:$PATH), LIB(export LIB=/usr/local/mysql/lib),
>> and INCLUDE (export INCLUDE=/usr/local/mysql/include), and I rerun the
>> terminal: the variables are modified
>>
>
> The error message is very clear. The compiler can't find mysql.h.
>
> Is it pointing correctly? Can you do "ls $INCLUDE/mysql.h"?
>
> You could try configuring qt with -I. I usually compile Qt something like
> this:
>
> ./configure -plugin-sql-mysql -I/usr/include/mysql ...
>
> And just to be certain: You did install a development version with include
> files, right?
>
> Bo.
>
>
Message 4 in thread
On 9 aug 2007, at 20.49, lolveley wrote:
> Hello Bo, thank you for yourn answer.
> I tried the ls command you said, and I had the message:
> /usr/local/mysql/include/mysql.h
> so it's good, the INCLUDE variable is recognized.
>
> I tried launching configure with the -I parameter, but this does
> not change anything; moreover I did not found it (with the -h
> parameter): it's amazing.
>
> But I did not downloaded a development version of mysql...there is
> maybe the error. I will have a look at the mysql site.
>
> regards,
>
> lolveley.
>
You need to use the -L option to configure to point to the directory
containing the mysql client libraries.
You might also have to pass the -R option with the name of the client
library.
The headers and libraries is as far as I know provided with the
prebuilt binary distributions of mysql for mac.
------------------------------------------------------
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
tommy.nordgren@xxxxxxxxx
--
[ signature omitted ]
Message 5 in thread
Thank you for your answer, Bo.
I have solved my problem: I used macports to install mysql-develop, and
I compiled the plugin with the good parameters.
Now, I have another problem, but my mysql driver is recognized.
regards,
lolveley.
Tommy Nordgren a écrit :
>
> On 9 aug 2007, at 20.49, lolveley wrote:
>
>> Hello Bo, thank you for yourn answer.
>> I tried the ls command you said, and I had the message:
>> /usr/local/mysql/include/mysql.h
>> so it's good, the INCLUDE variable is recognized.
>>
>> I tried launching configure with the -I parameter, but this does not
>> change anything; moreover I did not found it (with the -h parameter):
>> it's amazing.
>>
>> But I did not downloaded a development version of mysql...there is
>> maybe the error. I will have a look at the mysql site.
>>
>> regards,
>>
>> lolveley.
>>
> You need to use the -L option to configure to point to the
> directory containing the mysql client libraries.
> You might also have to pass the -R option with the name of the client
> library.
> The headers and libraries is as far as I know provided with the
> prebuilt binary distributions of mysql for mac.
> ------------------------------------------------------
> "Home is not where you are born, but where your heart finds peace" -
> Tommy Nordgren, "The dying old crone"
> tommy.nordgren@xxxxxxxxx
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 6 in thread
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I had a look at the mysql.com site, and I did not found any development
version.<br>
You talked about mysql, do you?<br>
<br>
<b>lolveley.</b><br>
<br>
<br>
Bo Thorsen a écrit :
<blockquote cite="mid:200708091642.34657.bo@xxxxxxxxxxxxxxxxxxxxx"
type="cite">
<pre wrap="">On torsdag den 9. August 2007, lolveley wrote:
</pre>
<blockquote type="cite">
<pre wrap="">[...]
MySQL (thread-safe) auto-detection... ()
c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
mysql.o ../mysql/mysql.cpp
../mysql/mysql.cpp:1:19: error: mysql.h: No such file or directory
make: *** [mysql.o] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
mysql.o mysql.cpp
mysql.cpp:1:19: error: mysql.h: No such file or directory
make: *** [mysql.o] 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.
*However, I followed the instructions I found at Trolltech:
- I installed MySQL from the official site (v.5.0.45,dmg), and I am sure
that the installation of the standard server of macosX (apache) and
MySQL is successful(I can launch mySQL from the command line)
- In the file ".profile", I modified the variables PATH(export
PATH=/usr/local/mysql/bin:$PATH), LIB(export LIB=/usr/local/mysql/lib),
and INCLUDE (export INCLUDE=/usr/local/mysql/include), and I rerun the
terminal: the variables are modified
</pre>
</blockquote>
<pre wrap=""><!---->
The error message is very clear. The compiler can't find mysql.h.
Is it pointing correctly? Can you do "ls $INCLUDE/mysql.h"?
You could try configuring qt with -I. I usually compile Qt something like
this:
./configure -plugin-sql-mysql -I/usr/include/mysql ...
And just to be certain: You did install a development version with include
files, right?
Bo.
</pre>
</blockquote>
</body>
</html>
--
[ signature omitted ]
Message 7 in thread
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I have installed the devel-version of Qt before adding Qt itself, and
the installation works perfectly.<br>
<br>
thank you!<br>
<br>
lolveley.<br>
<br>
PS: you can have a look at my other post, because I have another
problem: I have the message "driver not loaded" when I try to connect
to the database via Qt.<br>
<br>
lolveley a écrit :
<blockquote cite="mid:46BB6396.9010407@xxxxxxxx" type="cite">
<meta http-equiv="Context-Type"
content="text/html; charset=ISO-8859-15">
I had a look at the mysql.com site, and I did not found any development
version.<br>
You talked about mysql, do you?<br>
<br>
<b>lolveley.</b><br>
<br>
<br>
Bo Thorsen a écrit :
<blockquote cite="mid:200708091642.34657.bo@xxxxxxxxxxxxxxxxxxxxx"
type="cite">
<pre>On torsdag den 9. August 2007, lolveley wrote:
</pre>
<blockquote type="cite">
<pre>[...]
MySQL (thread-safe) auto-detection... ()
c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
mysql.o ../mysql/mysql.cpp
../mysql/mysql.cpp:1:19: error: mysql.h: No such file or directory
make: *** [mysql.o] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
c++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I. -o
mysql.o mysql.cpp
mysql.cpp:1:19: error: mysql.h: No such file or directory
make: *** [mysql.o] 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.
*However, I followed the instructions I found at Trolltech:
- I installed MySQL from the official site (v.5.0.45,dmg), and I am sure
that the installation of the standard server of macosX (apache) and
MySQL is successful(I can launch mySQL from the command line)
- In the file ".profile", I modified the variables PATH(export
PATH=/usr/local/mysql/bin:$PATH), LIB(export LIB=/usr/local/mysql/lib),
and INCLUDE (export INCLUDE=/usr/local/mysql/include), and I rerun the
terminal: the variables are modified
</pre>
</blockquote>
<pre>The error message is very clear. The compiler can't find mysql.h.
Is it pointing correctly? Can you do "ls $INCLUDE/mysql.h"?
You could try configuring qt with -I. I usually compile Qt something like
this:
./configure -plugin-sql-mysql -I/usr/include/mysql ...
And just to be certain: You did install a development version with include
files, right?
Bo.
</pre>
</blockquote>
--
[ signature omitted ]