However I'm starting up on Linux, so I prefered just to stick with 32bits for now
ubuntu 64 bits and pureBasic
got no errors on compiling with 4.2 - but segmentation fault when running a print hello program
******************************************
PureBasic 4.20 (Linux - x86)
******************************************
Loading external modules...
Starting compilation...
2 lines processed.
Creating the executable.
Error: Linker
/usr/bin/ld: warning: i386 architecture of input file `purebasic.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/share/purebasic/compilers/debugger.a(Debugger.o)' is incompatible with i386:x86-64 output
[root@164661-app4 test]# more test.pb
print ("hello");
[root@164661-app4 test]#
******************************************
PureBasic 4.20 (Linux - x86)
******************************************
Loading external modules...
Starting compilation...
2 lines processed.
Creating the executable.
Error: Linker
/usr/bin/ld: warning: i386 architecture of input file `purebasic.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/usr/share/purebasic/compilers/debugger.a(Debugger.o)' is incompatible with i386:x86-64 output
[root@164661-app4 test]# more test.pb
print ("hello");
[root@164661-app4 test]#
I also get a compile time error.
I'm running Ubuntu Hardy 8.04 64-bit on an Intel Core2 Duo CPU and PureBasic 4.20 (Linux - x86).
I get the following error messages:
/usr/bin/ld: i386 architecture of input file 'purebasic.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file '/home/rick/bin/purebasic/compilers/debugger.a(Debugger.o)' is incompatible with i386:x86-64 output
It's my understanding virtually all CPUs now, on newer motherboards, are 64-bit. Even if they have a 32-bit OS like Windoze installed. With Linux, it just made sense to use the OS matched with the CPU.
If there is any workaround someone knows about, if so, it would be appreciated. This is a complete show-stopper on using Purebasic on my Ubuntu desktop.
I'm running Ubuntu Hardy 8.04 64-bit on an Intel Core2 Duo CPU and PureBasic 4.20 (Linux - x86).
I get the following error messages:
/usr/bin/ld: i386 architecture of input file 'purebasic.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file '/home/rick/bin/purebasic/compilers/debugger.a(Debugger.o)' is incompatible with i386:x86-64 output
It's my understanding virtually all CPUs now, on newer motherboards, are 64-bit. Even if they have a 32-bit OS like Windoze installed. With Linux, it just made sense to use the OS matched with the CPU.
If there is any workaround someone knows about, if so, it would be appreciated. This is a complete show-stopper on using Purebasic on my Ubuntu desktop.
hmm! i run purebasic via linux32 from commandline. works at least in console if you have the 32 bit libs etc on it. euh i try to resolve what i did first on a fresh install.
Was a bit of a fondle, but then again which programmer doesent ?
Was a bit of a fondle, but then again which programmer doesent ?
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!
"
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!
Good idea. I think I will set up another VirtualBox on Ubuntu Hardy and install the 32-bit version of Ubuntu into it. That way it keeps my 64-bit installation clean. It also will isolate any testing I want to do so I don't muck up my stability. I did this with WindowsXP and works slick. It lets me run both WindowsXP applications (Adobe CS3) and Linux applications at the same time. I'll add 32-bit Linux to the mix. I knew I bought 8 gig of RAM for a reasonmoogle wrote:the only workaround is to use ubuntu x32 to compile and code it. it will still work on the x64 edition after. it's the only way for now until fred fixes it.
I found doing this did not produce the results I expected. When I used the ODBC database function, and tested it under 32-bit Ubuntu Hardy 8.04, it worked. When I copied the executable over to my 64-bit Ubuntu Hardy 8.04, it crashed with an error that the told me it was calling the 64-bit ODBC system library with a 32-bit class. I had to install 32-bit ODBC database drivers into my 64-bit system and then edit my odbc config files to add a second definition of the database name with a 32 added to it, pointing to the 32-bit libraries. Then it worked.moogle wrote:the only workaround is to use ubuntu x32 to compile and code it. it will still work on the x64 edition after. it's the only way for now until fred fixes it.
Gotcha's like this are a distraction from me focusing on designing and coding my application. It sure would be nice to have a PureBasic that worked clean in a 64-bit environment.
-
sayanmaster
- New User

- Posts: 7
- Joined: Thu Jun 14, 2007 9:22 am
- Location: France
Hello,
I successfully compiled with purebasic 4.30 on my ubuntu x64 box.
I installed every lib32*-dev packages availables from synaptic and followed this procedure http://blog.loxal.net/2008/09/how-to-fi ... tible.html.
Hope it helps.
Edit: Sadly it only works for console applications :/
I successfully compiled with purebasic 4.30 on my ubuntu x64 box.
I installed every lib32*-dev packages availables from synaptic and followed this procedure http://blog.loxal.net/2008/09/how-to-fi ... tible.html.
Hope it helps.
Edit: Sadly it only works for console applications :/
It still doesn't work here.
Now switching from Ubuntu 8.10 64-Bit to Debian Lenny 32-Bit, just waiting for finish of the torrent downloads, more than 12GB Data... ^^ Somehow only because I want to try out Debian and because PureBasic doesn't work with 64-Bit Version (which doesn't improve so much the speed of my system) and I am slowly getting fed up with C/C++!
Now switching from Ubuntu 8.10 64-Bit to Debian Lenny 32-Bit, just waiting for finish of the torrent downloads, more than 12GB Data... ^^ Somehow only because I want to try out Debian and because PureBasic doesn't work with 64-Bit Version (which doesn't improve so much the speed of my system) and I am slowly getting fed up with C/C++!
best regards,
Violet
Violet




