FBC 0.21 executeable

Linux specific questions.
Post Reply
darkinsanity
Posts: 12
Joined: Feb 18, 2009 11:39
Location: /dev/sda1
Contact:

FBC 0.21 executeable

Post by darkinsanity »

hi,
i have a problem: I need a feature of FBC 0.21 (linux), but I can´t compile it myself.
Has someone a working FBC 0.21 executeable for me?

thx
Sisophon2001
Posts: 1706
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Post by Sisophon2001 »

I think you should list your distribution and version number, and what feature you want. Is it the compiler itself, or a library?

In the mean time i will try downloading and compiling the latest version.

Garvan

PS. Is there a development version available for download some-place?
darkinsanity
Posts: 12
Joined: Feb 18, 2009 11:39
Location: /dev/sda1
Contact:

Post by darkinsanity »

I have OpenSuSE 11.1. The feature I need are the naked functions.
darkinsanity
Posts: 12
Joined: Feb 18, 2009 11:39
Location: /dev/sda1
Contact:

Post by darkinsanity »

can someone help me please?
It´s really important, and I only need fbc (no runtime/gfxlib), and I can´t compile it myself.
Sisophon2001
Posts: 1706
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Post by Sisophon2001 »

I compiled fb on the date of my reply to your post, and the executable can be found here.

http://freefile.kristopherw.us/uploads/ ... bc_new.txt

However I am using Ununtu, so there is no guarantee that my compile with work with your system, plus I am sure there must have been updates in other libraries that will cause errors if you mix this version with yours.

What you need to do is learn how to compile FB. The instructions in the help file are simple enough. If you know what naked functions are, then you are ready to try it.

Garvan
darkinsanity
Posts: 12
Joined: Feb 18, 2009 11:39
Location: /dev/sda1
Contact:

Post by darkinsanity »

thx :)

the problem is that I just get errors if I try to compile.
I uploaded the compile-log here, so maybe someone can tell me what I did wrong?
yetifoot
Posts: 1710
Joined: Sep 11, 2005 7:08
Location: England
Contact:

Post by yetifoot »

I'm not sure, but libbfd seems pretty instable, i know that between 2.17 and 2.18 a lot changed that caused problems. It could be that FB is not compatible with 2.19 yet.
jcfuller
Posts: 325
Joined: Sep 03, 2007 18:40

Post by jcfuller »

I did a complete new install of current fb20 and svn updated to 21 yesterday with no problems on ubuntu. I followed the wiki to the letter.

James
Sisophon2001
Posts: 1706
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Post by Sisophon2001 »

Compiling is working fine on Ubuntu, but the compile log posted show that it is not working with the latest version of SUSE.

If somebody using Ubuntu can post a matching set of executables and libs, then they should work on his system, even if the spit out the "consider re-linking" warning.

Garvan
Sisophon2001
Posts: 1706
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Post by Sisophon2001 »

I rebuilt fbc this morning on Ubuntu from newly downloaded source code. I ziped up the executable and the key libraries and put them here:

http://freefile.kristopherw.us/uploads/ ... fbcsvn.zip

The libraries should be copied to ~/fbcSVN/FreeBASIC/lib/linux/
and the compiler to ~/fbcSVN/FreeBASIC/
Then you should be able to install following the instructions in the help file.

cd ~/fbcSVN/FreeBASIC
sudo ./install.sh -i

Please back up your current install first, so nothing gets destroyed if my version does not work on your system.

Garvan
darkinsanity
Posts: 12
Joined: Feb 18, 2009 11:39
Location: /dev/sda1
Contact:

Post by darkinsanity »

ok, thanks very much.
I tried it again under openSuSE, but it didn´t work, so I set up a new virtual PC for Ubuntu, and it works fine.
The project for which I needed the newest compiler is a kernel in FreeBASIC: http://sourceforge.net/projects/frostkernel
Landeel
Posts: 777
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Post by Landeel »

Got it to work here.
But I'm getting the old frozen black OpenGL window, and segmentation faults with fbpng...
Think I will stick with 0.20 for now.
yetifoot
Posts: 1710
Joined: Sep 11, 2005 7:08
Location: England
Contact:

Post by yetifoot »

But I'm getting the old frozen black OpenGL window, and segmentation faults with fbpng...
I'm not sure about the frozen OpenGL window, but the seg fault with fbpng could be due to the changes in imagecreate/destroy in the svn. The fbpng thread has details about this, by upgrading to a newer version of fbpng and using png_destroy() instead of imagedestroy() it should stop the segfaults.[/quote]
Landeel
Posts: 777
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Post by Landeel »

Yeah, I have seen about the fbpng problem right after my post.

This modified fbgfx version by Sisophon2001 fixed the OpenGL freezes in 0.20 : http://www.freebasic.net/forum/viewtopi ... highlight=

[edit]
Using it in 0.21 also fixes the OpenGL freezes.
[/edit]

@Sisophon2001 : Can you submit a patch with your gfxlib changes?
Sisophon2001
Posts: 1706
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Post by Sisophon2001 »

Landeel wrote:<snip>

@Sisophon2001 : Can you submit a patch with your gfxlib changes?
Done. I agree that it is better to have a record of the changes I made, even if it turns out to be chasing bugs in the window managers rather than in FB itself.

Garvan
Post Reply