ceremcem / build-freecad-asm3

Build FreeCAD Asm3 inside a Debian container and run from there.
6 stars 0 forks source link

A section for Arch distro users #2

Closed luzpaz closed 5 years ago

luzpaz commented 5 years ago

Please consider adding a build script for Arch users

Link to the Arch AUR: https://aur.archlinux.org/packages/?O=0&K=freecad

ceremcem commented 5 years ago

After a quick search, providing build scripts would be a nice introduction to Arch Linux for me but I regret to say that it might not happen in a short period of time.

ceremcem commented 5 years ago

@luzpaz Isn't it possible to create a Debian Stretch LXC container under Arch? See the advantages. Or do you think there are any disadvantages using an LXC container to build and run an application within, in terms of

luzpaz commented 5 years ago

Honestly I don't know. Maybe we can get some arch folks here to join the discussion.

Salamandar commented 5 years ago

After searching for the "someone told me something about freecad on github" for 10 minutes, i'm here :p I'll read your repo Readme, and try to write a PKGBUILD. I guess this wouldn't be too difficult. That would mean:

Am I missing something ?

ceremcem commented 5 years ago

Welcome :)

Am I missing something ?

I guess that's exactly what @luzpaz wanted. But I really wonder about how these PKGBUILD scripts can be generated within this repo.

Salamandar commented 5 years ago

But I really wonder about how these PKGBUILD scripts can be generated within this repo.

I don't think you want PKGBUILDs to be auto-generated, if that's what you're talking about. Maybe calling your already existing scripts ? I'll see the best way to do this.

I'm gone to write "native" software (not containers, as it's not arch-specific), though.

ceremcem commented 5 years ago

if that's what you're talking about

Yes, that was my first guess, but using the existing scripts sounds quite better.

Salamandar commented 5 years ago

Well, after thinking about it, as the existing scripts are not structured enough (PKGBUILD splits build, package and install), maybe you could use the PKGBUILDs if you want.

In any case, I'll upload them on AUR for native build.

Salamandar commented 5 years ago

Here is the Workbench PKGBUILD : https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=freecad-assembly3-git

luzpaz commented 5 years ago

Here is the Workbench PKGBUILD : aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=freecad-assembly3-git

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=freecad-assembly3-git#n6
Should be version 0.18dev

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=freecad-assembly3-git#n47
Why do you exclude solvespace from the rsync ?

Salamandar commented 5 years ago

Should be version 0.18dev

Yeah, that's on my next commit xD

Why do you exclude solvespace from the rsync ?

Well, this directory only contains sources/builddir of slvs, the corresponding library was copied into py_slvs, right ?

Salamandar commented 5 years ago

The Freecad build system is very broken. It does not detect Netgen if I dont specify the paths, and it does not detect QtWebkit (but it still tries to build DownloadManager)…

ceremcem commented 5 years ago

The Freecad build system is very broken

There were lots of issues I had too. It gets a very time consuming task to make the build procedure work flawlessly.

Salamandar commented 5 years ago

Yeah, CMake easily becomes awful to work with for big projects.

Salamandar commented 5 years ago

Enabling Q5 instead of qt4 seems to help.

ceremcem commented 5 years ago

Actually, that's the reason why I strongly suggest using containers. One build process rules them all.

luzpaz commented 5 years ago

I think QtWebkit is not enabled on Debian (due to security concerns) and that is the reason it carries over to other Linux builds. I may be wrong.

luzpaz commented 5 years ago

@kkremitzki care to weigh in on netgen detection in FC ?

Salamandar commented 5 years ago

@ceremcem Yeah, but then you don't need Archlinux-specific scripts ;)

Salamandar commented 5 years ago

../src/Gui/View3DInventorViewer.cpp:2825:49: error: « virtual void SoCamera::viewBoundingBox(const SbBox3f&, float, float) » est protégé dans ce contexte Soo… Freecad is broken for now. I'll upload the PKGBUILD, but it does not work yet.

Salamandar commented 5 years ago

https://aur.archlinux.org/packages/freecad-linkstage3-git/

Salamandar commented 5 years ago

capture du 2018-09-21 17-26-16 Well, I had to fix the error (I just commented src/Gui/View3DInventorViewer.cpp:2825), and here it is.

ceremcem commented 5 years ago

@luzpaz can we close the issue?

luzpaz commented 5 years ago

@ceremcem yes @Salamandar thanks for all your work!