Compiling error in freeimage.mod (MacOS X)

BlitzMax Forums/Brucey's Modules/Compiling error in freeimage.mod (MacOS X)

Tricky(Posted 2008) [#1]
Archiving:freeimage.release.macos.ppc.a
libtool: file: /Users/tricrokra/BlitzMax/mod/BaH.mod/freeimage.mod/src/LibJPEG/.bmx/jquant2.c.release.macos.ppc.o has no symbols
libtool: file: /Users/tricrokra/BlitzMax/mod/BaH.mod/freeimage.mod/src/LibJPEG/.bmx/jquant1.c.release.macos.ppc.o has no symbols
libtool: file: /Users/tricrokra/BlitzMax/mod/BaH.mod/freeimage.mod/src/LibJPEG/.bmx/jidctflt.c.release.macos.ppc.o has no symbols
libtool: file: /Users/tricrokra/BlitzMax/mod/BaH.mod/freeimage.mod/src/LibJPEG/.bmx/jfdctflt.c.release.macos.ppc.o has no symbols
libtool: file: /Users/tricrokra/BlitzMax/mod/BaH.mod/freeimage.mod/src/LibMNG/.bmx/libmng_trace.c.release.macos.ppc.o has no symbols
libtool: file: /Users/tricrokra/BlitzMax/mod/BaH.mod/freeimage.mod/src/LibMNG/.bmx/libmng_chunk_xs.c.release.macos.ppc.o has no symbols
libtool: file: /Users/tricrokra/BlitzMax/mod/BaH.mod/freeimage.mod/src/FreeImage/.bmx/FreeImageC.c.release.macos.ppc.o has no symbols


I got these too in the debug version of the module.
I only got them so far in MacOS X (Tiger) for PPC
I compiled the same module in Windows Vista earlier today with no problems.


Brucey(Posted 2008) [#2]
Nothing to worry about. They are not errors, only the Mac compiler informing you that those objects compiled with nothing in them. That can happen under certain compiler directive conditions. :-)


Tricky(Posted 2008) [#3]
So I am to understand that despite those crazy messages the module should just work problem-free


Brucey(Posted 2008) [#4]
Yep :-)

You usually only need to worry when you see the word "error" somewhere.


Tricky(Posted 2008) [#5]
Okidoki....

Then I'll try this out tomorrow...

Thanks for your time, anyway...


Tricky(Posted 2008) [#6]
Test failed....

It loads PNG files just fine....
Any other format gets me a crash message from MacOS X.
(Even JPG, which is a default format of BlitzMax)


For example
Global P:TPixmap = LoadPixmap("MyPicture.pcx")

Causes a system error by MacOS...
Couldn't try this in Windows yet though...
I'll have to do that later.


Brucey(Posted 2008) [#7]
Can you post the stacktrace please? You can get it from that crash dialog that pops up.
Looks a bit like :
0   frydesigner.debug             	0x001c2b78 wxPGProperty::GetEditorClass() const + 36
1   frydesigner.debug             	0x001c8377 wxPropertyGrid::OnCustomEditorEvent(wxCommandEvent&) + 427
2   frydesigner.debug             	0x001c859a wxPropertyGrid::ProcessEvent(wxEvent&) + 54
3   frydesigner.debug             	0x00422d9c wxEvtHandler::ProcessEvent(wxEvent&) + 108
...
...


But not all of it please.. maybe up to 25 or so at the most (there's a count on the left). Thanks :-)


Tricky(Posted 2008) [#8]
Thread 0:
0   libSystem.B.dylib    	0x9004a6e8 syscall_thread_switch + 8
1   com.apple.Foundation 	0x92c0e580 +[NSThread sleepUntilDate:] + 152
2   com.apple.AppKit     	0x93831660 -[NSUIHeartBeat _heartBeatThread:] + 1100
3   com.apple.Foundation 	0x92bf6118 forkThreadForFunction + 108
4   libSystem.B.dylib    	0x9002bd08 _pthread_body + 96



These are all the lines it gives that matches the look of your example.

Is that helpful or do you need more info?
Anyway I'll leave the window open, so I can get you more data if you need it...


Brucey(Posted 2008) [#9]
I think it was another thread that crashed, probably :-)

Are you on Intel or PPC?


Brucey(Posted 2008) [#10]
Do the tests (freeimage.mod/tests) work okay?

If they are crashing then there's obviously something really wrong.


Brucey(Posted 2008) [#11]
On this here Intel Mac, I can change test_01.bmx to load other formats okay - eg. "logo.pcx" (there are one each of most formats to try).

Are you using any other modules?


Tricky(Posted 2008) [#12]
Are you on Intel or PPC?
PPC

I think it was another thread that crashed, probably :-)

I'll look, but this was the only thread I found...

Do the tests (freeimage.mod/tests) work okay?

All fine...



Are you using any other modules?

Frameworking my project is mostly the last thing that I do (using FrameWork Assistant).... Conflict with the original picture loader of BMax?
For the rest I only imported MaxGUI...

I'll try a FrameWork to see if the project still crashes...
Please wait


Brucey(Posted 2008) [#13]
Conflict with the original picture loader of BMax?

Quite possibly, since they will be sharing the same functions in places (eg. libpng), and if there are two versions incorporated in the binary it may not appreciate it very much.
Pub and BRL mods are included by default in a non-framework app, so that may very well be the problem.


Tricky(Posted 2008) [#14]
Project FrameWorked....
Now it loads...

PNGLoader, BMPLoader and JPGLoader that did the evil here?


Brucey(Posted 2008) [#15]
One of PNGLoader or JPGLoader I would guess...