Author Topic: Android wont compile anymore? Im got a compile+link ld.exe error.  (Read 2397 times)

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
Here is a issue, that prevent me cant do anything with Android at all, until im know what happens.

Im got this output now, and its before im have control:


Code: GLBasic [Select]

_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.037 SN:53b8d52f - 3D, NET
Wordcount:13726 commands
compile+link:
E:/Programmer/GLBasic_v14/Compiler/platform/android/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: cannot find -lGLBasicAndroid
collect2: ld returned 1 exit status
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 19.2 sec. Time: 11:18
Build: 0 succeeded.
*** 1 FAILED ***
 

So currectly Android not working at all now? You property need to send me anything per email, so im can get it working again with a least glbasic 14+ (its does works in glbasic 12). Hopefully im find out what happens. Currectly im do have copied anything from glbasic 12 from the android folder (the source code is still present in glbasic v12, so any update and fixes would effect newer glbasic versions throught).
« Last Edit: 2017-Aug-30 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1519
    • View Profile
Could it be a setting in the platform.ini file in GLB?
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
found the issue, something that newer got fixed:

The Compiling TEMP folder NEEDS to been cleaned on each compiling, before calling ld.exe. If you not do that, then its might fails on some platforms, like Android and iOS.

Gernot, please give me a option to clean that folder before in platform.ini etc cleantemp=yes. Then this issue would been fixed.
« Last Edit: 2017-Aug-30 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1519
    • View Profile
Good stuff! Another issue solved! :)
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
ook like there is some mix on version im have released. when done im will simply uploade the complete package with included SDK version (which im diddent add to my version) to avoid eventuelly confuction.

Now im have also changed few thing on the build.bat files, so update build version is now easier as well build tools used for code sign.

PS. Im do want to have a feature to clean the temp folder every time to make sure its dosent clash files from a another project, which might fail here. Only required for Android and iOS. Its could been a platform.ini feature.
« Last Edit: 2017-Aug-30 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10709
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Cleaning temp is quite an issue. I also am very afraid of removing a folder.
Can you use an IDE macro, please?

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
im could do that in the androidicons.exe, but that is after compiling. is its possible to run a exe BEFORE compiling? Then im could do that there to prefere.

Its a issue for both iOS and Android, when there is extra files that got mixed out and should compile in a empty folder. Etc its could also clean up the glbasic files im know its using without delete a folder.

There can also been a possible issue for MacOS for the future, which should also move to a xcode project. Currectly im cannot get it work in the newest system at all. For Linux, its also dont work, but here SteamOS is more important than rest. If can get it working on SteamOS, then its should works on the rest.

Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10709
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Take care of the inc file. Its written omly once before compiling.
For osx we should make a xcode project, but using the one cpp file I sent you, that combines all glb source files. It might not compile, so I have to change some things at this file.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
im checking out, and setup xcode using the multioply files. then you could see the change. im have do focus on two steam release and just have been vaccation..... but you right here. we could delete anything except inc. its most h and cpp files, not rest.

Im do normally delete the folder manual without any issues and required sometimes when im switch project.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.