X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..5c0ccabf0249189e99d837acb2265cdb666ce092:/wxPython/distrib/README.1st.txt diff --git a/wxPython/distrib/README.1st.txt b/wxPython/distrib/README.1st.txt index 4b55d30398..ba13d95633 100644 --- a/wxPython/distrib/README.1st.txt +++ b/wxPython/distrib/README.1st.txt @@ -36,7 +36,7 @@ Clear as mud? Good. Let's get started. 2. Make a build directory and configure wxGTK. - cd wxPythonGTK-2.3.3 # or whatever the top-level dir is + cd wxPythonSrc-2.4.0 # or whatever the top-level dir is mkdir build cd build ../configure --with-gtk \ @@ -50,7 +50,17 @@ Clear as mud? Good. Let's get started. You may want to use --enable-debug instead of --enable-optimise if you need to run though a debugger and want full debugging symbols. - if you want to use the image and zlib libraries included with + SOLARIS NOTE: The --enable-rpath option may cause problems when + using wxGTK on Solaris when compiling wxPython in step 4 below. + The woraround is to not use --enable-rpath flag for configure, but + in that case all wxPython applications must have the + LD_LIBRARY_PATH set to include $WXPREF/lib, or you can use the + 'crle' program to modify the runtime linking environment. If this + is the only installation of wxGTK on the system then you can use a + system library path for WXPREF and not have to worry about it at + all. + + If you want to use the image and zlib libraries included with wxWindows instead of those already installed on your system, (for example, to reduce dependencies on 3rd party libraries) then you can add these flags to the configure command: @@ -61,8 +71,8 @@ Clear as mud? Good. Let's get started. --with-zlib=builtin \ If you would like to use GTK 2.x and unicode, then add the - following flags. Please note that this is still beta-level - quality, but does look and work quite nice for the most part: + following flags. Please note that this is still considered beta, + but does look and work quite nice for the most part: --enable-gtk2 \ --enable-unicode \ @@ -72,7 +82,6 @@ Clear as mud? Good. Let's get started. step, depending on where your WXPREF is.) make - cd ../build make install @@ -100,15 +109,33 @@ Clear as mud? Good. Let's get started. setup.py command line to disable the building of the glcanvas module. - If you would like to install to someplace besides the Python + If you would like to install to some place besides the Python site-packages directory (such as to your home directory) then you can add "--root=" after the "install" command. To use wxPython like this you'll need to ensure that the directory - containing wxPyrthon is contained in in the PYTHONPATH environment + containing wxPython is contained in the PYTHONPATH environment variable. -5. That's all, except for the having fun part! +5. If you havn't already, get a new copy of the demo and documentation + to go with the wxPython you just built and installed. See + http://wxpython.org/download.php#documentation + + +6. Change to the demo directory and run it like this: + + python demo.py + + SOLARIS NOTE: If you get unresolved symbol errors when importing + wxPython and you are running on Solaris and building with gcc, then + you may be able to work around the problem by uncommenting a bit of + code in setup.py and building again. Look for 'SunOS' in setup.py + and uncomment the block containing it. The problem is that Sun's ld + does not automatically add libgcc to the link step. + +7. That's all, except for the having fun part! + + -- Robin Dunn