Jump to content


Photo

Problem with compiling Weidu


  • Please log in to reply
4 replies to this topic

#1 Rughalt

Rughalt
  • Member
  • 44 posts

Posted 29 March 2004 - 05:45 AM

I'm trying to recompile weidu using Ocaml 3.07, Gcc and Gnu Make under Red Hat linux 8.0. This is my problem:

make
Compiling src/util.ml to native code
File "src/util.ml", line 157, characters 30-37:
This expression has type (int -> 'a) -> 'a but is here used with type 'a
mv: can't stat source src/util.cmi
mv: can't stat source src/util.o
make: *** [obj/x86_LINUX/util.cmx] Error

This is line 156-157
 and cont_s s i =
    Buffer.add_string dest s; doprn i
. Can anyone help me?

#2 Rughalt

Rughalt
  • Member
  • 44 posts

Posted 29 March 2004 - 11:52 AM

Ok, I've compild it under Red HAt, i compressed it with UPX, ant it ISNT WORKING UNDER WINDOWS. What have i done bad?

#3 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 29 March 2004 - 10:21 PM

Try to do it without UPXing it. If that doesn't work, try a different compiler.

EDIT: I notice it compiles it to 'native code' - that could also be a problem when changing computers..

Edited by MagusWizardo, 29 March 2004 - 10:23 PM.


#4 Rughalt

Rughalt
  • Member
  • 44 posts

Posted 30 March 2004 - 06:39 AM

I was trying to compile it under Windows, but i can't some path error. And when i compile it under Linux i get linux/386 file with .exe extension.

#5 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 31 March 2004 - 02:52 AM

The path error might be caused by your folder specifiers - *nix uses / , while Windows uses \ .