Comments (3)
Hi,
Yes, no Makefile for the new lib yet!! I have to polish my rusty makefile
writing skills ;) Will upload soon. If anybody has already written, please feel
free to post it here.
Original comment by [email protected]
on 6 Nov 2010 at 3:02
from twitcurl.
Here's the version that I got to work. Note, I had to download a new version
of libcurl since I couldn't compile it with the old version on my system so I
added a CURL_LIB that would not be needed by people with the latest version of
libcurl. By no means is this a production version of the Makefile. A lot of
cleanup is needed, and if I have chance to get around to it, I'll update it and
clean it up.
# Hey Emacs, this is a -*- makefile -*-
# The twitcurl library.. a Makefile for OpenWRT
# Makefile-fu by John Boiles
# 28 September 2009
LIBNAME = twitcurl
SRC = $(LIBNAME).cpp \
HMAC_SHA1.cpp \
SHA1.cpp \
base64.cpp \
oauthlib.cpp \
urlencode.cpp
STAGING_DIR =
INCLUDE_DIR = $(STAGING_DIR)/usr/include
CURL_INCLUDE = /home/qa5535/libcurl/usr/local/include
LIBRARY_DIR = $(STAGING_DIR)/usr/lib
CURL_LIB = /home/qa5535/libcurl/usr/local/lib
LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
CC = g++
REMOVE = rm -f
COPY = cp
REMOTEIP = 192.168.1.30
# Compiler flag to set the C Standard level.
# c89 - "ANSI" C
# gnu89 - c89 plus GCC extensions
# c99 - ISO C99 standard (not yet fully implemented)
# gnu99 - c99 plus GCC extensions
# CSTANDARD = -std=gnu99
# Place -D or -U options here
CDEFS =
# Place -I options here
CINCS =
CFLAGS =$(CDEFS) $(CINCS) $(CSTANDARD)
all: target
target: $(SRC) $(LIBNAME).h
$(CC) -Wall -fPIC -c -I$(CURL_INCLUDE) -I$(INCLUDE_DIR) $(SRC)
$(CC) -shared -Wl,-soname,lib$(LIBNAME).so.1 $(LDFLAGS) -L$(CURL_LIB) -L$(LIBRARY_DIR) -lcurl -o lib$(LIBNAME).so.1.0 *.o
#clean project.
clean:
$(REMOVE) $(LIBNAME)*.so.1.0
$(REMOVE) $(LIBNAME).o
$(REMOVE) $(LIBRARY_DIR)/lib$(LIBNAME).so*
# Install library to local openwrt library directory
install: all
$(COPY) lib$(LIBNAME).so.1.0 $(LIBRARY_DIR)
$(COPY) $(LIBNAME).h $(INCLUDE_DIR)/
ln -sf $(LIBRARY_DIR)/lib$(LIBNAME).so.1.0 $(LIBRARY_DIR)/lib$(LIBNAME).so
ln -sf $(LIBRARY_DIR)/lib$(LIBNAME).so.1.0 $(LIBRARY_DIR)/lib$(LIBNAME).so.1
Original comment by [email protected]
on 8 Nov 2010 at 3:48
from twitcurl.
Thanks. Linux branch svn/branches/libtwitcurl has been updated with new code
and makefile.
Original comment by [email protected]
on 6 Mar 2011 at 3:58
- Changed state: Fixed
from twitcurl.
Related Issues (20)
- Move to Github for better collaboration HOT 1
- oauth lib incompatibility HOT 1
- Status update fails when spaces or special symbols are used (Linux) HOT 3
- Linking error with twitcurl.lib/obj HOT 3
- Extra features HOT 4
- Photo upload on twitter using twitcurl HOT 2
- std::min issue HOT 1
- error 89 while oauth with token HOT 1
- No next cursor support in twitCurl HOT 2
- Next cursor. HOT 4
- Replying to tweets HOT 2
- twitCurl::oAuthRequestToken() Doesn't work HOT 9
- Raspberry Pi HOT 1
- Error code 68 HOT 11
- Twitter api 1.1 not fully supported / broken api 1.0 calls present
- URL encoding error
- Conflict between base64 in twitcurl and libcurl
- How to get tweets that don't contain chosen words?
- how to upload media
- TWITCURL_MENTIONS_URL in twitcurlurls.h should be statuses/mentions_timeline
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 twitcurl.