Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
90b014b6
Commit
90b014b6
authored
Jun 27, 2017
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added information about how to compile 32-bit versions on 64-bit systems.
parent
15245f74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
build-howto.info
build-howto.info
+30
-1
build.sh
build.sh
+2
-0
No files found.
build-howto.info
View file @
90b014b6
...
...
@@ -97,7 +97,8 @@ export pwre_env_db="/home/robert/pwre_new"
----------------------------
Creating and handling your environment is done with the pwre-function (added
by sourcing $pwre_bin/pwre_function).
by sourcing $pwre_bin/pwre_function). See section "Cross-compiling" below
about compiling a 32-bit version of Proview on a 64-bit machine.
> pwre
...
...
@@ -329,3 +330,31 @@ Build proview as normal, either by executing the makefile:
> make
or by configuring the build yourself, see section "3. Thorough way" above.
Cross-compiling
---------------
To compile a 32-bit version of Proview on a 64-bit system, you need to install
multiarch support and add a 32-bit architecture:
> apt-get install multiarch
> dpkg --add-architecture i386
> apt-get update
Then you need to install the libraries required to build 32-bit executables:
> apt-get install gcc-multilib g++-multilib libc6:i386 libc6-dev:i386 libc6-i386 libc6-dev-i386
You also need 32-bit versions of all the libraries required by Proview. The
easiest way to get these is to copy the /usr/lib/i386-linux-gnu folder and the
/lib/i386-linux-gnu/ folder from a 32-bit machine to your 64-bit machine. If
you try to install all libraries using "apt-get install x:i386" you will most
likely run into problems with some 32-bit packages replacing your 64-bit
packages and vice versa.
After that, you should be able to compile 32-bit versions by specifying "x86"
as hardware during "pwre add", see section "3.2 Creating the environment" above.
> pwre add proview32bit
...
Hardware [x86] ? x86
build.sh
View file @
90b014b6
#!/bin/bash
set
-e
root
=
`
eval pwd
`
if
[
-e
$root
/src/exp/inc/src/pwr_version.h
]
;
then
...
...
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