Re: dev environment setup and usage
Posted by
ravas on
Feb 06, 2016; 8:07am
URL: https://forum.librecad.org/dev-environment-setup-and-usage-tp5712883p5712911.html
I got my new iMac today.
Here was what I did:
- downloaded 2.0.8 (yosemite dmg)
-- installed and opened with no problems
- installed macports and tried "sudo port install librecad"
-- it failed after a while with:
---> Building LibreCAD
---> Staging LibreCAD into destroot
Error: org.macports.destroot for port LibreCAD returned: command execution failed
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cad_LibreCAD/LibreCAD/work/LibreCAD-2.0.8'
:debug:build Privilege de-escalation not attempted as not running as root.
:debug:destroot destroot phase started at Fri Feb 5 16:32:41 PST 2016
:notice:destroot ---> Staging LibreCAD into destroot
:debug:destroot Can't run destroot under sudo without elevated privileges (due to mtree).
:debug:destroot Run destroot without sudo to avoid root privileges.
:debug:destroot Going to escalate privileges back to root.
- downloaded qt 5.5.1 from the Qt website and installed with no problems
-- however it complained about needing Xcode
- downloaded the latest Xcode beta (5gb :O) and installed with no problems
- then in the terminal:
$ sudo xcode-select -switch /Applications/Xcode-beta.app/Contents/Developer
$ sudo xcodebuild -license
- built librecad in Qt creator in release mode using clang and all the defaults... with 50k+ non critical issues
-- when the program launched after building it seemed to get stuck on the loading screen
however, behind the loading screen was a dialog claiming that "plugins/plugins.pro is not a valid Mach-O binary" and then the same for plugins.sln and README.plugins
-- showing then hiding a window will also hide the loading screen so you can see those dialogs
More research is needed;
and I'll try gcc and the building instructions on the wiki tomorrow... needing sleep.