Comments (11)
Does /usr/include/FL/fl_types.h
or /usr/local/include/FL/fl_types.h
or <fltk-install-prefix>/FL/fl_types.h
exist?
Also which Windows are you running?
from fltkhs.
Yes, fl_types.h can be found in /mingw32/include, the include path given by fltk-config:
$ fltk-config --cflags
-I/mingw32/include -I/mingw32/include/FL/images -mwindows -DWIN32 -DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
I'm running Windows 7
from fltkhs.
Ok, explicitly setting export CPATH=/mingw32/include
and running stack install
again gets me passed this error but ends with the following warning:
fltkhs-0.5.0.7: include-dirs: /mingw32/include is a relative path which makes
no sense (as there is nothing for it to be relative to). You can make paths
relative to the package database itself by using ${pkgroot}. (use --force to
override)
Now it is complaining it can't find certain 64-bit Haskell Platform directories while I'm running a x86 variant.
(Perhaps best to make that another issue)
from fltkhs.
Oh interesting. I didn't test the install Haskell Platform, I just used the Stack Windows installer. Let me see if I can get any further.
from fltkhs.
I just installed the latest Haskell Platform for 64 bit Windows and followed the Windows install instructions from scratch and was not able to reproduce your error. I am running 64 bit Windows 8. I'll test on Windows 7 when I can get my hands on a machine.
FWIW here's what fltk-config --cflags
gave me:
-I/mingw64/include -I/mingw64/include/FL/images -mwindows -DWIN32 -DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
There's no mention of the mingw32
directory. Are you running 32-bit?
from fltkhs.
Yes, for supporting older hardware I'm using the 32-bit Haskell Platform.
from fltkhs.
Tried again using latest Haskell Platform 8.0.2 32-bit.
Changed the hello world yaml to use lts-8.0 and then stack install -v --system-ghc
.
Everything stack builds is located in a i386-windows
.
In the end it fails with:
Building fltkhs-0.5.0.7...
Preprocessing library fltkhs-0.5.0.7...
C:\Users\jorisp\AppData\Local\Temp\stack6680\fltkhs-0.5.0.7\In file included from .stack-work\dist\5f9bc736\build\Graphics\UI\FLTK\LowLevel\Ask.chs.h:3:0:
C:\Users\jorisp\AppData\Local\Temp\stack6680\fltkhs-0.5.0.7\c-src\Fl_Types.h:3:25: fatal error: FL/fl_types.h: No such file or directory
compilation terminated.
c2hs.exe: Error during preprocessing custom header file
from fltkhs.
I see some hard coded 64-bit paths in fltkhs' Setup.hs
.
from fltkhs.
Yes, I had to do some unfortunate path munging and didn't have access to a 32 bit machine. In any case I pushed a fix to master
. Do you mind pulling and trying? Thanks for your patience.
from fltkhs.
Tried building and succeeded, thanks.
from fltkhs.
Great, thanks! I'll release another version and update the various demos etc. later today.
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.