GithubHelp home page GithubHelp logo

Comments (4)

JMendyk avatar JMendyk commented on June 16, 2024 1

As @JohnKendrick pointed out, indeed ILUT_USE_OPENGL is defined in devil/DevIL/include/IL/ilut_config.h. However this file is included only in devil/DevIL/include/IL/ilut.h only if we are compiling on windows:

#if (defined(_WIN32) || defined(_WIN64))
	#if (defined(IL_USE_PRAGMA_LIBS)) && (!defined(_IL_BUILD_LIBRARY))
		#if defined(_MSC_VER) || defined(__BORLANDC__)
			#pragma comment(lib, "ILUT.lib")
		#endif
	#endif

	#include <IL/ilut_config.h>
#endif

After manually editing top-level CMakeLists.txt and adding add_definitions(-DILUT_USE_OPENGL) project builds successfuly and ilutGL* functions are references properly.

I hope this insight will be helpful.

from devil.

DentonW avatar DentonW commented on June 16, 2024

I'll try to take a look at this soon. I haven't focused on ILUT with the latest updates, and it seems something may have broken with the switch to CMake.

from devil.

JMendyk avatar JMendyk commented on June 16, 2024

@DentonW Have you been able to look deeper into this issue?

In my case I wasn't able to use ilutGLBindTexImage but after checking contents of libILUT.so I found out that it has no functions starting with ilutGL.

> nm -g libILUT.so | grep ilut

0000000000203088 B ilutCurImage
00000000002030a0 B ilutCurrentPos
0000000000000f82 T ilutDisable
0000000000000f66 T ilutEnable
0000000000001461 T ilutGetBoolean
00000000000012c6 T ilutGetBooleanv
000000000000184c T ilutGetInteger
00000000000014aa T ilutGetIntegerv
0000000000000f20 T ilutGetString
0000000000001e01 T ilutInit
00000000000012aa T ilutIsDisabled
0000000000001133 T ilutIsEnabled
0000000000001d85 T ilutPopAttrib
0000000000001bcd T ilutPushAttrib
0000000000001dc7 T ilutRenderer
0000000000001897 T ilutSetInteger
00000000002030c0 B ilutStates
0000000000203058 D _ilutVendor
0000000000203060 D _ilutVersion
0000000000000eea T _Z15ilutD3D8MipFuncj
0000000000000cb0 T _Z17ilutDefaultStatesv
0000000000000f9e T _Z8ilutAblejh

from devil.

Bambofy avatar Bambofy commented on June 16, 2024

Hi, this is still a problem using the vcpkg method of installing DevIL.

nm libILUT.a

libILUT.a(ilut_allegro.cpp.o):
libILUT.a:ilut_allegro.cpp.o: no symbols

libILUT.a(ilut_directx.cpp.o):
libILUT.a:ilut_directx.cpp.o: no symbols

libILUT.a(ilut_directx10.cpp.o):
libILUT.a:ilut_directx10.cpp.o: no symbols

libILUT.a(ilut_directx9.cpp.o):
libILUT.a:ilut_directx9.cpp.o: no symbols

libILUT.a(ilut_directxm.cpp.o):
libILUT.a:ilut_directxm.cpp.o: no symbols

libILUT.a(ilut_internal.cpp.o):
0000000000000000 S _ilutCurImage

libILUT.a(ilut_main.cpp.o):
                 U __Z17ilutDefaultStatesv
0000000000000000 T _ilutInit

libILUT.a(ilut_opengl.cpp.o):
libILUT.a:ilut_opengl.cpp.o: no symbols

libILUT.a(ilut_sdlsurface.cpp.o):
libILUT.a:ilut_sdlsurface.cpp.o: no symbols

libILUT.a(ilut_states.cpp.o):
0000000000000050 T __Z15ilutD3D8MipFuncj
0000000000000000 T __Z17ilutDefaultStatesv
0000000000000240 T __Z8ilutAblejh
0000000000001138 D __ilutVendor
0000000000001140 D __ilutVersion
                 U _ilSetError
00000000000015e0 S _ilutCurrentPos
00000000000003d0 T _ilutDisable
00000000000000b0 T _ilutEnable
00000000000009c0 T _ilutGetBoolean
0000000000000850 T _ilutGetBooleanv
0000000000000dd0 T _ilutGetInteger
0000000000000b40 T _ilutGetIntegerv
0000000000000070 T _ilutGetString
00000000000006e0 T _ilutIsDisabled
0000000000000560 T _ilutIsEnabled
0000000000001090 T _ilutPopAttrib
0000000000001000 T _ilutPushAttrib
00000000000010c0 T _ilutRenderer
0000000000000e00 T _ilutSetInteger
00000000000015f0 S _ilutStates

libILUT.a(ilut_win32.cpp.o):
libILUT.a:ilut_win32.cpp.o: no symbols

libILUT.a(ilut_x11.cpp.o):
libILUT.a:ilut_x11.cpp.o: no symbols

from devil.

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.