dbTalk Databases Forums  

Problem building version 2.0.7 with Visual C++ 2005

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Problem building version 2.0.7 with Visual C++ 2005 in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Catalin Ispas
 
Posts: n/a

Default Problem building version 2.0.7 with Visual C++ 2005 - 02-19-2006 , 06:53 PM






------=_Part_2400_26207078.1140396791178
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I have visual studio 2005 installed, and i am having trouble making the
2.0.7 version of MySql++.
I have downloaded mingw
I have set up the environment variables
I run 'makemake vc' and everything is ok

When i run mingw32-make i get the following error

C:\mysql++-2.0.7>mingw32-make
cd lib && mingw32-make BIN_DIR=3Ddebug all example_setup
mingw32-make[1]: Entering directory `C:/mysql++-2.0.7/lib'
cl /Ic:\mysql\include /DMYSQLPP_MAKING_DLL /D_WINDLL /D_UNICODE /G6 /EHsc
/nolog
o /c /MDd /Od /D_DEBUG /ZI /Zi /Fodebug\coldata.obj coldata.cpp
process_begin: CreateProcess((null), cl /Ic:\mysql\include
/DMYSQLPP_MAKING_DLL
/D_WINDLL /D_UNICODE /G6 /EHsc /nologo /c /MDd /Od /D_DEBUG /ZI /Zi
/Fodebug\col
data.obj coldata.cpp, ...) failed.
make (e=3D2): The system cannot find the file specified.
mingw32-make[1]: *** [coldata.obj] Error 2
mingw32-make[1]: Leaving directory `C:/mysql++-2.0.7/lib'
mingw32-make: *** [all] Error 2

PLEASE, can anyone help me with this problem?
What do i need to do to build the dll?

------=_Part_2400_26207078.1140396791178--

Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Problem building version 2.0.7 with Visual C++ 2005 - 02-20-2006 , 01:39 PM






Catalin Ispas wrote:
Quote:
process_begin: CreateProcess((null), cl /Ic:\mysql\include
/DMYSQLPP_MAKING_DLL
/D_WINDLL /D_UNICODE /G6 /EHsc /nologo /c /MDd /Od /D_DEBUG /ZI /Zi
/Fodebug\col
data.obj coldata.cpp, ...) failed.
It looks like there is no cl program, or it is not in your PATH. I
haven't played with VS 2005 yet. Please investigate this and let us
know what we need to change.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Robert Brisita
 
Posts: n/a

Default Re: Problem building version 2.0.7 with Visual C++ 2005 - 02-26-2006 , 12:54 AM



Hi,

I have installed mysql++ with VC2k5 version of cl.

Some problems I have had was:
Compiler options /ZI /Zi are incompatible together, one or the other but not
both.
Compiler option /G6 is deprecated use /G instead for the release build.

I believe the problem you are having is in the lib/makefile.vc and
examples/makefile.vc.
What I found was that backslashes had to be doubled and when referencing a
variable in the
makefile I had to surround the variable in quotes. Without the quotes the
makefile would put debug and the file it was creating together:
debugcoldata.obj

Instead of putting coldata.obj in the debug folder.

Some examples:

VC_LIB_PATH=$(BIN_DIR)\\$(LIB_FILE)

....

..SUFFIXES: .cpp .obj
..cpp.obj:
$(CXX) $(CXXFLAGS) /Fo'$(BIN_DIR)\'$@ $<

Hope this helps. Thanks for the API!

Cheers,
Rob.

----Original Message Follows----
From: Warren Young <mysqlpp (AT) etr-usa (DOT) com>
Reply-To: plusplus (AT) lists (DOT) mysql.com
To: MySQL++ Mailing List <plusplus (AT) lists (DOT) mysql.com>
Subject: Re: Problem building version 2.0.7 with Visual C++ 2005
Date: Mon, 20 Feb 2006 12:39:07 -0700
MIME-Version: 1.0
Received: from lists.mysql.com ([213.136.52.31]) by
bay0-mc7-f3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 20
Feb 2006 11:39:16 -0800
Received: (qmail 5335 invoked by uid 510); 20 Feb 2006 19:39:08 -0000
Received: (qmail 5313 invoked by uid 509); 20 Feb 2006 19:39:08 -0000
Received: pass (lists.mysql.com: local policy)
X-Message-Info: JGTYoYF78jEJ2D+930iwRj2Mh+wlNeJE9L5J714mYZo=
Mailing-List: contact plusplus-help (AT) lists (DOT) mysql.com; run by ezmlm
List-ID: <plusplus.mysql.com>
Precedence: bulk
List-Help: <mailtolusplus-help (AT) lists (DOT) mysql.com>
List-Unsubscribe:
<mailtolusplus-unsubscribe-rbrisita=hotmail.com (AT) lists (DOT) mysql.com>
List-Post: <mailtolusplus (AT) lists (DOT) mysql.com>
List-Archive: http://lists.mysql.com/plusplus/5495
Delivered-To: mailing list plusplus (AT) lists (DOT) mysql.com
User-Agent: Thunderbird 1.5 (Windows/20051201)
References: <e99b54a10602191653hfe65e03ued6449294063ecf6 (AT) mail (DOT) gmail.com>
Return-Path: plusplus-return-5495-rbrisita=hotmail.com (AT) lists (DOT) mysql.com
X-OriginalArrivalTime: 20 Feb 2006 19:39:17.0105 (UTC)
FILETIME=[56162610:01C63655]

Catalin Ispas wrote:
Quote:
process_begin: CreateProcess((null), cl /Ic:\mysql\include
/DMYSQLPP_MAKING_DLL
/D_WINDLL /D_UNICODE /G6 /EHsc /nologo /c /MDd /Od /D_DEBUG /ZI /Zi
/Fodebug\col
data.obj coldata.cpp, ...) failed.
It looks like there is no cl program, or it is not in your PATH. I haven't
played with VS 2005 yet. Please investigate this and let us know what we
need to change.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...mail (DOT) com



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #4  
Old   
Catalin Ispas
 
Posts: n/a

Default Re: Problem building version 2.0.7 with Visual C++ 2005 - 02-26-2006 , 09:19 AM



------=_Part_7271_11239669.1140967147969
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I have made the modifications you mentioned, thank you for the reply.
I have solved that error, but now i get a new one.

C:\mysql++-2.0.7>mingw32-make
cd lib && mingw32-make BIN_DIR=3Ddebug all example_setup
makefile:34: *** commands commence before first target. Stop.
mingw32-make[1]: Entering directory `C:/mysql++-2.0.7/lib'
mingw32-make[1]: Leaving directory `C:/mysql++-2.0.7/lib'
mingw32-make: *** [all] Error 2

Regards,
Catalin

On 2/26/06, Robert Brisita <rbrisita (AT) hotmail (DOT) com> wrote:
Quote:
Hi,

I have installed mysql++ with VC2k5 version of cl.

Some problems I have had was:
Compiler options /ZI /Zi are incompatible together, one or the other but
not
both.
Compiler option /G6 is deprecated use /G instead for the release build.

I believe the problem you are having is in the lib/makefile.vc and
examples/makefile.vc.
What I found was that backslashes had to be doubled and when referencing =
a
variable in the
makefile I had to surround the variable in quotes. Without the quotes th=
e
makefile would put debug and the file it was creating together:
debugcoldata.obj

Instead of putting coldata.obj in the debug folder.

Some examples:

VC_LIB_PATH=3D$(BIN_DIR)\\$(LIB_FILE)

...

.SUFFIXES: .cpp .obj
.cpp.obj:
$(CXX) $(CXXFLAGS) /Fo'$(BIN_DIR)\'$@ $

Hope this helps. Thanks for the API!

Cheers,
Rob.

------=_Part_7271_11239669.1140967147969--


Reply With Quote
  #5  
Old   
Warren Young
 
Posts: n/a

Default Re: Problem building version 2.0.7 with Visual C++ 2005 - 02-27-2006 , 07:17 AM



Robert Brisita wrote:
Quote:
Some problems I have had was:
Compiler options /ZI /Zi are incompatible together, one or the other but
not both.
Compiler option /G6 is deprecated use /G instead for the release build.

I believe the problem you are having is in the lib/makefile.vc and
examples/makefile.vc.
What I found was that backslashes had to be doubled and when referencing
a variable in the
makefile I had to surround the variable in quotes. Without the quotes
the makefile would put debug and the file it was creating together:
debugcoldata.obj
Ultimately, the solution to both of these problems is to move back to
VC++ project files instead of GNU make. Would you please consider
trying the Bakefile branch I posted about on Friday?

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #6  
Old   
Warren Young
 
Posts: n/a

Default Re: Problem building version 2.0.7 with Visual C++ 2005 - 02-27-2006 , 08:25 AM



Catalin Ispas wrote:
Quote:
C:\mysql++-2.0.7>mingw32-make
cd lib && mingw32-make BIN_DIR=debug all example_setup
makefile:34: *** commands commence before first target. Stop.
That indicates a Makefile formatting error. Either the changes you made
broke the Makefile, or you missed some changes that need to be made.

If I release a packaged version of the 2.1 branch so you don't have to
check it out from the repository, would you try it?

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #7  
Old   
Catalin Ispas
 
Posts: n/a

Default Re: Problem building version 2.0.7 with Visual C++ 2005 - 02-28-2006 , 04:25 PM



------=_Part_1473_14919802.1141165488721
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

It's ok. I have compiled it. It was my fault. I was not running the Visual
Studio Command Prompt, i was running the standard command prompt with no
environment variables. Sorry for all the trouble.

On 2/27/06, Warren Young <mysqlpp (AT) etr-usa (DOT) com> wrote:
Quote:
Catalin Ispas wrote:

C:\mysql++-2.0.7>mingw32-make
cd lib && mingw32-make BIN_DIR=3Ddebug all example_setup
makefile:34: *** commands commence before first target. Stop.

That indicates a Makefile formatting error. Either the changes you made
broke the Makefile, or you missed some changes that need to be made.

If I release a packaged version of the 2.1 branch so you don't have to
check it out from the repository, would you try it?

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...mail (DOT) com


------=_Part_1473_14919802.1141165488721--


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.