Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jean-Paul Smets
slapos
Commits
15583ed0
Commit
15583ed0
authored
Aug 29, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX component/qt: add [qt4-qmake] + unstable section for [qt5-qmake]
parent
a1363092
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
54 deletions
+52
-54
component/qt/buildout.cfg
component/qt/buildout.cfg
+52
-54
No files found.
component/qt/buildout.cfg
View file @
15583ed0
[buildout]
[buildout]
extends =
../xorg/buildout.cfg
../mesa/buildout.cfg
parts =
parts =
qt
qt4-qmake
[qt]
[qt5-qmake]
recipe = slapos.recipe.build
# building [qmake] will download the full qt source anyway ~200MB
slapos_promisee =
# qmake binary can be reached directly from ${qt:location}/bin/qmake if [qt] is fully built
file:plop
recipe = slapos.recipe.cmmi
location = ${buildout:parts-directory}/${:_buildout_section_name_}
# Online installer
url = http://download.qt.io/official_releases/qt/5.6/5.6.2/single/qt-everywhere-opensource-src-5.6.2.tar.gz
x86 = http://get.qt.nokia.com/qtsdk/Qt_SDK_Lin32_online_v1_1_3_en.run eae2e2a1396fec1369b66c71d7df6eab
md5sum = 1b1b1f929d0cd83680354a0c83d8e945
x86-64 = http://get.qt.nokia.com/qtsdk/Qt_SDK_Lin64_online_v1_1_3_en.run a4d929bc4d6511290c07c3745477b77b
# see https://github.com/NixOS/nixpkgs/blob/3e387c3e005c87566b5403d24c86f71f4945a79b/pkgs/development/libraries/qt-4.x/4.8/default.nix#L101
# Offline installer
environment =
#x86 = http://get.qt.nokia.com/qtsdk/Qt_SDK_Lin32_offline_v1_1_3_en.run 106fdae4ec8947c491ab0a827a02da12
CFLAGS=-I${mesa:location}/include
#x86-64 = http://get.qt.nokia.com/qtsdk/Qt_SDK_Lin64_offline_v1_1_3_en.run 8c280beb11ee763840464572ed80e8b8
CPPFLAGS=-I${mesa:location}/include
CXXFLAGS=-I${mesa:location}/include
# Needs many dependencies.
LD_LIBRARY_PATH=${mesa:location}/lib
configure-command =
script =
sed 's,/usr/X11R6/lib64,${libX11:location}/lib64 ${xproto:location}/lib64 ${libXext:location}/lib64,g' -i mkspecs/*/*.conf
if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
sed 's,/usr/X11R6/lib,${libX11:location}/lib ${xproto:location}/lib ${libXext:location}/lib,g' -i mkspecs/*/*.conf
download_file = self.download(self.options['url'], self.options.get('md5sum'))
sed 's,/usr/X11R6/include,${libX11:location}/include ${xproto:location}/include ${libXext:location}/include,g' -i mkspecs/*/*.conf
extract_dir = tempfile.mkdtemp(self.name)
# it helped me : http://stackoverflow.com/questions/24264940/compile-qt5-without-gui-support-on-linux-arm
os.chdir(extract_dir)
./configure --prefix=${:location} -v -no-separate-debug-info -release -confirm-license -opensource -no-opengl -nomake examples
(download_dir, filename) = os.path.split(download_file)
make-targets = qmake
auto_extract_bin = os.path.join(extract_dir, filename)
post-install =
shutil.move(download_file, auto_extract_bin)
cp -rt ${:location} *
os.chmod(auto_extract_bin, 0755)
subprocess.call([auto_extract_bin])
[qt5.6-qmake]
self.cleanup_list.append(extract_dir)
<= qt5-qmake
workdir = guessworkdir(extract_dir)
[qt5.6.2-qmake]
import pdb; pdb.set_trace()
<= qt5.6-qmake
self.copyTree(os.path.join(workdir, "jre1.6.0_27"), "%(location)s")
[qt4-qmake]
# building [qmake] will download the full qt source anyway ~200MB
#ldd qt.run
# qmake binary can be reached directly from ${qt:location}/bin/qmake if [qt] is fully built
# linux-gate.so.1 => (0xb7827000)
recipe = slapos.recipe.cmmi
# libutil.so.1 => /lib/i686/cmov/libutil.so.1 (0xb781c000)
location = ${buildout:parts-directory}/${:_buildout_section_name_}
# libgobject-2.0.so.0 => not found
url = http://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
# libSM.so.6 => not found
md5sum = d990ee66bf7ab0c785589776f35ba6ad
# libICE.so.6 => not found
# see https://github.com/NixOS/nixpkgs/blob/3e387c3e005c87566b5403d24c86f71f4945a79b/pkgs/development/libraries/qt-4.x/4.8/default.nix#L101
# libXrender.so.1 => not found
pre-configure =
# libfontconfig.so.1 => not found
set -e -x
# libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb77a4000)
sed 's,/usr/X11R6/lib64,${libX11:location}/lib64 ${xproto:location}/lib64 ${libXext:location}/lib64,g' -i mkspecs/*/*.conf
# libz.so.1 => /usr/lib/libz.so.1 (0xb778f000)
sed 's,/usr/X11R6/lib,${libX11:location}/lib ${xproto:location}/lib ${libXext:location}/lib,g' -i mkspecs/*/*.conf
# libXext.so.6 => /usr/lib/libXext.so.6 (0xb7780000)
sed 's,/usr/X11R6/include,${libX11:location}/include ${xproto:location}/include ${libXext:location}/include,g' -i mkspecs/*/*.conf
# libX11.so.6 => /usr/lib/libX11.so.6 (0xb7663000)
configure-command = ./configure --prefix=${:location} -v -no-separate-debug-info -release -no-fast -confirm-license -opensource
# libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb765f000)
make-targets = qmake
# libgthread-2.0.so.0 => not found
post-install =
# librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7655000)
cp -rt ${:location} *
# libglib-2.0.so.0 => not found
# libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb763c000)
[qt4.8-qmake]
# libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb754d000)
<= qt4-qmake
# libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7527000)
[qt4.8.7-qmake]
# libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7508000)
<= qt4.8-qmake
# libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb73c2000)
# libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb73a9000)
# /lib/ld-linux.so.2 (0xb7828000)
# libXau.so.6 => /usr/lib/libXau.so.6 (0xb73a6000)
# libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb73a1000)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment