c++ libdevil on mac

Help
Anonymous
2009-12-30
2013-05-02
  • Anonymous - 2009-12-30

    the current version of libdevil (installed using darwinports on a mac) doesn't include IL.framework which I need to compile a game. where can I find it? I tried to compile from the source provided in the libdevil's website and all I got are errors…
    I compiled the game on linux flawlessly.
    thanks you

    if it helps. here's the errors I receive not having the il.framework:

    g++ -Wall -fpermissive  -o room main.cpp Model_3DS.cpp -framework OpenGL -framework GLUT -ILUT
    main.cpp:25:21: error: IL/ilut.h: No such file or directory
    main.cpp: In function ‘void initRendering()’:
    main.cpp:124: error: ‘ilInit’ was not declared in this scope
    main.cpp:133: error: ‘ILuint’ was not declared in this scope
    main.cpp:133: error: expected `;' before ‘texid’
    main.cpp:134: error: ‘ILboolean’ was not declared in this scope
    main.cpp:134: error: expected `;' before ‘success’
    main.cpp:149: error: ‘texid’ was not declared in this scope
    main.cpp:149: error: ‘ilGenImages’ was not declared in this scope
    main.cpp:150: error: ‘ilBindImage’ was not declared in this scope
    main.cpp:151: error: ‘success’ was not declared in this scope
    main.cpp:151: error: ‘ilLoadImage’ was not declared in this scope
    main.cpp:153: error: ‘IL_RGBA’ was not declared in this scope
    main.cpp:153: error: ‘IL_UNSIGNED_BYTE’ was not declared in this scope
    main.cpp:153: error: ‘ilConvertImage’ was not declared in this scope
    main.cpp:162: error: ‘IL_IMAGE_BPP’ was not declared in this scope
    main.cpp:162: error: ‘ilGetInteger’ was not declared in this scope
    main.cpp:162: error: ‘IL_IMAGE_WIDTH’ was not declared in this scope
    main.cpp:163: error: ‘IL_IMAGE_HEIGHT’ was not declared in this scope
    main.cpp:163: error: ‘IL_IMAGE_FORMAT’ was not declared in this scope
    main.cpp:164: error: ‘ilGetData’ was not declared in this scope
    main.cpp:169: error: ‘ilDeleteImages’ was not declared in this scope

     
  • Anonymous - 2009-12-30

    thank* you ;)

     
  • Matěj Týč

    Matěj Týč - 2010-01-01

    Hi,

    could you please provide a minimal (like 10 lines of code) example that fails? It seems that you might miss some includes.

    Regards,
    Matej

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks