Comments (15)
(the error was at the last step, stack install
)
from fltkhs.
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.
I can replicate this issue. Thanks!
from fltkhs.
from fltkhs.
from fltkhs.
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.
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.
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.
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.
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.
(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.
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.
I tried it on a fresh Haskell install on Windows , and it worked!
from fltkhs.
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.
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)
- Return function pointer from `openCallback` so it can be freed. HOT 1
- Crash in FL.eventKey on special key HOT 8
- GL causes c2hs error on Mac due to missing type HOT 4
- after using setIcon on window it doesn't display application HOT 4
- Adding a Scrolled via FLUID generates wrong "scrollNew" call instead of "scrolledNew" HOT 1
- How to enable modern OpenGL? HOT 11
- unable to run basic example under nix HOT 1
- Fltkhs as stack dependency linking error on Windows 10 HOT 1
- install gotchas
- Build error in Setup.hs HOT 2
- Error building bundled fltkhs in custom Setup.hs HOT 1
- fltkhs-fluidtohs generates incorrect module names for nested modules
- addAndGetMenuItem is suprisingly slow HOT 8
- How to call findClicked?
- GHC 8.10.3 linking issue HOT 1
- Syntax error while installing with bundled fltkhs HOT 1
- Build fails with autoconf 2.70 and up HOT 8
- New branch's build artifacts stored in /tmp get erased
- Updating for base-4.14 (ghc 8.10) HOT 2
- cabal-install 3.4.0.0 breaks installation HOT 3
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 fltkhs.