Author Topic: iPhone Console Version  (Read 6777 times)

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
iPhone Console Version
« on: 2010-Apr-23 »
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)

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: iPhone Console Version
« Reply #1 on: 2010-Apr-23 »
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

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Re: iPhone Console Version
« Reply #2 on: 2010-Apr-23 »
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)

Offline Kuron

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
Re: iPhone Console Version
« Reply #3 on: 2010-Apr-23 »
Is 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.

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: iPhone Console Version
« Reply #4 on: 2010-Apr-23 »
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

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Re: iPhone Console Version
« Reply #5 on: 2010-Apr-23 »
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)

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: iPhone Console Version
« Reply #6 on: 2010-Apr-23 »
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

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Re: iPhone Console Version
« Reply #7 on: 2010-Apr-24 »
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)

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Re: iPhone Console Version
« Reply #8 on: 2010-Apr-25 »
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)

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: iPhone Console Version
« Reply #9 on: 2010-Apr-25 »
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

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Re: iPhone Console Version
« Reply #10 on: 2010-Apr-25 »
Thanks, nice tip, trying it now.  ;)

Edit: Little problem encountered, waiting for an update from the authors site.
« Last Edit: 2010-Apr-25 by 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)

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Re: iPhone Console Version
« Reply #11 on: 2010-Apr-26 »
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)

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Re: iPhone Console Version
« Reply #12 on: 2010-Apr-26 »
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

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Re: iPhone Console Version
« Reply #13 on: 2010-Apr-26 »
;) hopefully!
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)

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Re: iPhone Console Version
« Reply #14 on: 2010-Apr-28 »
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)