|
|
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 |
|
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 467 times)
[Updated on: Tue, 21 July 2015 02:27] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: if you want to build theide 8227 for X11 on Mavericks - works but need help [message #44934 is a reply to message #44925] |
Sat, 25 July 2015 00:46 |
|
Klugier
Messages: 1093 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Aris,
You can handle your Mac OS X issues on redmine. I have create special "Mac OS X" category to distinguish this issues. It is definitely better way to track your patches, than putting it on this forum. You will know what is fixed and what should be fixed in the future. Of course you can put instructions here. It can be more attractive for community than redmine.
I wish you successes on your way to port upp on Mac OS X. It would be great thing if upp will be full support on Mac without X11. Good luck!
Sincerely,
Klugier
U++ - one framework to rule them all.
|
|
|
Goto Forum:
Current Time: Mon Dec 30 17:59:08 CET 2024
Total time taken to generate the page: 0.02882 seconds
|
|
|