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 » Developing U++ » Mac OS » if you want to build theide 8227 for X11 on Mavericks - works now! (Changes and files)
if you want to build theide 8227 for X11 on Mavericks - works now! [message #44897] Sun, 19 July 2015 02:17 Go to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Hi, at last I have my OSX machines working...
So, if you want to build theide 8227 for X11 on Mavericks.
Installation:
1. Install XCode 6.2
2. Install Macports
3. Install XQuartz
4. Install zlib, glib2, libpng, libnotify, freetype, Xft2, atk, gtk2 via sudo port install [name]
5. Download upp stable 8227 for linux (tested).
6. Replace the Makefile (attached here)

Changes in sources needed:
1. Core/TimeDate.cpp
bool SetSysTime(Time time)
{
#ifdef PLATFORM_POSIX
	struct tm      tmp_time;
	tmp_time.tm_sec  = time.second;
	tmp_time.tm_min  = time.minute;
	tmp_time.tm_hour = time.hour;
	tmp_time.tm_mday = time.day;
	tmp_time.tm_mon  = time.month-1;
	tmp_time.tm_year = time.year-1900;
	time_t raw_time  = mktime(&tmp_time);

	struct timespec sys_time;
	sys_time.tv_sec  = raw_time;
	sys_time.tv_nsec = 0;

#ifdef __MACH__
#include <sys/time.h>
 
     localtime(&raw_time);  //aris002 BUG TMP!!! HACK to compile!
    return true;

#else
	int result = clock_settime(CLOCK_REALTIME, &sys_time);
	return (result == 0);
#endif
#endif


2. plugin/ndisasm/lib/inttypes.h
/* long is 64 bits */
#ifdef __APPLE__
    typedef long long		int64_t;
    typedef unsigned long long		uint64_t;
#else
    typedef signed long		int64_t;
    typedef unsigned long		uint64_t;
#endif


3.plugin/ndisasm/lib/compiler.h
Need to test on other versions than Mavericks
but now just comment:
//#ifdef __APPLE__
//#define _FORTIFY_SOURCE 0  //aris002 - in the future evaluate how unsafe are the safe funtions and vice versa
//#endif


[At the moment theide runs but can't build. Need to have a look into *.bm and ide/Builders/... ]
Edited: It builds now! please find the files below:
1. GccBuilder.icpp
2. CLANG.bm
3. Core.upp

Also, need sort out SetSysTime. Ideas?
Other ideas? Anyone to test?
P.S. Fingers crossed, I will have a few weeks to work upp mac OSX and cocoa.
  • Attachment: Makefile.zip
    (Size: 31.00KB, Downloaded 434 times)

[Updated on: Tue, 21 July 2015 02:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mac uppcocoa ide preview pre-beta download
Next Topic: How can I do with theide use -framework ApplicationServices in mac osx
Goto Forum:
  


Current Time: Fri Apr 26 07:49:13 CEST 2024

Total time taken to generate the page: 0.05008 seconds