Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLMC
Commits
0cf02d0d
Commit
0cf02d0d
authored
Jan 12, 2010
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cross compiling for Windows works !
parent
fe945fcf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
15 deletions
+35
-15
.gitignore
.gitignore
+3
-2
CMakeLists.txt
CMakeLists.txt
+3
-12
INSTALL
INSTALL
+1
-1
INSTALL.win32
INSTALL.win32
+11
-0
cmake/toolchain-win32.cmake
cmake/toolchain-win32.cmake
+17
-0
No files found.
.gitignore
View file @
0cf02d0d
...
@@ -8,6 +8,7 @@ Makefile*
...
@@ -8,6 +8,7 @@ Makefile*
*.pro.user
*.pro.user
moc_*.cpp
moc_*.cpp
moc_*.cxx*
ui_*.h
ui_*.h
.*.swp
.*.swp
*~
*~
...
@@ -16,5 +17,5 @@ ui_*.h
...
@@ -16,5 +17,5 @@ ui_*.h
qrc_ressources.cpp
qrc_ressources.cpp
CMakeCache.txt
CMakeCache.txt
CMakeFiles
CMakeFiles
*
.cmake
cmake_install
.cmake
CPack*.cmake
CMakeLists.txt
View file @
0cf02d0d
...
@@ -33,18 +33,9 @@ FIND_PACKAGE(LIBVLC)
...
@@ -33,18 +33,9 @@ FIND_PACKAGE(LIBVLC)
INCLUDE_DIRECTORIES
(
${
LIBVLC_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
LIBVLC_INCLUDE_DIR
}
)
# search for Qt4
# search for Qt4
FIND_PACKAGE
(
Qt4 REQUIRED
)
FIND_PACKAGE
(
Qt4 4.5.1 COMPONENTS QtCore QtGui QtSvg QtXml REQUIRED
)
SET
(
QT_USE_QTXML TRUE
)
INCLUDE
(
${
QT_USE_FILE
}
)
SET
(
QT_USE_QTNETWORK TRUE
)
SET
(
QT_USE_QTSVG TRUE
)
SET
(
QT_USE_QTXML TRUE
)
IF
(
ENABLE_TESTS
)
SET
(
QT_USE_QTTEST TRUE
)
ENABLE_TESTING
()
ENDIF
(
ENABLE_TESTS
)
INCLUDE
(
${
QT_USE_FILE
}
)
ADD_DEFINITIONS
(
${
QT_DEFINITIONS
}
)
ADD_DEFINITIONS
(
${
QT_DEFINITIONS
}
)
# layout of VLMC installation
# layout of VLMC installation
...
...
INSTALL
View file @
0cf02d0d
...
@@ -20,7 +20,7 @@ Building VLMC
...
@@ -20,7 +20,7 @@ Building VLMC
A typical way to build VLMC is:
A typical way to build VLMC is:
qmake
cmake .
make
make
Running VLMC
Running VLMC
...
...
INSTALL.win32
0 → 100644
View file @
0cf02d0d
Cross-compilation (from Unix)
=============================
Download contribs from:
http://vlmc.org/~etix/contribs/
To be continued...
----------------------------------------------------------
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-win32.cmake .
cmake/toolchain-win32.cmake
0 → 100644
View file @
0cf02d0d
# this one is important
SET
(
CMAKE_SYSTEM_NAME Windows
)
#this one not so much
SET
(
CMAKE_SYSTEM_VERSION 1
)
# specify the cross compiler
SET
(
CMAKE_C_COMPILER /usr/bin/i486-mingw32-gcc
)
SET
(
CMAKE_CXX_COMPILER /usr/bin/i486-mingw32-g++
)
# where is the target environment
SET
(
CMAKE_FIND_ROOT_PATH contribs
)
# search for programs in the build host directories
SET
(
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER
)
# for libraries and headers in the target directories
SET
(
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY
)
SET
(
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY
)
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