#17466 closed enhancement (fixed)
vxl-1.11.0 dedicated directory for libs
Reported by: | macports@… | Owned by: | tobypeterson |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | cmake install_targets | Cc: | tobypeterson |
Port: |
Description
Hi Toby,
the guys over at #cmake told me, that it wouldn't be possible to override the INSTALL_TARGETS() command (which is deprecated BTW) of vxl's cmake. So we need to change all CMakeLists.txt. Here's a command that automatically "fixes" these lines in all files.
find . -name CMakeLists.txt -type f -exec sed -i -e 's:INSTALL_TARGETS(/lib :INSTALL_TARGETS(/lib/vxl :' {} \;
Change History (10)
comment:1 Changed 16 years ago by tobypeterson
Owner: | changed from macports-tickets@… to toby@… |
---|---|
Status: | new → assigned |
comment:2 Changed 16 years ago by macports@…
comment:3 Changed 16 years ago by tobypeterson
Eh, I think I'm going to take the easy way out and just rename the directory afterwards.
comment:4 Changed 16 years ago by macports@…
Did you already try this one?:
-DLIBRARY_OUTPUT_PATH=/opt/local/lib/vxl
comment:6 Changed 16 years ago by tobypeterson
LIBRARY_OUTPUT_PATH only sets the directory where libs are placed during the build, not during installation
comment:7 Changed 16 years ago by macports@…
Hi Toby,
the build failed here. I'm using Xcode 3.1.1 on Leopard.
nasmobil-3:~ nas$ sudo port install vxl ---> Fetching vxl ---> Verifying checksum(s) for vxl ---> Extracting vxl ---> Applying patches to vxl ---> Configuring vxl ---> Building vxl with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/work/vxl-1.11.0" && make all " returned error 2 Command output: [ 94%] Building CXX object contrib/brl/bseg/bvxm/CMakeFiles/bvxm.dir/Templates/vbl_smart_ptr+bvxm_voxel_world-.o [ 94%] Building CXX object contrib/brl/bseg/bvxm/CMakeFiles/bvxm.dir/Templates/vbl_smart_ptr+bvxm_world_params-.o Linking CXX shared library ../../../../lib/libbvxm.dylib [ 94%] Built target bvxm Scanning dependencies of target bprb [ 94%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/bprb_parameters.o [ 94%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/bprb_process.o [ 94%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/bprb_batch_process_manager.o [ 94%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/bprb_null_process.o [ 94%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/Templates/bprb_parameters+bool-.o [ 94%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/Templates/bprb_parameters+bprb_filepath-.o [ 94%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/Templates/bprb_parameters+double-.o [ 95%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/Templates/bprb_parameters+float-.o [ 95%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/Templates/bprb_parameters+int-.o [ 95%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/Templates/bprb_parameters+unsigned-.o [ 95%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/Templates/bprb_parameters+vcl_string-.o [ 95%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/Templates/bprb_process_manager+bprb_batch_process_manager-.o [ 95%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/Templates/vbl_smart_ptr+bprb_parameters-.o [ 95%] Building CXX object contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/Templates/vbl_smart_ptr+bprb_process-.o Linking CXX shared library ../../../../lib/libbprb.dylib Undefined symbols:
"bprb_process_manager<bprb_batch_process_manager>::process_map", referenced from:
ZN20bprb_process_managerI26bprb_batch_process_managerE11process_mapE$non_lazy_ptr in bprb_process_manager+bprb_batch_process_manager-.o
"bprb_process_manager<bprb_batch_process_manager>::instance_", referenced from:
ZN20bprb_process_managerI26bprb_batch_process_managerE9instance_E$non_lazy_ptr in bprb_process_manager+bprb_batch_process_manager-.o
ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: * [lib/libbprb.dylib] Error 1 make[1]: * [contrib/brl/bpro/bprb/CMakeFiles/bprb.dir/all] Error 2 make: * [all] Error 2
Error: Status 1 encountered during processing.
comment:9 Changed 16 years ago by macports@…
Can you disable the build of BRL selectively for Leopard until there is a fix?:
-DBUILD_BRL=NO
Actually this catches some more:
find . -name CMakeLists.txt -type f -exec sed -i -e 's:INSTALL_TARGETS([ \t]*/lib[ \t]:INSTALL_TARGETS(/lib/vxl :' {} \;