BaH.Fontconfig in 1.26

BlitzMax Forums/BlitzMax Programming/BaH.Fontconfig in 1.26

Proger(Posted 2007) [#1]
2 Brycey, hello, i'm use your almost all modules , and one module bugged in 1.26 - BaH.Fontconfig (MinGW 5.1.3). Please, help me!
-----------------------------
Building .drawtext
Compiling:.drawtext.bmx
flat assembler version 1.67.23 (142938 kilobytes memory)
3 passes, 5657 bytes.
Linking:.drawtext.debug.exe
C:/Program Files/BlitzMax/mod/bah.mod/fontconfig.mod/fontconfig.debug.win32.x86.a(fontconfig.bmx.debug.win32.x86.o)(code+0x23fd): undefined reference to `bbObjectNewDynamic'
Build Error: Failed to link C:/Program Files/BlitzMax/mod/bah.mod/fontconfig.mod/examples/.drawtext.debug.exe
Process complete
-----------------------------


Brucey(Posted 2007) [#2]
It sounds like you need to rebuild the module or the exe.

I think "bbObjectNewDynamic" is new to 1.26, and unless a module has been rebuilt on the upgrade to 1.26, it may show errors such as you see.

Might I also suggest you copy ar.exe and ld.exe from the MinGW/bin folder to your BlitzMax/bin folder, and rebuild all your modules. (Those files supplied with 1.26 are the old ones from MinGW 3.10, and will cause all kinds of problems when linking against code compiled with the new MinGW)


Proger(Posted 2007) [#3]
This is was before recompile with replaced ar.exe & ld.exe:
C:/Program Files/BlitzMax/mod/bah.mod/fontconfig.mod/fontconfig.debug.win32.x86.a(fontconfig.bmx.debug.win32.x86.o)(code+0x23fd): undefined reference to `bbObjectNewDynamic'

After recompile all modules with replaced ar.exe & ld.exe:
c:/Program Files/BlitzMax/mod/bah.mod/fontconfig.mod/fontconfig.debug.win32.x86.a(fontconfig.bmx.debug.win32.x86.o): undefined reference to `bbObjectNewDynamic'


Dreamora(Posted 2007) [#4]
did you modify the BMK as well?
Most of Bruceys module need a modified BMK


Proger(Posted 2007) [#5]
Yes, i'm use tweaked BMK from Brucey


sebas76(Posted 2007) [#6]
Hi Proger,

I have exactly the same problem, I can't compile with bmax 1.26 and fontconfig...
I hope a solution wil be found quickly.


Brucey(Posted 2007) [#7]
I've tracked it down to a bug with BlitzMax... but I have a workaround.
Was testing over the weekend, so hopefully will have a new release shortly.


sebas76(Posted 2007) [#8]
Thank you very much Brucey.
It will really help me because my project is actually stopped by this bugs.


Space_guy(Posted 2007) [#9]
Sounds great! Thanks alot!


sebas76(Posted 2007) [#10]
I hope this week-end, we will have new version of fontconfig for bmax 1.26 !
thank alot!


sebas76(Posted 2007) [#11]
Thank Brucey for new version !
But I have a problem to build the module.
It seems that libxml is needed to compile.
I will try to add libxml.


Space_guy(Posted 2007) [#12]
It works well! Thanks alot though i didnt realice that new config file had to be in the same folder as the application. After i copied the file it works wondefully again :)


sebas76(Posted 2007) [#13]
Don't forget to install libxml because now fontconfig requires it.
I need also to copy libxml directory in fontconfig directory to build it.


Brucey(Posted 2007) [#14]
You should be able to Import BaH.Libxml (assuming you have it installed).