Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » Upp 611-dev4 released
Re: Upp 611-dev4 released [message #6922 is a reply to message #6801] Tue, 05 December 2006 07:37 Go to previous messageGo to previous message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member
Hello again!

Since I now inhereted the OsX machine itself when my colleague quit, I thought I would check on how things are now. I managed to port it to OsX fine last time, but it had a few graphics glitches, but otherwise fully functional.

I have grabbed 611-dev4 to play with, here is a list of issues I have resolved, and moved on with:

Core/Core.h:

#ifdef flagOSX                      
        #define PLATFORM_OSX
        #define PLATFORM_POSIX
        #ifdef flagGUI      
                #define PLATFORM_X11
        #endif  
                            
        #ifdef flagTESTLEAKS
                #define TESTLEAKS         
        #endif                
                                               
#endif                                    


Draw/Draw.upp:

library(OSX) X11;

library(OSX !XLFD) "Xft fontconfig Xrender freetype expat";


All Makefile changes should be done in the ide, and re-export
the Makefile. But I do not have an old ide version yet.

Ide/Makefile:

Macro =  -DflagGUI -DflagGCC -DflagSHARED -DflagOSX -DflagPPC

CINC =  -I$(UPPDIR1) -I/usr/X11R6/include/
        -I/usr/X11R6/include/freetype2 -I/opt/local/include/

 OSX Does not like the 
 -Wl,O,2 => 
                -Wl,--start-group  \
                -Wl,--end-group
 just delete.

 and add:
                        -lfontconfig \
                        -lXrender \
                        -lfreetype \
                        -lpng 



Core/Stream.h:

        int       Get32le();
        int64     Get64le();

 Add semi-colon.


Core/Stream.cpp line 154:
 Defines *be() function again, when it should be *le().

 int  Stream::Get16le() {
 int Stream::Get32le() {
 int64 Stream::Get64le() {



Core/Stream.cpp: line 443-471

 #ifdef CPU_BE
 //       SwapOrder(data, count);
 #endif

 No such function.


Draw/Drawing.cpp: line 49-77

 #ifndef CPU_LITTLE_ENDIAN
 //               BltSwapEndian4(out, out, count);
 #endif
 No such function.


plugin/bmp/bmphdr.h
 #ifdef CPU_BIG_ENDIAD

 typo?

plugin/bmp/bmp.h:

 Add "::" to EndianSwap, and put a cast on it:
 ::EndianSwap((dword&) xxxxx);
 * many (12?)


CtrlLib/CtrlLib.upp:

 uses(OSX) PdfDraw;




What I am currently stuck at is:

/usr/bin/ld: Undefined symbols:
TTFReader::TTFStream::operator%(int&)
TTFReader::TTFStream::operator%(unsigned int&)
TTFReader::TTFStream::operator%(short&)
TTFReader::TTFStream::operator%(unsigned short&)
FreeDll(void*)
LoadDll(String&, char const* const*, void* const*)
vtable for BMPEncoder
DumpLanguage(int)
DumpAlign(int)
DumpColor(Color)
collect2: ld returned 1 exit status




 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Upp 611-dev3 released
Next Topic: Forum migrated
Goto Forum:
  


Current Time: Tue May 14 03:42:49 CEST 2024

Total time taken to generate the page: 0.03550 seconds