Page 1 of 1

Various [v 5.11 Linux Mint]

Posted: Mon Aug 12, 2013 11:29 pm
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.

Re: Various [v 5.11 Linux Mint]

Posted: Tue Aug 13, 2013 12:53 am
by chris319
Downloaded and installed v5.20 beta 9. Compiler just crashes.

Re: Various [v 5.11 Linux Mint]

Posted: Tue Aug 13, 2013 2:40 am
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

Re: Various [v 5.11 Linux Mint]

Posted: Tue Aug 13, 2013 3:41 pm
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

Re: Various [v 5.11 Linux Mint]

Posted: Tue Aug 13, 2013 4:13 pm
by chris319
Well Boris, thanks -- it worked for about five minutes, now the compiler is back to crashing.

Re: Various [v 5.11 Linux Mint]

Posted: Tue Aug 13, 2013 8:38 pm
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.

Re: Various [v 5.11 Linux Mint]

Posted: Tue Aug 13, 2013 9:11 pm
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.

Re: Various [v 5.11 Linux Mint]

Posted: Wed Aug 14, 2013 1:28 am
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. :)

Re: Various [v 5.11 Linux Mint]

Posted: Wed Aug 14, 2013 1:39 am
by chris319
Clearly, you can't just put it "somewhere".

Re: Various [v 5.11 Linux Mint]

Posted: Wed Aug 14, 2013 11:04 am
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.

Re: Various [v 5.11 Linux Mint]

Posted: Wed Aug 14, 2013 1:02 pm
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.

Re: Various [v 5.11 Linux Mint]

Posted: Wed Aug 14, 2013 1:19 pm
by Fred
I don't understand what is missing.

Re: Various [v 5.11 Linux Mint]

Posted: Wed Aug 14, 2013 10:51 pm
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