cnr-isti-vclab / nexus

Nexus is a c++/javascript library for creation and visualization of a batched multiresolution mesh
GNU General Public License v3.0
213 stars 86 forks source link

Can't compile nxscompress on linux (ubuntu 20.04) #131

Closed radicalreflect closed 2 years ago

radicalreflect commented 2 years ago

Hi there,

after successful compilation of nxsedit, nxsview, nxsbuild – i got a compiler error for nxscompress.

g++ -Wl,-O1 -o ../../bin/nxscompress qgetopt.o plylib.o virtualarray.o nexusdata.o traversal.o cone.o meshcoder.o meshdecoder.o abitstream.o atunstall.o main_compress.o extractor.o -L /usr/local/lib -lcorto /usr/lib/x86_64-linux-gnu/libQt5Gui.so /usr/lib/x86_64-linux-gnu/libQt5Core.so /usr/lib/x86_64-linux-gnu/libGL.so -lpthread /usr/bin/ld: nexusdata.o: in function nx::NexusData::NexusData()': nexusdata.cpp:(.text+0x344): undefined reference tovtable for nx::QTNexusFile' collect2: error: ld returned 1 exit status make: *** [Makefile:191: ../../bin/nxscompress] Error 1

is there any workaround or did i make a mistake?

Thank you in advance and for your outstanding work!

ponchio commented 2 years ago

Hi, nxscompress is actually just a shortcut executable for nxsedit (which can also do other tasks) and I forgot to update it when refactoring some code.

Just use nxsedit (-z is to compress .nxs)

Sorry,

Federico

On Mon, Dec 20, 2021 at 3:25 PM radicalreflect @.***> wrote:

Hi there,

after successful compilation of nxsedit, nxsview, nxsbuild – i got a compiler error for nxscompress.

g++ -Wl,-O1 -o ../../bin/nxscompress qgetopt.o plylib.o virtualarray.o nexusdata.o traversal.o cone.o meshcoder.o meshdecoder.o abitstream.o atunstall.o main_compress.o extractor.o -L /usr/local/lib -lcorto /usr/lib/x86_64-linux-gnu/libQt5Gui.so /usr/lib/x86_64-linux-gnu/libQt5Core.so /usr/lib/x86_64-linux-gnu/libGL.so -lpthread /usr/bin/ld: nexusdata.o: in function nx::NexusData::NexusData()': nexusdata.cpp:(.text+0x344): undefined reference to vtable for nx::QTNexusFile' collect2: error: ld returned 1 exit status make: *** [Makefile:191: ../../bin/nxscompress] Error 1

is there any workaround or did i make a mistake?

Thank you in advance and for your outstanding work!

— Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/131, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV24TLU2PRBQ4EYLFW7LUR44EBANCNFSM5KN2PGZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>