another build error

2 views
Skip to first unread message

Aron Griffis

unread,
Mar 8, 2010, 9:48:55 PM3/8/10
to libp...@googlegroups.com
svn revision 609

[100%] Building CXX object libproxy/CMakeFiles/pacrunner_mozjs.dir/modules/pacrunner_mozjs.cpp.o
/home/agriffis/proj/libproxy/libproxy/modules/pacrunner_mozjs.cpp:34:19: error: jsapi.h: No such file or directory

I can make it build with the following, which I'm absolutely
certain is not the ideal fix. :-)

Aron


Index: libproxy/modules/pacrunner_mozjs.cpp
===================================================================
--- libproxy/modules/pacrunner_mozjs.cpp (revision 609)
+++ libproxy/modules/pacrunner_mozjs.cpp (working copy)
@@ -31,7 +31,7 @@
#define XP_WIN
#endif
#endif
-#include <jsapi.h>
+#include "/usr/include/xulrunner-1.9.1.8/unstable/jsapi.h"
#include "pacutils.h"

#ifndef INET_ADDRSTRLEN

Nathaniel McCallum

unread,
Mar 8, 2010, 9:59:44 PM3/8/10
to libp...@googlegroups.com, Aron Griffis
Yeah, definitely the wrong fix...

The problem is that the proper include dir isn't being specified. Try
looking in CMakeCache.txt to see the values of MOZJS_*. Also, try
clearing your CMakeCache.txt file. I've seen this problem before when
that file gets out of date.

If none of that works, try putting some message() commands in
libproxy/CMakeLists.txt in the mozjs section.

Nathaniel

Reply all
Reply to author
Forward
0 new messages