GDC & Pandaboard/QEMU & Framebuffer

Johannes Pfau via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 22 00:49:22 PDT 2014


Am Wed, 22 Oct 2014 06:26:56 +0000
schrieb "John A" <nospam at some.com>:

> > Next step for me, is to create a small opengl test app:
> > - does it cross-compile (on Ubunutu)?
> > - does it run in QEMU?
> > - does it run on a Pandaboard?
> 
> Here's the result:
> DerelictGL3 and DerelictUtil cross-compiles ok with no gdc-arm 
> failures.
> 
> On the other hand, a very simple app has linker errors:
> 
> import derelict.opengl3.gl3;
> void main()
>    {
>    // DerelictGL3.load();
>    // DerelictGL3.reload();
>    printf("Start opengl: version %s\n", DerelictGL3.loadedVersion);
>    }
> 
> I'm using -nophoboslib so there are linker errors related to 
> phobos. If I don't use -nophoboslib I still get errors:
> 
> make testgl3
> /home/arrizza/x-tools/arm-cortexa9_neon-linux-gnueabihf/bin/arm-cortexa9_neon-linux-gnueabihf-gdc 
> -I./DerelictUtil/source -I./DerelictGL3/source -Llib  testgl3.d 
> -o opengl3
> /tmp/ccSSbl9j.o: In function `_Dmain':
> testgl3.d:(.text+0x40): undefined reference to 
> `_D8derelict7opengl33gl311DerelictGL3C8derelict7opengl33gl317DerelictGL3Loader'
> testgl3.d:(.text+0x44): undefined reference to 
> `_D8derelict7opengl33gl311DerelictGL3C8derelict7opengl33gl317DerelictGL3Loader'
> testgl3.d:(.text+0x58): undefined reference to 
> `_D8derelict7opengl33gl311DerelictGL3C8derelict7opengl33gl317DerelictGL3Loader'
> testgl3.d:(.text+0x5c): undefined reference to 
> `_D8derelict7opengl33gl311DerelictGL3C8derelict7opengl33gl317DerelictGL3Loader'
> /tmp/ccSSbl9j.o:(.data+0xc): undefined reference to 
> `_D8derelict7opengl33gl312__ModuleInfoZ'
> collect2: error: ld returned 1 exit status
> make: *** [testgl3] Error 1
> 

You also have to link against DerelictGL3 and maybe DerelictUtil:
-lDerelictGL3 -lDerelictUtil


More information about the Digitalmars-d mailing list