It is currently Mon May 20, 2013 10:29 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Set up IDE to compile 32bit under 64bit Linux
PostPosted: Mon Feb 27, 2012 3:45 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 9:27 pm
Posts: 138
Location: Kent, UK
Hi,

Does anyone know how to configure the IDE to allow a program to be compiled as 32bit on a 64bit Linux.

Everything compiles as 64bit.

I already have the 32bit linux libraries installed as I used to run the 32bit Citrix ICA client.

I have added the compiler in the preferences but when I try to compile I get the following errors.

I guess its something to do with the shell environment but I don't know how that can be changed through the IDE.

Code:
--------------------------------------------------------------------------------
  Building 'Client'...
--------------------------------------------------------------------------------
Using compiler: PureBasic 4.60 (Linux - x86)
Including: NClientGui.pbi
404 lines compiled.
Creating executable file...
Linker error
/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 `Requester.a(InputRequester.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Requester.a(MessageRequester.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Requester.a(Requester.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Network.a(CloseNetworkConnection.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Network.a(Network.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Network.a(NetworkClientEvent.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Network.a(OpenNetworkConnection.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Network.a(ReadNetworkServerMemory.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Network.a(ReceiveNetworkData.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Network.a(ReceiveNetworkFile.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Network.a(SendNetworkData.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Network.a(SendNetworkFile.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `File.a(File.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `File.a(CreateFile.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `File.a(Lof.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `File.a(ReadData.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `File.a(WriteStringN.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `File.a(WriteBufferedData.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `File.a(ReadBufferedData.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Memory.a(AllocateMemory.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Memory.a(FreeMemory.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Memory.a(Memory.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Memory.a(PeekS.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Memory.a(PeekS2.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Font.a(Font.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Font.a(FontID.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Font.a(LoadFont.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `String.a(Len.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `String.a(RTrim.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `String.a(Space.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `String.a(Str.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `String.a(UCase.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `String.a(Val.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `String.a(CountString.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `String.a(StrU.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `String.a(StringField.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `String.a(StringByteLength.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `GadgetWeb.a(WebGadget.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(ResizeGadget.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(SetGadgetFont.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(SetGadgetText.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(SetGadgetColor.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(Gadget.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(EditorGadget.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(Gadget_FinishCreation.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(Gadget_GetFont.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(Gadget_SetFont.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(Gadget_SetColor.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(FreeGadget.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Misc.a(ElapsedMilliseconds.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Misc.a(Delay.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Window.a(OpenWindow.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Window.a(SetWindowTitle.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Window.a(WaitWindowEvent.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Window.a(Window.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Window.a(WindowHeight.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Window.a(WindowWidth.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Window.a(SetWindowState.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Event.a(AddEvent.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Event.a(Event.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Event.a(ClearAll.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `2DDrawing.a(2DDrawing.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Image.a(Image.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `ImagePluginBMP.a(BMPDecoder.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `ImagePlugin.a(ImageDecoder.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `GtkBase.a(GtkBase.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `GtkBase.a(GtkToBuffer.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Process.a(Process.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Process.a(ProgramFilename.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Process.a(ProgramParameter.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Cipher.a(Base64Decoder.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Cipher.a(Base64Encoder.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `FileSystem.a(DeleteFile.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `FileSystem.a(GetFilePart.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `FileSystem.a(GetPathPart.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/objectmanager.a(Enumerate.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/objectmanager.a(GetThreadMemory.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/objectmanager.a(Object.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/objectmanager.a(CleanAll.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/objectmanager.a(Block.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/objectmanager.a(CallOnce.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `SimpleList.a(Remove.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `SimpleList.a(Clear.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `SimpleList.a(SimpleList.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Console.a(Console.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Console.a(PrintN.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Console.a(InitConsole.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `Gadget.a(UseGadgetList.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/systembase.a(System.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/systembase.a(FastAllocateString_ASM.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringutility.a(StringToUTF8.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringutility.a(StringToFilename.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringutility.a(WideCharToMultiByte.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(AllocateString.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(AsciiToUTF8.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(CopyString.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(FastAllocateString.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(FastAllocateStringFree.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(FastStringCopy.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(GetOutputAddress.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(GetOutputBuffer.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(GetParameterIndex.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(InitString.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(ReduceStringSize.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(ResolveParameter.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(SetNullString.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(StringEqual.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(UTF8ToAscii.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(UTF8ToAsciiLength.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/stringmanager.a(FreeString_ASM.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/purebasic460_32/compilers/unicodefunctions.a(wcslen.o)' is incompatible with i386:x86-64 output
String.a(Str.o): In function `PB_Str':
Str.c:(.text+0xa8): undefined reference to `__umoddi3'
Str.c:(.text+0xcb): undefined reference to `__udivdi3'
String.a(StrU.o): In function `PB_StrU2':
StrU.c:(.text+0xb3): undefined reference to `__umoddi3'
StrU.c:(.text+0xd6): undefined reference to `__udivdi3'
collect2: ld returned 1 exit status

--------------------------------------------------------------------------------
  Building 'Server'...
--------------------------------------------------------------------------------
Using compiler: PureBasic 4.60 (Linux - x86)
Including: qDoc.pbi
Including: GetTextDiff.pbi
Including: GetBST.pbi
2780 lines compiled.
Creating executable file...
Linker error
/usr/bin/ld: skipping incompatible /opt/purebasic460_32/purelibraries/linux/libraries/libpbsqlite3.a when searching for -lpbsqlite3
/usr/bin/ld: cannot find -lpbsqlite3
collect2: ld returned 1 exit status

--------------------------------------------------------------------------------

  2 targets compiled with errors.


_________________
Regards

Andy

Image
Registered PB & PureVision User


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye