Recent

Author Topic: vampyreimagingpackage librery refuses to compile  (Read 4226 times)

jcaser1948

  • Jr. Member
  • **
  • Posts: 68
vampyreimagingpackage librery refuses to compile
« on: December 21, 2017, 05:14:37 pm »
 I am still fighting against the tutorial http://wiki.lazarus.freepascal.org/OpenGL_Tutorial#Multitexturing_.28extensions.29 (Mark,for beginners). I amnow in the section "Textures".There the tutorial ask me to download the file  Vampyre Imaging Library. I have done that and I have put the extracted librery in the Lazarus Component directory. I Opened Vampyre .lpk,  with the Open package file(*.lpk)  (im Projects) and tried to compile and install the library. I get the compile error
 " Fatal error Can not find GTKdef used by ImagingComponents Use Unit GTKdef of LCL" Where can I find this unit?Is there no other solution?.
My system is Opensuse Linux 42.3 and Lazarus latest version

Handoko

  • Hero Member
  • *****
  • Posts: 5515
  • My goal: build my own game engine using Lazarus
Re: vampyreimagingpackage librery refuses to compile
« Reply #1 on: December 21, 2017, 06:47:24 pm »
Sorry, I'm going to talk off topic.

I can understand it is hard to learn OpenGL using Pascal. Most OpenGL tutorials are available on C++ and the OpenGL tutorials in Lazarus/FPC official website are outdated. You should find tutorials elsewhere. I mostly read documentations from OpenGL (Kronos) official website and perform trial and error to understand that command. I still keep some bookmarks of good OpenGL websites pages, maybe you will be interested:

Some discussions that worth to read:
http://forum.lazarus.freepascal.org/index.php/topic,37450.0.html
http://forum.lazarus.freepascal.org/index.php/topic,31938
http://forum.lazarus.freepascal.org/index.php/topic,39027

LazCanvas - a great idea to use OpenGL:
http://forum.lazarus.freepascal.org/index.php/topic,29351.0.html

Tutorial from Delphi website:
http://edn.embarcadero.com/article/26401

An online tool to test glBlendFunc:
http://www.andersriggelsen.dk/glblendfunc.php

You can try glSlideshow 0.96, it is open source (CC-BY). If you have problem understanding the code, you can ask me. Because I wrote that code :D
http://forum.lazarus.freepascal.org/index.php/topic,35313.msg257169.html#msg257169
« Last Edit: December 21, 2017, 06:55:09 pm by Handoko »

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: vampyreimagingpackage librery refuses to compile
« Reply #2 on: December 21, 2017, 09:54:55 pm »
@jcaser1948
Quick question for verification: what  exact version of vampyre imaging library did you actually downloaded and install ? (link is preferred).

In the trunk of Vampyre sources i can see that gtkdef is/was replaced with gtk2def. I assume you use gtk2 widgetset ?

jcaser1948

  • Jr. Member
  • **
  • Posts: 68
Re: vampyreimagingpackage librery refuses to compile
« Reply #3 on: December 22, 2017, 09:56:47 am »
Hi molly, thanks
I loaded  from    hdttp://imaginglib.sourceforge.net/  the latest release version ,which is 0.26.4 released on 12th October 2009

jcaser1948

  • Jr. Member
  • **
  • Posts: 68
Re: vampyreimagingpackage librery refuses to compile
« Reply #4 on: December 22, 2017, 10:47:03 am »
Hi Handoko,
Thanks
I have downloaded your glislideshow and compiled it without problems in my Opensuse Leap43.2 I will study the code and I think it will improve my understanding og Graphics under Lazarus.I will also visit the sites you recommend

Handoko

  • Hero Member
  • *****
  • Posts: 5515
  • My goal: build my own game engine using Lazarus
Re: vampyreimagingpackage librery refuses to compile
« Reply #5 on: December 22, 2017, 11:59:55 am »
If you already have some basic understanding of OpenGL, you should try Akira1364's version of glSlideshow. He modified the original code to use modern OpenGL. It is harder to understand but it will have better performance especially running on modern hardware.

https://forum.lazarus.freepascal.org/index.php/topic,35313.msg255447.html#msg255447

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: vampyreimagingpackage librery refuses to compile
« Reply #6 on: December 22, 2017, 08:54:06 pm »
Hi molly, thanks
I loaded  from    hdttp://imaginglib.sourceforge.net/  the latest release version ,which is 0.26.4 released on 12th October 2009
Ok, thank you very much.

At first glance it seems to me that indeed this particular version is expecting gtk1 widgetset while trunk seems to expect gtk2. I was unable to find any particularities inside the documentation (or i overlooked)..

The best i would be able to advise right now is to try with trunk sources of vampyre. Realize that 0.26.4 was released at the end of 2009 (which is ages ago, many things have changed since then).

Of course the hints that user Handoko provides are to be followed as well in case you wish to experiment with/learn about GL.

 

TinyPortal © 2005-2018