Git Product home page Git Product logo

Comments (22)

Chris00 avatar Chris00 commented on June 12, 2024

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.

reghum avatar reghum commented on June 12, 2024

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

capture

from ocaml-mindstorm.

Chris00 avatar Chris00 commented on June 12, 2024

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.

reghum avatar reghum commented on June 12, 2024

libcmt.lib is present inside the lib directory in visual studio 10.0; but the make did not build successfully,

capture 1

capture 2

capture 4

from ocaml-mindstorm.

reghum avatar reghum commented on June 12, 2024

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 :

capture

from ocaml-mindstorm.

Chris00 avatar Chris00 commented on June 12, 2024

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.

codelion avatar codelion commented on June 12, 2024

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.

Chris00 avatar Chris00 commented on June 12, 2024

Here is a tarball with a setup.ml generated by oasis 0.4.5 in case the problem is fixed.

from ocaml-mindstorm.

Chris00 avatar Chris00 commented on June 12, 2024

In case that helps you, there was a Makefile to compile on Windows.

from ocaml-mindstorm.

reghum avatar reghum commented on June 12, 2024

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 ?

capture

from ocaml-mindstorm.

Chris00 avatar Chris00 commented on June 12, 2024

When you speak about "this version", do you refer to the tarball or to the Makefile?

from ocaml-mindstorm.

Chris00 avatar Chris00 commented on June 12, 2024

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.

reghum avatar reghum commented on June 12, 2024

I was referring to the tarball.

from ocaml-mindstorm.

Chris00 avatar Chris00 commented on June 12, 2024

OK, great.

from ocaml-mindstorm.

reghum avatar reghum commented on June 12, 2024

And it is working with the COM address; I was mistakenly using the 12 byte bluetooth address..

capture1

Thanks a lot !

from ocaml-mindstorm.

Chris00 avatar Chris00 commented on June 12, 2024

Glad that it works. I have updated the tarball.

Do not hesitate to share your achievements!

from ocaml-mindstorm.

reghum avatar reghum commented on June 12, 2024

Thanks !

from ocaml-mindstorm.

reghum avatar reghum commented on June 12, 2024

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 :

capture

from ocaml-mindstorm.

Chris00 avatar Chris00 commented on June 12, 2024

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.

Chris00 avatar Chris00 commented on June 12, 2024

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.

Chris00 avatar Chris00 commented on June 12, 2024

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.

reghum avatar reghum commented on June 12, 2024

Thanks a lot !

from ocaml-mindstorm.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.