GithubHelp home page GithubHelp logo

interkosmos / fortran-xkcd Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 1.0 86 KB

xkcd client for X11 written in Fortran 2018

License: ISC License

Fortran 100.00%
xkcd fortran fpm xkcd-client fortran-package-manager fortran-2018

fortran-xkcd's Introduction

fortran-xkcd

An fpm example project written in Fortran 2018 that displays the latest xkcd comic inside an X window. As a limitation, only images in PNG format are supported (no JPEG). The alt text will be printed to console.

The program depends on X11, libcairo, libcurl, as well as the following Fortran libraries:

You can pass the xkcd number to view a specific comic strip:

$ ./xkcd 292

Screen Shot

screen shot

Build Instruction

Just clone the repository and build the executable with fpm:

$ git clone https://github.com/interkosmos/fortran-xkcd
$ cd fortran-xkcd/
$ fpm build --profile=release
$ fpm run

The binary xkcd will be written to build/<compiler>/app/.

Licence

ISC

fortran-xkcd's People

Contributors

interkosmos avatar rajkumardongre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rajkumardongre

fortran-xkcd's Issues

Error in "fpm run"

Hi @interkosmos , I have followed all steps for installation as mentioned in the README.md file. Project is building correctly using fpm build --profile=release, but while running fpm run it's giving this error :

rajkumar@DESKTOP-0VSJ5V8:~/opensource/gsoc/fortran-lang/fortran-xkcd$ fpm build --profile=release
Project is up to date
rajkumar@DESKTOP-0VSJ5V8:~/opensource/gsoc/fortran-lang/fortran-xkcd$ fpm run
Project is up to date
Contact Merge (2801)
Alt: I actually kind of feel like John and Surf King wouldn't like each other, which is a lot to unpack.

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x7fb0e7343ad0 in ???
#1  0x7fb0e7342c35 in ???
#2  0x7fb0e704251f in ???
#3  0x7fb0e761d590 in ???
#4  0x7fb0e7981e6a in __xwin_MOD_xwin_destroy
       at ././src/xwin.f90:78
#5  0x7fb0e797ef55 in MAIN__
       at app/main.f90:54
#6  0x7fb0e797ef9c in main
       at app/main.f90:3
Segmentation fault (core dumped)
<ERROR> Execution for object " xkcd " returned exit code  139
<ERROR> *cmd_run*:stopping due to failed executions
STOP 139

I am running this WSL, I have also run fortran-xlib package examples, and they are working fine.

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.