Visual Studio 2003 Monolithic Build?

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Avi
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Mon Aug 30, 2004 9:27 pm
Location: Tel-Aviv, Israel

Visual Studio 2003 Monolithic Build?

Post by Avi »

Just wondering, is there a way to compile a Monolithic wxWidgets static lib build on Microsoft Visual Studio 2003? :oops:

I compiled Both Unicoded-Release and Unicoded-Debug configurations today, and got tons of libs under C:\wxWidgets-2.6.0\lib\vc_lib:

Code: Select all

C:\wxWidgets-2.6.0\lib\vc_lib>dir /w *.lib
 Volume in drive C has no label.
 Volume Serial Number is 1C74-6A6D

 Directory of C:\wxWidgets-2.6.0\lib\vc_lib

wxbase26u.lib          wxbase26ud.lib         wxbase26ud_net.lib
wxbase26ud_odbc.lib    wxbase26ud_xml.lib     wxbase26u_net.lib
wxbase26u_odbc.lib     wxbase26u_xml.lib      wxexpat.lib
wxexpatd.lib           wxjpeg.lib             wxjpegd.lib
wxmsw26ud_adv.lib      wxmsw26ud_core.lib     wxmsw26ud_dbgrid.lib
wxmsw26ud_gl.lib       wxmsw26ud_html.lib     wxmsw26ud_media.lib
wxmsw26ud_qa.lib       wxmsw26ud_xrc.lib      wxmsw26u_adv.lib
wxmsw26u_core.lib      wxmsw26u_dbgrid.lib    wxmsw26u_gl.lib
wxmsw26u_html.lib      wxmsw26u_media.lib     wxmsw26u_qa.lib
wxmsw26u_xrc.lib       wxpng.lib              wxpngd.lib
wxregexu.lib           wxregexud.lib          wxtiff.lib
wxtiffd.lib            wxzlib.lib             wxzlibd.lib
              36 File(s)     80,630,292 bytes
As you can imagine, creating a project configuration distinguishing all the libs was quite a hard thing to do. :roll:
psksvp
Earned a small fee
Earned a small fee
Posts: 13
Joined: Sat Jan 15, 2005 1:15 am
Location: AUSTRALIA
Contact:

Post by psksvp »

nmake -f makefile.vc BUILD=release MONOLITHIC=1
Avi
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Mon Aug 30, 2004 9:27 pm
Location: Tel-Aviv, Israel

Post by Avi »

Thank you. Just for general knowledge, is there a way to do it via the Visual Studio GUI? Only the makefile?
User avatar
Ryan Norton
wxWorld Domination!
wxWorld Domination!
Posts: 1319
Joined: Mon Aug 30, 2004 6:01 pm

Post by Ryan Norton »

Avi wrote:Thank you. Just for general knowledge, is there a way to do it via the Visual Studio GUI? Only the makefile?
Just use the src/wxWindows.dsw project file.

Its kind of hard because all the samples will assume you used the split-up version.
[Mostly retired moderator, still check in to clean up some stuff]
User avatar
ABX
Can't get richer than this
Can't get richer than this
Posts: 810
Joined: Mon Sep 06, 2004 1:43 pm
Location: Poznan, Poland
Contact:

Post by ABX »

Avi wrote:Thank you. Just for general knowledge, is there a way to do it via the Visual Studio GUI? Only the makefile?
Avi wrote:Thank you. Just for general knowledge, is there a way to do it via the Visual Studio GUI? Only the makefile?
Yes and no.

AFAIK no with current project files in wxWidgets/build/msw but yes as long as you can regenerate your project files using bakefiles. The key is hidden near the end of wxWidgets/build/bakefiles/config.bkl file in:

Code: Select all

    <if cond="FORMAT_SUPPORTS_CONDITIONS=='0'">
        :
        <set var="MONOLITHIC">0</set>
        :
    </if>
I did not tested it myself but you probably should set it to 1. affects all wxWidgets based project files.

ABX
CVS Head, 2.8.X
wxMSW, wxWinCE, wxPalmOS, wxOS2, wxMGL, bakefile
gcc 3.2.3, bcc 5.51, dmc 8.48, ow 1.6, vc 7.1, evc 3/4, pods 1.2
Avi
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Mon Aug 30, 2004 9:27 pm
Location: Tel-Aviv, Israel

Post by Avi »

Well, first, thanks for all the replies! I have two questions:
1. How do I generate the VS.NET 2003 project files from the bakefile (after having it changed like ABX said)? I do have Phyton and bakefile installed, just not sure how to use it via command line... :oops: (I'm not that much familiar with this program)
2. Is there any chance you guys will include a monolithic project files as a default part of the wxWidgets distribution? (in addition to the current project files... just name it differently)

Thanks,
Avi
User avatar
ABX
Can't get richer than this
Can't get richer than this
Posts: 810
Joined: Mon Sep 06, 2004 1:43 pm
Location: Poznan, Poland
Contact:

Post by ABX »

Avi wrote:Well, first, thanks for all the replies! I have two questions:
1. How do I generate the VS.NET 2003 project files from the bakefile (after having it changed like ABX said)? I do have Phyton and bakefile installed, just not sure how to use it via command line...
Assuming you added bakefile to the path during bakefile installation it is something like:

cd wxWidgets\build\bakefiles
bakefile_gen -f FORMAT

where FORMAT is the name of the family of makefiles/projects you want to rebuild.

ABX
CVS Head, 2.8.X
wxMSW, wxWinCE, wxPalmOS, wxOS2, wxMGL, bakefile
gcc 3.2.3, bcc 5.51, dmc 8.48, ow 1.6, vc 7.1, evc 3/4, pods 1.2
Avi
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Mon Aug 30, 2004 9:27 pm
Location: Tel-Aviv, Israel

Post by Avi »

Well, ABX, I did that. I went to command prompt (after changing my config.bkl like you said) and ran the following command:
bakefile_gen -f msvc
It ran, and for some reason it wrote the following when it ended:
1 files modified
Well, as you can imagine, project files are still at non-monolithic state... :roll:

Any ideas? What am I doing wrong?
RyanAlt
In need of some credit
In need of some credit
Posts: 6
Joined: Tue May 03, 2005 8:49 am

Post by RyanAlt »

Avi wrote:Well, ABX, I did that. I went to command prompt (after changing my config.bkl like you said) and ran the following command:
bakefile_gen -f msvc
It ran, and for some reason it wrote the following when it ended:
1 files modified
Well, as you can imagine, project files are still at non-monolithic state... :roll:

Any ideas? What am I doing wrong?
msvc is for msvc command line IIRC - msvc6prj should do what you want
I got voted off the wxIsland!
Post Reply