Giter VIP home page Giter VIP logo

Comments (15)

sboosali avatar sboosali commented on May 29, 2024

(the error was at the last step, stack install )

from fltkhs.

deech avatar deech commented on May 29, 2024

It's failing because it can't find fltk-config which should have been built with fltk. From the fltkhs-hello-world project root, what is the output of find .stack-work -name "fltk-config"?

from fltkhs.

deech avatar deech commented on May 29, 2024

I can replicate this issue. Thanks!

from fltkhs.

sboosali avatar sboosali commented on May 29, 2024

from fltkhs.

sboosali avatar sboosali commented on May 29, 2024

from fltkhs.

MarLinn avatar MarLinn commented on May 29, 2024

I encountered the same issue on Debian. Installing from source works, but the bundled path lead to the error mentioned above. So it appears it's got more to do with the integration of the bundled lib than with the OS. My build output just around the first error was

checking for strtol... yes
: creating ./config.status
config.status: creating Makefile
config.status: creating c-src/Makefile
config.status: creating c-examples/Makefile
config.status: creating fltkhs.buildinfo
: WARNING: unrecognized options: --with-compiler
==Compiling C bindings==
make[1]: fltk-config: Command not found

And greping the output for warnings revealed

configure: WARNING: Ignoring libraries " -lSM -lICE" requested by configure.
configure: WARNING: could not find the required Xft headers and/or libraries.

So maybe that's something?

Environment: Debian 8.8, kernel 3.16.43-2, GHC 8.0.2, stack 1.1.2, cabal-install 1.24.0.2, gcc 4.9.2, make 4.0, autoconf 2.69, automake 1.14.1

I tried it twice, first with an ancient version of FLTK installed, then without any system FLTK. Same result. I don't know what else to look for, so let me know if you need anything else.

from fltkhs.

deech avatar deech commented on May 29, 2024

This is great info, thanks! I must admit I only tested on my home machine which runs Arch so I had no idea. What worked there was just updating various environment variables once the bundled library was built. Obviously that's not working.

from fltkhs.

MarLinn avatar MarLinn commented on May 29, 2024

I'm not sure I understand what's going on, but following the code you linked to I searched my log again. The updated PATH now starts with /tmp/stack7015/fltkhs-0.5.1.6/fltk-1.3.4-1:/tmp/stack7015/fltkhs-0.5.1.6/fltk-1.3.4-1/fluid: I'd expect the library to be built somewhere in .stack-work. So maybe these paths get confused or the working directory is not changed correctly at some point?

from fltkhs.

deech avatar deech commented on May 29, 2024

I believe you've hit on the root cause. It's doing what you expect on one my machines (building in .stack-work) but not on others. I'll look into it. Thanks!

from fltkhs.

deech avatar deech commented on May 29, 2024

I think I have it fixed. @sboosali @MarLinn can you help me test? Please clone the fixes branch of fltkhs-hello-world (git clone -b fixes https://github.com/deech/fltkhs-hello-world) and try stack build --flag fltkhs:bundled?

from fltkhs.

sboosali avatar sboosali commented on May 29, 2024

(i'll be away from my computer for a week, though i'll try to install it if a windows computer is available)

feel free to ping me before future releases, since i do half my haskell work on windows anyways.

from fltkhs.

deech avatar deech commented on May 29, 2024

I've cut a new release. I think (hope) this is now fixed. If you get around to testing and you agree please close this issue.

from fltkhs.

sboosali avatar sboosali commented on May 29, 2024

I tried it on a fresh Haskell install on Windows , and it worked!

from fltkhs.

sboosali avatar sboosali commented on May 29, 2024

btw, for the windows documentation:

there's a typo in the documentation ("pacmay"), and I'd tell the user what widget to expect from the launching the executable (a window with a button to toggle). also, we should batch the commands into a script, that can be copied/pasted. and a "force yes" option for pacman?

from fltkhs.

deech avatar deech commented on May 29, 2024

Batching the Windows install is a great idea! For now I've fixed the spelling and also some other bugs. Recommend pulling the latest version of fltkhs-hello-world and doing stack build --flag fltkhs:bundled.

from fltkhs.

Related Issues (20)

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.