Coder Social home page Coder Social logo

eckankar / mosgame Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 1.0 1.29 MB

An attempt at making a PyGame-like library for Moscow ML.

License: BSD 3-Clause "New" or "Revised" License

C 62.40% Standard ML 35.27% Perl 0.65% Makefile 1.68%
game-development sml sdl

mosgame's People

Contributors

eckankar avatar sshine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kikass-crypto

mosgame's Issues

Compilation for Windows

It would be great if the makefile was changed to allow compilation for Windows, either natively or through cross compilation.

Compile error on 64-bit platforms

I get the following when trying to compile on 64-bit:

gcc -Dunix -O2 -fno-defer-pop -I/opt/mosml/include `sdl-config --cflags` -c -o obj/display.o -I./C C/display.c 
gcc -Dunix -O2 -fno-defer-pop -I/opt/mosml/include `sdl-config --cflags` -c -o obj/draw.o -I./C C/draw.c 
gcc -Dunix -O2 -fno-defer-pop -I/opt/mosml/include `sdl-config --cflags` -c -o obj/mosgame.o -I./C C/mosgame.c 
gcc -Dunix -O2 -fno-defer-pop -I/opt/mosml/include `sdl-config --cflags` -c -o obj/util.o -I./C C/util.c 
C/util.c: In function ‘Val_addr’:
C/util.c:9:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
gcc -Dunix -O2 -fno-defer-pop -I/opt/mosml/include `sdl-config --cflags` -c -o obj/event.o -I./C C/event.c 
gcc -Dunix -O2 -fno-defer-pop -I/opt/mosml/include `sdl-config --cflags` -c -o obj/image.o -I./C C/image.c 
gcc -Dunix -O2 -fno-defer-pop -I/opt/mosml/include `sdl-config --cflags` -c -o obj/surface.o -I./C C/surface.c 
C/surface.c: In function ‘surface_fill’:
C/surface.c:23:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
C/surface.c: In function ‘surface_blit’:
C/surface.c:45:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
C/surface.c:46:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
ld -shared `sdl-config --libs` -lSDL_gfx -lSDL_image -o libmosgame.so  obj/display.o  obj/draw.o  obj/mosgame.o  obj/util.o  obj/event.o  obj/image.o  obj/surface.o
ld: obj/display.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
obj/display.o: could not read symbols: Bad value
make: *** [libmosgame.so] Error 

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.