call-haskell-from-anything icon indicating copy to clipboard operation
call-haskell-from-anything copied to clipboard

Windows build possibility

Open EddieNejadi opened this issue 9 years ago • 4 comments

It is not possible to build for windows. Please add the possibility to build for windows by cabal install call-haskell-from-anything or cabal build?

EddieNejadi avatar Mar 16 '16 09:03 EddieNejadi

I support this idea, but I use Windows extremely rarely, and I haven't tried to build it there, so help would be appreciated on this topic.

What kind of error message are you seeing?

nh2 avatar Mar 16 '16 13:03 nh2

I got this error: cabal install call-haskell-from-anything Resolving dependencies... Configuring call-haskell-from-anything-1.0.1.0... Failed to install call-haskell-from-anything-1.0.1.0 Build log ( C:\Users\mahdiab\AppData\Roaming\cabal\logs\call-haskell-from-anythi ng-1.0.1.0.log ): Configuring call-haskell-from-anything-1.0.1.0... setup-Configure-Cabal-1.22.5.0-x86_64-windows-ghc-7.10.3.exe: The package has a './configure' script. This requires a Unix compatibility toolchain such as MinGW+MSYS or Cygwin. cabal: Error: some packages failed to install: call-haskell-from-anything-1.0.1.0 failed during the configure step. The exception was: ExitFailure 1

It looks like need a simple fix (maybe not that easy as in Linux environment) ....

EddieNejadi avatar Mar 16 '16 16:03 EddieNejadi

Hmm so the configure script is this one here:

https://github.com/nh2/call-haskell-from-anything/blob/0ba6737ea17a45e59704dfdc21c971fe10b7d692/configure

The only thing it does is to execute detect-ghc-buildinfo.py :

https://github.com/nh2/call-haskell-from-anything/blob/0ba6737ea17a45e59704dfdc21c971fe10b7d692/detect-ghc-buildinfo.py

To detect the GHC version and calculate the path to the .so file of the Haskell runtime.

You could try cloning the repo, changing the build-type to from Configure to Simple in the cabal file, running the python script manually, and then doing cabal build.

nh2 avatar Mar 16 '16 16:03 nh2

I tried what "nh2" suggested and still get the following errors:

E:\call-haskell-from-anything>cabal build
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
trying: call-haskell-from-anything-1.0.1.0 (user goal)
next goal: vector (dependency of call-haskell-from-anything-1.0.1.0)
Dependency tree exhaustively searched.
Trying configure anyway.
Configuring call-haskell-from-anything-1.0.1.0...
cabal: Encountered missing dependencies:
msgpack >=1.0.0, mtl >=2.1.2, vector -any

So i did configure first and got a similar error:

E:\call-haskell-from-anything>cabal configure
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
trying: call-haskell-from-anything-1.0.1.0 (user goal)
next goal: vector (dependency of call-haskell-from-anything-1.0.1.0)
Dependency tree exhaustively searched.
Trying configure anyway.
Configuring call-haskell-from-anything-1.0.1.0...
cabal: Encountered missing dependencies:
msgpack >=1.0.0, mtl >=2.1.2, vector -any

manzznam avatar Jun 30 '16 17:06 manzznam