Various [v 5.11 Linux Mint]

Linux specific forum
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Various [v 5.11 Linux Mint]

Post by chris319 »

Several color constants not found (#Yellow, #Red, #Green, etc.)

Unable to compile/link code containing MessageRequester() or OpenFileRequester()

Linker error window locks up machine, forcing log-out and back in again.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Various [v 5.11 Linux Mint]

Post by chris319 »

Downloaded and installed v5.20 beta 9. Compiler just crashes.
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: Various [v 5.11 Linux Mint]

Post by StarBootics »

chris319 wrote:Several color constants not found (#Yellow, #Red, #Green, etc.)
The colour constants are not a part of PureBasic constant but came from Windows. So to have colour constants you will have to redefine them.

Code: Select all

#White = 16777215

#LightGray = 15132390
#Gray = 12500670
#DarkGray = 6908265

#Red = 255
#Orange = 32767
#Gold = 49151
#Yellow = 65535

#Green = 65280
#DarkGreen = 32512
#Chartreuse = 65407

#SeaGreen = 32575
#Aquamarine = 12582783
#Turquoise = 12566335

#Blue = 16711680
#DarkBlue = 12517376
#Cyan = 16776960

#Purple = 16711850
#Lavender = 16760767
#Magenta = 16711935

#Brown = 3755147
#Black = 0
About the other problem you have, no idea.

Regards
StarBootics
The Stone Age did not end due to a shortage of stones !
BorisTheOld
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Apr 24, 2012 5:08 pm
Location: Ontario, Canada

Re: Various [v 5.11 Linux Mint]

Post by BorisTheOld »

chris319 wrote:Unable to compile/link code containing MessageRequester() or OpenFileRequester()

Linker error window locks up machine, forcing log-out and back in again.
We've been using Mint with 4.61 to 5.20, and have never had any problems with the compiler. Are you sure that you ran the following command? It's shown in the x86 "checkinstall.sh" script and is recommended for Debian and Ubuntu based distros. It solves most problems other than user errors of course. Your code is not shown!!

Code: Select all

sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk2.0-dev libgnomeprint2.2-dev unixodbc-dev libgnome2-dev libxine-dev libgnomeprintui2.2-dev libxxf86vm-dev
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Various [v 5.11 Linux Mint]

Post by chris319 »

Well Boris, thanks -- it worked for about five minutes, now the compiler is back to crashing.
BorisTheOld
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Apr 24, 2012 5:08 pm
Location: Ontario, Canada

Re: Various [v 5.11 Linux Mint]

Post by BorisTheOld »

chris319 wrote:....... now the compiler is back to crashing.
A couple of things come to mind. You may have hardware problems, or your Mint installation may be so scrambled that a clean install is called for.

But of course, there's always a chance that it's your own code that's causing the problem.

User code not shown.
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Various [v 5.11 Linux Mint]

Post by chris319 »

OK Boris, it works now but ONLY IF the purebasic folder extracted from the .tgz file is located in the /home/user directory.
BorisTheOld
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Apr 24, 2012 5:08 pm
Location: Ontario, Canada

Re: Various [v 5.11 Linux Mint]

Post by BorisTheOld »

chris319 wrote:......the purebasic folder extracted from the .tgz file is located in the /home/user directory
That's the recommended place to put it.

From the INSTALL file: "the quickest method is to simply extract the purebasic archive somewhere and execute the PureBasic IDE".

Not the most enlightening instructions, but the resulting installation works well. :)
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Various [v 5.11 Linux Mint]

Post by chris319 »

Clearly, you can't just put it "somewhere".
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Various [v 5.11 Linux Mint]

Post by Fred »

You can put the purebasic folder anywere, as long your set the PUREBASIC_HOME env var and add the compilers/ path to your path (if using from commandline). If you double click on the 'purebasic' exe in the compiler directory, it should work as well without setting the paths.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Various [v 5.11 Linux Mint]

Post by chris319 »

The install file omits those details:
Quick Installation method:

If you do not need to use the compiler from the commandline, the quickest
method is to simply extract the purebasic archive somewhere and execute
the PureBasic IDE.

Type "./purebasic" from inside the "compilers" folder, or double click
on the "purebasic" executable file in your file manager.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Various [v 5.11 Linux Mint]

Post by Fred »

I don't understand what is missing.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Various [v 5.11 Linux Mint]

Post by chris319 »

Fred wrote:I don't understand what is missing.
as long your set the PUREBASIC_HOME env var and add the compilers/ path to your path (if using from commandline). If you double click on the 'purebasic' exe in the compiler directory, it should work as well without setting the paths.

sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk2.0-dev libgnomeprint2.2-dev unixodbc-dev libgnome2-dev libxine-dev libgnomeprintui2.2-dev libxxf86vm-dev
Post Reply