Comments (1)
I solved the error. There are a few changes needed for pfp
to compile on OSX.
- Download and compile [Boost][http://www.boost.org/users/download/]
- Download and compile [ICU4C][http://icu-project.org/download/4.4.html#ICU4C]
Replace CMakeLists.txt
with the following:
PROJECT(pfp)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
SET(CMAKE_VERBOSE_MAKEFILE ON)
# binaries get installed here
SET(CMAKE_INSTALL_PREFIX "/usr/")
#add definitions, compiler switches, etc.
ADD_DEFINITIONS(-Wall -O3 -DNDEBUG -march=core2 -mtune=core2)
FIND_PACKAGE(Boost 1.44.0 REQUIRED COMPONENTS python filesystem thread regex system unit_test_framework)
#LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
INCLUDE_DIRECTORIES(include /usr/include/python2.6 ${Boost_INCLUDE_DIRS})
message(STATUS "Boost_LIBRARIES=${Boost_LIBRARIES}")
ADD_EXECUTABLE(test
src/test/lexicon.cpp
src/test/pcfg_parser.cpp
src/test/tokenizer.cpp
src/test/main.cpp
)
ADD_EXECUTABLE(pfpc
src/pfpc/main.cpp
)
ADD_LIBRARY(pfp SHARED
src/pfp/config
src/pfp/tokenizer.yy
)
ADD_EXECUTABLE(pfpd
src/pfpd/main
)
ADD_LIBRARY(pfp SHARED
src/pfp/config
src/pfp/tokenizer.yy
)
ADD_EXECUTABLE(pfpd
src/pfpd/main
src/pfpd/pfpd_handler
src/moost/http/mime_types
src/moost/http/reply
src/moost/http/request_parser
)
ADD_LIBRARY(pypfp SHARED
src/pypfp/pypfp
)
TARGET_LINK_LIBRARIES(pfp ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES(pypfp pfp ${Boost_LIBRARIES} python2.6 icuio icui18n icuuc icudata)
TARGET_LINK_LIBRARIES(pfpd pfp ${Boost_LIBRARIES} icuio icui18n icuuc icudata)
TARGET_LINK_LIBRARIES(pfpc pfp ${Boost_LIBRARIES} icuio icui18n icuuc icudata)
TARGET_LINK_LIBRARIES(test pfp ${Boost_LIBRARIES} icuio icui18n icuuc icudata)
INSTALL(TARGETS pfpd DESTINATION bin)
INSTALL(TARGETS pfpc DESTINATION bin)
INSTALL(TARGETS pfp LIBRARY DESTINATION lib)
INSTALL(DIRECTORY share/pfp DESTINATION share)
# use this to make sure libpypfp.so is instead called pfp.so and installed in /usr/lib/python2.6/dist-packages
SET_TARGET_PROPERTIES(pypfp PROPERTIES OUTPUT_NAME "pfp")
SET_TARGET_PROPERTIES(pypfp PROPERTIES PREFIX "")
INSTALL(TARGETS pypfp LIBRARY DESTINATION lib/python2.6/dist-packages)
from pfp.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pfp.