GLBasic forum

Main forum => Bug Reports => Topic started by: Enigma on 2011-Mar-10

Title: Errors when compiling to iOS, Pandora or WebOS
Post by: Enigma on 2011-Mar-10
Hi,

I'm getting errors if I compile to anything other than windows. If I compile for iPhone i get this.

arm-apple-darwin9-g++: error trying to exec 'cc1plus': execvp: No such file or directory
arm-apple-darwin9-g++: error trying to exec 'as': execvp: No such file or directory
arm-apple-darwin9-g++: error trying to exec 'cc1plus': execvp: No such file or directory
arm-apple-darwin9-g++: error trying to exec 'as': execvp: No such file or directory


If I compile to Pandora I get this.

R:/Compiler/platform/Pandora/bin/ld.exe: crtbegin.o: No such file: No such file or directory
collect2: ld returned 1 exit status


If I compile to WebOS I get this.

R:/Compiler/platform/webos/bin/ld.exe: crtbegin.o: No such file: No such file or directory
collect2: ld returned 1 exit status


I have tried uninstalling GLBasic and downloading it again and reinstalling it, but I have no idea why it's not working. I'm using Windows 7 32bit but that should make any difference should it? All I'm doing as a test it printing something to the screen. Any ideas?

Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: MrTAToad on 2011-Mar-10
That is weird - do you have MinGW installed ?
Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: Enigma on 2011-Mar-10
Yea I have that installed.
Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: Ian Price on 2011-Mar-10
Are you using the FULL version of GLBasic and not the demo?

You are getting errors, but is the app being built and can you use it? Does it state "Success" at the end of compiling?

I get (loads of) errors for WebOS, but I'm still able to run the compiled code on my Palm Pre.
Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: MrTAToad on 2011-Mar-10
The problem with MinGW should have been fixed.  Gernot was talking about the problem in the forums yesterday and I think he found the reason for it - I dont think it is MinGW related, but it might be worth uninstalling it and seeing if it solves the problem.
Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: Enigma on 2011-Mar-11
@Ian I'm using the full version. It doesn't state Success it says 1 Failed.

@MrTAToad I was talking with Gernot about this and he asked me to rename my MinGW folder, but I was still getting the errors, so I don't think it's that.

If I'm the only one getting this, I must be doing something wrong, but I have no idea what it is.
Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: MrTAToad on 2011-Mar-11
Ah, it was you who was discussing it.  I had thought it was fixed.

I'm going to install MinGW now to see if I too get the same problem
Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: Enigma on 2011-Mar-11
@Mr TAToad How did you get on? Did installing MinGW give you the same problems I have?
Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: MrTAToad on 2011-Mar-11
Yes, it seems fine with MinGW installed - tried it with iPhone, WebOS and Pandora, and everything compiles fine.

This is my system path :

Code (glbasic) Select
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\MinGW\bin
Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: Enigma on 2011-Mar-11
I have 2 user variable setup as well. These are.

GCC_EXEC_PREFIX
MinGW

They are set to C:\MinGW

Would it matter what version MinGW I have installed? I've currently got version 5.1.6 installed.
Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: MrTAToad on 2011-Mar-11
I'm using the latest version whatever that is :)
Title: Re: Errors when compiling to iOS, Pandora or WebOS
Post by: Enigma on 2011-Mar-14
It was MinGW that was causing the problem. I uninstalled it and removed the entry in the path and rebooted. I can now compile for iOS, Pandora and WebOS. :)

I was using version 5.1.6 of MinGW, but I believe it works with the latest version.