Package Details: solvespace-git r1304.bc3e09e-1

Git Clone URL: https://aur.archlinux.org/solvespace-git.git (read-only, click to copy)
Package Base: solvespace-git
Description: SOLVESPACE is a parametric 3d CAD program.
Upstream URL: http://solvespace.com/
Licenses: GPL3
Conflicts: solvespace
Provides: solvespace
Submitter: keenerd
Maintainer: keenerd
Last Packager: keenerd
Votes: 8
Popularity: 0.116276
First Submitted: 2015-08-09 17:08
Last Updated: 2019-05-09 01:19

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

keenerd commented on 2016-10-09 14:34

It builds for me with the test. I've added a oneliner in prepare() you can uncomment though.

And it runs fine with glew 2.0.0 here. Can you be more specific about that error?

shutdown-hnow commented on 2016-10-09 13:40

I could only get it to compile after disabling the ttf_text tests, as they failed (maybe because of differing font rendering settings). If you have the same problem you can use the following patch:

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 40b7436..09909d8 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -52,7 +52,7 @@ set(testsuite_SOURCES
request/cubic_periodic/test.cpp
request/datum_point/test.cpp
request/line_segment/test.cpp
- request/ttf_text/test.cpp)
+ )

add_executable(solvespace_testsuite
${testsuite_SOURCES})

Save it as disable-ttf_text-tests.patch in the directory where the PKGBUILD resides and change the following lines in the PKGBUILD:
source=('solvespace-git::git+https://github.com/solvespace/solvespace.git' 'disable-ttf_text-tests.patch')
sha256sums=('SKIP' 'SKIP')

Now add the following line to the prepare() function:
git apply "${srcdir}"/disable-ttf_text-tests.patch

And it should compile.

I also had to install glew1.13 from the AUR before it would run, so this should be added as a dependency instead of glew, which is now at 2.0.0 in the main repository.

tesfabpel commented on 2016-06-07 06:35

After some testing,
this is my PKGBUILD...
it seems to work :)

Please test again anyway...

https://gist.github.com/tesfabpel/a8a4a1e3a41f53788b0fe493a2ad827f

BTW, why doesn't it point to the solvespace/solvespace repo?
Thanks.

tesfabpel commented on 2016-06-06 19:54

I tried adding this:
prepare() {
cd "$pkgname"
git submodule update --init extlib/libdxfrw
}

And it compiles, but then pacman gives this error:
/usr/lib64 is already in the filesystem

tgirod commented on 2016-05-18 09:56

to compile, it is necessary to update the submodules, but I'm not sure where this should go.

git submodule update --init extlib/libdxfrw

keenerd commented on 2015-11-28 06:58

Looks like the project switched from fltk to gtkmm.

tgirod commented on 2015-11-26 19:22

then it means something is missing in the makedepends ...

keenerd commented on 2015-10-20 12:47

Builds fine here, without that patch.

tgirod commented on 2015-10-17 20:59

Didn't work for me. I had to update the dependencies based on the README and patched the makefile to add -std=c++11 (I will send the patch upstream ASAP)

---8<--- PKGBUILD

pkgname='solvespace-git'
pkgver=r581.0159a87
pkgrel=1
pkgdesc="SOLVESPACE is a parametric 3d CAD program."
arch=('i686' 'x86_64')
url='http://solvespace.com/'
license=('GPL3')
depends=('libpng' 'zlib' 'json-c' 'fontconfig' 'gtkmm' 'pangomm')
makedepends=('git' 'cmake')
source=('solvespace-git::git+https://github.com/jwesthues/solvespace.git'
'cmake.patch')
sha256sums=('SKIP'
'326196740c0a25ecbc270171cd5765f93d7a0a32ac367c1d5b709ebb280dc865')

pkgver() {
cd "$pkgname"
#git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
cd "$pkgname"
git apply ../cmake.patch
}

build() {
cd "$pkgname"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ../
make
}

package() {
cd "$pkgname/build"
make DESTDIR="$pkgdir" install
}

---8<--- cmake.patch

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 796ef81..8f4ab3d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,8 +41,9 @@ if(WIN32)
-DWIN32_LEAN_AND_MEAN=1)
endif()

-if((CMAKE_CXX_PLATFORM_ID STREQUAL "Linux") AND CMAKE_COMPILER_IS_GNUCC)
+if((CMAKE_SYSTEM_NAME MATCHES "Linux") AND CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_EXE_LINKER_FLAGS}")
+ set(CMAKE_CXX_FLAGS "-std=c++11")
endif()

if(MINGW)

GAZ082 commented on 2015-10-16 00:04

src/CMakeFiles/solvespace.dir/build.make:230: recipe for target 'src/CMakeFiles/solvespace.dir/gtk/gtkmain.cpp.o' failed
make[2]: *** [src/CMakeFiles/solvespace.dir/gtk/gtkmain.cpp.o] Error 1
CMakeFiles/Makefile2:125: recipe for target 'src/CMakeFiles/solvespace.dir/all' failed
make[1]: *** [src/CMakeFiles/solvespace.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
The build failed.


What can it be? Thanks!