iPhone Console Version

Previous topic - Next topic

bigsofty

Is it possible to have a "console only" version for the iPhone?

That is, a version. that has...

No attached graphical lib(or openGL context).
No sound lib.
etc...

Just the GLB to 'C' runtime.

Think of it as a Windows Console compile but for the iPhone.

This would allow the use of 3D party iPhone libraries with GLB, for sound, graphics ect... without getting linking errors/system errors.

Cheers,


Ian
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

trucidare

that wouldnÃ,´t be glbasic anymore.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

bigsofty

You could argue the same for the "console only" executables that GLB can compile for windows?

My problem is this...

I have tried to attach another, 3rd party graphical library to GLBasic, when linking is being done by the GLB XCode project and the new framework that is introduced by me, duplicate definitions errors within the .o object code within the .a static libraries that GLBasic produces cause the compile to fail. I have no control of the compilation and inclusion of the various elements that make up the .a files (and I don't want to remove them carelessly). If another method can be found to avoid duplicate definition errors when attempting to use another 3rd party iPhone lib together with GLB, then I am all ears.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kuron

Quote from: bigsofty on 2010-Apr-23Is it possible to have a "console only" version for the iPhone?

It would be hard to implement a console mode on a platform that does not have console capabilities.  Not to mention incurring the wrath of Apple.

trucidare

what is double defined?
paste the output.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

bigsofty

Code (glbasic) Select
ld: duplicate symbol alBufferDataStaticProc(int, int, void*, int, int)in /Volumes/Coding Folder/Projects/GLBasic/medsim3/XCode/GLBasic/Lib/libX3DLib.a(audiomanager.o) and /Volumes/Coding Folder/Projects/GLBasic/medsim3/XCode/GLBasic/Lib/libGLBasiciPhone-egl.a(iPhoneSoundEngine.o)
    collect2: ld returned 1 exit status
    Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1


Unfortunately I dont have access to the internal builds of either, "audiomanager.o" or "iPhoneSoundEngine.o"
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

trucidare

ask kittie for renaming this function.
or compile your engine new with different name

or undef in main whatever.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

bigsofty

OK, thanks for that Truci, I've gotten the original author to rename the call.

I've got the rest of the weekend to try this out before Gernot comes back on Monday.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

bigsofty

OK, with a little(lot of) patience, I've finally gotten the external lib to link and compile into my GLB XCode project, only problem is that the initialisation of the new 3D Lib needs access to the Application Delegate file, which GLB does not seem to use?

Any suggestions?

P.S. Please feel free to move this thread to a more appropriate forum.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

trucidare

yourDelegate *myappDelegate = [[UIApplication sharedApplication]delegate];

have fun
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

bigsofty

#10
Thanks, nice tip, trying it now.  ;)

Edit: Little problem encountered, waiting for an update from the authors site.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

bigsofty

Well, I have this working, in a basic form.

I would still like the ability to say "GLBasic, don't use initialise OpenGLES" or "GLBasic, don't initialise OpenAL", as I now have two engines running at  once, which is a little uncomfortable to say the least.

Once I get the full headers converted and all of the bugs ironed out, I'll publish them here.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

codegit

If this is the 3d lib I think it is, then this will be fantastic add on for GLBASIC.  8)
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

bigsofty

Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

bigsofty

Bah, run into sound problems now, the new OpenAL library clashes with the GLB one, I would like to re-iterate my request for a 'basic' version of GLBasic that only translates from Basic to C, without the various addon multimedia libraries. It would make the option of adding libraries to GLB much easier.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)