Are C++ bindings activated in the Archlinux NCurses library ?
Hello,
I want to write an application using the c++ bindings of the ncurses library.
I managed to compile something like :
#include <curses.h>
#include <cursesw.h>
int main()
NCursesWindow *test;
return (0);
But when I start to use C++ symbols such as a NCursesWindow constructor (which is present and public in the cursesw.h header file) :
#include <curses.h>
#include <cursesw.h>
int main()
NCursesWindow *test = new NCursesWindow(10, 10, 0, 0);
(void)test;
return (0);
I get the error :
$ make
g++ -W -Wall -Wextra -I Includes/ -std=c++11 -c -o Sources/main.o Sources/main.cpp
g++ -o cppcurses Sources/main.o -lncurses
Sources/main.o: In function `main':
main.cpp:(.text+0x31): undefined reference to `NCursesWindow::NCursesWindow(int, int, int, int)'
collect2: error: ld returned 1 exit status
Makefile:25: recipe for target 'cppcurses' failed
make: *** [cppcurses] Error 1
So I was wondering : are the c++ bindings activated in the ncurses library provided by the core repository ? And if not, shouldn't they be ?
(It works fine if I link the libncurses++.a created by downloading and building the library from the sources, but I find it quite inconvenient)
Thanks !
Last edited by Unda (2014-10-12 01:08:08)
Well, it seems that the configuration script provided by the ncurses source code is really messed up, the only way I was able to build a ncurses++.so is by passing the option --with-libtool and modifying the package function too...
Since it is not too big, I post the entire PKGBUILD here, it works for me and if someone else can confirm that it works, I'll file a bug report
# $Id: PKGBUILD 197156 2013-10-23 13:04:21Z allan $
# Maintainer: Allan McRae <[email protected]>
# Contributor: judd <[email protected]>
pkgname=ncurses
pkgver=5.9
pkgrel=7
pkgdesc="System V Release 4.0 curses emulation library"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/ncurses/"
license=('MIT')
depends=('glibc')
source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.sig})
md5sums=('8cb9c412e5f2d96bc6f459aa8c6282a1'
'014ffdbbfec6d41a9a89d6cbe6434638')
prepare() {
#cleaning the old building directories
cd ${srcdir}/
rm -Rf ./ncurses{,w}-build
build() {
cd ${srcdir}/
mkdir ncurses{,w}-build
cd ${srcdir}/ncursesw-build
../${pkgname}-${pkgver}/configure --prefix=/usr --mandir=/usr/share/man \
--with-shared --with-normal --without-debug --without-ada \
--enable-widec --enable-pc-files --with-cxx-binding --with-cxx-shared \
--with-libtool \
# add --enable-ext-colors and --enable-ext-mouse with next soname bump
make
# libraries for external binary support
cd ${srcdir}/ncurses-build
[ $CARCH = "x86_64" ] && CONFIGFLAG="--with-chtype=long"
../${pkgname}-${pkgver}/configure --prefix=/usr \
--with-shared --with-normal --without-debug --without-ada --with-cxx-binding \
--with-cxx-shared --with-libtool $CONFIGFLAG
make
package() {
cp -n ${srcdir}/ncurses-build/lib/.libs/*.so* ${srcdir}/ncurses-build/lib/
cp -n ${srcdir}/ncursesw-build/lib/.libs/*.so* ${srcdir}/ncursesw-build/lib/
for lib in ncurses form panel menu; do
cp -n ${srcdir}/ncurses-build/lib/lib${lib}.so ${srcdir}/ncurses-build/lib/lib${lib}.so.${pkgver}
cp -n ${srcdir}/ncursesw-build/lib/lib${lib}w.so ${srcdir}/ncursesw-build/lib/lib${lib}w.so.${pkgver}
done
cd ${srcdir}/ncursesw-build
../${pkgname}-${pkgver}/misc/shlib make DESTDIR=${pkgdir} install
# fool packages looking to link to non-wide-character ncurses libraries
for lib in ncurses form panel menu; do
echo "INPUT(-l${lib}w)" >${pkgdir}/usr/lib/lib${lib}.so
done
for lib in ncurses ncurses++ form panel menu; do
ln -s ${lib}w.pc ${pkgdir}/usr/lib/pkgconfig/${lib}.pc
done
# some packages look for -lcurses during build
echo "INPUT(-lncursesw)" >${pkgdir}/usr/lib/libcursesw.so
ln -s libncurses.so ${pkgdir}/usr/lib/libcurses.so
# non-widec compatibility libraries
cd ${srcdir}/ncurses-build
for lib in ncurses form panel menu; do
install -Dm755 lib/lib${lib}.so.${pkgver} ${pkgdir}/usr/lib/lib${lib}.so.${pkgver}
ln -s lib${lib}.so.${pkgver} ${pkgdir}/usr/lib/lib${lib}.so.5
done
# install license, rip it from the readme
cd ${srcdir}/${pkgname}-${pkgver}
install -dm755 ${pkgdir}/usr/share/licenses/$pkgname
grep -B 100 '$Id' README > ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
Last edited by mauritiusdadd (2014-10-13 12:05:41)
Similar Messages
-
So I went ot update my ipod on itunes....and a box appeared saying to make sure the internet setting are correct and active, but my internet is working fine. What do I do?
Sounds like this:
Update Server
Try:
- Powering off and then back on your router.
- iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
- Change the DNS to either Google's or Open DNS servers
Public DNS — Google Developers
OpenDNS IP Addresses
- Try on another computer/network
- Wait if it is an Apple problem -
The system Pages library and its RSS feed do not work properly in SharePoint 2010
This question is about RSS feed for the system 'Pages' library in SharePoint 2010.
Now there are 5 'News' pages in the system 'Pages' library. In each news page there is one field called 'Title' for the news title. One of the news page is named 'FileNamePage5.aspx', and the news title is 'This is the title of page5'.
I have enabled RSS in Site Settings, and configured RSS Settings for the 'Pages' library from the Communications section via Document Library Settings. I selected a few columns to display in the RSS description, including the 'Title' column. In the RSS feed
(XML file) of the system 'Pages' library, I checked the XML source code, and found the news page file name appearing in the <title> tag below within the feed (XML source code).
<title>FileNamePage5</title>
and the original news title 'This is the title of page5' was appearing in the <description> tag in the feed (XML sorce code)
<description><![CDATA[<div> ... This is the title of page5... </div>]]></description>.
This would make it hard to extract ONLY the original news title (This is the title of page5) out of the feed via XSLT, because the data within the <description> tag in the feed also contains data from all other selected columns defined via the RSS
Setting. If I did not select the 'Title' column via RSS Setting above, I even could not find the orinigal news title in the RSS feed.
This is happening for all other news pages in the system 'Pages' library. Is this what SharePoint 2010 normally does? or is something wrong with the settings for site or the system 'Pages' library?
How to display ONLY the original news title (This is the title of page5) in the <title> tag in the RSS feed. Please Help me to resolve this issue.
谢亚军@SydneyHi,
According to your description, my understanding is that you want to display the value in Title column of Pages library in title tag in RSS Feed in SharePoint.
I tested the same scenario per your post, the title tag in RSS Feed displayed the value of Name column in libraries and displayed the value of Title column in lists.
It is by design and there is no OOB way to change the default column mapping in RSS Feed.
I recommend to customize your own RSS Feed style sheet to make the title displays the value of Title column in SharePoint libraries.
Here is a link about customizing the RSS Feed for document library for you to take a look:
http://markeev.com/Articles/sharepoint-blog-rss.aspx
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
The user and the mailbox are in different Active Directory Sites
Hi All,
I have 2 site, each site have an Exchange Server 2010 SP1, let say Site HQ and Site DRC I monitored it with SCOM 2007 R2, site HQ successfully monitored, then I continue try to monitor DRC site. I executed new-TestCasConnectivityUser.ps1 at MBX DRC Site
to create extest user.
Then I try to execute command to test-connectivity, but it failed.
Test-OwaConnectivity -TestType:Internal -MonitoringContext:$true -TrustAnySSLCertificate:$true -LightMode:$true | fl
RunspaceId : 6b709fa5-0719-4be5-ae62-ec4b3617a6e0
AuthenticationMethod :
MailboxServer : CONMBX02.contoso.com
LocalSite : CONMBX02.contoso.com
SecureAccess : False
VirtualDirectoryName :
Url :
UrlType : Unknown
Port : 0
ConnectionType : Plaintext
ClientAccessServerShortName : DRCCAS01
LocalSiteShortName : CONMBX02
ClientAccessServer : DRCCAS01.contoso.com
Scenario : Reset Credentials
ScenarioDescription : Reset automated credentials for the Client Access Probing Task user on Mailbox server CON
MBX02.contoso.com.
PerformanceCounterName :
Result : Failure
Error : [Microsoft.Exchange.Monitoring.CasHealthStorageErrorException]: An error occurred while t
rying to access mailbox CONMBX02.contoso.com, on behalf of user contoso.com\extes
t_xxxxxxxx
Additional information:
[Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in
different Active Directory sites..
UserName : extest_xxxxxxxx
StartTime : 04/01/2012 20:46:19
LaCONcy : 00:00:00.0156460
EventType : Error
LaCONcyInMillisecondsString :
Identity :
IsValid : True
WARNING: No Client Access servers were tested.
RunspaceId : 6b709fa5-0719-4be5-ae62-ec4b3617a6e0
Events : {Source: MSExchange Monitoring OWAConnectivity Internal
Id: 1005
Type: Error
Message: Couldn't access one or more test mailboxes.
The service that is being tested will not run against these mailboxes.
Detailed information:
Local Site:DRCProduction
[Microsoft.Exchange.Monitoring.CasHealthStorageErrorException]: An error occurred while trying to
access mailbox CONMBX02.contoso.com, on behalf of user contoso.com\extest_xxxxxxxx
Additional information:
[Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in differen
t Active Directory sites..
PerformanceCounters : {Object: MSExchange Monitoring OWAConnectivity Internal
Counter: Logon LaCONcy
Instance: DRCCAS01.contoso.com|DRCProduction
Value: -1000}
any help appreciate it.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Krisna Ismayanto | My blogs:
Krisna Ismayanto | Twitter: @ikrisnaHi
Removed existing test account on two site.
Then created test account on DGC through new-TestCasConnectivityUser.ps1.
Flushed Health Service on RMS.
Terence Yu
TechNet Community Support
Hi
What do you mean on DGC ? you mean I have remove both test account or just at DRC site only ?
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Krisna Ismayanto | My blogs:
Krisna Ismayanto | Twitter: @ikrisna -
I have a two site DAG, and the command is running from the alternate site where the databases are not currently being hosted. The following command...
Test-OutlookConnectivity -Protocol:TCP -TrustAnySSLCert:$true -MonitoringContext:$true
...errors with the following output:
An error occurred while trying to access mailbox CurrentlyHostingMBServerName.InternalDomainName, on behalf of user InternalDomainName\extest_bb13200232474
Additional information:
[Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in different Active Directory sit
es..
+ CategoryInfo : OperationStopped: (Microsoft.Excha...onnectivityTask:TestOutlookConnectivityTask) [Test-
OutlookConnectivity], CasHealthStorageErrorException
+ FullyQualifiedErrorId : F2F8AC0D,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
I thought this command would work based on the 'AllowCrossSiteRpcClientAccess: True' option on the DAG. The command works well if run a CAS server in the active DB site.Hi,
Exchange 2013 users use Outlook Anywhere to connect to CAS server. You may run the RCA to test the connectivity:
https://www.testexchangeconnectivity.com/
Thanks,
Simon Wu
TechNet Community Support -
Some pages of my website are not active from the home page
Built my website with iweb. When I go to the site the tabs to all the pages show, but several of them are not active from the home page. If I go to one of the active pages I can then click on the other pages. Is there a way to fix this? I've tried reloading the entire site, but several of the tabs remain inactive from the home page. Any help would be greatly appreciate - Thanks, Jodi
Thanks Roddy - I tried moving it down and it didn't work - That line is in the Template I used to build the site and is on every page. I did finally get the command A to work, but there's nothing covering those bottom three tabs.
However, when I put my mouse in the area of the box where it has my name (the image you sent me above) it shows a link desktop/site/booker_files and I noticed I have one of the rss feed blue arrows, but I can't seem to delete it. I wonder if that has something to do with it. It does the same thing on the website if you hover with your mouse.
Truly appreciate your help.
Jodi -
If you mean you are having trouble activating your iPhone after
updating to iOS 6:
iOS 6.0.1
Generally this is a sign that the iPhone had previously been
hacked/modified/jailbroken and the update relocked it to the
original wireless carrier. If this is the case, only that wireless
carrier can unlock your iPhone. You must contact them to see
if they offer unlocking and if you qualify.
My phone is from USA and unlocked version and I paid 750 USD.
Where did you acquire this iPhone?
USA
What wireless carrier did you use before this problem?
I used BSNL - India previously. After I get problem, I used Mobily -Saudi Arabia again I got problem and I am trying to use Airtel - India.
Does the app Cydia appear on your iPhone?
What does It mean?
What does it say when you look at Settings=>General=>About=>Carrier?
Airtel 13.0It would be better for troubleshhoting if you posted back to your original question.... here
-
We have created two partitions in removable drive(USB). One of the partition is active and the other is hidden. We are trying to access the hidden partition in Win PE 3.0 environment using WMI. VBScript code snippet used to detect the partitions is given
below:-
SetobjWMIService = GetObject("winmgmts:"_&
"{impersonationLevel=impersonate}!\\"&
strComputer & "\root\cimv2")
SetcolDisks = objWMIService.ExecQuery
Select * from Win32_LogicalDisk")
It will return the partition which is active but fails to list the partition which is hidden. The same piece of code was supported on WinPE 2.0I am giving the complete code, may be you are able to understand better. We are using Win32_LogicalDisk to retrieves the complete information of all the drives (like C:, D:) including removable drives.
Function
LocalDriveFound()
strComputer =
SetobjWMIService = GetObject("winmgmts:"_
"{impersonationLevel=impersonate}!\\"&
strComputer & "\root\cimv2")
SetcolDisks = objWMIService.ExecQuery
"Select * from Win32_LogicalDisk")
ForEachDiskDrive
IncolDisks
DriveLetter = Left(DiskDrive.Name,1)
DriveType = DiskDrive.DriveType
VolumeName = DiskDrive.VolumeName
WScript.echo Driveletter &
"|"& Drivetype &
"|"&VolumeName
SelectCaseDriveType
Case2 ,3
'Fixed or removable
If(VolumeName=USBVolumeName)
Then
If(DriveLetter<>
"Z")
Then
ChangeDriveLetterWithMountvol DriveLetter,
"Z"
EndIf
bIsLocal=
True
EndIf
If(VolumeName=USBRootName)
Then
If(DriveLetter<>
"Y")
Then
ChangeDriveLetterWithMountvol DriveLetter,
"Y"
EndIf
bIsLocal=
True
EndIf
CaseElse
EndSelect
Next
SetDrives =
Nothing
SetFileSystemObject =
Nothing
End
Function -
The following objects have previous versions that are no longer active
I am getting this error for one of my receiver determination when I try to edit and activate it .
The following objects have previous versions that are no longer active: Receiver Determination urn:sap-com:document:sap:idoc:messages | HRMD_A.HRMD_A07 | DEHCLNTXXX | * | * Open these objects in the editor and perform a conflict resolution . I am using the IDOC as source .
I try to resolve it by selecting the active version, i got the "Merge relation is null" error.
Any ideas?I am getting this error for one of my receiver determination when I try to edit and activate it .
The following objects have previous versions that are no longer active: Receiver Determination urn:sap-com:document:sap:idoc:messages | HRMD_A.HRMD_A07 | DEHCLNTXXX | * | * Open these objects in the editor and perform a conflict resolution . I am using the IDOC as source .
I try to resolve it by selecting the active version, i got the "Merge relation is null" error.
Any ideas? -
I have a large number of contacts in my Outlook account. As long as that account is active on the iPhone (6 ) the contact are available on the phone but disappear when that account is removed from the phone. How do I transfer the contacts permanently to the phone?
Archive the contacts you have in Address book, then delete them, they will be removed from iCloud as well. Restore the archive
-
My iPhone will not restore the process starts and then a message pops up saying 'we are unable to continue with your activation at the time' I have tried a few times now and the same. What can I do ? As I can't use iPhone at all now!!
Sorry... But...
The discussion of Jailbroken Devices is against the Terms of Use of this Forum.
You will need to look elsewhere.
Unauthorized modification of iOS
http://support.apple.com/kb/HT3743 -
I tried to update my iPhone 3GS with iOS, data was restored but on continue with activation in the iTunes stores, it is replying "We're sorry, we are unable to continue with your activation at this time." what could be the reason?
Hmm, well... iTunes trys to activate your iPod using the Apple server to make sure you have bought it legit.
Two things come into my mind:
1) Your iTunes can't access the internet.
2) Apples activation servers are down.
That's just my cents, maybe anyone else has an idea. -
Is this legit?
Apple Support Team <applsupporteam @icloud.com>
Confirm your email address
Dear Email Users,
As part of our security measures, we regularly screen activity in the E-mail system
and after noticing an issue on your account password, we are requesting confirmation
from you for the following reason:
Our system requires further password verification.
In accordance with E-mailUser Agreement, your account access will remain limited
until the issue has been resolved. Unfortunately, if access to your account remains
limited for an extended period of time, it may result in further limitations or
eventual account closure.
To verify your E-mail account, you must reply to this email
immediately and enter your following
information.
First Name:
Last Name:
Email Username :
Email Password :
Thank you for using webmail
Icloud. com support team
<Edited By Host>Apple requests that you forward these types of emails to them as follows (from http://support.apple.com/kb/HT4933):
If you receive a suspicious email, select the message text so that it is highlighted. Choose Forward as Attachmentfrom the Message menu (OS X Mail) or the Actions menu (Outlook). Send the email to [email protected] This provides Apple's legal department and law enforcement with useful information to help prevent future phishing emails. -
i connected my iphone 5 to itunesbecause i reset all contacs settings and it dosent let me connect itsays we are unable to continue with the activation at this time
Just have to give it some time. The activation and verification servers are all slammed right now 'cause of all the people trying to update at the same time. Give it a couple hours (or overnight if you can wait) and it should sort itself out.
= L.I. -
Custom headers are not exported correctly in the bindings for the WCF-WebHttp adapter
I have an annoying issue with the bindings for the WCF-WebHttp adapter.
As you know, the "Messages" tab of the WCF-WebHttp transport properties enables a developer to configure a number of static outbound HTTP headers. When I've entered two or more headers in the textbox, the CRLF between individual headers will be
stripped after a bindings import. This means I cannot call RESTful services that require more than one custom HTTP header in a messaging-only scenario, because BizTalk goofs up the configuration.
For example, when I enter the following headers in the textbox:
Then export the bindings, and immediately import the bindings again (untouched), the textbox now shows:
I did some brief analysis, and within the binding file's XML, the HttpHeaders property (contained in the TransportTypeData element) is not encoded/escaped in any way, so therefore the significant whitespace (in this case CRLF) that needs to be preserved
is lost in the import process.
Can anyone reproduce this and can anyone think of a workaround (without resorting to an orchestration)?I did some brief analysis, and within the binding file's XML, the HttpHeaders property (contained in the TransportTypeData element) is not encoded/escaped in any way, so therefore the significant whitespace (in this case CRLF) that needs to be preserved
is lost in the import process.
+1
Maybe you are looking for
-
Looking for a database collection app for children
Hi, I am a primary school teacher and I am looking for a interesting way for my children to learn about databases and spreadsheets this term using the Ipads. I have looked at using Numbers but I am looking for an app that is child friendly and looks
-
How do I download itunes 10.5 upgrade on my iphone?
When I plug my Iphone into my computer, my computer and itunes recongnize that I have plugged it in, but itunes says I need to download 10.5 on my iphone. I can not find a way to do it. It won't run on my iphone and there is no "check for updates" on
-
How do I find the IP address of drive connected to LAN port?
I connected a network drive to the LAN port of my AEBS. It appears as a Shared Device but I need to find out its assigned IP address so I can configure it. I looked in Airport Utility but can't find a listing of IP addresses that have been assigned.
-
Wiki editing area too small after template customization
We have been working with a web developer for the last 2 months and he has customized our wiki layout and provided the ability to order links manually and to create static navigation links on the page menu using Javascript. We are left with one bug w
-
Can SAPSprint support the printers without own IP address(USB printer)?
Dear all, We want to switch SAPlpd to the new tool SAPSprint for Server based printing. Our SAP version is 4.6C. We has SAPlpd on our print server (address is 192.168.214.222). We have two kinds of printers. One kind are network printers with own IP