* * *

Author Topic: Installing LazOpenGLContext  (Read 1595 times)

ehj666

  • Jr. Member
  • **
  • Posts: 50
Re: Installing LazOpenGLContext
« Reply #15 on: February 12, 2017, 03:19:41 pm »
Yea, found them. I tried doing the same thing on Lazarus for Windows, which installed without issue, except the OpenGL tab only shows, "TOpenGLControl".

ehj666

  • Jr. Member
  • **
  • Posts: 50
Re: Installing LazOpenGLContext
« Reply #16 on: February 12, 2017, 03:25:11 pm »
After playing with it some more, I see that a component that failed to install still shows up under installed. The first time through I did not uninstall lazopenglcontext, whereas the latest time I did. Perhaps I was getting a false positive from that and hence did not resolve the original problem.

Handoko

  • Hero Member
  • *****
  • Posts: 829
  • My goal: build my own game engine using Lazarus
Re: Installing LazOpenGLContext
« Reply #17 on: February 12, 2017, 03:26:31 pm »
Oh, I'm sorry about the confusing thing. The second item is installed automatically by BGRABitmap package.

So now, can you or can't you run the OpenGL example?

ehj666

  • Jr. Member
  • **
  • Posts: 50
Re: Installing LazOpenGLContext
« Reply #18 on: February 12, 2017, 03:34:03 pm »
Windows yes, Linux no. Back to not being able to install the package on Linux.

Handoko

  • Hero Member
  • *****
  • Posts: 829
  • My goal: build my own game engine using Lazarus
Re: Installing LazOpenGLContext
« Reply #19 on: February 12, 2017, 03:37:52 pm »
What Linux do you use?
What version of your Lazarus?
You said it fails on Linux, is it compile time error?
Can you post screenshot that showing the error?

I use UbuntuMate, I found it will be better to install Lazarus/FPC not from Ubuntu repository but I get the installer from Lazarus official website (SourceForge).
« Last Edit: February 12, 2017, 03:39:24 pm by Handoko »

ehj666

  • Jr. Member
  • **
  • Posts: 50
Re: Installing LazOpenGLContext
« Reply #20 on: February 12, 2017, 04:00:03 pm »
Linux version: Ubuntu 16.04
Lazarus version: 1.6, installed from Ubuntu repository
Compile time error

Get a screenshot shortly, ImageMagic has completely locked up doing a resize to make it small enough to post.

Handoko

  • Hero Member
  • *****
  • Posts: 829
  • My goal: build my own game engine using Lazarus
Re: Installing LazOpenGLContext
« Reply #21 on: February 12, 2017, 04:09:35 pm »
Perhaps you can try:
1. Unintall your Lazarus
2. Download Lazarus from the official website
3. Install the downloaded files (3 deb packages)
4. Install libgl1-mesa-dev
5. Install LazOpenGLContext

jacmoe

  • Full Member
  • ***
  • Posts: 241
    • Jacmoe's Cyber SoapBox
Re: Installing LazOpenGLContext
« Reply #22 on: February 12, 2017, 04:20:30 pm »
He would get into problems doing item 5 due to insufficient permissions, so he should probably become root.
more signal - less noise

Handoko

  • Hero Member
  • *****
  • Posts: 829
  • My goal: build my own game engine using Lazarus
Re: Installing LazOpenGLContext
« Reply #23 on: February 12, 2017, 04:30:57 pm »
I never need to be root to install them. But no harm to try.

ehj666

  • Jr. Member
  • **
  • Posts: 50
Re: Installing LazOpenGLContext
« Reply #24 on: February 12, 2017, 04:40:48 pm »
Perhaps you can try:
1. Unintall your Lazarus
2. Download Lazarus from the official website
3. Install the downloaded files (3 deb packages)
4. Install libgl1-mesa-dev
5. Install LazOpenGLContext

I downloaded the Linux 64 tar file from Sourceforge. Extracting that gives three folders (binary,  demo and doc) and an install script. Looking in binary, there are no packages, only unit folders. Do I run the install script? Did I download the right thing?

Handoko

  • Hero Member
  • *****
  • Posts: 829
  • My goal: build my own game engine using Lazarus
Re: Installing LazOpenGLContext
« Reply #25 on: February 12, 2017, 04:50:09 pm »

ehj666

  • Jr. Member
  • **
  • Posts: 50
Re: Installing LazOpenGLContext
« Reply #26 on: February 12, 2017, 06:17:31 pm »
Now it is totally screwed up. Lazarus itself seemed to install. When I run Lazarus, "Configure Lazarus IDE" gives an error "Warning: wrong version in ide/version.inc: 1.6.2". I did a purge and autoremove of the install from the Ubuntu repository before trying to install. If I skip past that and run the IDE anyway, the first time it showed that lazopenglcontext was already installed, but the opengl tab does not appear on the tool bar. I tried to remove and that gave an error that I did not copy, however lazopenglcontext did then move from installed to available. When I try to install the package it complains about not being able to find LCLProc in openglcontext as shown here:

Code: Pascal  [Select]
  1. uses
  2.   Classes, SysUtils, LCLProc

All of which probably stems from the installation. There were a few dependencies that had to be resolved to get all of the packages to install. I got through them, but when re-installing libgl1-mesa-dev I get the following
Code: [Select]
eric@eric-HP-ProBook-4710s:~$ sudo apt-get install libgl1-mesa-dev
[sudo] password for eric:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgl1-mesa-dev is already the newest version (12.0.6-0ubuntu0.16.04.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 fp-utils-3.0.0 : Depends: fpc-source-3.0.0 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Doing sudo apt-get -f install results in:
Code: [Select]
[sudo] password for eric:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  fpc-source-3.0.0
The following NEW packages will be installed:
  fpc-source-3.0.0
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
16 not fully installed or removed.
Need to get 0 B/15.7 MB of archives.
After this operation, 166 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 291757 files and directories currently installed.)
Preparing to unpack .../fpc-source-3.0.0_3.0.0+dfsg-2_all.deb ...
Unpacking fpc-source-3.0.0 (3.0.0+dfsg-2) ...
dpkg: error processing archive /var/cache/apt/archives/fpc-source-3.0.0_3.0.0+dfsg-2_all.deb (--unpack):
 trying to overwrite '/usr/share/fpcsrc/3.0.0/rtl/android/jvm/java_sys_android.inc', which is also in package fpc-src 3.0.0
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/fpc-source-3.0.0_3.0.0+dfsg-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Is there anything I can do besides uninstalling everything and starting over?

Handoko

  • Hero Member
  • *****
  • Posts: 829
  • My goal: build my own game engine using Lazarus
Re: Installing LazOpenGLContext
« Reply #27 on: February 12, 2017, 06:26:10 pm »
You may need to rebuild your IDE:
1. Lazarus main menu > Tools > Configure build Lazarus
2. Configure the setting properly (gtk 2, Linux, x86_64)
3. Click the build button, wait some minutes and restart your Lazarus

ehj666

  • Jr. Member
  • **
  • Posts: 50
Re: Installing LazOpenGLContext
« Reply #28 on: February 12, 2017, 06:43:10 pm »
Won't build, basically the same error as above. Looks to me like there is a problem with the fp source package.
 

Handoko

  • Hero Member
  • *****
  • Posts: 829
  • My goal: build my own game engine using Lazarus
Re: Installing LazOpenGLContext
« Reply #29 on: February 12, 2017, 06:48:19 pm »
Have you perform a clean uninstallation? Here is how I do it:
1. Uninstall lazarus, fpc, fpc-src
2. Delete ~/.lazarus, except: editoroptions, environmentoption
3. Delete /etc/fp.*
4. Delete /usr/share/fpcsrc
5. Delete /usr/lib/fpc
6. Delete /usr/bin/ppc*

Note: I keep editoroptions and environmentoption because I want to keep some desktop setting I already configured properly.

Also you may need to read this:
http://forum.lazarus.freepascal.org/index.php/topic,35743.0.html

edited: fixed the wrong link.
« Last Edit: February 12, 2017, 07:07:00 pm by Handoko »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus