Comments (22)
I do not have a win8 box and I do not know what LIBCMT
is. Please provide more information and I'll try to help you as best as I can. First: what instructions do you use to compile the library?
from ocaml-mindstorm.
Initially, there was some problems in running make and make install like the absence of "cl.exe" ( which required the installation of
windows sdk and the visual studio ); At each run of the make command certain other errors of inability to link with header files like
stddef.h,wtypes.h,etc cropped up. and these involved adding more paths in makefile.win32.
there were other subtle changes like replacing the del command with the rm command.
Right now, the make and make install have been run and the library has been builded; but the make command in the test/examples directory
are not and hence linking to the mindstorm module has been incapacitated.
This specific error on LIBCMT happens while invoking make in examples or tests. The LIBCMT file is present in the library of visual studio 11.0 ( though, not in 12.0); but providing it in the path also did not help in removing this error
from ocaml-mindstorm.
Where is LIBCMT
on your system? What happens if you add the path to the directory where it resides as an additional -dllpath
?
from ocaml-mindstorm.
libcmt.lib is present inside the lib directory in visual studio 10.0; but the make did not build successfully,
from ocaml-mindstorm.
An attempt to install the mindstorm library using oasis was also tried. But the installation of oasis itself was dampened with errors in the installation of prerequisites like ocamlmod :
from ocaml-mindstorm.
For oasis to work (because it uses ocamlbuild
), you should remove the compiled files in the source directory. The script _build/sanitize.sh
is there to help you (but you have to run it in a bash shell). Otherwise, just start from a fresh tarball (or ask git
to remove all non-tracked files).
from ocaml-mindstorm.
Hi @Chris00,
@reghum has updated the screenshot without the sanitize issue. I think the problem here is that the path constructed by ocaml setup.ml -configure
for ocamlfind.exe is loosing the "" symbol when using -build as you can see in the error bash:C:OCamlbinocamlfine.EXE : command not found
from ocaml-mindstorm.
Here is a tarball with a setup.ml
generated by oasis 0.4.5 in case the problem is fixed.
from ocaml-mindstorm.
In case that helps you, there was a Makefile to compile on Windows.
from ocaml-mindstorm.
This version of mindstorm got installed properly without any issues, but there was a problem with connecting to the brick using the address, while trying out the example programs. Is there any particular way to do it ?
from ocaml-mindstorm.
When you speak about "this version", do you refer to the tarball or to the Makefile?
from ocaml-mindstorm.
About connecting, your screenshot shows an odd bluetooth address. Please try the instructions in intro.txt or, equivalently, read the documentation on the website. [I will change the README.md to mention it.]
from ocaml-mindstorm.
I was referring to the tarball.
from ocaml-mindstorm.
OK, great.
from ocaml-mindstorm.
And it is working with the COM address; I was mistakenly using the 12 byte bluetooth address..
Thanks a lot !
from ocaml-mindstorm.
Glad that it works. I have updated the tarball.
Do not hesitate to share your achievements!
from ocaml-mindstorm.
Thanks !
from ocaml-mindstorm.
Hi,
I am able to run the executable files of pre-existing examples and tests; but am not able to compile and create executable files for new programs. I followed this template of commands :
''C:/OCaml/bin/ocamlfind.EXE ocamldep -package threads -package unix -modules examples/wander.ml >examples/wander.ml.depends
''C:/OCaml/bin/ocamlfind.EXE ocamlc -c -g -annot -I src -package threads -package unix -thread -I examples -I src -o examples/wander.cmo examples/wander.ml
''C:/OCaml/bin/ocamlfind.EXE ocamlopt -c -g -annot -inline 10 -I src -package threads -package unix -thread -I examples -I src -o examples/wander.cmx examples/wander.ml
''C:/OCaml/bin/ocamlfind.EXE ocamlopt -g -I src -linkpkg -package unix src/mindstorm.cmxa examples/wander.cmx -o examples/wander.native
Is this right ? I am getting an error of "Unbound module" with the ocalmc command :
from ocaml-mindstorm.
ocamldep
generates Makefile rules to let make
know about the dependencies of your module. Since you (seem to) write the compilations command yourself, this is unecessary.
from ocaml-mindstorm.
ocamlfind.EXE ocamlopt -g -I src -linkpkg -package unix src/mindstorm.cmxa examples/wander.cmx -o examples/wander.native
You can pass directly from the .ml
file to the .native
one. Just compile without the -c
flag. Please read the part of the manual about the compilers.
from ocaml-mindstorm.
You cannot use the same recipies as the ones for the compilation of the examples of the library. These rules try to compile the examples without installing the library.
Assuming you installed the library, you should be able to use something like ocamlfind ocamlc -annot -o motor1.exe -package mindstorm -linkpkg motor1.ml
from ocaml-mindstorm.
Thanks a lot !
from ocaml-mindstorm.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocaml-mindstorm.