-> type: cd c:\wxWin\src\msw
-> type: make -f makefile.g95
-II) Unix ports using plain makefiles.
---------------------------------------
+II) Unix ports
+--------------
Building wxGTK or wxMotif completely without configure
won't ever work, but there is now a new makefile system
that works without libtool and automake, using only
-configure to create what is needed. So far, only shared
-libraries can be build with this system.
+configure to create what is needed.
Set WXWIN environment variable to the base directory such
as ~/wxWindows (this is actually not really needed).
-> type: cd mybuild
-> type: ../configure --with-motif
or type: ../configure --with-gtk
--> type: cd src/gtk
-or type: cd src/motif
--> type: make -f makefile.unx
-
-You will then find the shared library in in the lib path of
-the build directory. There is currently no install method,
-so you'll have to create a symlink to /usr/local/lib and run
-ldconfig or whatever is needed to make that library known
-to your system.
-
-In order to test the sample, go to mybuild/src/gtk again and
-type: make -f makefile.unx samples
-which will copy the entire samples directory to the build
-directory, such as mybuild/samples
+-> type: make
+-> type: su <type root password>
+-> type: make install
+-> type: ldconfig
+-> type: exit
+Call configure with --disable-shared to create a static
+library. Calling "make uninstall" will remove the installed
+library and "make dist" will create a distribution (not
+yet complete).
III) Windows using configure
----------------------------------------
Of course, you can also build the library using plain makefiles (see
section I).
-IV) Unix using configure
-----------------------------------------
-
-a) You have all the newest and greatest GNU tools installed on your system
-and in the same directory hierachy (e.g. either all tools in /usr or all
-in /usr/local), these tools are:
-- GNU libtool 1.2e (1.3 doesn't work here)
-- GNU autoconf 2.13 (including autoheader 2.13)
-- GNU automake 1.4 (including aclocal 1.4)
-and possibly but not forcibly
-- GNU make 3.76.1
-- GNU C++ (EGCS)
-
--> Go to the base directory
--> type: ./autogen.sh
-
-b) You don't know what autos are and have no driver's licence anyway:
-
--> Go to the testconf directory
--> type: ./apply
-
-a+b) Then proceed in either case with:
-
--> Choose a directory name that seems fit for building wxWindows, e.g. mybuild
--> Go the base directory
--> type: mkdir mybuild
--> type: cd mybuild
--> type: ../configure --with-gtk
-or type: ../configure --with-motif
-or type: ../configure --with-wine
--> type make
--> drink lots of coffee and go shopping
-
-
V) MacOS
----------------------------------------
sure that your configure setup is basically sound.)
To cross compile the windows library, do
--> cd win32
+-> cd win32
+(or whatever you called it)
Now run configure. There are two ways to do this
-> ../configure --host=i586-mingw32 --build=i586-linux --with-mingw \
--enable-dnd=no
(all assuming you're using mingw32)
Drag'n'drop is disabled because mingw32 lacks (AFAIK) OLE headers.
+[ Update: some new mingw32 versions now have a new set of windows header
+files, which apparently can handle ole. Untested at the moment ]
+
Configure will conclude that shared libraries are out of the question and
opt for a static one. I haven't looked into DLL creation yet.
Type
--> make -C src
+-> make
and wait, wait, wait. Don't leave the room, because the minute you do there
will be a compile error :-)
-If this is successful, try building the minimal sample:
+If this is successful, you end up with a libwx_msw.a in win32/lib. Now try
+building the minimal sample:
+
-> cd samples/minimal
-> make
-> mv minimal minimal.exe