Compiling error in freeimage.mod (MacOS X)
BlitzMax Forums/Brucey's Modules/Compiling error in freeimage.mod (MacOS X)
| ||
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. |
| ||
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. :-) |
| ||
So I am to understand that despite those crazy messages the module should just work problem-free |
| ||
Yep :-) You usually only need to worry when you see the word "error" somewhere. |
| ||
Okidoki.... Then I'll try this out tomorrow... Thanks for your time, anyway... |
| ||
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. |
| ||
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 :-) |
| ||
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... |
| ||
I think it was another thread that crashed, probably :-) Are you on Intel or PPC? |
| ||
Do the tests (freeimage.mod/tests) work okay? If they are crashing then there's obviously something really wrong. |
| ||
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? |
| ||
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 |
| ||
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. |
| ||
Project FrameWorked.... Now it loads... PNGLoader, BMPLoader and JPGLoader that did the evil here? |
| ||
One of PNGLoader or JPGLoader I would guess... |