Author Topic: kubuntu 14.04 strange error of process of installing.. [SOLVED]  (Read 2608 times)

0 Members and 1 Guest are viewing this topic.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Hi

I downloaded QB64 1-3 -lnx  and I run in console the installing file...
no problem until the last operation that gave me this error... see attachmen
please some suggestions?
  [ You are not allowed to view this attachment ]  
« Last Edit: September 01, 2019, 05:28:23 pm by TempodiBasic »
Programming isn't difficult, only it's  consuming time and coffee

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: kubuntu 14.04 strange error of process of installing..
« Reply #1 on: September 01, 2019, 10:49:56 am »
I'm curious... You are using Kubuntu 14.04... Is there any reason why you are not using the current 19.04 version? Just curious...

J
Logic is the beginning of wisdom.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: kubuntu 14.04 strange error of process of installing..
« Reply #2 on: September 01, 2019, 12:02:32 pm »
Only because the machine is very old and I have a CD with installing of kubuntu.
The same OS has asked me if I want ajourn to 19.04 and at the first time I answered no because I dunno if 3GB of RAM is enough for the new stable release.

I must see if the Fifi's installer is adjourned to QB64 1.3  32bit, because this old machine that I want to franksteinize is a celeron 1GHrtz with 32bit structure. The OEM system that now declares itself as illegal is Windows 7 professional.

However I must see if this equipment is enough for Ubuntu 19.04!
Programming isn't difficult, only it's  consuming time and coffee

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: kubuntu 14.04 strange error of process of installing..
« Reply #3 on: September 01, 2019, 12:05:11 pm »
The versions of g++ which newer versions of Linux comes with, have been altered and updated, just as we alter and update QB64.  Newer versions of g++ now have the -pie switch enabled by default, whereas older versions (like the one with your 14.02 OS) don’t.  The -pie switch basically stops programs from executing if you compile them, and then try to double click on them from the file explorer.  You can still run the compiled programs from the terminal, but double clicking them does nothing much...

To fix this, we started packaging QB64 with the -no-pie switch enabled by default — which fixes the issue for up-to-date versions of g++, but tosses errors like the one you got with older versions.

The fix for you is either:
1) Update your g++ compiler.

Or

2) Remove that switch from the compile line with the setup script.  (And probably in internal/c/makeline_lnx.txt, or whatever its exact name might be.)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: kubuntu 14.04 strange error of process of installing..
« Reply #4 on: September 01, 2019, 12:12:21 pm »
In the setup script, you’ll see this:

 echo "Building 'QB64'"
  cp -r ./internal/source/* ./internal/temp/
  cd internal/c
  g++ -no-pie -w qbx.cpp libqb/os/lnx/libqb_setup.o parts/video/font/ttf/os/lnx/src.o parts/core/os/lnx/src.a -lGL -lGLU -lX11 -lpthread -ldl -lrt -D FREEGLUT_STATIC -o ../../qb64

Just remove that -no-pie, and you should build fine without it.  (And probably have no issues running anything either, as -pie probably isn’t a switch for your version of g++.)

EDIT:  Don’t forget the same change in internal/c/makeline_lnx.txt as well.
« Last Edit: September 01, 2019, 12:14:00 pm by SMcNeill »
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: kubuntu 14.04 strange error of process of installing..
« Reply #5 on: September 01, 2019, 12:41:25 pm »
Thanks Steve
I'll try your suggestion later,
for now I have learnt that minimum requirements for Ubuntu is CPU 2Ghz dual core (my old HP is lower just of 1Ghz :-) ) while for the other characteristics it is ok.

Programming isn't difficult, only it's  consuming time and coffee

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: kubuntu 14.04 strange error of process of installing..
« Reply #6 on: September 01, 2019, 05:27:00 pm »
Hi Steve
you give me the solution.... following your instructions I have had easy path to the goal!
  [ You are not allowed to view this attachment ]  

About running it is ok with double click on the QB64 executable in its folder.

Feedback for developers of installer for Linux

1.
Without no request by me the Kubuntu 14.04 has installed the local version of OS with Italian names of folders of system, so the link in the Kikoff menu running in this OS are missed because the installer has pointed to Development folder while on my machine there is Sviluppo folder!
But this OS is very flexible and clear so doing right click on Menu Button of Kikoff I got the editor(manager) of Kikoff and I add the link to QB64

2.
the file ico for application in this system has no .ICO extension, so I use Gvenview to save a copy as .PGN that is a compatible extention for file of icon of an application

3.
in the default path for Font in the Option/Display menu  put a path like this
Quote
///usr/share/fonts/truetype/freefont/FreeSans.ttf
or
Quote
///usr/share/fonts/truetype/freefont/FreeSerif.ttf
and remember to pull down  Row height in pixel (default 21)
or use this that fits well
Quote
///usr/share/fonts/truetype/freefont/FreeMono.ttf
if it is common for linux systems the path of fonts.

Now I'm going to try compiling some code... naturally taken from the forum
(be quiet I'll not test the windows DLL calling  :-)  )
Programming isn't difficult, only it's  consuming time and coffee