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 next 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 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 #44905 is a reply to message #44897] Mon, 20 July 2015 08:54 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14183
Registered: November 2005
Ultimate Member
Wow, welcome back!

As for changes, both SetSysTime and ndisasm are of no consequence for theide (ndisasm is only used when debugging Microsoft C++ compiler output).

What are problems with building?

Mirek
Re: if you want to build theide 8227 for X11 on Mavericks - works but need help [message #44906 is a reply to message #44905] Mon, 20 July 2015 12:12 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
mirek wrote on Mon, 20 July 2015 07:54
Wow, welcome back!

Mirek

Thanks a lot for the welcome! And sorry for the long absence...
There have been several problems with building. No 1 - quotes in linking library paths. I will post the rest later (now writing from my phone)
Re: if you want to build theide 8227 for X11 on Mavericks - works but need help [message #44912 is a reply to message #44905] Tue, 21 July 2015 02:11 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
CLANG.BM file for OSX11
  • Attachment: CLANG.bm.zip
    (Size: 0.90KB, Downloaded 389 times)
Re: if you want to build theide 8227 for X11 on Mavericks - works but need help [message #44913 is a reply to message #44905] Tue, 21 July 2015 02:20 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Core.upp requires some changes:
library(LINUX) "pthread dl rt";

library(BSD !OSX11) "pthread rt execinfo";

library(OSX) pthread;


  • Attachment: Core.upp.zip
    (Size: 1.67KB, Downloaded 377 times)
Re: if you want to build theide 8227 for X11 on Mavericks - works but need help [message #44919 is a reply to message #44913] Tue, 21 July 2015 15:34 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1204
Registered: March 2006
Location: Italy
Senior Contributor
Hi Aris!

happy to "see" you again Smile
It depends by your efforts on porting U++ on MAC if one day I'll buy one.

Luigi
Re: if you want to build theide 8227 for X11 on Mavericks - works but need help [message #44921 is a reply to message #44913] Tue, 21 July 2015 16:09 Go to previous messageGo to next message
Tom1
Messages: 1286
Registered: March 2007
Senior Contributor
Hi Aris,

Nice to have you back on the Upp forum!

Best regards,

Tom
Re: if you want to build theide 8227 for X11 on Mavericks - works but need help [message #44924 is a reply to message #44919] Wed, 22 July 2015 00:55 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
forlano wrote on Tue, 21 July 2015 14:34
Hi Aris!

happy to "see" you again Smile
It depends by your efforts on porting U++ on MAC if one day I'll buy one.

Luigi


Thanks, Luigi! You can't imagine how much I missed you all!
Aris
Re: if you want to build theide 8227 for X11 on Mavericks - works but need help [message #44925 is a reply to message #44921] Wed, 22 July 2015 00:58 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Tom1 wrote on Tue, 21 July 2015 15:09
Hi Aris,

Nice to have you back on the Upp forum!

Best regards,

Tom


I really appreciate your words, Tom. Thanks!
Aris
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 Go to previous message
Klugier is currently offline  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.
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: Mon Dec 30 17:59:08 CET 2024

Total time taken to generate the page: 0.02882 seconds