Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Mxebuild fix #235

Merged
merged 70 commits into from

2 participants

@donbright
Collaborator

This patch mostly consists of changes to make it easier to install/build dependencies on linux/BSD and get rid of the use of "/usr/local" and LD_LIBRARY_PATH in the instructions. There are also other minor changes for release like putting the version in the About box. These modifications were tested on 16 different linux/bsd systems.

Changes in cosmetic stuff:

  • Acknowledgements in About box hand-recoded in separate html file
  • OpenSCAD version is explicitly described in the About Box text
  • Help menu has 'H' shortcut

Change in copyright

  • Copyright explicitly assigned to C. Wolf + M. Kintel, to prevent Debian issues

Changes in basic build files

  • rewrite of Linux/BSD build section of README.md
  • release-common script improved for MXE. Linux has been tested to work as well
  • openscad.pro + *pri - minor fixes to eigen, flex, bison for BSD, a few bug fixes
  • RPATH used if dependencies are built, to avoid LD_LIBRARY_PATH issues

Changes in build instructions

Automatically try to fetch dependencies using package managers:

./scripts/uni-get-dependencies.sh

Automatically check versions and advise user:

./scripts/check-dependencies.sh

If there are missing/old dependencies, auto download and build

source ./scripts/setenv-unibuild.sh
./scripts/uni-build-dependencies.sh 

Changes in build dependency script

  • build script allows 'opencsg' and 'cgal' as arguments for single build
  • it wont re-build already built dependencies
  • 'out of tree' dependency builds are possible
  • experimental clang support on linux

Platforms tested:

Linux:
ubuntu 12.10 / x86
ubuntu 12.04 / x86
ubuntu 12.04 clang / x86
ubuntu 10.04 / x86
opensuse 12 / x86
mageira 2 / x86
debian 7 / amd64
debian 6 / x86
debian 6 / amd64
debian 5 / amd64
fedora 16 / ppc64
redhat 6.3 / amd64
altlinux simplylinux 6 / x86

Other:
debian hurd 7 / x86
freebsd 9.0 / x86
netbsd 6.0 / amd64

donbright added some commits
@donbright donbright fix bug where if $MXEDIR didn't already exist, build failed d57029a
@donbright donbright allow 'mingw32' option. dont use OSTYPE. fix docs. allow NUMCPU multi…
…core build
f07edc4
@donbright donbright fix tabs in svg.cc b641397
@donbright donbright actually assign copyright to Marius + Clifford, to eliminate any
problems with Debian.
0778a55
@donbright donbright clarify mingw32 usage in docs & in 'print usage' 406bf8a
@donbright donbright hand code html to remove qt cruft. makes it easier to change, and easier
to spit out to cmdline (eventually)
5624a0e
@donbright donbright tidy up html for QTextBrowser. add shortcut for 'help' 29c22aa
@donbright donbright move flattr image to right-hand side. fcaa481
@donbright donbright unify build scripts. introduce 'version checker' script. simplify ins…
…tructions
03ef1a2
@donbright donbright do not use OSTYPE, its a read-only operating system variable 2eb1842
@donbright donbright clarify README linux compilation 29c3699
@donbright donbright enable 'out of tree' call of dependency scripts. fix old ubuntu detec…
…tion.
f5cb2ec
@donbright donbright for out of tree, build under $PWD/openscad_deps not $PWD 67ba3cb
@donbright donbright update boost version. allow 'out of tree' dependency check. fix cmake…
… detection
bbcc2a0
@donbright donbright convert tabs to spaces. fix some BSD problems d80b067
@donbright donbright skip broken opengl testing under eigen3 10f16df
@donbright donbright change 'system' to 'found' in header of printed table f95fa0d
@donbright donbright improve qt version detection 2a612b5
@donbright donbright improve OpenCSG build to use qmake + work better standalone 208be52
@donbright donbright CGAL<4.0.2 has strange errors with clang. notify user explicitly to u…
…pgrade.
76923eb
@donbright donbright mention BSD. clarify language slightly 799bb20
@donbright donbright fixes for netbsd. clarify readme. 238cf85
@donbright donbright warn user about old local copies of libraries 89f3b31
@donbright donbright deal with hurd 596fe62
@donbright donbright fix bug detecting if CGAL was already downloaded. simplify some wording ced98a7
@donbright donbright clarify README for linux/bsd build, streamline 'get-depdendencies' sc…
…ript
0de7357
@donbright donbright download and build bison if needed. detect better on BSD 43e1d61
@donbright donbright dont rebuild dependencies that are already built/installed aeefc1f
@donbright donbright improve handling of clang for glew build b925540
@donbright donbright glew fixes for clang and for hurd 8b0ced0
@donbright donbright document 'out of tree' dependency build. fix opencsg on netbsd 1a399e7
@donbright donbright opensuse - get bison/flex b43cee7
@donbright donbright deal with black-on-white terminals. opencsg:dont copy lib/.libs if no…
…t there.
d8ecb14
@donbright donbright update README to show how to build only opencsg/cgal dependencies a75743f
@donbright donbright fix slight bug in cgal build ef72f6f
@donbright donbright revise ubuntu / debian detection, dont try to detect version. check l…
…ibgmp3-dev
bb31729
@donbright donbright remove debug line b1ecf35
@donbright donbright deal with situation where gcc doesnt exist. add mageia urpmi commands…
…. shorten os detect code
870f3dc
@donbright donbright add libglew-dev to mageia e3ea506
@donbright donbright NetBSD deps. also detect stray copies of libraries under /usr/local o…
…n linux
cdc4083
@donbright donbright stop apt-get from failing on unfound package names fac239c
@donbright donbright deal with unknown system type better. remove 'tested on' messages 0f72b11
@donbright donbright netbsd fixes f3cd856
@donbright donbright make glew min 1.5.4 (its OK). fix glew + gcc detection. more debuggin…
…g info.
e52787b
@donbright donbright dont test for git, curl. they arent strictly needed for build f1e2235
@donbright donbright fixes for Alt Linux 91cec82
@donbright donbright netbsd - ask user to verify X Sets are installed 2367db3
@donbright donbright more alt linux fixes 7be00e4
@donbright donbright CONFIG=skip_version_check should be += otherwise qmake has bizarre pr…
…oblems (bison doesnt get called??)
9deb7de
@donbright donbright detect netbsd / freebsd after linux not before, for bison/flex. ad45e8a
@donbright donbright improve Gcc version detection bdfbcdf
@donbright donbright fixing g++ version detection b39b2ba
@donbright donbright fix eigen detection bug i introduced yesterday 6693c3b
@donbright donbright path instructions should be / not ./ 3c9f36e
@donbright donbright fix clang build on glew. add some documentation. fb6d7f9
@donbright donbright Merge branch 'mxebuild_fix' of github.com:openscad/openscad into mxeb…
…uild_fix
51259e6
@donbright donbright a workaround for LD_LIBRARY_PATH having to be set every time you want to
run openscad if you build your own dependencies.
4cc6e2a
@donbright donbright prevent LD_LIBRARY_PATH problems on unix (not OSX) systems with
dependency builds, by using RPATH during build. remove the shell script
workaround that was added during the previous commit, as it is 'less
clean' a solution.
7afcc41
@donbright donbright make RPATH work on uni-build-dependencies with GLEW on 64 bit machines ed97940
@donbright donbright simplify README a little bit on build process 41269ec
@donbright donbright qmake-macx last detected on eigen. (unix=1 on osx). clarify comments. 2230b3c
@donbright donbright cleaning up b753e41
@donbright donbright cleanup 70d810b
@donbright donbright remove detection via package system, complicated + doesnt work well da9c943
@donbright donbright clarify comments 728f00d
@donbright donbright clarify comments and variable names in pretty print 413f22c
@donbright donbright clarify variable names. simplify. eeadeb2
@donbright donbright clarify comments 87f2d39
@donbright donbright clarify comments 158e760
@donbright donbright cleanup db9a78f
@kintel kintel merged commit 101510c into master
@donbright donbright referenced this pull request from a commit
@donbright donbright fix issue #235 6326aab
@donbright donbright referenced this pull request
Merged

Issue235 #663

@kintel kintel referenced this pull request from a commit
@kintel kintel Last #235 fix: Don't return empty PolySets, as they will be interpret…
…ed as 3D object later, causing a mixed 2D-3D error
c9df4c0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 3, 2012
  1. @donbright
  2. @donbright
  3. @donbright

    fix tabs in svg.cc

    donbright authored
  4. @donbright
  5. @donbright
Commits on Dec 4, 2012
  1. @donbright

    hand code html to remove qt cruft. makes it easier to change, and easier

    donbright authored
    to spit out to cmdline (eventually)
  2. @donbright
  3. @donbright
Commits on Dec 5, 2012
  1. @donbright
Commits on Dec 20, 2012
  1. @donbright
  2. @donbright
  3. @donbright
  4. @donbright
  5. @donbright
  6. @donbright
  7. @donbright
  8. @donbright
  9. @donbright

    improve qt version detection

    donbright authored
  10. @donbright
  11. @donbright
  12. @donbright
  13. @donbright
  14. @donbright
Commits on Dec 21, 2012
  1. @donbright

    deal with hurd

    donbright authored
  2. @donbright
  3. @donbright
  4. @donbright
  5. @donbright
  6. @donbright
  7. @donbright
  8. @donbright
  9. @donbright

    opensuse - get bison/flex

    donbright authored
  10. @donbright
  11. @donbright
  12. @donbright

    fix slight bug in cgal build

    donbright authored
  13. @donbright
  14. @donbright

    remove debug line

    donbright authored
  15. @donbright
  16. @donbright

    add libglew-dev to mageia

    donbright authored
  17. @donbright
  18. @donbright
  19. @donbright
Commits on Dec 23, 2012
  1. @donbright

    netbsd fixes

    donbright authored
  2. @donbright
  3. @donbright
  4. @donbright

    fixes for Alt Linux

    donbright authored
  5. @donbright
  6. @donbright

    more alt linux fixes

    donbright authored
  7. @donbright

    CONFIG=skip_version_check should be += otherwise qmake has bizarre pr…

    donbright authored
    …oblems (bison doesnt get called??)
  8. @donbright
Commits on Dec 25, 2012
  1. @donbright
  2. @donbright

    fixing g++ version detection

    donbright authored
  3. @donbright
  4. @donbright
  5. @donbright
  6. @donbright
  7. @donbright

    a workaround for LD_LIBRARY_PATH having to be set every time you want to

    donbright authored
    run openscad if you build your own dependencies.
Commits on Dec 29, 2012
  1. @donbright

    prevent LD_LIBRARY_PATH problems on unix (not OSX) systems with

    donbright authored
    dependency builds, by using RPATH during build. remove the shell script
    workaround that was added during the previous commit, as it is 'less
    clean' a solution.
  2. @donbright
  3. @donbright
  4. @donbright
  5. @donbright

    cleaning up

    donbright authored
  6. @donbright

    cleanup

    donbright authored
  7. @donbright
  8. @donbright

    clarify comments

    donbright authored
Commits on Dec 30, 2012
  1. @donbright
  2. @donbright
  3. @donbright

    clarify comments

    donbright authored
  4. @donbright

    clarify comments

    donbright authored
  5. @donbright

    cleanup

    donbright authored
Something went wrong with that request. Please try again.