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

Qt-interest Archive, December 2003
Windows Qt with mysql driver and BCC (borland compiler)


Message 1 in thread

I am trying to compile Qt in Windows with support for mysql with the free
borland compiler (BCC55). The building proccess crashes (when linking) and
I think it is because mysql is compiled with VC++ and BCC cannot link to
libraries built with that compiler.

What can i do to make it compile? I have tried to compile mysql with BCC
but it comes prepared to be compiled with VC++. I haven't been able to find
instructions to compile it with BCC in the internet and by searching
"qt-interest" I have only found "compile mysql from sources".

Is there another posibility? Perhaps a tool to make libraries compiled with
VC++ compatible with BCC?

Any help would be appreciated. Thanks in advance for your
help.

---------------------------------------------
Este mensaje ha sido enviado usando Endymion MailMan.
http://www.endymion.com/products/mailman/


Message 2 in thread

----- Original Message -----
From: <rmartin.ima@cedex.es>
To: <qt-interest@trolltech.com>
Sent: Wednesday, December 24, 2003 11:53 PM
Subject: Windows Qt with mysql driver and BCC (borland compiler)


> I am trying to compile Qt in Windows with support for mysql with the free
> borland compiler (BCC55). The building proccess crashes (when linking) and
> I think it is because mysql is compiled with VC++ and BCC cannot link to
> libraries built with that compiler.
>
> What can i do to make it compile? I have tried to compile mysql with BCC
> but it comes prepared to be compiled with VC++. I haven't been able to
find
> instructions to compile it with BCC in the internet and by searching
> "qt-interest" I have only found "compile mysql from sources".
>
> Is there another posibility? Perhaps a tool to make libraries compiled
with
> VC++ compatible with BCC?
>
> Any help would be appreciated. Thanks in advance for your
> help.

Unfortunately, the short answer is no. The only thing I can think of is if
somebody could get MSVC V6 to produce a Makefile.mak for MySQL and you could
then hand edit it for BCC55

Regards
John

>
> ---------------------------------------------
> Este mensaje ha sido enviado usando Endymion MailMan.
> http://www.endymion.com/products/mailman/
>
> --
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>


Message 3 in thread

On Fri, Dec 26, 2003 at 07:19:19PM -0000, john@rygannon.com wrote:
> ----- Original Message -----
> From: <rmartin.ima@cedex.es>
> To: <qt-interest@trolltech.com>
> Sent: Wednesday, December 24, 2003 11:53 PM
> Subject: Windows Qt with mysql driver and BCC (borland compiler)
> 
> 
> > I am trying to compile Qt in Windows with support for mysql with the free
> > borland compiler (BCC55). The building proccess crashes (when linking) and
> > I think it is because mysql is compiled with VC++ and BCC cannot link to
> > libraries built with that compiler.
> >
> > What can i do to make it compile? I have tried to compile mysql with BCC
> > but it comes prepared to be compiled with VC++. I haven't been able to
> find
> > instructions to compile it with BCC in the internet and by searching
> > "qt-interest" I have only found "compile mysql from sources".
> >
> > Is there another posibility? Perhaps a tool to make libraries compiled
> with
> > VC++ compatible with BCC?
> >
> > Any help would be appreciated. Thanks in advance for your
> > help.
> 
> Unfortunately, the short answer is no. The only thing I can think of is if
> somebody could get MSVC V6 to produce a Makefile.mak for MySQL and you could
> then hand edit it for BCC55

You probably will have to change paths to use pristine MySQL sources, but
here's the Makefile that I used with the 3.23.x branch.


GCC = bcc32 -c -WD -WM -O2 -DUNDEF_THREAD_HACK -D__WIN32__ -DHAVE_UINT -Iinclude -I../../include

SOURCE = array.c         getopt1.c      mf_tempfile.c       my_init.c     my_symlink.c\
bchange.c       getvar.c       mf_unixpath.c       my_lib.c      my_thr_init.c\
bmove.c         hash.c         mf_wcomp.c          my_malloc.c   my_write.c\
bmove_upp.c     libmysql.c     mulalloc.c          my_messnc.c   net.c\
charset.c       list.c         my_alloc.c          my_net.c      password.c\
checksum.c      mf_cache.c     my_compress.c       my_once.c     safemalloc.c\
mf_casecnv.c   my_create.c         my_open.c     string.c\
ctype.c         mf_dirname.c   my_delete.c         my_port.c     thr_lock.c\
dbug.c          mf_fn_ext.c    my_div.c            my_pread.c    thr_mutex.c\
default.c       mf_format.c    my_error.c          my_pthread.c  thr_rwlock.c\
errmsg.c        mf_iocache.c   my_fopen.c          my_read.c     tree.c\
errors.c        mf_loadpath.c  my_fstream.c        my_realloc.c  typelib.c\
get_password.c  mf_pack.c      my_gethostbyname.c  my_seek.c     violite.c\
getopt.c        mf_path.c      my_getwd.c          my_static.c  \
strmov.c strxmov.c strxnmov.c \
strnmov.c strend.c strmake.c int2str.c \
strcend.c  strcont.c str2int.c is_prefix.c

OBJ = ${SOURCE:.c=.obj}
lib=../../lib
include=../../include

all: install

install: libmysql.dll
        cp libmysql.dll libmysql.lib ${lib}
        cp include/mysql.h include/mysql_version.h include/mysql_com.h ${include}

.c.obj:
        ${GCC} $<


libmysql.dll: ${OBJ}
        ilink32 -L"../../lib" -Tpd -Gn -Gi c0d32.obj $(OBJ), libmysql.dll, libmysql.map, cw32mti.lib import32.lib libz.lib

clean:
        rm -f *.obj *.dll *.a *.def libmysql.tds libmysql.map libmysql.lib




Hope this helps someone someday,
Adam


PS. You'll need to compile libz.dll/libz.lib as well to get this to link.


Message 4 in thread

Hello,

is this a Bug or a overseen Feature:

It seems that the Designer can not handle pro files. I can still create 
a (new) project and open old projects. But the changes will not be 
stored in a pro file.

Regards