I am trying to get ruby on rails to set up on my win10. I am trying to get a server running open source project openproject however I am getting an error when trying to bundle install on the eventmachine_httpserver (0.2.1) gem. I'm not sure exactly what i'm looking at, can anyone help me fix this?
bundle install
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies......
Using rake 13.0.6
......
Using openproject-openid_connect 1.0.0 from source at `modules/openid_connect`
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/eventmachine_httpserver-0.2.1/ext
D:/Ruby31-x64/bin/ruby.exe -I D:/Ruby31-x64/lib/ruby/3.1.0 -r
./siteconf20220913-3784-krldde.rb extconf.rb
checking for -lpthread... yes
checking for -lssl... yes
checking for -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
creating Makefile
current directory:
D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/eventmachine_httpserver-0.2.1/ext
make DESTDIR\= clean
current directory:
D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/eventmachine_httpserver-0.2.1/ext
make DESTDIR\=
generating eventmachine_httpserver-x64-mingw-ucrt.def
compiling http.cpp
http.cpp: In member function 'void HttpConnection_t::ConsumeData(const char*,
int)':
http.cpp:192:33: error: 'unsetenv' was not declared in this scope; did you mean
'getenv'?
192 | unsetenv ("REQUEST_METHOD");
| ^~~~~~~~
| getenv
http.cpp: In member function 'bool HttpConnection_t::_InterpretHeaderLine(const
char*)':
......
make failed, exit code 2
An error occurred while installing eventmachine_httpserver (0.2.1), and Bundler
cannot continue.
In Gemfile:
puffing-billy was resolved to 3.0.4, which depends on
eventmachine_httpserver
This is the Makefile at D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/eventmachine_httpserver-0.2.1/ext/Makefile:
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
V0 = $(V:0=)
Q1 = $(V:1=)
Q = $(Q1:0=#)
ECHO1 = $(V:1=# :)
ECHO = $(ECHO1:0=# echo)
NULLCMD = :
#### Start of system configuration section. ####
srcdir = .
topdir = /D/Ruby31-x64/include/ruby-3.1.0
hdrdir = $(topdir)
arch_hdrdir = /D/Ruby31-x64/include/ruby-3.1.0/x64-mingw-ucrt
PATH_SEPARATOR = :
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
prefix = $(DESTDIR)/D/Ruby31-x64
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
rubyarchprefix = $(rubylibprefix)/$(arch)
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
exec_prefix = $(prefix)
vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
sitearchhdrdir = $(sitehdrdir)/$(sitearch)
rubyarchhdrdir = $(rubyhdrdir)/$(arch)
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
sitehdrdir = $(rubyhdrdir)/site_ruby
rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
vendorarchdir = $(vendorlibdir)/$(sitearch)
vendorlibdir = $(vendordir)/$(ruby_version)
vendordir = $(rubylibprefix)/vendor_ruby
sitearchdir = $(DESTDIR)./.gem.20220913-20372-gozah6
sitelibdir = $(DESTDIR)./.gem.20220913-20372-gozah6
sitedir = $(rubylibprefix)/site_ruby
rubyarchdir = $(rubylibdir)/$(arch)
rubylibdir = $(rubylibprefix)/$(ruby_version)
sitearchincludedir = $(includedir)/$(sitearch)
archincludedir = $(includedir)/$(arch)
sitearchlibdir = $(libdir)/$(sitearch)
archlibdir = $(libdir)/$(arch)
ridir = $(datarootdir)/$(RI_BASE_NAME)
mandir = $(datarootdir)/man
localedir = $(datarootdir)/locale
libdir = $(exec_prefix)/lib
psdir = $(docdir)
pdfdir = $(docdir)
dvidir = $(docdir)
htmldir = $(docdir)
infodir = $(datarootdir)/info
docdir = $(datarootdir)/doc/$(PACKAGE)
oldincludedir = $(DESTDIR)/usr/include
includedir = $(prefix)/include
runstatedir = $(localstatedir)/run
localstatedir = $(prefix)/var
sharedstatedir = $(prefix)/com
sysconfdir = $(DESTDIR)
datadir = $(datarootdir)
datarootdir = $(prefix)/share
libexecdir = $(exec_prefix)/libexec
sbindir = $(exec_prefix)/sbin
bindir = $(exec_prefix)/bin
archdir = $(rubyarchdir)
This is the mkmf.log file:
cc1.exe: error: unrecognized command line option "-fstack-protector-strong"
cc1.exe: error: unrecognized command line option "-fstack-protector-strong"
conftest.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7: return !!argv[argc];
8: }
/* end */
I got this error when build iOS app with openCV:
INFO: Build options --apple_platform_type, --compilation_mode, --cpu, and 3 more have changed, discarding analysis cache.
INFO: Analyzed target //ios-app:ios-app (49 packages loaded, 2428 targets configured).
INFO: Found 1 target...
ERROR: /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/ios-app/BUILD:36:16: Linking ios-app/ios-app_bin failed: (Aborted): wrapped_clang_pp failed: error executing command external/local_config_cc/wrapped_clang_pp #bazel-out/ios-x86_64-min10.0-applebin_ios-ios_x86_64-fastbuild-ST-7bf874b56ea0/bin/ios-app/ios-app_bin-2.params
Use --sandbox_debug to see verbose messages from the sandbox
Undefined symbols for architecture x86_64:
"cv::Mat::Mat()", referenced from:
___cxx_global_var_init in libwrapper.a(wrapper.o)
___cxx_global_var_init.1 in libwrapper.a(wrapper.o)
___cxx_global_var_init.2 in libwrapper.a(wrapper.o)
___cxx_global_var_init.3 in libwrapper.a(wrapper.o)
"cv::Mat::~Mat()", referenced from:
___cxx_global_var_init in libwrapper.a(wrapper.o)
___cxx_global_var_init.1 in libwrapper.a(wrapper.o)
___cxx_global_var_init.2 in libwrapper.a(wrapper.o)
___cxx_global_var_init.3 in libwrapper.a(wrapper.o)
ld: symbol(s) not found for architecture x86_64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Error in child process '/usr/bin/xcrun'. 1
Target //ios-app:ios-app failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 24.334s, Critical Path: 0.83s
INFO: 10 processes: 10 internal.
FAILED: Build did NOT complete successfully
In the file wrapper.cpp , I only have this source code:
#include "wrapper.hpp"
#include <iostream>
#include "opencv2.framework/Versions/A/Headers/opencv.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
cv::Mat imgGray,imgBlur,imgCanny,imgDil;
void Wrapper::testEmptyFunc()
{
std::cout << "testEmptyFunc";
}
wrapper.hpp
#include <stdio.h>
class Wrapper
{
public:
void testEmptyFunc();
};
I include from the viewcontroller like this:
#import "wrapper.hpp"
Call the function:
Wrapper* wrapperObj = new Wrapper();
wrapperObj->testEmptyFunc();
My WORKSPACE is:
load("#bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") load("#bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_apple",
sha256 = "c84962b64d9ae4472adfb01ec2cf1aa73cb2ee8308242add55fa7cc38602d882",
url = "https://github.com/bazelbuild/rules_apple/releases/download/0.31.2/rules_apple.0.31.2.tar.gz", )
load(
"#build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies", )
apple_rules_dependencies()
load(
"#build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies", )
apple_support_dependencies()
load("#bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_swift",
sha256 = "f872c0388808c3f8de67e0c6d39b0beac4a65d7e07eff3ced123d0b102046fb6",
url = "https://github.com/bazelbuild/rules_swift/releases/download/0.23.0/rules_swift.0.23.0.tar.gz", )
load(
"#build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies", )
swift_rules_dependencies()
load(
"#build_bazel_rules_swift//swift:extras.bzl",
"swift_rules_extra_dependencies", )
swift_rules_extra_dependencies()
git_repository(
name = "build_bazel_apple_support",
remote = "https://github.com/bazelbuild/apple_support.git",
tag = "0.11.0", )
git_repository(
name = "bazel_skylib",
remote = "https://github.com/bazelbuild/bazel-skylib.git",
tag = "1.0.3", )
http_archive(
name = "ios_opencv",
sha256 = "b85c23953e66f202a5e4b83484f90556ad4ea9df6fcb7934044d5d4decf2898f",
type = "zip",
build_file = "#//third_party:opencv_ios.BUILD",
url = "https://github.com/opencv/opencv/releases/download/4.5.3/opencv-4.5.3-ios-framework.zip", )
# Tesseract
http_archive( name = "ios_tesseract", url = "https://github.com/kang298/Tesseract-builds-for-iOS/archive/refs/tags/tesseract-ios-4.1.1.zip", type = "zip", build_file = "#//third_party:tesseract.BUILD", )
Please help me to solve this issue.
This is how OpenCV works for me under Windows 10:
WORKSPACE.bazel:
workspace(name = "OpenCVDemo")
load("#bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# OpenCV
http_archive(
name = "opencv",
build_file = "//ThirdParty:opencv.BUILD",
strip_prefix = "opencv/build",
# Debug
#url = "http://vertexwahn.de/artifacts/opencv-4.3.0-dldt-2020.2-vc16-avx2-debug.zip",
#sha256 = "9bcd2dda258e67ad2ddef7768f1c9b2afcc68cd4b9d9f5c9b841ea3ee47f9d4c",
# Release
url = "https://github.com/opencv/opencv/releases/download/4.3.0/opencv-4.3.0-dldt-2020.2-vc16-avx2.zip",
)
opencv.BUILD:
package(default_visibility = ["//visibility:public"])
MAIN_MODULES = [
"core",
"imgproc",
"imgcodecs",
"videoio",
"highgui",
"video",
"calib3d",
"features2d",
"objdetect",
"dnn",
"ml",
"flann",
"photo",
"stitching",
"gapi",
]
# https://stackoverflow.com/questions/56108940/how-to-specify-the-compiler-flags-to-be-used-in-opt-compilation-mode-by-my-own
config_setting(
name = "fastbuild_mode",
values = {"compilation_mode": "fastbuild"},
)
config_setting(
name = "dbg_mode",
values = {"compilation_mode": "dbg"},
)
cc_import(
name = "tbb",
shared_library = select({
":fastbuild_mode": "bin/tbb.dll",
":dbg_mode": "bin/tbb_debug.dll",
"//conditions:default": "bin/tbb.dll",
}),
)
[
(
cc_import(
name = module,
interface_library = select({
":fastbuild_mode": "lib/opencv_{}430.lib".format(module),
":dbg_mode": "lib/opencv_{}430d.lib".format(module),
"//conditions:default": "lib/opencv_{}430.lib".format(module),
}),
shared_library = select({
":fastbuild_mode": "bin/opencv_{}430.dll".format(module),
":dbg_mode": "bin/opencv_{}430d.dll".format(module),
"//conditions:default": "bin/opencv_{}430.dll".format(module),
}),
)
)
for module in MAIN_MODULES
]
cc_library(
name = "opencv",
hdrs = [
"include/opencv2/calib3d.hpp",
"include/opencv2/calib3d/calib3d.hpp",
"include/opencv2/calib3d/calib3d_c.h",
"include/opencv2/core.hpp",
"include/opencv2/core/hal/interface.h",
"include/opencv2/cvconfig.h",
"include/opencv2/dnn.hpp",
"include/opencv2/features2d.hpp",
"include/opencv2/flann.hpp",
"include/opencv2/flann/config.h",
"include/opencv2/flann/defines.h",
"include/opencv2/flann/miniflann.hpp",
"include/opencv2/highgui.hpp",
"include/opencv2/highgui/highgui.hpp",
"include/opencv2/highgui/highgui_c.h",
"include/opencv2/imgcodecs.hpp",
"include/opencv2/imgproc.hpp",
"include/opencv2/ml.hpp",
"include/opencv2/ml/ml.inl.hpp",
"include/opencv2/objdetect.hpp",
"include/opencv2/opencv.hpp",
"include/opencv2/opencv_modules.hpp",
"include/opencv2/photo.hpp",
"include/opencv2/stitching.hpp",
"include/opencv2/video.hpp",
"include/opencv2/video/background_segm.hpp",
"include/opencv2/video/tracking.hpp",
"include/opencv2/videoio.hpp",
"include/opencv2/videoio/videoio_c.h",
],
includes = ["include"],
deps = MAIN_MODULES + [
"tbb",
],
)
If you change the download URL to opencv-4.5.3-ios-framework.zip it might work
i'm getting undefined reference to `_createImage(int, int, int, int,
float, float, float, int, WORD_KIND, SIGN)', when i tried to take part of
code from :
https://doc.cgal.org/latest/Mesh_3/Mesh_3_2random_labeled_image_8h-example.html
Basically what i am trying to do is convert ITK image to CGAL image_3, and in order to do that i need to init image_3 with my own data, but it gives me undefined reference to _create_image. I have added headers of ImageIO and Image_3
const int dim = 400;
_image* image = _createImage(dim, dim, dim, 1,
1.f, 1.f, 1.f, 1,
WK_FIXED, SGN_UNSIGNED);
Cmakelist.txt
find_package(CGAL QUIET)
if( CGAL_FOUND)
include_directories("/usr/local/include")
message(STATUS "CGAL status:")
message(STATUS " libraries: ${CGAL_LIB}")
message(STATUS " include path: ${CGAL_INCLUDE_DIRS}")
endif(CGAL_FOUND)
target_link_libraries(main meshlib iolib ${ITK_LIBRARIES} ${CGAL_LIB} )
flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wall -g -Wextra -Wno-sign-compare -pthread -ltbb -lpthread -lCGAL -lCGAL_Core -lCGAL_ImageIO -lmpfr -lgmp -frounding-math ")
Failure:
libmeshlib.a(volumetric-image.cpp.o): In function
VolumetricImage::ItkImageToCgalImage(itk::SmartPointer<itk::Image<char,
3u> >&, CGAL::Image_3&)':
/home/n/Documents/b1/b1/src/volumetric-image.cpp:217:
undefined reference to_createImage(int, int, int, int, float, float,
float, int, WORD_KIND, SIGN)' libmeshlib.a(volumetric-image.cpp.o): In
function CGAL::Image_3::Image_3(point_image*)':
/usr/local/include/CGAL/Image_3.h:105: undefined reference to
CGAL::Image_3::private_read(point_image*)' collect2: error: ld
returned 1 exit status src/CMakeFiles/main.dir/build.make:419: recipe
for target 'src/main' failed make[2]: * [src/main] Error 1 make[2]:
Leaving directory '/home/noega/Documents/b1/b1/build'
CMakeFiles/Makefile2:896: recipe for target
'src/CMakeFiles/main.dir/all' failed make[1]: *
[src/CMakeFiles/main.dir/all] Error 2 make[1]: Leaving directory
'/home/n/Documents/b1/b1/build' Makefile:83: recipe for
target 'all' failed make: *** [all] Error 2
Method
void VolumetricImage::ItkImageToCgalImage(itk::Image<char, 3>::Pointer &in_volumetric_image, CGAL::Image_3 &out_image) {
typedef itk::Image< char, 3 > image_type;
image_type::RegionType region = in_volumetric_image->GetLargestPossibleRegion();
image_type::SizeType size = region.GetSize();
image_type::SpacingType voxel_size = in_volumetric_image->GetSpacing();
_image* im = _createImage(size[0], size[1], size[2], 1,
voxel_size[0], voxel_size[1], voxel_size[2],
1, WK_FIXED, SGN_SIGNED);
CGAL::Image_3 image(im);
}
EDIT 2:
92%] Linking CXX executable main cd
/home/n/Documents/b1/b1/build/src && /usr/bin/cmake -E
cmake_link_script CMakeFiles/main.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++11 -Wall -Wall -g -Wextra -Wno-sign-compare
-pthread -ltbb -lpthread -lCGAL -lCGAL_Core -lCGAL_ImageIO -lmpfr -lgmp -frounding-math
EDIT 3:
[ 92%] Linking CXX executable main cd
/home/n/Documents/b1/b1/build/src && /usr/bin/cmake -E
cmake_link_script CMakeFiles/main.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++11 -Wall -Wall -g -Wextra -Wno-sign-compare
-pthread -ltbb -lpthread -lCGAL -lCGAL_Core -lCGAL_ImageIO -lmpfr -lgmp -frounding-math CMakeFiles/main.dir/main.cpp.o -o main -rdynamic libmeshlib.a libiolib.a /usr/local/lib/libitkdouble-conversion-4.12.a
/usr/local/lib/libitksys-4.12.a /usr/local/lib/libitkvnl_algo-4.12.a
/usr/local/lib/libitkvnl-4.12.a /usr/local/lib/libitkv3p_netlib-4.12.a
/usr/local/lib/libitknetlib-4.12.a /usr/local/lib/libitkvcl-4.12.a
/usr/local/lib/libITKCommon-4.12.a
/usr/local/lib/libitkNetlibSlatec-4.12.a
/usr/local/lib/libITKStatistics-4.12.a
/usr/local/lib/libITKTransform-4.12.a
/usr/local/lib/libITKIOImageBase-4.12.a
/usr/local/lib/libITKIOBMP-4.12.a /usr/local/lib/libITKEXPAT-4.12.a
/usr/local/lib/libitkzlib-4.12.a /usr/local/lib/libitkgdcmDICT-4.12.a
/usr/local/lib/libitkgdcmMSFF-4.12.a
/usr/local/lib/libITKIOGDCM-4.12.a /usr/local/lib/libITKIOGIPL-4.12.a
/usr/local/lib/libitkjpeg-4.12.a /usr/local/lib/libITKIOJPEG-4.12.a
/usr/local/lib/libITKMetaIO-4.12.a /usr/local/lib/libITKIOMeta-4.12.a
/usr/local/lib/libITKznz-4.12.a /usr/local/lib/libITKniftiio-4.12.a
/usr/local/lib/libITKIONIFTI-4.12.a /usr/local/lib/libITKNrrdIO-4.12.a
/usr/local/lib/libITKIONRRD-4.12.a /usr/local/lib/libitkpng-4.12.a
/usr/local/lib/libITKIOPNG-4.12.a /usr/local/lib/libitktiff-4.12.a
/usr/local/lib/libITKIOTIFF-4.12.a /usr/local/lib/libITKIOVTK-4.12.a
/usr/local/lib/libITKLabelMap-4.12.a /usr/local/lib/libITKMesh-4.12.a
/usr/local/lib/libITKSpatialObjects-4.12.a
/usr/local/lib/libITKPath-4.12.a
/usr/local/lib/libITKQuadEdgeMesh-4.12.a
/usr/local/lib/libITKOptimizers-4.12.a
/usr/local/lib/libITKPolynomials-4.12.a
/usr/local/lib/libITKBiasCorrection-4.12.a
/usr/local/lib/libITKBioCell-4.12.a
/usr/local/lib/libITKDICOMParser-4.12.a
/usr/local/lib/libITKIOXML-4.12.a
/usr/local/lib/libITKIOSpatialObjects-4.12.a
/usr/local/lib/libITKFEM-4.12.a /usr/local/lib/libITKgiftiio-4.12.a
/usr/local/lib/libITKIOMesh-4.12.a /usr/local/lib/libitkhdf5_cpp.a
/usr/local/lib/libitkhdf5.a /usr/local/lib/libITKIOBioRad-4.12.a
/usr/local/lib/libITKIOCSV-4.12.a /usr/local/lib/libITKIOIPL-4.12.a
/usr/local/lib/libITKIOGE-4.12.a /usr/local/lib/libITKIOSiemens-4.12.a
/usr/local/lib/libITKIOHDF5-4.12.a /usr/local/lib/libITKIOLSM-4.12.a
/usr/local/lib/libITKIOMRC-4.12.a
/usr/local/lib/libITKIOStimulate-4.12.a
/usr/local/lib/libITKTransformFactory-4.12.a
/usr/local/lib/libITKIOTransformBase-4.12.a
/usr/local/lib/libITKIOTransformHDF5-4.12.a
/usr/local/lib/libITKIOTransformInsightLegacy-4.12.a
/usr/local/lib/libITKIOTransformMatlab-4.12.a
/usr/local/lib/libITKKLMRegionGrowing-4.12.a
/usr/local/lib/libITKVTK-4.12.a /usr/local/lib/libITKWatersheds-4.12.a
/usr/local/lib/libITKOptimizersv4-4.12.a
/usr/local/lib/libITKVideoCore-4.12.a
/usr/local/lib/libITKVideoIO-4.12.a -lCGAL
/usr/local/lib/libvtkzlib-8.0.a
/usr/local/lib/libvtkFiltersImaging-8.0.a
/usr/local/lib/libvtkCommonCore-8.0.a /usr/local/lib/libvtksys-8.0.a
/usr/local/lib/libvtkCommonDataModel-8.0.a
/usr/local/lib/libvtkCommonMath-8.0.a
/usr/local/lib/libvtkCommonMisc-8.0.a
/usr/local/lib/libvtkCommonSystem-8.0.a
/usr/local/lib/libvtkCommonTransforms-8.0.a
/usr/local/lib/libvtkCommonExecutionModel-8.0.a
/usr/local/lib/libvtkFiltersStatistics-8.0.a
/usr/local/lib/libvtkImagingFourier-8.0.a
/usr/local/lib/libvtkImagingCore-8.0.a
/usr/local/lib/libvtkalglib-8.0.a
/usr/local/lib/libvtkImagingGeneral-8.0.a
/usr/local/lib/libvtkImagingSources-8.0.a
/usr/local/lib/libvtkFiltersFlowPaths-8.0.a
/usr/local/lib/libvtkFiltersCore-8.0.a
/usr/local/lib/libvtkFiltersGeometry-8.0.a
/usr/local/lib/libvtkFiltersSources-8.0.a
/usr/local/lib/libvtkCommonComputationalGeometry-8.0.a
/usr/local/lib/libvtkFiltersGeneral-8.0.a
/usr/local/lib/libvtkIOCore-8.0.a /usr/local/lib/libvtklz4-8.0.a
/usr/local/lib/libvtkFiltersProgrammable-8.0.a
/usr/local/lib/libvtkDICOMParser-8.0.a
/usr/local/lib/libvtkRenderingOpenGL2-8.0.a
/usr/local/lib/libvtkRenderingCore-8.0.a
/usr/local/lib/libvtkCommonColor-8.0.a /usr/local/lib/libvtkglew-8.0.a
/usr/local/lib/libvtkIOTecplotTable-8.0.a
/usr/local/lib/libvtkFiltersSelection-8.0.a
/usr/local/lib/libvtkRenderingImage-8.0.a
/usr/local/lib/libvtkFiltersAMR-8.0.a /usr/local/lib/libvtkIOXML-8.0.a
/usr/local/lib/libvtkIOXMLParser-8.0.a
/usr/local/lib/libvtkexpat-8.0.a
/usr/local/lib/libvtkParallelCore-8.0.a
/usr/local/lib/libvtkIOLegacy-8.0.a
/usr/local/lib/libvtkImagingStencil-8.0.a
/usr/local/lib/libvtkhdf5_hl-8.0.a /usr/local/lib/libvtkhdf5-8.0.a
/usr/local/lib/libvtkImagingMorphological-8.0.a
/usr/local/lib/libvtklibharu-8.0.a /usr/local/lib/libvtkpng-8.0.a
/usr/local/lib/libvtkIOAMR-8.0.a
/usr/local/lib/libvtkFiltersTexture-8.0.a
/usr/local/lib/libvtkproj4-8.0.a
/usr/local/lib/libvtkViewsContext2D-8.0.a
/usr/local/lib/libvtkRenderingContext2D-8.0.a
/usr/local/lib/libvtkRenderingFreeType-8.0.a
/usr/local/lib/libvtkfreetype-8.0.a
/usr/local/lib/libvtkViewsCore-8.0.a
/usr/local/lib/libvtkInteractionWidgets-8.0.a
/usr/local/lib/libvtkFiltersHybrid-8.0.a
/usr/local/lib/libvtkFiltersModeling-8.0.a
/usr/local/lib/libvtkImagingColor-8.0.a
/usr/local/lib/libvtkImagingHybrid-8.0.a
/usr/local/lib/libvtkIOImage-8.0.a /usr/local/lib/libvtkmetaio-8.0.a
/usr/local/lib/libvtkjpeg-8.0.a /usr/local/lib/libvtktiff-8.0.a
/usr/local/lib/libvtkInteractionStyle-8.0.a
/usr/local/lib/libvtkFiltersExtraction-8.0.a
/usr/local/lib/libvtkRenderingAnnotation-8.0.a
/usr/local/lib/libvtkRenderingVolume-8.0.a
/usr/local/lib/libvtkRenderingGL2PSOpenGL2-8.0.a
/usr/local/lib/libvtkgl2ps-8.0.a
/usr/local/lib/libvtkTestingIOSQL-8.0.a
/usr/local/lib/libvtkIOSQL-8.0.a /usr/local/lib/libvtksqlite-8.0.a
/usr/local/lib/libvtkFiltersHyperTree-8.0.a
/usr/local/lib/libvtkNetCDF-8.0.a /usr/local/lib/libvtkverdict-8.0.a
/usr/local/lib/libvtkInfovisCore-8.0.a
/usr/local/lib/libvtkRenderingLOD-8.0.a
/usr/local/lib/libvtkRenderingContextOpenGL2-8.0.a
/usr/local/lib/libvtkLocalExample-8.0.a
/usr/local/lib/libvtkIOExportOpenGL2-8.0.a
/usr/local/lib/libvtkIOExport-8.0.a
/usr/local/lib/libvtkViewsInfovis-8.0.a
/usr/local/lib/libvtkChartsCore-8.0.a
/usr/local/lib/libvtkInfovisLayout-8.0.a
/usr/local/lib/libvtkRenderingLabel-8.0.a
/usr/local/lib/libvtkDomainsChemistry-8.0.a
/usr/local/lib/libvtkexoIIc-8.0.a
/usr/local/lib/libvtkFiltersSMP-8.0.a
/usr/local/lib/libvtknetcdf_c++.a
/usr/local/lib/libvtkFiltersParallelImaging-8.0.a
/usr/local/lib/libvtkFiltersParallel-8.0.a
/usr/local/lib/libvtkFiltersVerdict-8.0.a
/usr/local/lib/libvtkInteractionImage-8.0.a
/usr/local/lib/libvtkIOImport-8.0.a
/usr/local/lib/libvtkTestingRendering-8.0.a
/usr/local/lib/libvtklibxml2-8.0.a
/usr/local/lib/libvtkIOParallel-8.0.a
/usr/local/lib/libvtkIOGeometry-8.0.a
/usr/local/lib/libvtkIONetCDF-8.0.a /usr/local/lib/libvtkjsoncpp-8.0.a
/usr/local/lib/libvtkDomainsChemistryOpenGL2-8.0.a
/usr/local/lib/libvtkFiltersPoints-8.0.a
/usr/local/lib/libvtkoggtheora-8.0.a
/usr/local/lib/libvtkTestingGenericBridge-8.0.a
/usr/local/lib/libvtkIOMovie-8.0.a
/usr/local/lib/libvtkImagingMath-8.0.a
/usr/local/lib/libvtkIOVideo-8.0.a
/usr/local/lib/libvtkGeovisCore-8.0.a /usr/local/lib/libvtkIOPLY-8.0.a
/usr/local/lib/libvtkIOEnSight-8.0.a
/usr/local/lib/libvtkIOInfovis-8.0.a
/usr/local/lib/libvtkIOExodus-8.0.a
/usr/local/lib/libvtkIOLSDyna-8.0.a
/usr/local/lib/libvtkImagingStatistics-8.0.a
/usr/local/lib/libvtkFiltersGeneric-8.0.a
/usr/local/lib/libvtkFiltersTopology-8.0.a
/usr/local/lib/libvtkIOMINC-8.0.a
/usr/local/lib/libvtkRenderingVolumeOpenGL2-8.0.a
/usr/local/lib/libvtkIOParallelXML-8.0.a -lgmp
/usr/local/lib/libmpfr.so -lboost_log -lboost_log_setup -lboost_thread
-lboost_date_time -lboost_filesystem -lboost_system -lboost_regex -lboost_chrono -lboost_atomic -lpthread /usr/local/lib/libitkgdcmMSFF-4.12.a
/usr/local/lib/libitkgdcmDICT-4.12.a
/usr/local/lib/libitkgdcmIOD-4.12.a
/usr/local/lib/libitkgdcmDSED-4.12.a
/usr/local/lib/libitkgdcmCommon-4.12.a
/usr/local/lib/libitkgdcmjpeg8-4.12.a
/usr/local/lib/libitkgdcmjpeg12-4.12.a
/usr/local/lib/libitkgdcmjpeg16-4.12.a
/usr/local/lib/libitkgdcmopenjpeg-4.12.a
/usr/local/lib/libitkgdcmcharls-4.12.a
/usr/local/lib/libitkgdcmuuid-4.12.a
/usr/local/lib/libITKNrrdIO-4.12.a /usr/local/lib/libitkpng-4.12.a
/usr/local/lib/libITKIOXML-4.12.a /usr/local/lib/libITKMetaIO-4.12.a
/usr/local/lib/libITKgiftiio-4.12.a /usr/local/lib/libITKEXPAT-4.12.a
/usr/local/lib/libITKniftiio-4.12.a /usr/local/lib/libITKznz-4.12.a
/usr/local/lib/libITKIOIPL-4.12.a /usr/local/lib/libITKIOTIFF-4.12.a
/usr/local/lib/libitktiff-4.12.a /usr/local/lib/libitkjpeg-4.12.a
/usr/local/lib/libitkhdf5_cpp.a /usr/local/lib/libitkhdf5.a
/usr/local/lib/libitkzlib-4.12.a
/usr/local/lib/libITKIOTransformBase-4.12.a
/usr/local/lib/libITKTransformFactory-4.12.a
/usr/local/lib/libITKSpatialObjects-4.12.a
/usr/local/lib/libITKMesh-4.12.a /usr/local/lib/libITKTransform-4.12.a
/usr/local/lib/libITKPath-4.12.a
/usr/local/lib/libITKOptimizers-4.12.a
/usr/local/lib/libITKStatistics-4.12.a
/usr/local/lib/libitkNetlibSlatec-4.12.a
/usr/local/lib/libITKIOImageBase-4.12.a
/usr/local/lib/libITKVideoCore-4.12.a
/usr/local/lib/libITKCommon-4.12.a
/usr/local/lib/libitkdouble-conversion-4.12.a
/usr/local/lib/libitksys-4.12.a
/usr/local/lib/libITKVNLInstantiation-4.12.a
/usr/local/lib/libitkvnl_algo-4.12.a /usr/local/lib/libitkvnl-4.12.a
/usr/local/lib/libitkv3p_netlib-4.12.a
/usr/local/lib/libitknetlib-4.12.a /usr/local/lib/libitkvcl-4.12.a
/usr/local/lib/libvtkFiltersAMR-8.0.a
/usr/local/lib/libvtklibharu-8.0.a
/usr/local/lib/libvtkRenderingGL2PSOpenGL2-8.0.a
/usr/local/lib/libvtkgl2ps-8.0.a
/usr/local/lib/libvtkRenderingContext2D-8.0.a
/usr/local/lib/libvtkFiltersImaging-8.0.a
/usr/local/lib/libvtkverdict-8.0.a
/usr/local/lib/libvtkFiltersParallel-8.0.a
/usr/local/lib/libvtknetcdf_c++.a
/usr/local/lib/libvtkDomainsChemistry-8.0.a
/usr/local/lib/libvtkoggtheora-8.0.a /usr/local/lib/libvtkproj4-8.0.a
/usr/local/lib/libvtkViewsCore-8.0.a
/usr/local/lib/libvtkInteractionWidgets-8.0.a
/usr/local/lib/libvtkImagingGeneral-8.0.a
/usr/local/lib/libvtkRenderingAnnotation-8.0.a
/usr/local/lib/libvtkRenderingFreeType-8.0.a
/usr/local/lib/libvtkfreetype-8.0.a
/usr/local/lib/libvtkImagingColor-8.0.a
/usr/local/lib/libvtkInteractionStyle-8.0.a
/usr/local/lib/libvtkInfovisLayout-8.0.a
/usr/local/lib/libvtkFiltersModeling-8.0.a
/usr/local/lib/libvtkImagingHybrid-8.0.a
/usr/local/lib/libvtkInfovisCore-8.0.a
/usr/local/lib/libvtkFiltersExtraction-8.0.a
/usr/local/lib/libvtkFiltersStatistics-8.0.a
/usr/local/lib/libvtkImagingFourier-8.0.a
/usr/local/lib/libvtkalglib-8.0.a /usr/local/lib/libvtklibxml2-8.0.a
/usr/local/lib/libvtkexoIIc-8.0.a
/usr/local/lib/libvtkFiltersHybrid-8.0.a
/usr/local/lib/libvtkImagingSources-8.0.a
/usr/local/lib/libvtkIOImage-8.0.a
/usr/local/lib/libvtkDICOMParser-8.0.a /usr/local/lib/libvtkpng-8.0.a
-lm /usr/local/lib/libvtkmetaio-8.0.a /usr/local/lib/libvtktiff-8.0.a /usr/local/lib/libvtkjpeg-8.0.a -lm /usr/local/lib/libvtkNetCDF-8.0.a
/usr/local/lib/libvtkhdf5_hl-8.0.a /usr/local/lib/libvtkhdf5-8.0.a -lm
/usr/local/lib/libvtkRenderingOpenGL2-8.0.a -lSM -lICE -lX11 -lXext
-lXt /usr/local/lib/libvtkglew-8.0.a /usr/local/lib/libvtkRenderingVolume-8.0.a
/usr/local/lib/libvtkImagingCore-8.0.a
/usr/local/lib/libvtkRenderingCore-8.0.a
/usr/local/lib/libvtkFiltersGeometry-8.0.a
/usr/local/lib/libvtkFiltersSources-8.0.a
/usr/local/lib/libvtkFiltersGeneral-8.0.a
/usr/local/lib/libvtkFiltersCore-8.0.a
/usr/local/lib/libvtkCommonComputationalGeometry-8.0.a
/usr/local/lib/libvtkCommonColor-8.0.a
/usr/local/lib/libvtkImagingMath-8.0.a -lGLU -lGL
/usr/local/lib/libvtkIOXML-8.0.a
/usr/local/lib/libvtkIOXMLParser-8.0.a
/usr/local/lib/libvtkexpat-8.0.a
/usr/local/lib/libvtkParallelCore-8.0.a
/usr/local/lib/libvtkIOLegacy-8.0.a /usr/local/lib/libvtkIOCore-8.0.a
/usr/local/lib/libvtkzlib-8.0.a
/usr/local/lib/libvtkCommonExecutionModel-8.0.a
/usr/local/lib/libvtkCommonDataModel-8.0.a
/usr/local/lib/libvtkCommonTransforms-8.0.a
/usr/local/lib/libvtkCommonMisc-8.0.a
/usr/local/lib/libvtkCommonMath-8.0.a
/usr/local/lib/libvtkCommonSystem-8.0.a
/usr/local/lib/libvtkCommonCore-8.0.a /usr/local/lib/libvtksys-8.0.a
-ldl -lpthread /usr/local/lib/libvtklz4-8.0.a -Wl,-rpath,/usr/local/lib ^[[A^[[A^[[A^[[A^[[Alibmeshlib.a(volumetric-image.cpp.o): In function
VolumetricImage::ItkImageToCgalImage(itk::SmartPointer<itk::Image<char,
3u> >&, CGAL::Image_3&)':
/home/n/Documents/b1/b1/src/volumetric-image.cpp:217: undefined
reference to_createImage(int, int, int, int, float, float, float,
int, WORD_KIND, SIGN)' libmeshlib.a(volumetric-image.cpp.o): In
function CGAL::Image_3::Image_3(point_image*)':
/usr/local/include/CGAL/Image_3.h:105: undefined reference to
CGAL::Image_3::private_read(point_image*)' collect2: error: ld
returned 1 exit status src/CMakeFiles/main.dir/build.make:419: recipe
for target 'src/main' failed make[2]: * [src/main] Error 1 make[2]:
Leaving directory '/home/n/Documents/b1/b1/build'
CMakeFiles/Makefile2:896: recipe for target
'src/CMakeFiles/main.dir/all' failed make[1]: *
[src/CMakeFiles/main.dir/all] Error 2 make[1]: Leaving directory
'/home/n/Documents/b1/b1/build' Makefile:83: recipe for target 'all'
failed make: *** [all] Error 2
You seem to be failing to properly set up linking for CGAL. This thread should help. Just link to ITK instead of VTK.
I try to compile on iOS 8.3, Xcode 6.3.2 a project including openFramework.
It works very well if I setup the compilation for 32bit architecture
ARCHS = $(ARCHS_STANDARD_32_BIT)
The problem is, recently, Apple requires iOS apps to be 64bits exclusively.
I tried to change my conf to:
ARCHS = $(ARCHS_STANDARD_64_BIT)
or simply to set standard architecture but I end up with the following error:
with the following conf:
HEADER_OF = "$(OF_PATH)/libs/openFrameworks/**"
HEADER_OFXIOS = "$(OF_PATH)/addons/ofxiOS/**"
HEADER_OFXMULTITOUCH = "$(OF_PATH)/addons/ofxMultiTouch/**"
HEADER_OFXACCELEROMETER = "$(OF_PATH)/addons/ofxAccelerometer/**"
HEADER_FREETYPE = "$(OF_PATH)/libs/freetype/include"
HEADER_FREETYPE2 = "$(OF_PATH)/libs/freetype/include/freetype2"
HEADER_POCO = "$(OF_PATH)/libs/poco/include"
HEADER_FMODEX = "$(OF_PATH)/libs/fmodex/include"
HEADER_GLEW = "$(OF_PATH)/libs/glew/include"
HEADER_FREEIMAGE = "$(OF_PATH)/libs/FreeImage/include"
HEADER_TESS2 = "$(OF_PATH)/libs/tess2/include"
HEADER_RTAUDIO = "$(OF_PATH)/libs/rtaudio/include"
HEADER_GLU = "$(OF_PATH)/libs/glu/include_ios"
HEADER_SSL = "$(OF_PATH)/libs/openssl/include"
HEADER_OFXASSIMPMODELLOADER = "$(OF_PATH)/addons/ofxAssimpModelLoader/**"
LIB_FREEIMAGE = "$(OF_PATH)/libs/FreeImage/lib/osx/freeimage.a"
LIB_TESS = "$(OF_PATH)/libs/tess2/lib/osx/tess2.a"
LIB_GLU = "$(OF_PATH)/libs/glu/lib/ios/glu.a"
LIB_SSL = "$(OF_PATH)/libs/openssl/lib/osx/ssl.a"
LIB_CRYPTO = "$(OF_PATH)/libs/openssl/lib/osx/crypto.a"
LIB_FREEIMAGE_IPHONE = "$(OF_PATH)/libs/FreeImage/lib/ios/freeimage.a"
LIB_FREETYPE_IPHONE = "$(OF_PATH)/libs/freetype/lib/ios/freetype.a"
LIB_POCOFOUNDATION_IPHONE = "$(OF_PATH)/libs/poco/lib/ios/PocoFoundation.a"
LIB_POCONET_IPHONE = "$(OF_PATH)/libs/poco/lib/ios/PocoNet.a"
LIB_POCONETSSL_IPHONE = "$(OF_PATH)/libs/poco/lib/ios/PocoNetSSL.a"
LIB_POCOCRYPTO_IPHONE = "$(OF_PATH)/libs/poco/lib/ios/PocoCrypto.a"
LIB_POCOUTIL_IPHONE = "$(OF_PATH)/libs/poco/lib/ios/PocoUtil.a"
LIB_POCOXML_IPHONE = "$(OF_PATH)/libs/poco/lib/ios/PocoXML.a"
LIB_POCOZIP_IPHONE = "$(OF_PATH)/libs/poco/lib/ios/PocoZip.a"
LIB_TESS_IPHONE = "$(OF_PATH)/libs/tess2/lib/ios/tess2.a"
LIB_GLU_IPHONE = "$(OF_PATH)/libs/glu/lib/ios/glu-ios.a"
LIB_SSL_IPHONE = "$(OF_PATH)/libs/openssl/lib/ios/ssl.a"
LIB_CRYPTO_IPHONE = "$(OF_PATH)/libs/openssl/lib/ios/crypto.a"
LIB_ASSIMP = "$(OF_PATH)/addons/ofxAssimpModelLoader/libs/assimp/lib/ios/assimp.a"
MISC_FLAGS = "-ObjC"
OF_CORE_LIBS = $(MISC_FLAGS) $(LIB_FREETYPE) $(LIB_FREEIMAGE) $(LIB_POCOFOUNDATION) $(LIB_POCONET) $(LIB_POCONETSSL) $(LIB_POCOCRYPTO) $(LIB_POCOXML) $(LIB_POCOZIP) $(LIB_POCOUTIL) $(LIB_FREETYPE_IPHONE) $(LIB_FREEIMAGE_IPHONE) $(LIB_POCONET_IPHONE) $(LIB_POCONETSSL_IPHONE) $(LIB_POCOCRYPTO_IPHONE) $(LIB_POCOXML_IPHONE) $(LIB_POCOZIP_IPHONE) $(LIB_POCOUTIL_IPHONE) $(LIB_POCOFOUNDATION_IPHONE) $(LIB_TESS_IPHONE) $(LIB_GLU) $(LIB_GLU_IPHONE) $(LIB_SSL_IPHONE) $(LIB_CRYPTO_IPHONE) $(LIB_ASSIMP)
OF_CORE_HEADERS = $(HEADER_OF) $(HEADER_OFXIOS) $(HEADER_OFXMULTITOUCH) $(HEADER_OFXACCELEROMETER) $(HEADER_POCO) $(HEADER_FREETYPE) $(HEADER_FREETYPE2) $(HEADER_FMODEX) $(HEADER_GLEW) $(HEADER_FREEIMAGE) $(HEADER_TESS2) $(HEADER_RTAUDIO) $(HEADER_GLU) $(HEADER_SSL) $(HEADER_OFXASSIMPMODELLOADER)
//THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT.
//THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED
OF_PATH = External/openFrameworks
//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
#include "External/openFrameworks/libs/openFrameworksCompiled/project/ios/CoreOF.xcconfig"
#include "Pods/Target Support Files/Pods/Pods.release.xcconfig"
OTHER_LDFLAGS = $(PODS_OTHER_LDFLAGS) $(OF_CORE_LIBS)
HEADER_SEARCH_PATHS = $(PODS_HEADER_SEARCH_PATHS) $(OF_CORE_HEADERS)
// C++ Standard Library
CLANG_CXX_LIBRARY = libstdc++
// Force C99 dialect
GCC_C_LANGUAGE_STANDARD = c99
// Architectures
ARCHS = $(ARCHS_STANDARD_32_BIT)
VALID_ARCHS = armv6 armv7 arm64
//C Modules
CLANG_ENABLE_MODULES = NO
//Direct usage of isa
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES
//:configuration = Debug
GCC_THUMB_SUPPORT = NO
GCC_WARN_PROTOTYPE_CONVERSION = NO
//:completeSettings = some
GCC_WARN_ABOUT_RETURN_TYPE = YES
//:completeSettings = some
GCC_WARN_UNINITIALIZED_AUTOS = NO
//:completeSettings = some
GCC_WARN_UNUSED_FUNCTION = NO
try building against the latest OF main trunk from here or NickHardeman's ported version of OF
I'm trying to use CCV library under IOS. I'm trying a ver simple test: open file and save it back to disk — but it doesn't work.
NSString *srcPath, *dstPath;
srcPath = [[NSBundle mainBundle] pathForResource:#"src" ofType:#"jpg"];
dstPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0] stringByAppendingPathComponent:#"dst.jpg"];
ccv_dense_matrix_t* image = 0;
ccv_read((char*)[srcPath cStringUsingEncoding:NSUTF8StringEncoding], &image, CCV_IO_JPEG_FILE);
// BREAKPOINT
ccv_write(image, (char*)[dstPath cStringUsingEncoding:NSUTF8StringEncoding], 0, CCV_IO_JPEG_FILE, 0);
When app stops at breakpoint image == NULL
When app finishes I can find dst.jpg file, but it's size is 0 bytes.
What am i doing wrong?
I'm using libccv.a that I manually complied with this config:
XCODE_SDK := iphoneos7.0
ARCH := armv7
CC := clang
AR := ar
CFLAGS := -arch armv7 -isysroot "/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk" -D HAVE_LIBJPEG -I/usr/X11/include
LDFLAGS := -lm -arch armv7 -isysroot "/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk" -ljpeg -lz -L/usr/X11/lib
I also use libjpeg.a that I've downloaded from github: https://github.com/swisspol/Libraries/blob/master/Libraries-iOS/libjpeg-turbo/lib/libjpeg.a