Skip to content

Commit

Permalink
Last fix and README for installation
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Nov 25, 2015
1 parent 02eaa2b commit f46402c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ wxOCaml is a library part of TypeRex, developed and maintained by OCamlPro.
Documentation to install and use this tool is available on
[http://www.typerex.org/ocplib-wxOCaml.html](http://www.typerex.org/ocplib-wxOCaml.html)

Some problems to fix with 3.0:
=====================================================================
Installation:
-------------

On Debian, the following packages should be installed first:

sudo apt-get install libwxgtk3.0-dev wx3.0-headers libwxgtk-webview3.0-dev libwxgtk-media3.0-dev

Then, as usually:

./configure
make
make install

Note that normally, examples in `samples/` are compiled as part of
`make`, but to be sure it is correctly installed, you can do the
following to build them again after installation:

cd samples
ocp-build init
ocp-build

All examples should then be available in the _obuild/ sub-directory.

18 changes: 9 additions & 9 deletions wxConfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ WXUSE_GEN=./genWxUSE
WXHAS_GEN=./genWxHAS
WXCONFIG_GENGEN=../_obuild/genWxConfig/genWxConfig.asm

../$(ML_CFG)/wxUSE.ml: $(WXUSE_GEN)
$(WXUSE_GEN) > ../$(ML_CFG)/wxUSE.ml
ocamlc -c ../$(ML_CFG)/wxUSE.ml
rm -f ../$(ML_CFG)/wxUSE.cm?

../$(ML_CFG)/wxHAS.ml: $(WXHAS_GEN)
$(WXHAS_GEN) > ../$(ML_CFG)/wxHAS.ml
ocamlc -c ../$(ML_CFG)/wxHAS.ml
rm -f ../$(ML_CFG)/wxHAS.cm?
wxUSE.ml: $(WXUSE_GEN)
$(WXUSE_GEN) > wxUSE.ml
ocamlc -c wxUSE.ml
rm -f wxUSE.cm?

wxHAS.ml: $(WXHAS_GEN)
$(WXHAS_GEN) > wxHAS.ml
ocamlc -c wxHAS.ml
rm -f wxHAS.cm?

$(WXUSE_GEN): genWxUSE.cpp $(H_DEPS)
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -g -fPIC -o genWxUSE genWxUSE.cpp $(LIBS)
Expand Down

0 comments on commit f46402c

Please sign in to comment.