GithubHelp home page GithubHelp logo

Comments (11)

deech avatar deech commented on May 26, 2024

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.

jputcu avatar jputcu commented on May 26, 2024

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.

jputcu avatar jputcu commented on May 26, 2024

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.

deech avatar deech commented on May 26, 2024

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.

deech avatar deech commented on May 26, 2024

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.

jputcu avatar jputcu commented on May 26, 2024

Yes, for supporting older hardware I'm using the 32-bit Haskell Platform.

from fltkhs.

jputcu avatar jputcu commented on May 26, 2024

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.

jputcu avatar jputcu commented on May 26, 2024

I see some hard coded 64-bit paths in fltkhs' Setup.hs.

from fltkhs.

deech avatar deech commented on May 26, 2024

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.

jputcu avatar jputcu commented on May 26, 2024

Tried building and succeeded, thanks.

from fltkhs.

deech avatar deech commented on May 26, 2024

Great, thanks! I'll release another version and update the various demos etc. later today.

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.