-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes to v0.5.0 CRAN build errors and warnings (#13)
* configure * update build notes * Modifications to allow OSQP to build correctly on CRAN
- Loading branch information
1 parent
695e23c
commit aeba730
Showing
9 changed files
with
65 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
Package: osqp | ||
Type: Package | ||
Title: Quadratic Programming Solver using the 'OSQP' Library | ||
Version: 0.6.0.1 | ||
Date: 2019-09-05 | ||
Authors@R: c(person("Bartolomeo", "Stellato", email = "bartolomeo.stellato@gmail.com", role = c("cre", "aut", "ctb", "cph")), person("Goran", "Banjac", role = c("aut", "ctb", "cph")), person("Paul", "Goulart", role = c("aut", "ctb", "cph")), person("Stephen", "Boyd", role = c("aut", "ctb", "cph")), person("Eric", "Anderson", role=c("ctb"))) | ||
Version: 0.6.0.2 | ||
Date: 2019-09-09 | ||
Authors@R: c( | ||
person("Bartolomeo", "Stellato", role = c("cre", "aut", "ctb", "cph"), | ||
email = "bartolomeo.stellato@gmail.com"), | ||
person("Goran", "Banjac", role = c("aut", "ctb", "cph")), | ||
person("Paul", "Goulart", role = c("aut", "ctb", "cph")), | ||
person("Stephen", "Boyd", role = c("aut", "ctb", "cph")), | ||
person("Eric", "Anderson", role=c("ctb"))) | ||
Copyright: file COPYRIGHT | ||
Description: Provides bindings to the 'OSQP' solver. The 'OSQP' solver is a numerical optimization package or solving convex quadratic programs written in 'C' and based on the alternating direction method of multipliers, 'ADMM'. B. Stellato, G. Banjac, P. Goulart, A. Bemporad, S. Boyd (2018) <arXiv:1711.08013>. | ||
Description: Provides bindings to the 'OSQP' solver. The 'OSQP' solver is a numerical optimization package or solving convex quadratic programs written in 'C' and based on the alternating direction method of multipliers. See <arXiv:1711.08013> for details. | ||
License: Apache License 2.0 | file LICENSE | ||
Imports: Rcpp (>= 0.12.14), methods, Matrix, R6 | ||
LinkingTo: Rcpp | ||
RoxygenNote: 6.1.1 | ||
Collate: 'RcppExports.R' 'osqp-package.R' 'solve.R' 'osqp.R' | ||
'params.R' | ||
Collate: 'RcppExports.R' 'osqp-package.R' 'solve.R' 'osqp.R' 'params.R' | ||
NeedsCompilation: yes | ||
Packaged: 2019-09-05 00:00:00 UTC | ||
Date/Publication: 2019-09-05 00:00:00 UTC | ||
Suggests: testthat | ||
URL: https://www.osqp.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## Test environments | ||
|
||
* Local: | ||
* OS X 10.14: R 3.6.1 | ||
* Solaris 11.4 via VirtualBox: R 3.6.1 | ||
* Appveyor: | ||
* Windows Server 2012: R-release, R-devel, R-oldrel | ||
* Travis-CI: | ||
* Ubuntu 16.04: R-release, R-devel | ||
* OS X, with and without homebrew: R-release, R-devel | ||
* Rhub: | ||
* Windows Server 2008 R2 SP1, R-devel, 32/64 bit | ||
* Ubuntu Linux 16.04 LTS, R-release, GCC | ||
* Fedora Linux, R-devel, clang, gfortran | ||
* Debian Linux, R-devel, GCC ASAN/UBSAN | ||
|
||
|
||
## R CMD check results | ||
There were no ERRORs or WARNINGs. | ||
|
||
There was 1 NOTE: | ||
|
||
Maintainer: ‘Bartolomeo Stellato <bartolomeo.stellato@gmail.com>’ | ||
Days since last update: 2 | ||
|
||
The maintainer information is correct. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
OSQP_DIR=./osqp | ||
OSQP_LIB_DIR=$(OSQP_DIR)/lib | ||
OSQP_INCLUDE_DIR=$(OSQP_DIR)/include/osqp | ||
OSQP_STATIC_LIB=$(OSQP_LIB_DIR)/libosqp.a | ||
OSQP_LIB_TARGET_DIR=./lib | ||
OSQP_INCLUDE_TARGET_DIR=./include/osqp/ | ||
OSQP_STATIC_LIB=$(OSQP_LIB_TARGET_DIR)/libosqp.a | ||
|
||
OSQP_FLAGS=-DR_LANG=TRUE | ||
|
||
PKG_CXXFLAGS = $(OSQP_FLAGS) -I$(OSQP_INCLUDE_DIR) | ||
PKG_CXXFLAGS=-I$(OSQP_INCLUDE_TARGET_DIR) | ||
PKG_LIBS=-L$(OSQP_LIB_TARGET_DIR) -losqp | ||
|
||
ROBJECTS = osqp_solve_interface.o RcppExports.o | ||
OBJECTS = $(ROBJECTS) $(OSQP_STATIC_LIB) | ||
ROBJECTS=osqp_solve_interface.o RcppExports.o | ||
OBJECTS=$(ROBJECTS) | ||
|
||
CXX_STD=CXX11 | ||
|
||
.PHONY: all | ||
.PHONY: $(R_OBJECTS) all | ||
|
||
all: $(SHLIBS) | ||
all: $(SHLIB) | ||
|
||
$(SHLIBS): $(OSQP_STATIC_LIB) | ||
$(SHLIB): $(OSQP_STATIC_LIB) | ||
|
||
$(ROBJECTS): $(OSQP_STATIC_LIB) | ||
|
||
$(OSQP_STATIC_LIB): | ||
|
||
# The OSQP static library should already exist and | ||
# be in the correct place if we are building via cmake. | ||
# If we find ourselves without cmake installed (e.g. because the | ||
# package is being built in the CRAN servers), then we have | ||
# a go at building the static library here. | ||
|
||
(cd $(OSQP_DIR) && \ | ||
$(MAKE) CC="$(CC)" \ | ||
echo "No cmake? I will try via osqp/Makefile" | ||
cd osqp; \ | ||
$(MAKE) all CC="$(CC)" \ | ||
OSQP_FLAGS="$(OSQP_FLAGS)" \ | ||
R_INCLUDE_DIR="$(R_INCLUDE_DIR)" CFLAGS="$(CFLAGS)" \ | ||
CPICFLAGS="$(CPICFLAGS)" ARFLAGS="$(ARFLAGS)" \ | ||
AR="$(AR)" RANLIB="$(RANLIB)" \ | ||
&& $(MAKE) clean) | ||
AR="$(AR)" RANLIB="$(RANLIB)" ; \ | ||
$(MAKE) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule osqp_sources
updated
from 0baddd to 911605