Page 1 of 4

FIXED: Exemples do not run

PostPosted: Sun Mar 14, 2010 2:10 pm
by RzwoDzwo
Hello OB-Community,

even when i load an Exemple, i get an Error Message.

E.g. : i load "simple hello world", run and get this Message : Exception NSInvalidArgumentException.
launch path not accessible

Exception in
file 'global.NSObject'
at 'Build2'
line '1394'
callStackSymbols:
(
0 CoreFoundation 0x9097340a __raiseError + 410
1 libobjc.A.dylib 0x97ce3509 objc_exception_throw + 56
2 CoreFoundation 0x90973138 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x909730aa +[NSException raise:format:] + 58
4 Foundation 0x92f0a8d1 -[NSConcreteTask launchWithDictionary:] + 487
5 Foundation 0x92f0a6e4 -[NSConcreteTask launch] + 41
6 Objective-Basic 0x00016161 _Z4RUN2P11objc_objectS0_ + 340
7 Objective-Basic 0x0005788b -[global Build2:] + 11452
8 Objective-Basic 0x00053af5 -[global _thBuild] + 137
9 Foundation 0x92eb88d8 -[NSThread main] + 45
10 Foundation 0x92eb8888 __NSThread__main__ + 1499
11 libSystem.B.dylib 0x98bbffbd _pthread_start + 345
12 libSystem.B.dylib 0x98bbfe42 thread_start + 34
)




if i run "calculator" i get this Message : Internal Error. Please report back to us. /Volumes/Programme/ObjectiveBasic.app/Contents/MacOS/Compiler/objc_compile.sh: line 55: g++: command not found

Cheers
r2d2

Re: Exemples do not run

PostPosted: Sun Mar 14, 2010 8:49 pm
by Slowdown
Latest version of Objb ? (feb 24 2010)
Running OS X 10.6.x ?
and last but not least Xcode installed ?

Re: Exemples do not run

PostPosted: Sun Mar 14, 2010 10:59 pm
by RzwoDzwo
to all three questions: yes

Re: Exemples do not run

PostPosted: Mon Mar 15, 2010 8:30 am
by berndnoetscher
RzwoDzwo wrote:to all three questions: yes


g++ seems not to work as expected. Could you please the Mac OS X application Terminal.app and type "g++"?
Does it show a message like "no input files"?

Re: Exemples do not run

PostPosted: Mon Mar 15, 2010 11:32 am
by RzwoDzwo
i get "command not found", maybe i remove important applications and / or files!? What's the complete requirement of Objective-Basic?

Re: Exemples do not run

PostPosted: Mon Mar 15, 2010 8:44 pm
by RzwoDzwo
What is g++?

Re: Exemples do not run

PostPosted: Mon Mar 15, 2010 9:21 pm
by Slowdown
Hi RzwoDzwo,

g++ is the compiler.
maybe i remove important applications and / or files!

My guess is that you removed to much.
What's the complete requirement of Objective-Basic?

Think the best way to go is to reinstall Xcode to be save.

Re: Exemples do not run

PostPosted: Mon Mar 15, 2010 10:06 pm
by RzwoDzwo
hi r2d2

gcc is needed and it is in the following folder on my system.

/usr/bin/g++

The "env" command shows some path entries as well.
Maybe this is the problem.

Another try: open xcode, select new project and let's create a new project with some files and compile them with xcode. Does it work?

Where is xcode located on your Mac?

/Developer/Applications/Xcode.app

Re: Exemples do not run

PostPosted: Tue Mar 16, 2010 9:13 pm
by RzwoDzwo
RzwoDzwo wrote:hi r2d2

gcc is needed and it is in the following folder on my system.

/usr/bin/g++

The "env" command shows some path entries as well.
Maybe this is the problem.

Another try: open xcode, select new project and let's create a new project with some files and compile them with xcode. Does it work?

Where is xcode located on your Mac?

/Developer/Applications/Xcode.app



i did not posted this Reply, why is this Reply posted with my UserName? But, thanx anyway for the usefully informations, i will check it and tell you the result.

Thanks in advance.

Re: Exemples do not run

PostPosted: Tue Mar 16, 2010 9:38 pm
by Slowdown
/usr/bin/g++

is correct.
Where is xcode located on your Mac?
/Developer/Applications/Xcode.app

is correct.
my folder,
xcode.tiff
xcode.tiff (29.07 KiB) Viewed 1880 times

Another try: open xcode, select new project and let's create a new project with some files and compile them with xcode. Does it work?

Why would you do this ?
If you have installed developer tools from your DVD (Xcode, interface builder, ect, ect)
and you have placed Objb in your applications folder everything must be working fine.