Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Studio Installation and Setup.
  • Page:
  • 1

TOPIC:

Installation ignores GLScene under Ubuntu 10.10 13 years 3 months ago #1163

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Hello everyone!
I've allready mention the subject of my problem in the thread's name, but here is some useful information/history:

First of all, for a long 7 month I have CodeTyphon installed on my Windows XP Home Edition SP3. It works great! Back then I've started to develop my own 3d maze RPG game using GLScene (please, do not say anything about my choise, GLScene imho is very handy ;)).
But a week ago (after 3,5 years of usage) my XP have crashed. I've tried so hard to "revive" it, but eneded up with freezing screen before wellcome message.

At the other hand I've installed Ubuntu 10.10, which works like a clock. So, I'll install CodeTyphon on it and forget about windows forever. That's what I thought...

I did it 3 times each according to the guide in the local help file. There's absolutely NO GLScene package in Lazarus. At first I shought that I've just miss something, but after reinstall it was clear that I'm not.

OK, there's a newer version,- I thought,-I'll try it.
Done. CodeTyphoon 1.80 Instaled!
And It have much more packages in it by default than before. Great! But there's again NO GLScene...

The problem is I actually could see GLScene Package in CTC. And Documentation says it works on linux. To say more, my project having been compiled under Windows, wonderfully runs under wine. So, it really could work in linux.

At first I thought that I could install it manually.
Really, what's the problem? Add pakage from the list and compile it. Or open *.lpk file and install it.
And that's work great too.

But all these actions cost nothing because of missing paths to units... In Windows I had same problem trying to install GLScene into official Lazarus.

First it's missing GLScene.inc, then ImageUtils, then ImageUtils i's missing GLScene.inc...
That's really annoying...
I tried to add browsing paths to my project, but there's still some units which miss some other unit. And that's not in my units, but GLScene's units! I believe there's nothing wrong in GLScene that prevents compilation. So it's my settings.

But how can I fix this? Maybe someone who use it could help? Since CodeTyphon is installed in the same directories on all Linux machines, maybe someone could give me some cfg file or better explain what I should add/remove to/from it?

My system's propetries:
Warning: Spoiler!


CTC Directories:
Warning: Spoiler!


CTC Packages list just after installing 1.80
Warning: Spoiler!


CTC Status:
Warning: Spoiler!


Whew... this seems to be all...
What else could affect installation? I don't know.
If anything else needed to give an advice - just ask and I'll provide any logs or screenshots.
コンソールマニアック

Please Log in or Create an account to join the conversation.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 3 months ago #1164

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
For GLScene in linux32/64
you must install manual (from Lazarus) pl_glscene package after build the Lazarus IDE
from Lazarus folder
/usr/lib/lazarus/components/pl_GLScene for linux32
/usr/lib64/lazarus/components/pl_GLScene for linux64
NOT from CodeTyphon folder
/home/****user***/CodeTyphon/binMOD/lazarus/components/pl_GLScene

pl_glscene has our fixes for Linux, and working OK.
But you must NOT use emulator (VirtualBox etc). Emulators don't support OpenGL 2.0 minimum GLScene request.
-Did you install 3D drivers to your Linux OS?
-Did you install "System Libraries" to work correct Lazarus IDE?

At this version, GLScene for linux has problem
at installation from CodeTyphon "Lazarus building" procedure

The problems is with free-pascal in identification of GTK2
we try to fix this...
screen from Ubuntu 64 11.04



PilotLogic Architect and Core Programmer
The following user(s) said Thank You: 4aiman

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 3 months ago #1165

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Thanks for quick reply!

I tried to install from lazarus menu: package->install/remove packages.

I've installed system librares - otherwise setup.sh thinks that I run 64bit OS while it's 32.
And what about 3D drivers? If that's proprietary drivers - then yes. I've installed nvidia-current, nvidia-*some toolkit* and nvidia x.org settings manager. Is thas all? Or smth's missing?

I've done what you said but got some errors (I choose lpk from /usr/lib/lazarus*):

Errors while recompiling lazarus ide:
- first - a ppu missing it's source:
Warning: Spoiler!


- and second (after this I can't choose whether continue or not):
Warning: Spoiler!

This second is really strange, cause right before this there's a line saying, that TurboPowerIProDsgn 0.0 compiled successfully...

Why did it search in my home folder?

When I'm trying to remove fpc and lazarus (option #5) they're gone, but I get this:
Warning: Spoiler!
コンソールマニアック

Please Log in or Create an account to join the conversation.

Last edit: by 4aiman. Reason: And some more...

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 3 months ago #1166

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
My suggestion is to remove all previews FPC and Lazarus installations
from your PC and start CodeTyphon installation from scratch

Method 1

a)download=>unzip=>give to setup.sh execute permissions
b)Run setup.sh, and for the first time select 8)Exit (setup give all correct permissions to CodeTyphon folder)

c)go to Home/**user**/CodeTyphon/ScriptsLin
and run ln1_Install_SysLibraries_For_Ubuntu.sh

d)after libraries installation
Setup again and select 7)Build Free-pascal and Lazarus

Method 2

a)download CodeTyphon=>unzip

b)Only for the first time, go to Home/**user**/CodeTyphon/ScriptsLin
give execute permissions and run ln1_Install_SysLibraries_For_Ubuntu.sh


d)after libraries installation
give to setup.sh execute permissions, run and select 7)Build Free-pascal and Lazarus

please, report the results
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 3 months ago #1167

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
I've used option 5 to remove previous installlations. And only then I pick option 7.
I've installed system librares (I've told that allready) but what are 3d librares? or they're installed with the system librares script too? Then I've them installed.

But for make clean experiment, I've done as you've said. Both ways.
GLScene compiles well.
But for proper install I should rebuild IDE. And still I can't. The cause is printers4lazide package error (aha, again):
PPU Loading /home/chaiman/.lazarus/lib/IDEIntf/units/i386-linux/menuintf.ppu
PPU Source: menuintf.pas not found
Recompiling MenuIntf, checksum changed for LCLType
menuintf.pas(34,80) Fatal: Can't find unit MenuIntf used by ideprinting
again... :pinch:

I tried to build when pl_GLScene package ask for it, I tried to rebuild IDE having GLScene included in the list of packages to install. And I got this error.

And what's more strange - I got this error when tried to rebuild IDE once I've installed it.
I mean "installed and at the first run try to rebuild IDE". :blink:

Maybe there's something left after option 5?
How could I delete all those files then?

Later:
I tried to rebuild under "MyProfile" profile and under others. With and without cleanup. The same error appears as soon as I press "Build" button.

Even more later:
It seems that option 5 in setup.sh clean all but .config and home/***username***/lazarus. I delete those.
But CTC is still able to run (from main menu, command in "codetyphon %f") although it says there's neither fpc nor lazarur present in the system.
Is it normal that CTC remains after uninstall?

And even more later:
while installing sytem librares I got a message that I've latest librares. But also I got a message says that instead "libsdl-dev" will be chosen "libsdl1.2-dev". I suppose that's normal?
コンソールマニアック

Please Log in or Create an account to join the conversation.

Last edit: by 4aiman.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 3 months ago #1168

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Sorry for second post, but this is completely different.
After more then dozen reinstalls GLScene is installed!

I've done this:
01. run setup.sh and use option #5
02. delete manually folder "/home/chaiman/.lazarus/"
03. create empty folder "/home/chaiman/.lazarus/"
04. give myself 777 rights on "/home/chaiman/.lazarus/"
05. launch CTC and choose Remove all and build big IDE option in the menu
06. after install lazarus asked me for config - just press "ok", cause al paths are right (I could attach screenshots)
07. lazarus said that 2 packages were not found and would be replaced with dummies
08. after lazarus launched install glscene from package manually
09. [u]all compiles well!!![/u] Do not kno what've changed though...
10. IDE restart and show me GLScene tab



Then I opened my project and "voila" - lazarus one more time can't find units.
So, where should I put paths to that units and in which manner describe them?

I just recognize what's wrong. Case.
It's "GLFile3DS", not "GLfile3DS". :blush:
I've changed all of that. But now It cant OPEN includefile.
/usr/lib/lazarus/components/pl_GLScene/source/FileFormats/GLFile3DS.pas(51,2) Fatal: Can't open include file "GLScene.inc"
I tried to run lazarus with sudo or set 777 rights on entire "usr/lib/lazarus/" but it had no effect.
The file is there ("/usr/lib/lazarus/components/pl_GLScene/source/") and with right name: "GLScene.inc"...


I've placed GLScene.inc into FileFormats folder and lazarus found it.
Then there was error in 3DS unit. I discarded that from my uses list thinking to use *.obj+*.mtl files instead.
But Obj unit has it's own error:
/usr/lib/lazarus/components/pl_GLScene/source/FileFormats/DXTC.pas(639,40) Error: Incompatible types: got "Word" expected "TByteArray"
Maybe I should tweak some compilation settings?
Or what file format for 3d models could I use under Linux version of lazarus?


For those, who might be in search for solve - use mDelphi compilator option.
コンソールマニアック

Please Log in or Create an account to join the conversation.

Last edit: by 4aiman.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 3 months ago #1185

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
In the next CodeTyphon (version 2.00)
GLScene Library is preloaded to Lazarus IDE, and for Linux 32/64 installations
we fix the problem.... :)
PilotLogic Architect and Core Programmer
The following user(s) said Thank You: 4aiman

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 2 months ago #1187

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Hello there! ;)
Thanks for your great job!

Here I've some questions about GLScene... I do know that specific packages should be talked about at their own sites or at least another forum/thread, but I don't want to create several separate themes (just have no idea how to properly name them).

1. Here we have changelog for CT project. But where could I read about changes to the packages you've made?

2. This one follows from the previous. You've said you've applied some changes to GLScene. And I have a problem with it (smth in not supported: compiles well but then got this error). Maybe you can provide some information (in a way "we changed smth in the fonts loading routine and a little bit at drawing routine")? I just want to be sure where to ask my further questions: here or at GLScene support site.

3. Could it be done that CT became available via svn or ftp or smth or http as source list? I know, that will increase disk-space usage 4 times, but that way people like me (e.g. those with 128KB/sec connection speed) could use wget (for example) to download only changed files. If there's problem with disk space, then maybe you would like to use sourceforge? Or if don't like that idea, maybe you need some other place to keep sources there?
コンソールマニアック

Please Log in or Create an account to join the conversation.

Last edit: by 4aiman.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 2 months ago #1188

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114

4aiman wrote: Hello there! ;)
Thanks for your great job!

Here I've some questions about GLScene... I do know that specific packages should be talked about at their own sites or at least another forum/thread, but I don't want to create several separate themes (just have no idea how to properly name them).

1. Here we have changelog for CT project. But where could I read about changes to the packages you've made?

2. This one follows from the previous. You've said you've applied some changes to GLScene. And I have a problem with it (smth in not supported: compiles well but then got this error). Maybe you can provide some information (in a way "we changed smth in the fonts loading routine and a little bit at drawing routine")? I just want to be sure where to ask my further questions: here or at GLScene support site.

3. Could it be done that CT became available via svn or ftp or smth or http as source list? I know, that will increase disk-space usage 4 times, but that way people like me (e.g. those with 128KB/sec connection speed) could use wget (for example) to download only changed files. If there's problem with disk space, then maybe you would like to use sourceforge? Or if don't like that idea, maybe you need some other place to keep sources there?


Sir, first of all, we are a small software house, with programmers only
CodeTyphon is NOT on more from our products, it's our programming tool, and this make the CodeTyphon big deference

1) We test SVN code and fix errors to work with CodeTyphon

For sample, now we test GLScene SVN 23-8-2011 with OpenGL ES support (WinCE, Maemo etc). :woohoo:

We can't write to CodeTyphon Changes Logo file, "detail changes" for every package...
we want about 15 pages for this (CT ver 1.80 to 2.00)

So, detail changes for every package is in SVN of the package, please look there

2) My opinion is to make your question to both forums GLScene and CodeTyphon, your primary target is to get an answer...

3) NOT for now, CT has "Monolithic Philosophy" and for GEN II plan. You can use a download manager
Keep in mind that CT until now is "compact" yes, yes,
at the and of GEN II (if we make all plan items) we estimate about 500MByte CT installation Zip file

We, spend a lot of programming days to port GLScene (THE advance 3D/2D Library) and to Linux 32bits/64bits
have fun...
PilotLogic Architect and Core Programmer
The following user(s) said Thank You: 4aiman

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 2 months ago #1190

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Thanks for your reply!
And sorry. I have no idea that you change packages at svn...
Don't get me wrong, I realise that ~300 Mb is very compact although CT archive contains splendid number of components. I'll download new versions even if they'll be of 4,4 GB "weight" or even more ;)

Thanks one more time :)
コンソールマニアック

Please Log in or Create an account to join the conversation.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 2 months ago #1199

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
It's me once again.
Downloaded 2.0.
Installed system libraries.
Run setup.sh choosing #8.
Run setup.sh choosing #7.
Launched CTC.
Launched Lazarus.
Closed auto-generated project.
Open my project.
Lazarus CRASHED... :ohmy:
Started Lazarus again.
Choose to 'open again'
Lazarus crashed... :ohmy: :ohmy:
Launched one more time.
Opened *.pas corresponding to main form.
All right. :huh:
Press f12... Lazarus crashed! :pinch:
Launched again.
Open *lfm file in the editor.
Choose Package->Check LFM file in the editor.
Got an error:
unit1.pas(1,1) Error: Units not found: FileUtil,Forms,Controls,Graphics,GLScene,GLObjects,GLCadencer,GLVectorFileObjects,GLMaterial,GLGameMenu,GLWindowsFont,GLBitmapFont,GLMaterialEx,GLHUDObjects,GLLCLViewer,BaseClasses,GLFullScreenViewer,GLFile3DS,LazJPG,LCLType,lclintf,GLKeyboard,GLFileOBJ
Is this the reason Lazarus crash every time?
In CT 1.80 (when I've installed glscene) my project even compiles with no errors.

I tried to create NEW project. It crashes as soon as I add GLScene viewer on the form...
Should I check my xorg settings?
コンソールマニアック

Please Log in or Create an account to join the conversation.

Last edit: by 4aiman.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 2 months ago #1200

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
We have upload ver 2.10
please test and this maintenance release
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 2 months ago #1201

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Ok. But the result would be available only tomorrow, I fear.
コンソールマニアック

Please Log in or Create an account to join the conversation.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 2 months ago #1202

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
No Problem Sir
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Re: Installation ignores GLScene under Ubuntu 10.10 13 years 2 months ago #1203

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Whew...
I thought that'll be tomorrow, but I managed to try new CT 2.10 today.
Well, the same thing happens... I mean, once I've add GLSceneViewer on the form in absolutely new project Lazarus would be crashed.
Here I've output I get from lazarus:

Attachment laz_output_no_sync.txt not found

. Why "no sync?" you may ask?
Well, although I've typed "startlazarus >laz_output.txt" some of the output remained in the terminal.
Here's that piece of text:
The program 'lazarus' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 47 error_code 8 request_code 128 minor_code 26)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
So I did the second one this time providing option "--sync":

Attachment laz_output_sync.txt not found

.

Hope you could help to figure out what I need to do to get it working.


Here's smth else:
AddComponent TGLSceneViewer Parent=Form1:TForm1 106,113,0,0
Parent is 'Form1:TForm1'
The program 'lazarus' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 47 error_code 8 request_code 128 minor_code 26)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
So the problem is in the X, but I've already reinstalled it! I mean deactivate nvidia propreitary driver, delete packages with "purge" option, edit xorg.conf changing driver to "vesa", then reboot, add repository for x-server updates, update all packeges, and installed this libs: libvdpau1 nvidia-common nvidia-current-modaliases nvidia-settings nvidia-current. Then reinstall jockey-gtk and choose to USE nvidia driver. What else? Should I post my xorg.conf?


Previous question still need to be answered to, but I should say one more thing.
I created new project and add to in glcadencer and glscene. Then I created in glscene GLIcosahedron and make it roll at cadencer tick.
Then I create glscreenviewer in run time:
unit1 source

And guess what? It compiles and work well!!! :huh: :blink: :ohmy: :woohoo:
So, the problem is in design time. but still that's X error... Any suggestions?
コンソールマニアック

Please Log in or Create an account to join the conversation.

Last edit: by 4aiman. Reason: Run-time ok...

Re: Installation ignores GLScene under Ubuntu 10.10 12 years 8 months ago #1680

  • Rustam Asmandiarov
  • Rustam Asmandiarov's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 1
Hello! I am the developer GLScene. I accidentally got on this topic from internet.
I should clarify a few points.
1) At the moment, not GLScene 1.1 The supported Opegl_ES and support will not be realized.
2) Currently under development GLScene 1.2. In which will be fully supported Opegl_ES and the first device on which it is to be ported Android. Then it will port to other platforms.


Здраствуйте! Я разработчик GLScene. Я случайно попал на этот топик через интернет.
Я должен прояснить ряд моментов.
1)На данный момент GLScene 1.1 не поддержывает Opegl_ES и поддержка реализована не будет.
2)На данный момент разрабатывается GLScene 1.2. В котором будет полная поддержка Opegl_ES и первое устройство на которое оно будет портировано это Android. Затем будет порт и на другие платформы.

Please Log in or Create an account to join the conversation.

Re: Installation ignores GLScene under Ubuntu 10.10 12 years 8 months ago #1681

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
We "follow" your GLScene SVN work
and we waiting for GLScene ver 1.2
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.
  • Page:
  • 1